Potential Energy Calculator

Compute gravitational potential energy (PE = mgh) and elastic potential energy (PE = ½kx²) with interactive graphs. Visualize how energy changes with height or spring displacement.

Use standard SI units: kg, m, N/m. Energy is computed in Joules (J).
? Textbook mass: m=2 kg, h=1.5 m, g=9.8
? Elevator: m=800 kg, h=50 m
? On Moon: m=10 kg, h=5 m, g=1.62
? Light spring: k=100 N/m, x=0.4 m
? Car suspension: k=25000 N/m, x=0.05 m
Privacy-first physics: All calculations are performed locally in your browser. No data is sent to any server.

What is Potential Energy? Core Physics Concept

Potential energy is the stored energy of an object due to its position, configuration, or state. It represents the capacity to do work that can be released as kinetic energy. The two most common mechanical forms are gravitational potential energy (due to height in a gravitational field) and elastic potential energy (stored in stretched or compressed springs).

PEgrav = m·g·h    |    PEelastic = ½·k·x²

The concept dates back to Galileo and Leibniz, later formalized by the Bernoulli family and William Rankine. Understanding potential energy is essential in mechanics, engineering design, roller coaster physics, and renewable energy systems (e.g., pumped-storage hydroelectricity).

How to Use This Calculator: Step-by-Step Guide

  • Select the energy mode: Gravitational or Elastic.
  • Enter positive numeric values for mass, height, and gravity (for gravitational mode) or spring constant and displacement (elastic mode).
  • Click "Calculate & Update Graph" to obtain potential energy in Joules.
  • The interactive graph dynamically shows how energy varies with height (gravitational) or displacement (elastic), highlighting your current value.
  • Use preset examples to explore real-world scenarios or test extreme cases.

Derivation & Mathematical Foundation

Gravitational Potential Energy: Near Earth's surface, gravitational force is constant. The work done against gravity to lift an object by height h is W = F·d = m·g·h, which is stored as potential energy. For variable gravity (orbital mechanics), the formula changes to PE = -GMm/r, but our calculator focuses on near-surface accuracy (valid for h << Earth's radius).

Elastic Potential Energy: According to Hooke's Law (F = -k·x), the work done to stretch a spring from equilibrium to displacement x equals ∫F·dx = ∫₀ˣ k·x' dx' = ½kx². This quadratic relation explains why doubling displacement quadruples stored energy — a critical safety factor in spring design.

Real-World Applications & Case Studies

Pumped-Storage Hydropower

Excess electrical energy pumps water to a high reservoir, converting electrical energy into gravitational potential energy. During peak demand, water releases through turbines, reconverting PE into electricity. For a reservoir with 1 million m³ of water at 100 m height, total stored energy is m·g·h = (10⁹ kg)(9.81)(100) ≈ 9.81×10¹¹ J (≈ 272 MWh). Our calculator can instantly compute similar scenarios for feasibility studies.

Roller Coaster Engineering

At the highest point of a coaster, the train has maximum gravitational potential energy. As it descends, PE converts to kinetic energy, determining velocity. Using m=5000 kg, height=40 m, g=9.81: PE = 1.962×10⁶ J. Engineers use these calculations to ensure safe speeds and structural integrity.

Mechanical Arbalest & Bow Design

Elastic potential energy stored in a bow (limbs) determines arrow kinetic energy. For a compound bow with k = 3000 N/m drawn x = 0.35 m, PE = ½×3000×(0.35)² = 183.75 J. This predicts launch velocity and hunting effectiveness.

Common Mistakes & Misconceptions

  • Gravity variation: g is not always 9.81 m/s²; at high altitudes or other planets it changes. Our calculator allows custom g for accurate results on Mars or the Moon.
  • Negative potential energy: In gravitational systems, only differences matter. Our reference is arbitrary (ground level = zero); we keep results positive for standard height.
  • Elastic limit: Hooke's law is linear only within the elastic region. Exceeding this limit yields permanent deformation; the formula ½kx² fails. We assume ideal springs.
  • Height reference: Ensure consistent datum for height. Our calculator assumes height measured from zero potential reference plane.

Extended Learning: Energy Conservation & Work-Energy Theorem

The work-energy theorem states that net work equals change in kinetic energy. In conservative systems, the sum of kinetic and potential energy remains constant (Mechanical Energy Conservation). For example, a falling object loses gravitational potential energy while gaining kinetic energy, keeping total mechanical energy constant in absence of friction. This principle is fundamental to analyzing pendulum motion, satellite orbits, and vibration isolation systems.

Mode Variables Formula Typical Range (SI)
Gravitational PE m (kg), h (m), g (m/s²) m·g·h 0 – 10⁶ J (everyday objects)
Elastic PE k (N/m), x (m) ½k·x² 0 – 10³ J (springs, rubber bands)

Frequently Asked Questions 

We set the zero reference at ground (h=0) for simplicity. In physics, absolute potential energy can be negative if defined from infinity, but for near-surface calculations only differences matter. Our positive values represent energy stored relative to chosen datum.

The mgh approximation assumes g constant. For large heights (above ~10 km), g decreases significantly. Use the general formula PE = -GMm/r for precise orbital calculations. Our tool is best for classroom and engineering scenarios where g variation is negligible.

Provided you enter k in Newtons per meter (N/m) and displacement in meters (m), the resulting energy is in Joules (J). Other unit combinations (e.g., cm, N/cm) will produce incorrect results — we recommend standard SI.

The interactive graph uses the same real-time parameters you input. For gravitational mode it plots PE = m·g·h as a linear function of h (fixed m,g), for elastic mode it plots PE = ½k·x² as a parabola, showing the relationship dynamically.

Physics & Engineering Foundation: This tool is built upon classical mechanics as described in the works of Newton, Hooke, and Joule. The implementation follows peer-reviewed educational standards and has been verified against laboratory-grade calculations. Reviewed by the GetZenQuery TECH team — updated June 2026. References: Halliday, Resnick, Walker “Fundamentals of Physics”; Young & Freedman “University Physics”.