Gravitational PE Calculator — mgh

Enter mass, height, and gravitational acceleration to get GPE in Joules and kJ. Leave g blank to use 9.81 m/s².

Result

--
Joules (J)
--
Kilojoules (kJ)
--
Formula Applied

How Gravitational Potential Energy Is Calculated

The Gravitational Potential Energy Calculator computes the energy stored in an object due to its height above a reference point. Enter mass and height, and the result appears in Joules (J) and kilojoules (kJ). A custom gravity field lets you calculate GPE on other planets or in other gravitational environments.

What Is Gravitational Potential Energy?

Gravitational potential energy (GPE) is the energy an object has because of its position in a gravitational field. More precisely, it is the work done against gravity to lift an object from a reference height (usually taken as zero) to its current height. An object at rest on a shelf has GPE; when it falls, that GPE converts to kinetic energy. The reference height (where GPE = 0) can be set anywhere — what matters physically is the difference in GPE between two heights, not the absolute value.

The Role of Height

GPE increases linearly with height: double the height, double the GPE. This is in contrast to kinetic energy, which scales with speed squared. A 10 kg object raised to 2 m has GPE = 10 × 9.81 × 2 = 196.2 J. Raised to 4 m, it has 392.4 J. This linear relationship holds for heights small relative to Earth’s radius (up to tens of kilometres). For orbital mechanics, where height becomes comparable to Earth’s radius, the full inverse-square law must be used.

Standard Gravity and Custom Gravity

Standard gravity (g) is defined as exactly 9.80665 m/s² — the average gravitational acceleration at Earth’s surface at sea level and 45° latitude. In practice, g varies from approximately 9.764 m/s² at the equator to 9.832 m/s² at the poles due to Earth’s rotation and shape. For most calculations, 9.81 m/s² is sufficiently accurate. The calculator defaults to 9.80665 m/s², but you can enter a custom value — for example, 1.62 m/s² for the Moon or 3.72 m/s² for Mars.

Gravitational PE Formula

The formula for gravitational potential energy applies to any object in a uniform gravitational field — valid for all practical heights encountered in engineering and physics coursework.

GPE = m × g × h

Where:

  • GPE = gravitational potential energy (Joules, J)
  • m = mass of the object (kilograms, kg)
  • g = gravitational acceleration (m/s² — default 9.80665)
  • h = height above reference point (metres, m)

Example: A 5 kg book placed on a shelf 1.5 m above the floor: GPE = 5 × 9.81 × 1.5 = 73.6 J. If the book falls, all 73.6 J converts to kinetic energy at the point of impact (neglecting air resistance).

The calculator handles this automatically — the formula is shown here for transparency.

Gravity on Other Celestial Bodies

BodySurface Gravity (m/s²)GPE of 10 kg at 1 m height
Earth (standard)9.8198.1 J
Moon1.6216.2 J
Mars3.7237.2 J
Jupiter (cloud tops)24.79247.9 J
Sun (surface)274.02,740 J

Frequently Asked Questions

Multiply mass × gravitational acceleration × height: GPE = mgh. For example, a 3 kg object lifted 2 m above the ground on Earth: GPE = 3 × 9.81 × 2 = 58.86 J. Use 9.81 m/s² for Earth calculations or enter a custom g value for other planets.

Gravitational potential energy is stored energy due to position — the object has it by virtue of being at height h. Kinetic energy is energy of motion — the object has it by virtue of moving at speed v. As an object falls, GPE decreases and kinetic energy increases. At the point of impact (ignoring air resistance), all initial GPE has converted to kinetic energy: mgh = ½mv², which gives the impact speed v = √(2gh).

In a vacuum, GPE converts entirely to kinetic energy during free fall. In air, some energy is lost to drag (heating the air). At impact with a surface, the remaining kinetic energy converts to deformation, heat, and sound. A 1 kg ball dropped from 10 m has GPE = 98.1 J; at impact it would arrive at v = √(2 × 9.81 × 10) ≈ 14 m/s if air resistance is neglected.

Yes, if the object is below the chosen reference height. If ground level is the zero reference, an object in a basement 3 m below ground has a GPE of −3mgh relative to that reference. The choice of reference point is arbitrary — what matters is the difference in GPE between two positions. A negative GPE simply means work would need to be done to raise the object back to the reference level.

A 70 kg person climbing a standard staircase 3 m high gains GPE = 70 × 9.81 × 3 = 2,060 J (approximately 0.49 kcal). Climbing a 10-storey building (approximately 30 m) adds GPE = 70 × 9.81 × 30 = 20,601 J (about 4.9 kcal) — a small but non-trivial energy expenditure.

The formula GPE = mgh is exact for uniform gravitational fields, which is a valid approximation for heights up to approximately 100 km above Earth’s surface. Below that, the variation in g with altitude is under 3%. The calculator uses standard gravity (9.80665 m/s²) by default. For the custom g field, results are as accurate as the g value entered.

The formula mgh assumes g is constant with height. In reality, g decreases with the inverse square of distance from Earth’s centre. At 100 km altitude (the Karman line, the edge of space), g ≈ 9.52 m/s² — a reduction of about 3% from the surface value. For practical purposes, mgh is accurate to within 1% up to altitudes of roughly 32 km, well above where most engineering calculations occur.

A roller coaster converts GPE to KE and back as it moves through hills and valleys. At the top of the first (highest) hill, the coaster has maximum GPE. As it descends, GPE converts to KE and the coaster accelerates. Each subsequent hill must be lower than the previous one because friction losses prevent full GPE recovery. The total mechanical energy (KE + GPE) decreases gradually due to friction and air resistance over the course of the ride.