In physics, Gravitational Potential energy is energy stored in a system of forcefully interacting physical entities. The SI unit is the joule(symbol J).
Gravitational Potential = (G×M) / x
Where, G = 6.673 × 10-11 N(m/kg)^2, x = Distance, M = Mass
To find the gravitational Potential energy of the earth due to the sun, the mass of Sun is 1.99 × 1030 Kgs and earth is 150 million Kms away from sun
The Gravitational potential energy is = Gm/r = 6.673 × 10-11 × 1.99 × 1030/ 150× 109 = 8.85 × 108 J/Kg.