Gravitational potential energy (GPE) is the energy stored in an object because of its position in a gravitational field. Lift a book off the floor, raise a skydiver to jump altitude, or park a satellite in orbit and you have converted kinetic or chemical energy into gravitational potential energy — energy that can be released when the object falls back down.
This calculator implements the near-surface formula PE = m × g × h in full solve-for-any-variable mode. Enter any three of the four quantities and get the fourth, with step-by-step working and automatic unit conversion across eight planet presets.
How it works
The formula follows directly from Newton’s second law and the definition of work:
PE = m × g × h
- m — mass of the object (kg, g, lb, or tonne)
- g — gravitational acceleration at the surface (m/s²)
- h — height above the reference level (m, cm, km, ft, in, mi, yd)
- PE — gravitational potential energy (J, kJ, MJ, cal, kcal, kWh, eV, BTU)
When you raise an object by height h against gravity, you do work equal to the gravitational force (mg) multiplied by the displacement (h). That work is stored as potential energy. When the object falls the same distance, all that PE converts back to kinetic energy (ignoring air resistance), which is the basis of the conservation of energy: KE + PE = constant for a closed system.
The calculator rearranges the formula automatically:
| Solving for | Formula used |
|---|---|
| PE | PE = m × g × h |
| m | m = PE / (g × h) |
| h | h = PE / (m × g) |
| g | g = PE / (m × h) |
Every intermediate step is shown in the Working panel so you can follow the algebra, copy it into coursework, or verify your own hand calculation.
Worked example
A 70 kg person climbs to the top of a 10-metre building. How much gravitational PE have they gained?
- m = 70 kg, g = 9.81 m/s², h = 10 m
- PE = 70 × 9.81 × 10
- PE = 70 × 98.1
- PE = 6,867 J ≈ 6.87 kJ
That 6.87 kJ is exactly the kinetic energy the person would have just before hitting the ground if they fell (in a vacuum). On the Moon (g = 1.62 m/s²) the same climb stores only 70 × 1.62 × 10 = 1,134 J — about six times less.
Constants and planet presets
The calculator ships with eight planet presets, all using the standard mean surface gravitational acceleration:
| Body | g (m/s²) |
|---|---|
| Earth | 9.81 |
| Moon | 1.62 |
| Mars | 3.72 |
| Venus | 8.87 |
| Jupiter | 24.79 |
| Saturn | 10.44 |
| Mercury | 3.70 |
| Neptune | 11.15 |
For a custom planetary body or non-standard altitude, choose Custom and type any value in m/s², ft/s², or multiples of g₀ (1 g₀ = 9.80665 m/s²).
The universal gravitational constant used in the footnote is G = 6.674 × 10⁻¹¹ N·m²/kg² (CODATA 2018). This appears in the full formula PE = −GMm/r relevant to orbital mechanics, but is not used in the near-surface approximation PE = mgh that this calculator implements.
All computation is performed entirely in your browser — no data leaves your device.