Potential Energy Calculator

Potential energy calculator with gravitational mode (mgh) and elastic mode (½kx²).

Science Two modes Planet presets
Rate this calculator · 4.3 (3)

Potential Energy (PE)

PE = mgh (grav) or ½kx² (elastic)

Instructions — Potential Energy Calculator

1

Pick gravitational or elastic

Gravitational PE is the energy stored by raising mass against gravity. Elastic PE is the energy stored in a spring or stretched material. Both follow the same dimensional structure but different inputs.

2

Enter the parameters

For gravitational PE: mass in kg, height in m, gravity in m/s^2 (planet selector). For elastic PE: spring constant in N/m and displacement in m. Negative heights are allowed.

3

Read all energy units

The grid converts the result to kJ, MJ, kcal (food calories), foot-pounds, kWh, and Wh. Useful for translating between physics homework and practical energy budgets.

Rule of thumb: on Earth, PE in joules ≈ 10 × mass × height. A 70 kg adult 1 m above the floor stores about 700 J.
Spring scaling: elastic PE grows with x squared. Double the stretch, four times the energy.

Formulas

Gravitational potential energy
$$ PE_{grav} = m g h $$
Mass times gravity times height above a reference point. Height can be negative if the object is below the reference.
Elastic potential energy
$$ PE_{elastic} = \tfrac{1}{2} k x^2 $$
Half the spring constant times displacement squared. Derived by integrating Hooke's law F = kx over the displacement.
Conservation of energy
$$ KE + PE = E_{total} = \text{constant} $$
In the absence of friction, mechanical energy stays constant. A roller coaster trades PE for KE on the way down.
Solve for height
$$ h = \frac{PE}{m g} $$
Rearranged gravitational PE. Useful for finding how high a known mass can be lifted by a known energy budget.

Reference

Gravity on different bodies
Bodyg (m/s^2)PE for 1 kg at 1 m
Mercury3.703.70 J
Venus8.878.87 J
Earth9.819.81 J
Moon1.621.62 J
Mars3.713.71 J
Jupiter24.7924.79 J
Saturn10.4410.44 J
Sun274274 J

Article — Potential Energy Calculator

The potential energy calculator and stored energy in physics

Potential energy is the energy stored in an object's position or configuration. For gravity, PE = mgh: mass times gravitational acceleration times height. For springs, PE = ½kx²: half the spring constant times displacement squared. The SI unit is the joule (J). On Earth, raising a 1 kg mass by 1 meter stores 9.81 J of gravitational potential energy. Total mechanical energy KE + PE stays constant in the absence of friction, the basis of every roller coaster and hydroelectric plant.

The potential energy calculator covers the two everyday cases: gravitational and elastic. It also lets you switch planets, so you can see how much energy storage a hilltop on Mars provides compared with Earth.

What is potential energy?

Potential energy is what an object has because of where it is or how it is configured. It is the counterpart to kinetic energy, which depends on motion. A book on a shelf has potential energy. A stretched bowstring has potential energy. A compressed spring under your desk chair has potential energy. None of these objects move, yet each holds energy that can be released later.

The concept was developed in the 18th and 19th centuries by mathematicians and physicists working on mechanics — Daniel Bernoulli, Joseph-Louis Lagrange, and William Rankine among them. Rankine coined the term "potential energy" in the 1850s. The deeper insight, conservation of energy, was nailed down by Hermann von Helmholtz in 1847 and remains one of the most rigorously tested laws in physics.

Did you know

A typical hydroelectric dam stores water hundreds of meters above its turbines. Hoover Dam holds 35 billion cubic meters of water at an average head of 175 m, storing roughly 6 × 10^16 joules of gravitational potential energy — equivalent to 14 million tons of TNT.

Gravitational potential energy explained

Gravitational potential energy comes from a mass's position in a gravitational field. The formula PE = mgh measures the energy relative to a chosen reference height. Pick any horizontal plane and call that h = 0. Heights above the plane give positive PE; heights below give negative PE. The reference choice is arbitrary because only changes in PE have physical meaning — what matters is how much PE converts to KE as the object moves.

Gravitational PE quick reference
PE = mgh on a planet
m = PE / (gh) solve for mass
h = PE / (mg) solve for height
1 J = 1 kg lifted ~0.1 m on Earth physical scale

The Earth value g = 9.80665 m/s² comes from a 1901 international agreement. The actual local value varies slightly with latitude and altitude. For potential energy calculations to four significant figures, 9.81 is enough. The potential energy calculator includes a planet picker because gravity on Mars (3.71 m/s²) is just 38 percent of Earth's, while Jupiter's (24.79 m/s²) is 2.5 times Earth's.

Elastic potential energy and spring storage

An elastic object — a spring, a rubber band, a bent ruler — stores energy when deformed. Hooke's law says the restoring force is proportional to the displacement: F = kx, where k is the spring constant (N/m). The work done in stretching the spring by x is the integral of that force, ∫₀ˣ kx dx = ½kx². That energy is recovered when the spring snaps back.

Stretch 1 cm
5 mJ
k = 100 N/m
Stretch 2 cm
20 mJ
x squared rule

The x-squared scaling means double the stretch stores four times the energy. This is why archery bows hit a sharp limit — pull a bow too far and it shatters. The same scaling explains why springs in car suspensions are sized for the heaviest expected loads: each extra centimeter of compression demands four times the energy as the centimeter before.

The potential energy formula in detail

Both formulas, PE = mgh and PE = ½kx², are derived by the same logic: integrate the relevant force over the displacement. For gravity the force is constant (mg for small heights), so the integral gives mgh. For springs the force is linear in displacement, so the integral picks up the factor of ½ and the square.

More general fields use a potential energy function U(x) whose negative gradient gives the force: F = -dU/dx. Gravitational PE near Earth uses U = mgh. Far from Earth, the inverse-square gravity law gives U = -Gm1m2/r. The potential energy calculator uses the near-surface approximation, which is accurate within a few percent for heights up to thousands of kilometers.

How to calculate potential energy step by step

Imagine lifting a 20 kg suitcase onto a 1 m shelf. PE = 20 × 9.81 × 1 = 196 J. Not much — less than a sip of orange juice. Now imagine raising the same suitcase to the top of the Empire State Building, 381 m. PE = 20 × 9.81 × 381 = 74,754 J = 75 kJ. The energy budget reflects the work required: every additional meter of height costs another 196 J.

For a spring problem, a car suspension might have a spring constant of 30 kN/m. Compressing it by 5 cm stores ½ × 30000 × 0.05² = 37.5 J. If both front springs compress simultaneously, the energy doubles to 75 J — soaked up and released over each road bump.

Tip

Conservation of energy lets you compute final velocity without using kinematics. If PE at the top of a slide equals KE at the bottom: mgh = ½mv², so v = √(2gh). A 5 m slide gives v = √(2 × 9.81 × 5) = 9.9 m/s, ignoring friction.

Where potential energy shows up in the real world

Hydroelectric power is the biggest commercial application of gravitational potential energy. Water in mountain reservoirs holds enormous PE; falling through turbines, it converts to rotational kinetic energy and then to electricity. Worldwide hydro generates about 4,200 TWh per year, 15 percent of global electricity.

  • hydroelectric dam = water at height converts to electricity
  • roller coaster = lift hill stores PE, released as the ride accelerates downhill
  • archery bow = elastic PE in the limbs launches the arrow
  • clock spring = wound spring stores energy to drive gears
  • car suspension = springs absorb bumps then release the energy
  • pole vault = athlete's kinetic energy bends the pole into elastic PE, then lifts them
  • pumped-storage hydro = electricity used to pump water uphill, storing energy as PE

Pumped-storage hydro is essentially an energy battery. When electricity is cheap (overnight, or during high solar/wind output), water is pumped from a low reservoir to a high one. When demand spikes, the water flows back down through turbines. Round-trip efficiency is 70-85 percent, making PE storage the most widespread grid-scale energy storage technology by far.

Common potential energy mistakes

Three errors dominate physics homework. First, choosing an inconsistent reference height. If you set h = 0 at the top of a hill and then plug positive heights for everything below, your PE values come out wrong-signed. Either be careful with signs or define h = 0 below everything.

Second, forgetting friction. PE = KE only in a frictionless world. On a real slide some PE turns into heat and sound. The roller coaster never returns to its starting height on the other side of a valley because energy has leaked out.

Constant g breaks down at large heights

PE = mgh treats gravity as constant. At low altitudes that is accurate within a few percent. For satellites, mountains, or any height comparable to Earth's radius (6,371 km), use the inverse-square form U = -GMm/r instead. The 9.81 m/s² figure underestimates the energy needed to reach orbit by a factor of two or more.

Third, using the wrong formula for elastic PE. The factor of ½ is essential — leaving it out doubles the answer. Likewise, x must be measured from the spring's natural (unstretched) length, not from its current position under load.

FAQ

For gravity, use PE = m × g × h. A 10 kg mass 5 m off the ground on Earth has PE = 10 × 9.81 × 5 = 491 J. For a spring, use PE = ½ k x^2 with spring constant k in N/m and displacement x in m.
Lifting a mass against gravity takes work. That work is stored as potential energy and released when the mass falls. Doubling the height doubles the stored energy.
Yes, if you place the reference point above the object. The sign carries information about position, not energy availability. Only changes in PE have direct physical meaning.
Potential energy depends on position; kinetic energy depends on motion. A book on a high shelf has PE but no KE. Dropped, it gains KE while losing PE, with the total mechanical energy conserved (ignoring air drag).
Spring force grows linearly with displacement (Hooke's law: F = kx). Energy is the integral of force over distance, ∫kx dx = ½kx^2. So doubling the stretch quadruples the stored energy.
For larger amounts: kilojoules (1 kJ = 1000 J), megajoules (1 MJ = 10^6 J), kilowatt-hours (1 kWh = 3.6 MJ). For food energy, kilocalories (1 kcal = 4.184 kJ). For imperial work, foot-pounds (1 ft·lb = 1.356 J).
Yes. Springs, magnets, and electric fields all store potential energy through their configurations. Any force that depends on position has an associated potential energy function.
Water in an elevated reservoir holds gravitational PE. Falling through turbines, that energy becomes KE, then rotational energy of the turbine blades, then electricity. Hydro supplies about 15 percent of world electricity.