Gravitational potential energy calculator
Gravitational potential energy is the stored energy of an object raised to a height — the energy it would release if it fell. It is given by PE = m × g × h and measured in joules. This tool rearranges the formula so you can solve for potential energy, mass, or height, with an editable gravity value for other planets, making it useful for physics homework and engineering checks.
How it works
The tool solves whichever quantity you leave unknown from the same relationship:
PE = m × g × h (joules)
m = PE ÷ (g × h) (kilograms)
h = PE ÷ (m × g) (metres)
Gravity g defaults to Earth’s standard 9.80665 m/s² but is editable, so you can model the Moon (≈1.62), Mars (≈3.72) or any other body.
Example
A 5 kg object raised 4 m on Earth (g = 9.80665):
- PE = 5 × 9.80665 × 4 = 196.13 J
Solving the other way — 196.13 J with the same mass and gravity gives back a height of 4 m.
| Mass | Height | g (m/s²) | PE (J) |
|---|---|---|---|
| 5 kg | 4 m | 9.80665 | 196.13 |
| 2 kg | 10 m | 9.80665 | 196.13 |
| 5 kg | 4 m | 1.62 (Moon) | 32.40 |
Everything updates instantly — all in your browser.