PE = m·g·h, with planet selector and unit conversion.
Gravitational PE is linear in height: doubling the height doubles the energy. The free-fall impact speed assumes a vacuum (no air drag) — real impacts are slower because drag dissipates energy.
Lift a brick onto a shelf and you have done work against gravity; that work is now stored in the brick as gravitational potential energy (PE). Drop the brick and the energy converts to kinetic energy on the way down — quickly enough that a brick from second-storey height is dangerous. Engineers, physicists, hydropower planners, climbers, roller-coaster designers, and crane operators all rely on the same simple expression: PE = m · g · h. Knowing it lets you compare a falling object's destructive impact to other energy units (kilocalories of food, kilowatt-hours of electricity), size pumped-storage hydro reservoirs, predict a climber's free-fall rope load on a fall, and budget the kinetic energy a roller coaster wagon will deliver at the bottom of a drop. The formula scales from millijoules (a falling penny) to terajoules (a hydro dam reservoir), and the only knob to turn besides mass and height is the local gravitational acceleration g.
PE = m · g · h
The result is in joules (J), the SI unit of energy. Conversions: 1 kJ = 1000 J; 1 kcal = 4184 J; 1 kWh = 3 600 000 J; 1 ft·lb = 1.356 J. From the same starting condition you can predict free-fall impact velocity (no air drag): v_impact = √(2·g·h).
Pick the unit system (SI = kg, metres, m/s²; Imperial = lb, feet, ft/s²). Enter the mass and the height drop (or rise — the formula is symmetric in sign). Pick a planet to set g — Earth, Moon, Mars, the Sun, or any of the major bodies. If your scenario is exotic (lunar lander, science-fiction asteroid, custom centrifuge), pick Custom and type your own g.
The big number is energy in joules. The kJ, kcal, kWh, and ft·lb readouts let you compare to familiar quantities: 50 kg × 10 m × 9.81 = 4905 J ≈ 1.17 kcal — about the energy of one peanut. The free-fall impact speed assumes vacuum; in air, real impact is slower because of drag.
A 100 kg rock falls off a 10 m cliff on Earth: PE = 100 × 9.81 × 10 = 9 810 J ≈ 9.8 kJ ≈ 2.34 kcal ≈ 0.0027 kWh. Free-fall speed at impact: v = √(2 × 9.81 × 10) = 14.0 m/s ≈ 50 km/h — definitely fatal if it landed on you. The same rock dropped from the same height on the Moon (g = 1.62 m/s²) stores only 1620 J and lands at 5.7 m/s — survivable. Same rock from a 50 m building on Earth: PE = 49 050 J, impact 31.3 m/s ≈ 113 km/h, the stuff of action movies.
This calc covers gravitational PE in a uniform field — by far the most common case. Other forms of PE include: elastic PE ½kx² in springs (compression/stretch from rest), electrical PE qV in capacitors and battery cells (charge × voltage), chemical PE stored in molecular bonds (gasoline ~46 MJ/kg, fat ~37 MJ/kg, dynamite ~5 MJ/kg), nuclear PE in atomic nuclei (uranium fission ~80 TJ/kg). The inverse-square gravitational form -G·M·m/r is needed for orbital mechanics and escape-velocity calculations. In rotating reference frames, centrifugal PE adds ½ω²r² (think of a centrifuge rotor or the Coriolis-corrected horizontal pendulum). For pendulum mechanics, PE at the apex (m·g·h above the lowest point) converts entirely to KE at the bottom (½·m·v²) — the basis for the simple pendulum equation T = 2π√(L/g).