Potential energy calculator
This potential energy calculator finds gravitational potential energy with PE = mgh and solves the same equation for the mass, the height or the gravitational acceleration. A second panel works out the elastic potential energy stored in a stretched or compressed spring, ½kx², and the spring constant or the stretch from the energy.
Potential energy calculator for gravity: PE = mgh
Potential energy calculator for springs: PE = ½kx²
How to use the potential energy calculator
The first panel handles gravitational potential energy. Choose what to solve for (energy, mass, height or g), enter the other values with any unit, and pick the gravitational acceleration: standard Earth gravity, the rounded values many textbooks use, the Moon, Mars or a custom number. The potential energy calculator returns the result in joules, kilojoules and BTU, the weight of the object, the speed it would reach falling back to the reference level, and a sketch with your numbers. “Show the working” lists every step.
The second panel of the potential energy calculator covers springs and other elastic objects. Enter the spring constant with its unit (N/m, N/mm, kN/m, lbf/in or lbf/ft) and the stretch or compression to get the stored energy, or let the potential energy calculator solve for k or x from a known energy. To work out k from a load test or from the coil dimensions, use the Spring Constant Calculator.
Gravitational potential energy formula in the potential energy calculator
Lifting an object of mass m through a height h against gravity stores energy in the object–Earth system. Near the surface of a planet, where g is practically constant:
With m in kg, g in m/s² and h in m, PE is in joules. The potential energy calculator rearranges the same equation for the other three modes:
The height is measured from a reference level that you choose. Moving the reference changes every PE by the same amount but never changes the difference between two positions, which is what physics problems use. The OpenStax University Physics section on potential energy explains why only differences matter.
Elastic potential energy formula
A spring that obeys Hooke’s law pushes back with a force F = kx, where k is the spring constant and x the stretch or compression from the natural length. The work done to deform it, the area under the force–stretch line, is stored as elastic potential energy:
Worked examples with the potential energy calculator
Gravitational: a 5 kg box sits on a shelf 10 m above the floor of a warehouse. With standard gravity, PE = 5 × 9.80665 × 10 = 490.33 J (0.49 kJ, 0.465 BTU). Its weight is 5 × 9.80665 = 49.03 N, and if it fell to the floor without air resistance it would hit at v = √(2 × 9.80665 × 10) = 14.00 m/s, about 50.4 km/h. These are the default values in the potential energy calculator. Pick the Moon instead and the same box stores only 5 × 1.62 × 10 = 81 J.
Elastic: a spring with k = 400 N/m is stretched 5 cm. Convert the stretch to meters, 0.05 m, then PE = ½ × 400 × 0.05² = 0.5 J. The spring pulls back with F = 400 × 0.05 = 20 N. Stretching it to 10 cm would store 2 J, four times as much, because the energy depends on x².
Gravitational acceleration on Earth, the Moon and the planets
The standard acceleration of gravity, g = 9.80665 m/s², is a defined conventional value; real g on Earth varies from about 9.78 m/s² at the equator to 9.83 m/s² at the poles. The other values below come from the NASA Planetary Fact Sheet and its Moon and Mars pages.
| Body | g (m/s²) | Relative to Earth | PE of 1 kg raised 1 m |
|---|---|---|---|
| Earth (standard) | 9.80665 | 1 | 9.81 J |
| Moon | 1.62 | 0.165 | 1.62 J |
| Mars | 3.73 | 0.380 | 3.73 J |
| Mercury | 3.7 | 0.38 | 3.7 J |
| Venus | 8.9 | 0.91 | 8.9 J |
| Jupiter (cloud tops) | 23.1 | 2.36 | 23.1 J |
For a sense of scale: climbing one flight of stairs (3 m) as a 70 kg person stores 70 × 9.80665 × 3 = 2,059 J, about 0.5 food Calories. The body burns several times that because muscles are only about 20–25 % efficient.
Where a potential energy calculator is used
Energy conservation problems: without friction, PE at the top equals kinetic energy at the bottom, so mgh = ½mv² and v = √(2gh); check the speed with the Kinetic Energy Calculator or the Free Fall Calculator. Hydropower and pumped storage: 1 m³ of water (1,000 kg) held 100 m up stores 981 kJ, about 0.27 kWh, before turbine losses; the Pump Power Calculator covers the reverse job of lifting water. Springs and mechanisms: catapults, spring-loaded latches, suspension and trampoline problems. Lifting work: the change in PE equals the minimum work to raise a load; the Work Calculator adds the time and power.
Common mistakes with a potential energy calculator
Using weight in place of mass. If a problem gives a weight in newtons or pounds-force, PE = weight × h directly; multiplying by g again overstates it by about ten times. Height in the wrong unit. Centimeters or feet must become meters for joules; the potential energy calculator converts them for you. Measuring h along a slope. h is the vertical height difference, not the distance traveled along a ramp or staircase. Forgetting the square in ½kx². Twice the stretch stores four times the energy. Measuring x from the wrong point. x is the change from the natural, unloaded length, not the total length of the spring. Using mgh for satellites. Hundreds of kilometers up, g is smaller and the potential energy must be found with U = −GMm/r.
Related calculators
For forces, use the Force Calculator; for density-based masses of liquids, the Density Calculator. All physics tools are on the physics calculators page.
Related calculators
- Kinetic Energy Calculator
- Work Calculator
- Free Fall Calculator
- Spring Constant Calculator
- Momentum Calculator
- All physics calculators
Frequently asked questions
How do you calculate gravitational potential energy?
Multiply mass, gravitational acceleration and height: PE = mgh. A 5 kg box 10 m above the floor has PE = 5 × 9.80665 × 10 = 490.33 J. The potential energy calculator also solves for m, h or g.
What value of g should I use?
Use whatever your course or problem states: 9.8 or 9.81 m/s² in most textbooks, 9.80665 m/s² as the exact standard value. The difference is under 0.1 %, so any of them is fine in the potential energy calculator. For the Moon use 1.62 m/s² and for Mars 3.73 m/s².
How do you find elastic potential energy?
Use PE = ½kx², with k in N/m and x in meters. A 400 N/m spring stretched 0.05 m stores 0.5 J. The second panel of the potential energy calculator does this and solves for k or x.
Can potential energy be negative?
Yes. Gravitational PE is negative when the object is below the chosen reference level, because PE is measured relative to that level. Only changes in PE matter, so the sign depends on your choice of zero. Elastic PE, ½kx², is never negative. The potential energy calculator accepts negative heights.
What is the difference between potential and kinetic energy?
Potential energy is stored by position or deformation (mgh, ½kx²); kinetic energy is energy of motion (½mv²). In a falling object or a bouncing spring, one turns into the other while the total stays the same if friction is negligible.
Is this potential energy calculator free?
Yes. It runs in your browser, needs no sign-up and does not store or send the values you enter.