Potential Energy Calculator Formula

Understand the math behind the potential energy calculator. Each variable explained with a worked example.

Formulas Used

Potential Energy

potential_energy = mass * gravity * height

Potential Energy (kJ)

pe_kj = mass * gravity * height / 1000

Variables

VariableDescriptionDefault
massMass(kg)10
gravityGravitational Acceleration(m/s²)9.81
heightHeight(m)20

How It Works

Gravitational Potential Energy

Potential energy represents stored energy due to an object's position in a gravitational field.

Formula

PE = m * g * h

where m is mass, g is gravitational acceleration, and h is height above a reference point.

Worked Example

A 10 kg object is raised 20 meters above the ground.

mass = 10gravity = 9.81height = 20
  1. 01PE = m * g * h
  2. 02PE = 10 * 9.81 * 20
  3. 03PE = 1962 J
  4. 04PE = 1.962 kJ

When to Use This Formula

  • Calculating the energy stored in an object held at a height, such as water behind a dam, a roller coaster at the top of a hill, or a weight on a shelf.
  • Determining the maximum velocity an object can reach when dropped from a known height, by setting PE equal to KE and solving for velocity.
  • Evaluating the energy available for hydroelectric power generation based on the height of the water reservoir above the turbines.
  • Solving conservation-of-energy problems in physics where gravitational potential energy converts to kinetic energy or vice versa.
  • Estimating the energy needed to lift a load to a specific height, which is essential in crane operations, elevator design, and warehouse logistics.

Common Mistakes to Avoid

  • Using weight instead of mass in the formula — PE = mgh requires mass in kilograms, not weight in newtons. If you already have weight (a force), just multiply by height directly since weight already includes g.
  • Choosing an inconsistent reference point for height — the formula gives energy relative to a chosen zero level. If you set ground level as zero but measure h from a basement floor, the result will not match expectations. Be explicit about your reference point.
  • Forgetting that g varies with location — g = 9.81 m/s² is an average for Earth's surface, but it is 9.78 at the equator and 9.83 at the poles. For high-precision work or problems on other planets, use the local value.
  • Assuming PE = mgh works at very large heights — the formula is a linear approximation valid near Earth's surface. At altitudes where g changes significantly (hundreds of kilometers), you need the general formula PE = -GMm/r.

Frequently Asked Questions

What is the reference point for height?

Height is measured relative to a chosen reference level, usually the ground. Potential energy is always relative to this baseline.

Does potential energy depend on the path taken?

No. Gravitational potential energy depends only on the vertical height difference, not the path. Gravity is a conservative force.

What happens to PE when an object falls?

As an object falls, PE converts to kinetic energy. At ground level, all PE has been transformed into KE (ignoring air resistance).

Learn More

Guide

How to Calculate Gravitational Potential Energy

Learn how to calculate gravitational potential energy using GPE = mgh, with worked examples for objects at height. This guide covers energy conservation, reference levels, and common physics applications.

Ready to run the numbers?

Open Potential Energy Calculator