Skip to content
DeviceCheckHub

Potential Energy Calculator

The energy stored by height, mgh, on Earth or another world, or by a stretched spring, ½kx², or any one value from the others, in every common unit, with the steps.

PE = mgh or ½kx²

The value being found is filled in for you. A height below the reference level is negative. Numbers such as 2e-3 work too.

Examples:
70 kg at 3 m has 2059.4 J of potential energy.

PE = 2059.4 J

Potential energy
2059.4 J
Mass
70 kg
Height
3 m
Gravity
9.80665 m/s², Earth (standard)
Weight mg
686.47 N
Speed after falling h, no air
7.6707 m/s = 27.615 km/h
The energy in every unit
J2059.4
kJ2.0594
MJ0.0020594
Wh0.57205
kWh0.00057205
cal492.21
kcal0.49221
BTU1.9519
ft·lbf1518.9
eV1.2854 × 10²²

Steps

  1. PE = mgh = 70 kg × 9.80665 m/s² × 3 m = 2059.4 J.
  2. Falling 3 m turns the energy into kinetic energy: ½mv² = mgh, so v = √(2gh) = √(2 × 9.80665 × 3) = 7.6707 m/s.

How to use the potential energy calculator

  1. Choose “Gravity: mgh” for an object raised above a level, or “Spring: ½kx²” for a stretched or compressed spring.
  2. Leave “Find” on the energy and enter the other values, each with its unit. For gravity, pick Earth, the Moon or another planet, or choose “Other gravity” and type g.
  3. To work backward, choose the mass, the height, g, the spring constant or the stretch, and enter the energy and the remaining values.
  4. Read the answer in large type, the same energy in every other unit, the steps, and for a height the speed an object would reach falling from it.

What potential energy is

Potential energy is energy stored by position or shape. Lifting a box against gravity takes work, and that work is not lost: it is stored, and it comes back as motion when the box falls. Stretching a spring or drawing a bow stores energy the same way, and releasing it turns that energy into motion. Kinetic energy is the energy of motion; potential energy is energy waiting to become motion.

The calculator handles the two kinds met most often in physics problems: gravitational potential energy near the surface of a planet, and the elastic potential energy of a spring that obeys Hooke’s law. Both are measured in joules, the work of a force of one newton acting over one meter.

Gravitational potential energy, mgh

Near a planet’s surface, gravity pulls on a mass m with a nearly constant force, its weight, mg. Raising the mass through a height h takes a force equal to that weight over that distance, so the stored energy is PE = mgh. A person of 70 kg who climbs 3 m of stairs gains 2059.4 J of potential energy, which is 0.00057205 kWh, or 0.49221 kcal in food Calories; the body uses more food energy than that, because muscles turn only part of it into work.

The formula is linear in every value: double the mass or the height and the energy doubles. A 2 kg book on a shelf 1.5 m up has 29.42 J. The answer box can be any of the four: the energy, the mass, the height, or the gravity. Lifting one metric ton of water 100 m, as a pumped storage plant does, stores 0.27241 kWh, and climbing high enough to store one food Calorie means rising 6.095 m.

The reference level and negative values

Height has to be measured from somewhere, and that zero level is a choice: the floor, a tabletop, the ground or sea level. Potential energy depends on the choice, but energy differences do not, and only differences matter in a real problem. A ball falling from a 3 m ledge to the floor loses the same energy whether you call the floor 0 or the ledge 0.

Below the reference level the height is negative and so is the potential energy. The same 70 kg person 3 m below the level has −2059.4 J: raising them back to the level would take 2059.4 J of work. Enter a negative height to see it.

Gravity on other worlds

The value of g decides how much energy each meter of height stores. On Earth the calculator uses standard gravity, exactly 9.806 65 m/s², the value defined for weights and measures. Real gravity differs a little from place to place, but the standard value is the one used in nearly all problems.

The Moon’s surface gravity is 1.62 m/s², about a sixth of Earth’s, so the same climb on the Moon stores only 340.2 J. Mars has 3.73 m/s², and the calculator also lists Venus, Mercury and Jupiter (at its 1 bar pressure level) from the NASA planetary fact sheets. Choose “Gravity g” as the value to find, and the calculator works g out from an energy, a mass and a height: 74.6 J for 2 kg raised 10 m gives 3.73 m/s², the gravity of Mars.

From height to speed

When an object falls freely, its potential energy turns into kinetic energy. Setting mgh equal to ½mv² gives v = √(2gh), and the mass cancels: without air resistance, a heavy and a light object dropped from the same height land at the same speed. From 3 m on Earth that speed is 7.6707 m/s = 27.615 km/h. The calculator shows it for every positive height. Real falls are slower because of air resistance, which matters most for light, broad objects and for long falls.

Spring potential energy, ½kx²

A spring pulls back with a force proportional to how far it is stretched or compressed, F = kx, which is Hooke’s law. The spring constant k, in newtons per meter, says how stiff the spring is. Because the force grows from zero as the spring is stretched, the average force over the stretch is half the final force, and the stored energy is PE = ½kx².

A spring of 200 N/m stretched 10 cm stores 1 J; stretched 20 cm, twice as far, it stores 4 J, four times as much, because the stretch is squared. Compressing the spring by the same distance stores the same energy. Working backward, k = 2PE ÷ x² and x = √(2PE ÷ k). The constant can be entered in N/m, N/cm or pounds-force per inch, the US customary unit.

Units

The energy can be shown in joules, kilojoules, megajoules, watt hours, kilowatt hours, calories, kilocalories, British thermal units, foot-pounds and electron volts, all with exact factors: one kilowatt hour is 3.6 million joules, one thermochemical calorie 4.184 J, and one foot-pound about 1.3558 J. Masses can be entered in kilograms, grams, metric tons, pounds or ounces, and heights and stretches in meters, centimeters, feet or inches; one foot is exactly 0.3048 m and one inch 0.0254 m.

Where the formulas stop working

mgh assumes that g is the same all the way up. That is true to a fraction of a percent for buildings and mountains, but gravity weakens with distance from a planet’s center, so for heights of many kilometers mgh overstates the energy slightly, and for orbits the full law of gravitation, PE = −GMm ÷ r, is needed. The calculator adds a note for heights of 10 km or more. Likewise ½kx² holds only while a spring stays within its elastic limit; stretched too far it deforms for good and no longer follows Hooke’s law.

Your values stay on your device

Everything is worked out in your browser. Nothing you type is sent anywhere or stored.

Frequently asked questions

What is the formula for potential energy?

Gravitational potential energy is PE = mgh: mass times the acceleration of gravity times the height above a chosen reference level. With the mass in kilograms, g in m/s² and the height in meters, the energy is in joules. A stretched or compressed spring stores PE = ½kx², where k is the spring constant and x how far it is stretched or compressed.

What value of g should I use?

Standard gravity, 9.806 65 m/s², is the defined value used for Earth in most problems; textbooks often round it to 9.8 or 9.81. Real surface gravity varies slightly with latitude and altitude. The calculator also has the Moon (1.62 m/s²), Mars (3.73 m/s²) and other planets, and accepts any other value.

Can potential energy be negative?

Yes. The height is measured from a reference level you choose, and an object below it has negative potential energy. A 70 kg person 3 m below the reference level has −2059.4 J. Only differences in potential energy have a physical meaning, so the choice of level never changes the answer to a real problem.

How fast will an object fall from that height?

If all the potential energy turns into kinetic energy, ½mv² = mgh, so v = √(2gh), whatever the mass. A fall of 3 m on Earth ends at 7.6707 m/s = 27.615 km/h, ignoring air resistance. The calculator shows this speed for every height above the reference level.

How do I find a spring constant?

Rearrange ½kx² to k = 2PE ÷ x². A spring that stores 2 J when stretched 5 cm has k = 1600 N/m. You can also measure k by hanging a known weight on the spring: k is the force divided by the stretch, F ÷ x (Hooke’s law).

Is anything I type sent anywhere?

No. Everything is worked out in your browser, and nothing you type is sent anywhere or stored.

Last updated · About DeviceCheckHub