calculator

Potential Energy Calculator

To calculate gravitational potential energy, multiply mass by gravitational acceleration and height: PE = mgh. A 60 kg hiker standing 10 m above a trail stores about 5,880 J. For a spring, use PE = ½kx² instead. Choose the type, enter the values you know in any units, and the calculator solves for the missing one with every step shown.

Potential Energy Calculator

The gravitational potential energy is5,883.99 J5.88399 kJ · 1.40631 kcal · 4,339.81 ft·lbf
  1. Convert to SI: m = 60 kg, g = 9.80665 m/s², h = 10 m
  2. PE = m × g × h = 60 × 9.80665 × 10
  3. PE = 588.399 × 10 = 5,883.99 J
Roller coaster car paused at the top of a tall lift hill, storing a large amount of gravitational potential energy before the drop
At the top of its lift hill, a roller coaster car stores the gravitational potential energy that powers the rest of the ride.

At a Glance

Gravitational potential energy is calculated with PE = m g h, using mass in kilograms, g = 9.81 m/s² on Earth and height in meters to get joules. Elastic potential energy in a spring is PE = 1/2 k x^2, where k is the spring constant in N/m and x is the stretch or compression in meters.

Formulas
PE = mgh · PE = ½kx²
Solves for
Energy, mass, height, g, spring constant, stretch
Mass units
kg, g, lb, metric ton
Length units
m, cm, mm, km, in, ft
Energy units
J, kJ, MJ, cal, kcal, kWh, ft·lbf
Spring units
N/m, N/cm, N/mm, lbf/in, lbf/ft
On this page
  1. Potential energy calculator: gravitational (mgh) or elastic (½kx²)
  2. How to Use the Potential Energy Calculator
  3. What Is the Potential Energy Formula?
  4. How Do You Calculate Gravitational Potential Energy?
  5. How Do You Find Height or Mass From Potential Energy?
  6. How Do You Calculate the Potential Energy of a Spring?
  7. How Much Potential Energy Do Everyday Objects Store?
  8. Related Calculators and Practice
  9. Key Facts
  10. FAQ

How to Use the Potential Energy Calculator

First choose the type: Gravitational PE = mgh for an object raised above a reference level, or Elastic PE = ½kx² for a stretched or squeezed spring. Then press the quantity you want to find. Type the other values and set each unit from its dropdown; the answer updates as you type.

Gravity starts at the standard value of 9.80665 m/s², but you can change it to 9.81, to the Moon's 1.62 or to any other planet. Height may be negative if the object sits below your chosen zero level. The steps under the answer show the SI conversion, the formula, the substitution and the result, ready to copy into homework.

What Is the Potential Energy Formula?

The gravitational potential energy formula is PE=mgh, where m is mass in kilograms, g is the gravitational acceleration in m/s² and h is height in meters above a level you choose as zero. Rearranged, it gives h=PE/(mg) and m=PE/(gh). It assumes g stays the same over the height, which is true for anything near the ground.

This page covers the calculation. For what potential energy is and the forms it takes, read our guides to potential energy and gravitational potential energy. The energy formulas sheet puts both formulas next to those for work, power and kinetic energy.

The gravitational mode of the calculator uses this formula and its rearranged forms, after converting every input to SI units.

PEg=mgh
What each symbol means
SymbolQuantitySI unit
PEggravitational potential energyjoule (J)
mmasskilogram (kg)
gacceleration due to gravity (9.80 m/s² (standard 9.80665 m/s²))meter per second squared (m/s²)
hheight above the chosen reference levelmeter (m)

Rearranged to find another variable:

m=PEgghh=PEgmgg=PEgmh

Valid for: near Earth's surface (uniform g); only changes in PE are physically meaningful.

How Do You Calculate Gravitational Potential Energy?

Calculating PE = mgh by hand takes four steps:

  1. Choose the zero level. Usually the floor, the ground or the lowest point the object will reach.
  2. Convert to SI units. Mass in kilograms (multiply pounds by 0.45359237) and height in meters (multiply feet by 0.3048).
  3. Multiply mass by g. On Earth, use 9.81 m/s², or 9.80665 m/s² for the standard value.
  4. Multiply by the height. The result is the potential energy in joules.

For a 2 kg flowerpot on a 1.5 m shelf, 2 times 9.81 is 19.62, and 19.62 times 1.5 gives about 29.4 J. Only differences in potential energy matter physically, so a different zero level shifts every value by the same amount without changing any result.

Example 1 A crate lifted onto a loading dock

A worker lifts a 25 kg crate onto a loading dock 1.2 m above the ground. Using g = 9.81 m/s², how much gravitational potential energy does the crate gain?

  1. Given:
    • mass: m=25 kg
    • acceleration due to gravity: g=9.81 m/s2
    • height above the chosen reference level: h=1.2 m
  2. Formula: PEg=mgh
  3. Substitute: PEg=(25 kg)(9.81 m/s2)(1.2 m)
  4. Answer: PEg=294.3 J

That is about the same energy a 60 W bulb uses in five seconds.

How Do You Find Height or Mass From Potential Energy?

To find height, divide the potential energy by mass times g. To find mass, divide the energy by g times the height. In the calculator, press Height or Mass and enter the other values. You can even solve for g itself, which shows how an experiment on another planet could reveal its gravity.

A quick sense check catches most mistakes. If a classroom object comes out hundreds of meters high, the energy was probably entered in kilojoules while the unit was set to joules. The worked example below finds the height of a water tank from its stored energy.

Example 2 How high is the water tank?

A 1,000 kg block of water stored in a hilltop tank has 343,350 J of potential energy relative to the town below. Using g = 9.81 m/s², how high is the tank above the town?

  1. Given:
    • gravitational potential energy: PEg=343,350 J
    • mass: m=1,000 kg
    • acceleration due to gravity: g=9.81 m/s2
  2. Formula: h=PEgmg
  3. Substitute: h=343,350 J(1,000 kg)(9.81 m/s2)
  4. Answer: h=35 m

This height sets the water pressure that town faucets feel without any pump.

How Do You Calculate the Potential Energy of a Spring?

A spring stores elastic potential energy when it is stretched or compressed. The formula is PE=12kx2, where k is the spring constant in newtons per meter and x is how far the spring is pulled or pushed from its natural length. The stretch is squared, so pulling twice as far stores four times the energy.

The spring constant comes from Hooke's law, F = kx, and our Hooke's law calculator finds k from a force and a stretch. Switch the calculator above to Elastic to solve for the energy, the spring constant or the stretch. The elastic potential energy page explains where this energy goes when the spring is released.

Example 3 Energy in a compressed launcher spring

A toy launcher spring with a spring constant of 250 N/m is pushed in by 0.06 m (6 cm). How much elastic potential energy does it store?

  1. Given:
    • spring constant: k=250 N/m
    • stretch or compression from equilibrium: x=0.06 m
  2. Formula: PEs=12kx2
  3. Substitute: k=250 N/m,x=0.06 m
  4. Answer: PEs=0.45 J

When released, this energy becomes the kinetic energy of the foam dart, minus some losses to friction.

How Much Potential Energy Do Everyday Objects Store?

The table gives typical potential energies, computed with the calculator's formulas. Gravity dominates at large scales: a roller coaster car at the top of its first hill stores millions of joules, and that energy alone carries it through the rest of the ride. Springs store much less, but they release it in a split second.

The bar chart follows a ball as it falls. Potential energy turns into kinetic energy on the way down, while the total stays the same when air resistance is small. That trade is the heart of conservation of energy, and kinetic vs potential energy compares the two forms directly.

Typical potential energy stored in everyday situations
SituationValues usedFormulaPotential energy (J)
Ballpoint pen spring, clickedk = 300 N/m, x = 4 mm½kx²0.0024
Toy dart launcher springk = 200 N/m, x = 5 cm½kx²0.25
Phone lifted onto a deskm = 0.2 kg, h = 0.75 mmgh1.47
Book on a high shelfm = 1 kg, h = 2 mmgh19.6
Car suspension spring, loadedk = 30,000 N/m, x = 5 cm½kx²37.5
Backpack lifted to the shoulderm = 8 kg, h = 1.2 mmgh94.1
Garage door spring, door closedk = 6,000 N/m, x = 0.3 m½kx²270
Trampoline at its lowest pointk = 5,000 N/m, x = 0.5 m½kx²625
Adult climbing one floorm = 70 kg, h = 3 mmgh2,060
Diver on a 10 m platformm = 65 kg, h = 10 mmgh6,370
Car on a 30 m high parking deckm = 1,500 kg, h = 30 mmgh441,000
1 m³ of water behind a 50 m damm = 1,000 kg, h = 50 mmgh490,000
Loaded roller coaster car on a 60 m hillm = 4,000 kg, h = 60 mmgh2,350,000
Source: Computed with PE = mgh (g = 9.80665 m/s²) and PE = ½kx²; masses, heights and spring constants are typical values · Retrieved October 2026
Energy bar chart for a 2 kg ball dropped from 5 m: about 98 J of potential energy turns into kinetic energy as it falls
A 2 kg ball dropped from 5 m starts with about 98 J of potential energy, which becomes kinetic energy by the time it lands.

Key Facts

  • Gravitational potential energy is calculated with PE = mgh, using kilograms, m/s² and meters to get joules.
  • Elastic potential energy in a spring is PE = ½kx², with k in N/m and x in meters.
  • Doubling the height doubles gravitational PE, but doubling a spring's stretch quadruples its PE.
  • Height is measured from a zero level you choose; only changes in potential energy matter.
  • Standard gravity is 9.80665 m/s², while the Moon's surface gravity is about 1.62 m/s².
  • The formula mgh assumes g is constant, which holds for heights small compared with Earth's radius.
Did you know? Lifting one cubic meter of water 50 m up a dam stores about 490,000 J, only around 0.14 kWh, which is why hydroelectric plants need enormous reservoirs to light a city.

Frequently Asked Questions

How do you calculate potential energy?

For an object raised above the ground, multiply its mass in kilograms by 9.81 m/s² and by its height in meters. The answer is gravitational potential energy in joules. A 3 kg box on a 2 m shelf stores about 3 times 9.81 times 2, or 58.9 J. For a spring, use one half times the spring constant times the stretch squared.

What is the formula for gravitational potential energy?

The formula is PE = mgh, where m is mass, g is the gravitational acceleration and h is height above a chosen zero level. On Earth g is about 9.81 m/s². Rearranged, height is h = PE/(mg) and mass is m = PE/(gh). The formula works near a planet's surface; far out in space, a different formula with the gravitational constant is used.

What is the potential energy formula for a spring?

A spring's elastic potential energy is PE = ½kx², where k is the spring constant in N/m and x is the stretch or compression in meters. A spring with k = 400 N/m pulled 0.1 m stores ½ times 400 times 0.01, or 2 J. The formula assumes the spring obeys Hooke's law and is not stretched past its elastic limit.

What value of g should I use?

Most textbooks use 9.8 or 9.81 m/s², and the internationally agreed standard value is exactly 9.80665 m/s². Real gravity varies slightly with latitude and altitude, by about half a percent across Earth's surface. For the Moon use about 1.62 m/s², and for Mars about 3.71 m/s². The calculator lets you type any value or choose ft/s².

Can potential energy be negative?

Yes. Gravitational potential energy is measured from a zero level that you choose, so anything below that level has negative potential energy. A ball at the bottom of a 2 m pit, with the ground as zero, has negative PE. The sign does not change the physics, because only differences in potential energy affect motion.

How do you find height from potential energy?

Divide the potential energy by the mass times g: h = PE/(mg). If a 4 kg object has 196.2 J of potential energy on Earth, its height is 196.2 divided by 39.24, or 5 m. In the calculator, choose Gravitational, press Height and enter the energy, mass and g to see each step of the division.

How is potential energy different from kinetic energy?

Potential energy is stored because of position or shape, like a raised weight or a squeezed spring. Kinetic energy belongs to motion and is calculated with ½mv². As an object falls, potential energy turns into kinetic energy, and without friction the total stays the same. Our kinetic energy calculator handles the moving side of that exchange.

Physics Tribune Editorial Team
Written by our editors and checked against NIST and BIPM reference data. Every worked example is recomputed in code. Read our editorial policy. Last updated October 2026.