Gravitational Potential Energy Calculator

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.

Select planet: ? Earth (9.80665) ? Moon (1.62) ? Mars (3.721) ? Jupiter (24.79) ? Saturn (10.44) ? Venus (8.87) ⚪ Mercury (3.70) ? Neptune (11.15) ? Uranus (8.87) ? Pluto (0.62) ☀️ Sun (274.0)
Click any planet to set its surface gravity. You can also enter a custom g value manually.
? Basketball drop: m=0.625 kg, h=3.05 m
? Car on a hill: m=1500 kg, h=50 m
?️ Skyscraper: m=2000 kg, h=828 m (Burj Khalifa)
? Water reservoir: m=1000 kg, h=100 m
? Moon walk: m=80 kg, h=2 m (on Moon)
? Jupiter probe: m=500 kg, h=30 m (on Jupiter)
Privacy first: All calculations are performed locally. No data leaves your device – the graph renders entirely in your browser.

Understanding Gravitational Potential Energy

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 Physics Behind the Formula

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.

Why Use an Interactive GPE Calculator?

  • Educational Clarity: Visualise the linear relationship between height and potential energy. Experiment with different planets to see how gravity alters energy scaling.
  • Engineering Applications: Quickly compute energy requirements for lifting loads, designing cranes, or assessing hydroelectric power potential.
  • Astrophysics & Space Exploration: Compare energy needs on the Moon, Mars, or Jupiter for mission planning and rover design.
  • Everyday Scenarios: Understand the energy involved in dropping a basketball, climbing stairs, or storing water in a reservoir.

Step-by-Step Derivation

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).

Real-World Applications

  • Hydroelectric Dams: Water stored at height has gravitational potential energy that is converted to electrical energy as it falls through turbines. The energy available is directly proportional to the height of the dam and the mass of water.
  • Roller Coasters: The initial lift hill converts motor energy into gravitational potential energy, which is then transformed into kinetic energy as the train descends.
  • Pumped-Storage Hydropower: Off-peak electricity is used to pump water uphill, storing energy as GPE, and released during peak demand.
  • Space Launch: The energy required to place a satellite into orbit is dominated by the increase in gravitational potential energy (plus kinetic energy for orbital velocity).

Planetary Gravity Values

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
Case Study: Hydroelectric Energy Storage

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.

Common Misconceptions

  • GPE depends only on height: False — it scales with both mass and height, and the local gravity also plays a crucial role.
  • GPE is always positive: In the U = mgh approximation, GPE is positive above the reference level and zero at the reference. However, in the full Newtonian formulation, GPE is negative and approaches zero at infinity.
  • Gravity is the same everywhere on Earth: In reality, Earth's gravity varies by latitude and altitude due to the planet's rotation and non-spherical shape. Our tool uses the standard value 9.80665 m/s² by default but allows custom inputs.
  • GPE and kinetic energy are unrelated: They are two forms of mechanical energy that can be interconverted. The work-energy theorem bridges them: the change in kinetic energy equals the work done, which for conservative forces equals the negative change in potential energy.

Beyond the Basics: Gravitational Potential in Astrophysics

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.

Grounded in classical and modern physics – This tool implements the standard gravitational potential energy formula as taught in university-level physics courses. The values for planetary gravity are sourced from NASA's planetary fact sheets and the IAU (International Astronomical Union). The interactive graph uses Canvas rendering for smooth real-time updates. Reviewed by the GetZenQuery tech team, last updated July 2026.

Frequently Asked Questions

In the International System of Units (SI), GPE is measured in joules (J), where 1 J = 1 kg·m²/s². The calculator also displays conversions to kilocalories (kcal), watt-hours (Wh), electronvolts (eV), and foot-pounds (ft·lbf) for convenience.

For heights up to a few kilometres, U = mgh is very accurate. For satellite orbits (hundreds of kilometres), g decreases significantly with altitude. For such cases, use the full Newtonian formula U = −GMm/r with the appropriate Earth mass and radius. Our tool is designed for near-surface applications but can serve as a starting point for conceptual understanding.

Because U = mgh is a linear function of height when mass and gravity are held constant. The slope of the line equals m·g, which represents the force (weight) of the object. Different planets change the slope, allowing visual comparison of energy scaling across different gravitational environments.

The calculator uses double-precision floating-point arithmetic, providing results accurate to about 15 significant digits. For typical physics and engineering work, this is more than sufficient. The main source of error comes from the input values themselves.

The reference level (h=0) is arbitrary. In our calculator, we set the reference at the starting point (ground level by default). The change in potential energy (ΔU) between two heights is what matters in practice, and this is independent of the chosen reference.

Recommended resources: Physics.info – Gravitational Energy, Khan Academy – Work and Energy, and the textbook "University Physics" by Young & Freedman. For planetary data, consult NASA's Planetary Fact Sheets.
References: NIST SI Units; NASA Planetary Fact Sheet; Young, H.D. & Freedman, R.A. "University Physics" (15th ed., 2020); Wikipedia: Gravitational Energy.