Gravitational Potential Energy Calculator
Last updated: 17 August 2026
Reviewed by Gavin · Research and drafting assisted by AI
Calculate gravitational potential energy using U = mgh. Choose a planetary gravity or enter a custom value, compare the result with household energy use, and try a practical preset.
Gravitational Potential Energy Calculator
Gravitational potential energy is the energy an object has because of its position in a gravitational field. Near a planet's surface, the standard classroom and engineering approximation is the compact relationship U = mgh: multiply the object's mass by local gravitational acceleration and by its height above a chosen reference. This calculator makes that calculation easy while keeping the assumptions visible. It accepts mass in kilograms, height in metres, and a choice of Earth, Mars, Moon, Jupiter, Sun, or a custom gravitational acceleration. The result is reported in joules and converted to kilowatt-hours so that very small and very large answers can be compared sensibly.
The same equation is useful for many practical questions. A book raised above a floor stores energy that can be recovered as it falls. A lifted load, a raised platform, and a body on a hillside all have gravitational potential energy relative to a lower reference. The equation is not claiming that the object is moving, nor that all of the energy can be recovered; it describes the potential associated with a position and a chosen zero level. In real machines, bearings, friction, deformation, air resistance, and control systems determine how much of that potential becomes useful work.
The calculator is designed for the near-surface approximation. It is appropriate when the change in height is small compared with the radius of the relevant body, and when a single local value of g is a useful model. It should not be used uncritically for an object moving from the ground to an orbital altitude, across a planet's radius, or through a rapidly changing field. In those situations, gravitational potential is better described with the universal form U = -GMm/r, where G is the gravitational constant, M is the central body's mass, m is the object's mass, and r is the distance from the body's centre. The near-surface equation is nevertheless the transparent starting point for most laboratory, classroom, and everyday estimates.
How to Use the Gravitational Potential Energy Calculator
- Enter the object's mass in kilograms. Use the mass that belongs to the object being lifted, not its weight in newtons.
- Enter the vertical height in metres above the reference level. Decide explicitly whether the reference is the floor, ground, sea level, a shelf, or another datum.
- Select a gravity preset: Earth, Mars, Moon, Jupiter, or Sun. Choose Custom g when the problem supplies a local acceleration in m/s².
- If you selected Custom g, enter that acceleration. Otherwise review the displayed preset value before calculating.
- Select one of the example presets if you want to explore a scenario quickly, then adjust the values.
- Click Calculate potential energy. Read the energy in joules, its kilowatt-hour equivalent, the inputs used, and the household comparison.
- Change the reference level and recalculate if you need a potential-energy difference rather than an absolute classroom value.
The fields use SI units so the equation is dimensionally consistent. A negative value is not expected for a height measured upward from the reference, but zero is allowed. The calculator validates the three numerical inputs and does not silently repair a missing or malformed value. For a result that must be quoted in a report, preserve the units, record the gravity model, and state the reference level.
The Formula
The near-surface formula is:
U = mgh
Here, m is mass in kilograms, g is gravitational acceleration in metres per second squared, and h is vertical height in metres above the reference. The SI unit of energy is the joule:
1 J = 1 kg·m²/s²
Because the formula is a multiplication, doubling either mass or height doubles the result, while doubling g also doubles the result. Height must be measured vertically, or as a vertical component after resolving a path into components. The calculator is intentionally a direct calculator rather than an equation rearranger: enter the known mass, height, and gravity, and read the corresponding energy.
The kWh conversion uses:
kWh = J ÷ 3,600,000
One kilowatt-hour is one kilowatt of power sustained for one hour, or 3.6 million joules. The household comparison is a scale aid, not a statement about appliance efficiency. It uses approximate reference rates: a 60 W light bulb for small results and a 1 kW household appliance for larger results. Actual appliance consumption, duty cycle, losses, and operating time can differ widely.
For large distances, use the universal form instead:
U = -GMm/r
That form is negative for a bound system when zero is defined at infinity. It depends on distance from the centre, not simply on altitude above a surface. The two models can be compared locally: near a spherical body, the change in the universal potential over a sufficiently small vertical displacement approximates mgh. The calculator displays the chosen gravity value so you can decide whether the near-surface approximation is appropriate.
Worked Examples
Example 1, one kilogram raised one metre on Earth. Use the preset Earth value g = 9.81 m/s², m = 1 kg, and h = 1 m. The calculation is U = 1 × 9.81 × 1 = 9.81 J. The kWh equivalent is 9.81 ÷ 3,600,000 = 0.000002725 kWh. This is a useful hand-check for the calculator and a reminder that ordinary household energy use is much larger when measured in joules.
Example 2, a 70 kg mountaintop hiker relative to a base. A 70 kg object at 3,000 m, using Earth g = 9.81 m/s², has U = 70 × 9.81 × 3,000 = 2,060,700 J, or about 2.06 MJ. If the reference is a base station at a different elevation, only the vertical difference belongs in h. The calculation does not account for the route length, terrain, or the person's changing kinetic energy while climbing.
Example 3, comparing planets. A 10 kg object lifted 1 m stores approximately 98.1 J on Earth, 37.1 J on Mars, 16.2 J on the Moon, and 247.9 J on Jupiter using the calculator's rounded preset values. The Sun preset is a very different environment and should be interpreted as a mathematical surface-gravity model, not as a convenient human location. The point of the comparison is that g changes the result even when mass and height are identical.
Example 4, a satellite-sized estimate. The satellite preset uses 420,000 kg and 400,000 m with Earth gravity. U = 420,000 × 9.81 × 400,000 = 1.64808 × 10¹² J, or about 1,648.08 GJ, which is 457,800 kWh. This is a large energy quantity, but it is only the near-surface estimate and should not be confused with the total orbital energy of a satellite. At orbital scales, the universal potential, orbital speed, atmosphere, Earth's rotation, and the satellite's trajectory all matter.
Example 5, a negative or zero height convention. If the reference is set at the top of a bookshelf, an object on that shelf has U = 0 relative to that reference. Moving the reference downward or upward changes the numerical zero, while the difference between two positions remains m times g times the vertical separation. Always describe the reference when comparing values from separate problems.
Where It Shows Up
Lifting and handling. Cranes, hoists, lifts, forklifts, and warehouse platforms raise mass against gravity. A basic energy estimate can help compare load, height, and gravity assumptions, but a machine's electrical energy also includes motor efficiency, acceleration, braking, and control losses.
Water and stored resources. Water in an high reservoir, grain in a silo, or material on a conveyor has potential energy. The same product mgh can provide a first estimate before pipe losses, turbines, friction, and conversion efficiency are considered. The reference level must match the outlet or process datum.
Recreation and sport. A climber, cyclist, skier, or jumper changes gravitational potential energy as elevation changes. The formula helps separate elevation effects from speed, technique, and aerodynamic drag. It does not predict performance by itself.
Earth science and geography. A mass moved between elevations has a gravitational energy change. Surveyors and geophysicists may care about local variations in g, but for ordinary estimates the selected planetary preset is a transparent approximation. More detailed work may require latitude, altitude, density, and local gravity corrections.
Energy education. U = mgh is often introduced alongside kinetic energy, work, and conservation of energy. It is a good first model because every variable is visible and the units are easy to check. The next step is usually to ask where the zero is set and what happens when the field is no longer uniform.
Engineering estimates. Structural lifting, temporary works, counterweights, and raised components can all be screened with mgh. A safety-critical calculation should use the actual geometry, load distribution, factor of safety, and applicable engineering standards rather than this calculator alone.
Common Mistakes
Using weight instead of mass. Weight is a force measured in newtons, while m in mgh is mass in kilograms. The calculator asks for mass. If a problem gives weight in newtons, either use mass consistently in the energy model or first use the relevant force relationship with the stated assumptions.
Forgetting the reference level. Gravitational potential is relative. A result of 100 J has no complete meaning until the zero height is specified. Define the datum before calculating, especially when comparing two positions or when copying a number into a larger model.
Treating distance along a slope as height. The height term is the vertical component. For a 10 m path on a 30° incline, the vertical rise is 10 sin(30°) = 5 m, not 10 m. If the problem only gives path length, resolve it into a vertical component or use the stated vertical height.
Assuming g is exactly constant everywhere. The presets are rounded reference values. Actual gravity varies with body, location, altitude, and model assumptions. For high-precision work, use a more specific value and document it.
Using mgh for orbital problems. A 400 km satellite estimate can be a useful classroom illustration, but mgh is not the universal orbital potential. For a satellite, use orbital mechanics and the appropriate central-body model. The calculator's note is a reminder to check scale, not a claim that the two equations are interchangeable.
Confusing energy with power. Joules describe an amount of energy. Watts describe a rate of energy transfer. A 1 kWh comparison is an amount of energy, while a 1 kW appliance is a power level. Time still determines how long an appliance operates.
Ignoring losses and recovery. Lowering an object can release potential energy, but real equipment may lose energy to friction, heat, sound, electrical conversion, or air resistance. The calculator reports ideal stored energy, not guaranteed recovered energy.
Frequently Asked Questions
What is gravitational potential energy? Gravitational potential energy is the energy associated with an object's position in a gravitational field. The near-surface model calculates it with U = mgh, where the result is measured relative to a chosen reference height.
What units does the calculator use? Mass is entered in kilograms, height in metres, and gravity in metres per second squared. The result is shown in joules and kilowatt-hours. Convert other units before using the calculator so the multiplication remains dimensionally consistent.
Why is the reference height important? Potential energy depends on a chosen zero level. Changing the reference can change the reported value even when the object's position and gravity are unchanged. Differences between positions are independent of that choice when the same reference is used.
Can gravitational potential energy be zero or negative? It can be zero when the selected position is the reference position. The near-surface calculator accepts zero and positive heights and produces corresponding non-negative values. In the universal-gravity convention, where zero is defined at infinity, bound systems can have negative potential.
Can I use mgh for an orbit or a satellite? It can be used as a rough local estimate when the height change is small compared with the body's radius, but it is not the complete orbital model. Orbital work normally uses U = -GMm/r together with kinetic energy, distance from the body's centre, and the appropriate orbital equations.
Does the calculator account for air resistance? No. The calculator reports ideal gravitational potential energy from mass, height, and gravity. Air resistance, friction, deformation, motor efficiency, and other losses require additional data and a different model.
Why does increasing height increase the energy? Because height is a direct factor in U = mgh. With mass and gravity held constant, doubling height doubles the ideal potential energy. The same relationship applies to mass and, within the near-surface model, to the chosen gravity value.
What does the kWh result mean? The kWh value is a unit conversion, not a prediction of electricity use. One kilowatt-hour equals 3.6 million joules. The household comparison gives a rough scale using representative appliance powers, while actual consumption depends on the device and operating time.
Is the Sun preset suitable for a human calculation? The Sun preset supplies a rounded surface-gravity value so the formula remains easy to compare across bodies. It is a mathematical environment, not a practical location for a person. For a scientifically specific model, use a documented source and a more complete gravity model.
What does gravitational potential energy measure? It measures the energy associated with an object's position in a gravitational field relative to a chosen reference. The numerical value can change when the reference changes, but the energy difference between two positions does not.
What units should I use in U = mgh? Use kilograms for mass, metres per second squared for gravitational acceleration, and metres for height. The result is in joules. The calculator accepts these SI inputs and reports a kWh equivalent for context.
Can gravitational potential energy be zero? Yes. Set the reference height equal to the position being described, or choose a datum such that the potential difference is zero. Zero is not a universal property of the object; it is a convention.
Can it be negative? In the near-surface convention, an upward displacement from the chosen reference normally gives a positive result. In the universal convention, where potential energy is defined as zero at infinity, bound gravitational potentials are negative. The negative sign is therefore about the reference convention, not necessarily about an error.
Why does changing height double the energy? Because height is a linear factor in U = mgh. With mass and g fixed, doubling h doubles U. The same linearity applies to mass. Gravity is also linear here because the near-surface model treats g as a chosen constant.
Which gravity value should I choose? Use the value that matches the problem's location or stated model. Earth is the default for ordinary classroom work. Use Mars, Moon, Jupiter, or Sun when comparing bodies, or choose Custom g for a supplied local acceleration. For high-precision work, check the source and units of the supplied g.
Is the result the same as kinetic energy? No. Potential energy depends on position; kinetic energy depends on motion and is commonly written KE = ½mv². In an ideal conservative system, potential energy can become kinetic energy as an object moves downward, but the two quantities are not the same at every instant.
How accurate is the calculator? It performs the requested arithmetic with the supplied inputs and displayed rounded presets. Accuracy is therefore limited by the precision of mass, height, g, and the assumptions of mgh. It is suitable for estimates, demonstrations, and sanity checks, not a substitute for an engineering or orbital calculation where those assumptions fail.
Why is a large satellite result not the satellite's orbital energy? The preset multiplies mass, Earth g, and altitude. Orbital potential depends on distance from Earth's centre, and total orbital energy also includes kinetic energy and the chosen gravitational model. Use dedicated orbital mechanics for a satellite mission.
Does the calculator include air resistance? No. It calculates ideal gravitational potential energy only. Drag, lift, buoyancy, rotation, and other forces require additional models.
Can I use pounds, feet, or another unit system? The calculator is written around kilograms, metres, and m/s². Convert other units consistently before entering values, and keep enough significant figures for the result you need.
How do I compare two heights? Use U₂ − U₁ = mg(h₂ − h₁), or calculate both values from the same reference and subtract. Keeping one datum avoids accidentally comparing two values with different zeroes.
References
- Halliday, Resnick, and Walker, Fundamentals of Physics, gravitational potential energy and work-energy concepts.
- Young and Freedman, University Physics, potential energy and conservative forces.
- BIPM, The International System of Units (SI), for the joule, kilogram, metre, and second.
- NASA, gravitational and orbital-mechanics educational resources, for the distinction between local and universal gravity models.
- OpenStax, University Physics Volume 1, potential energy and conservation of energy chapters.
The references above provide background for the model and its assumptions. The calculator itself is an educational arithmetic tool: it does not retrieve live data, model atmosphere, or replace a specialist calculation.