Potential Energy Calculator

Gravitational: m × g × h • Elastic: ½ × k × x²

Settings

Choose the formula you want to use.

Enter Values

Mass must be 0 or greater.
Height may be negative if your reference level is below zero.
m/s²
Custom gravity must be greater than 0.
Spring constant must be 0 or greater.
Displacement may be negative. Energy stays non-negative because displacement is squared.
Results appear only after clicking Calculate. Changing a unit resets only that field to 0 and focuses it for quick re-entry.

Action

Results

Energy
0 J
Energy
0 kJ
Energy
0 Wh
Energy
0 kWh
Energy
0 ft·lbf

A potential energy calculator estimates near-Earth gravitational potential energy from mass, gravitational acceleration and vertical height relative to a chosen reference.

Potential Energy Calculator Formula and Reference Height

PE = mgh. Use kilograms, m/s² and metres to obtain joules. Rearranged forms can solve for mass, gravity or height.

Potential Energy Calculator and the Zero Level

Potential energy depends on a reference. The absolute zero is arbitrary for many problems; the meaningful quantity is usually the change between two heights.

Worked example

Raising a 12 kg object by 3 m using g = 9.81 m/s² increases potential energy by 353.16 J.

Use vertical height

An object moved along a ramp gains energy according to vertical elevation change, not the longer path distance. Friction affects required work but not the mgh change itself.

When constant g is reasonable

The formula approximates a uniform gravitational field near Earth’s surface. Large altitude or planetary-scale problems should use gravitational potential based on distance from the body’s centre.

Energy conversion

In an ideal system, lost potential energy can become kinetic energy. Real systems also transfer energy to heat, sound, deformation and rotation.

Calculate a change rather than an arbitrary total

For most near-Earth problems, the useful relationship is ΔPE = mg(h₂ − h₁). Choosing the floor, table or starting point as zero changes the reported potential energy but not the energy difference between two heights. Write the reference level beside the result so another reader can reproduce it.

Relation to work and lifting force

In an ideal slow lift with no losses, external work against gravity equals the increase in gravitational potential energy. Lifting faster changes average power, not the mgh energy change for the same mass and height. Real machines also lose energy through friction, deformation and heat.

Ramps, stairs and vertical rise

A longer ramp can reduce required force while increasing travel distance, but the vertical height determines ΔPE. Similarly, climbing two staircases with the same elevation gain produces the same ideal gravitational-energy increase for the same mass, even if the horizontal layout differs.

Beyond the constant-gravity approximation

For satellites or very large altitude changes, gravitational acceleration is not constant. The more general gravitational potential depends on masses and distance from the center of the attracting body. Do not extend mgh to orbital scales without checking that its near-surface assumption remains valid.

Input checks

  • Use total lifted mass, including any carried load.
  • Enter vertical height change in metres for SI joules.
  • Use the specified local value of g when provided.
  • Keep the sign consistent with the chosen reference.
  • Separate energy from power and force.

Potential energy is a property of the system and its configuration, not a substance stored inside one object in isolation. State the model and reference level when comparing answers.

Sign conventions in falling motion

If upward is positive, height and potential-energy change decrease while an object falls. The lost gravitational potential energy may appear as kinetic energy and other transfers. Avoid changing the zero level midway through a problem. A negative final value is not automatically wrong; verify the difference between states and the direction defined at the start. When presenting an answer, state both the zero height and whether the number represents a total or a change. Keep that convention in every later energy equation.

See OpenStax University Physics Volume 1 for a fuller treatment of gravitational energy.

potential energy calculator FAQs

Can potential energy be negative?

Yes relative to the chosen zero; only differences must remain physically consistent.

Is height measured along a slope?

No. Use vertical elevation change.

Which value of gravity should I use?

9.81 m/s² is a common Earth approximation; use the problem’s specified value when provided.

Pair this with the Kinetic Energy Calculator for mechanical-energy comparisons.

Tested & Reviewed by:

Arefin Bappy

Owner, Admin & Developer of AjaxCalculators
Individually tested against the calculation method described on this page.
Last reviewed: September 8, 2026
About the Admin · Editorial Policy

Sponsored Offers

Explore more from

Wavelength → Energy Calculator

Use our Wavelength to Energy Calculator to find photon energy from wavelength in joules, eV, and kJ/mol using E = hc / λ with vacuum or custom wave speed.

Velocity Calculator

Calculate average velocity, displacement, or elapsed time with unit conversion and clear guidance about direction and the difference between speed and velocity.

Kinetic Energy Calculator

Calculate translational kinetic energy from mass and velocity, rearrange the formula, convert units, and explore the squared effect of speed.

Acceleration Calculator

Calculate average acceleration from initial velocity, final velocity, and elapsed time while keeping direction, signs, and units consistent.

Force Calculator

Use our Force Calculator to find force from mass and acceleration with F = ma. Get instant results in newtons, kilonewtons, and pounds-force.

Wavelength → Frequency Calculator

Use our Wavelength to Frequency Calculator to find frequency from wavelength with vacuum, air, water, or custom wave speed. Fast SI-based results online.

Density Calculator

Calculate density, mass, or volume with unit conversion, worked examples, and clear guidance about temperature, mixtures, and measurement precision.

Projectile Motion Calculator

Use our Projectile Motion Calculator to find time of flight, range, maximum height, time to peak, and velocity components from speed, angle, height, and gravity.

Work and Power Calculator

Calculate mechanical work and average power from force, displacement, angle, and elapsed time, with clear joule and watt interpretation.