Compute gravitational potential energy (GPE) using the fundamental equation U = mgh. Select from preset celestial bodies or enter custom gravity values. Visualize how potential energy scales with mass and height through an interactive chart.
Gravitational potential energy (GPE) is the energy an object possesses due to its position in a gravitational field. The classical equation, U = mgh, describes the potential energy of a mass m at height h above a reference level, in a uniform gravitational field with acceleration g. This concept is fundamental to classical mechanics and underpins everything from roller-coaster design to astrophysical simulations.
U = m · g · h
where U is in joules (J), m in kilograms (kg), g in m/s², and h in metres (m).
The tool above computes GPE for any combination of mass, height, and gravitational acceleration. It also provides an interactive graph showing how potential energy increases linearly with height for a fixed mass and gravity — a direct consequence of the linear relationship in U = mgh.
The equation U = mgh is a simplified form derived from Newton's law of universal gravitation under the assumption that g is constant (i.e., near the surface of a planet). It represents the work done against gravity to lift an object from the reference level (h=0) to a height h. In a uniform gravitational field, this work is independent of the path taken — a hallmark of conservative forces.
For heights comparable to the radius of a planet, the approximation g = constant breaks down, and one must use the full gravitational potential energy expression:
U(r) = −G·M·m / r, where r is the distance from the center of the planet. However, for most everyday applications on Earth's surface, U = mgh is accurate to within a fraction of a percent.
The work done W to lift a mass m from height 0 to height h against gravity is given by the integral of force over distance:
W = ∫₀ʰ F · dy = ∫₀ʰ (m·g) · dy = m·g·h
Since the force is conservative, this work equals the change in potential energy: ΔU = U(h) − U(0) = m·g·h. By convention, U(0) is set to zero, yielding the familiar U = mgh.
In our calculator, we extend this principle across different gravitational environments by varying g. The linearity is preserved, but the slope of the U-vs-h graph changes with g — a steeper slope for higher gravity (Jupiter) and a gentler slope for lower gravity (Moon).
The table below lists standard surface gravity values for selected celestial bodies. These are used in our preset buttons and are derived from authoritative sources (NASA, JPL, and planetary science data).
| Body | Surface Gravity (m/s²) | Relative to Earth | Notable Feature |
|---|---|---|---|
| Sun | 274.0 | 27.9× | Extreme gravity; surface not solid |
| Jupiter | 24.79 | 2.53× | Largest planet in Solar System |
| Neptune | 11.15 | 1.14× | Ice giant with strong winds |
| Earth | 9.80665 | 1.00× | Standard reference (ISO 80000) |
| Venus | 8.87 | 0.904× | Similar to Earth in size and gravity |
| Uranus | 8.87 | 0.904× | Rotates on its side |
| Mars | 3.721 | 0.379× | Target for human exploration |
| Mercury | 3.70 | 0.377× | Smallest planet, high density |
| Moon | 1.62 | 0.165× | Earth's natural satellite |
| Pluto | 0.62 | 0.063× | Dwarf planet, very low gravity |
A pumped-storage hydroelectric facility uses two reservoirs at different elevations. During low-demand periods, water is pumped from the lower reservoir to the upper reservoir, converting electrical energy into gravitational potential energy. During high demand, water is released back down through turbines.
Scenario: Upper reservoir holds 1,000,000 kg of water (1000 m³) at an average height of 120 m above the lower reservoir. Using g = 9.80665 m/s²:
U = 1,000,000 × 9.80665 × 120 = 1.1768 × 10⁹ J ≈ 327 kWh
This stored energy can power approximately 30 average homes for one hour. Our calculator can verify this and scale the values for different reservoir capacities and heights.
In astrophysics, the full gravitational potential energy of a system is given by the sum of U = −GMm/r for each pair of masses. This is the energy required to separate the masses to infinity. For galaxies, clusters, and the large-scale structure of the universe, gravitational potential energy plays a key role in determining dynamics and evolution. The virial theorem relates the average kinetic energy to the gravitational potential energy for stable systems like galaxies and clusters.