Audited ·Last updated 27 Jul 2026·5 citations·Tier 1·0 uses

Potential Energy Calculator

Calculate gravitational and elastic potential energy using U = mgh and U = ½kx². Results in joules and kilojoules for physics and engineering.

Potential Energy Calculator

Calculation mode
Potential energy
490.3325
Potential energy
0.4903

Background.

Potential energy is energy stored in a system by virtue of position, configuration, or state. Unlike kinetic energy, which depends on motion, potential energy represents the capacity to do work that arises from the arrangement of bodies or the deformation of materials. The concept is fundamental to mechanics, thermodynamics, and structural engineering, appearing in problems ranging from roller coaster design to spring-loaded mechanisms and hydroelectric dam storage. Every introductory physics course treats potential energy as one of the two pillars of mechanical energy, the other being kinetic energy, and the conservation of total mechanical energy in frictionless systems provides a powerful problem-solving framework.

The two most common forms encountered in undergraduate physics and engineering are gravitational potential energy near Earth's surface and elastic potential energy in springs. Gravitational potential energy arises from the position of a mass in a gravitational field. For altitudes small compared to Earth's radius, the field is effectively uniform, and the stored energy increases linearly with height above an arbitrarily chosen reference level. This linear approximation, U = mgh, was implicit in Galileo's work on falling bodies and was formalized in the Newtonian synthesis of the seventeenth century. The reference level is arbitrary because only changes in potential energy have physical significance; whether a hiker is 100 meters above sea level or 100 meters above a valley floor, the change in gravitational potential energy when descending is the same.

Elastic potential energy, by contrast, arises from the deformation of an elastic body, most commonly modeled as an ideal spring obeying Hooke's law. Robert Hooke first stated the linear force-displacement relationship in 1678 as "ut tensio, sic vis"—as the extension, so the force. The potential energy stored in a displaced spring is not linear in displacement but quadratic, U = ½kx², meaning that stretching a spring twice as far requires four times the work. This nonlinear behavior has profound consequences in oscillating systems, where the quadratic potential leads to simple harmonic motion with a period independent of amplitude. Engineers designing vehicle suspensions, seismic isolation bearings, and mechanical watches rely on this relationship to predict energy storage and release.

The SI unit of potential energy is the joule, defined as one newton-meter or one kilogram-meter squared per second squared. The unit is named after James Prescott Joule, whose experiments on the mechanical equivalent of heat established the quantitative link between mechanical work and thermal energy. In astrophysics and orbital mechanics, larger units such as the terajoule or the non-SI electronvolt are common, but for terrestrial mechanics the joule and kilojoule suffice. Potential energy is a scalar quantity, meaning it has magnitude but no direction, and in conservative force fields it can be defined as the negative line integral of the force from a reference point to the point of interest.

This calculator handles both gravitational and elastic modes. In gravitational mode, the user enters mass, height, and local gravitational acceleration; the default value of 9.80665 meters per second squared corresponds to standard gravity as defined by CODATA 2018. In elastic mode, the user enters the spring constant and displacement from equilibrium. The calculator returns energy in joules and kilojoules. Both formulas assume ideal conditions: uniform gravitational field and a massless spring with linear response. For large heights where g varies significantly, or for springs that exhibit plastic deformation or damping, more advanced models are required.

What is potential energy calculator?

Potential energy is the energy possessed by an object or system as a result of its position or arrangement. In mechanics, the term most often refers to gravitational potential energy, associated with height in a gravitational field, or elastic potential energy, associated with the deformation of springs and solid bodies. Gravitational potential energy near Earth's surface is calculated as U = mgh, where m is mass, g is the acceleration due to gravity, and h is the vertical displacement above a reference level. Elastic potential energy for an ideal spring is U = ½kx², where k is the spring constant and x is the displacement from the equilibrium position. Both quantities are state functions, meaning they depend only on the current configuration of the system, not on the path taken to reach it. The SI unit is the joule. Potential energy is defined relative to an arbitrary zero point; for gravity this is typically the ground or a floor, while for springs it is the undeformed length. Only differences in potential energy are physically observable, which is why the choice of reference does not affect the dynamics of a system. In conservative systems, the sum of kinetic and potential energy remains constant, providing a powerful constraint on possible motions. Non-conservative forces such as friction convert mechanical energy into heat, causing the total mechanical energy to decrease over time.

How to use this calculator.

  1. Select the calculation mode: gravitational near-Earth or elastic spring.
  2. For gravitational mode, enter the object mass in kilograms and the vertical height in meters above your chosen reference level.
  3. Confirm or adjust the gravitational acceleration field; the default 9.80665 m/s² is standard gravity at mid-latitudes.
  4. For elastic mode, enter the spring constant in newtons per meter and the displacement from equilibrium in meters.
  5. Click calculate to obtain the potential energy in joules and kilojoules.
  6. Use the reset function to switch modes and compare energy storage across different physical systems.

The formula.

U = mgh

The gravitational potential energy formula U = mgh is the first-order approximation of the general Newtonian expression U = -GMm/r, valid when the height h above a reference level is small compared to the radius of the gravitating body. In this limit, the difference in potential energy between two points separated vertically by h is obtained by expanding the general expression in a Taylor series and retaining the linear term. The result is ΔU = mgh, where g = GM/R² is the gravitational acceleration at the surface. This approximation breaks down for satellite orbits or interplanetary trajectories, where the full inverse-radius form is required, but it is accurate to better than one part per thousand for altitudes below ten kilometers on Earth.

The elastic potential energy formula U = ½kx² derives from the work integral of Hooke's law. Hooke's law states that the restoring force exerted by an ideal spring is proportional to the displacement from equilibrium and directed opposite to it: F = -kx. The work done by an external agent to stretch the spring quasi-statically from x = 0 to x = X is the integral of force over displacement: W = ∫₀^X kx dx = ½kX². By the work-energy theorem, this work is stored as potential energy in the spring. The quadratic dependence means that the energy required to achieve the first centimeter of stretch is one-quarter of the energy required for the second centimeter, assuming linearity holds. This property makes pre-tensioned springs efficient energy reservoirs: a clock mainspring stores far more energy in its outer turns than in its inner turns.

The spring constant k, also called stiffness or force constant, has units of newtons per meter and depends on the material's Young's modulus, the wire diameter, the coil diameter, and the number of active coils. For a helical spring, k is inversely proportional to the number of active coils, which is why cutting a spring in half doubles its stiffness. The formula U = ½kx² assumes ideal behavior: no mass in the spring itself, no internal friction, and no plastic deformation. Real springs deviate from this ideal at large displacements, where the stress-strain relationship becomes nonlinear and permanent set can occur. In such regimes, the potential energy must be computed from the measured force-displacement curve by numerical integration rather than from the simple quadratic formula.

A worked example.

Example

A physics student compresses a spring with stiffness 500 newtons per meter by 12 centimeters to launch a small projectile. To find the stored elastic potential energy, first convert the displacement to meters: 12 centimeters equals 0.12 meters. Square this displacement to obtain 0.0144 meters squared. Multiply by the spring constant: 500 times 0.0144 equals 7.2 newton-meters. Finally, multiply by one-half: 0.5 times 7.2 equals 3.6 joules. The spring therefore stores 3.6 joules of potential energy, which the launcher converts entirely into kinetic energy at the point of release if friction is negligible. In kilojoules, this is 0.0036 kJ. This amount of energy is comparable to the kinetic energy of a 50-gram ball traveling at roughly 12 meters per second, illustrating the equivalence between stored elastic work and motion that underlies ballistic launchers and automotive valve springs. The quadratic relationship means that compressing the same spring to 24 centimeters would store four times the energy, or 14.4 joules, demonstrating how small increases in displacement dramatically increase the stored energy.

spring Constant500
displacement0.12
modeelastic

Frequently asked questions.

What is the difference between potential and kinetic energy?
Potential energy is stored energy associated with position or configuration, while kinetic energy is energy of motion. A book on a shelf has gravitational potential energy relative to the floor; if it falls, that potential energy converts into kinetic energy as speed increases. In an ideal conservative system, the sum of the two remains constant, allowing physicists to solve for velocity at any point without integrating forces over time. The distinction is not always absolute—thermal energy is kinetic at the molecular level—but in macroscopic mechanics the separation is rigorous and computationally powerful.
Why is the reference level for gravitational potential energy arbitrary?
Because the physically meaningful quantity is the change in potential energy, not its absolute value. If you lift a 2-kilogram mass from the floor to a 1-meter table, the increase is 19.6 joules regardless of whether you call the floor zero or sea level zero. The equations of motion depend only on derivatives or differences of potential energy, so adding a constant to every position leaves the dynamics unchanged. This property, called gauge freedom, is a fundamental feature of conservative force fields and extends to electromagnetism and general relativity.
Can potential energy be negative?
Yes. In the near-Earth formula U = mgh, the sign depends on where you set h = 0. If the reference is a tabletop, an object on the floor has negative potential energy. In the general Newtonian formula U = -GMm/r, potential energy is inherently negative, approaching zero only as r approaches infinity. Negative potential energy simply means the system is bound; work must be supplied to separate the masses to infinite distance. A satellite in Earth orbit has negative total energy, which is why it remains gravitationally bound rather than escaping.
What are common units for potential energy besides joules?
In chemistry and atomic physics, the electronvolt (eV) is standard, where 1 eV = 1.602176634 × 10⁻¹⁹ J. In engineering, kilojoules and megajoules are common for thermal and mechanical systems. In astrophysics, ergs are still encountered in older literature, with 1 erg = 10⁻⁷ J. The foot-pound is used in some U.S. mechanical engineering contexts, though it is deprecated in scientific work. The SI joule remains the coherent unit across all disciplines, derived directly from the meter, kilogram, and second.
Does the mass of the spring affect the calculation?
The ideal formula U = ½kx² assumes a massless spring. Real springs have distributed mass, and when oscillating, some kinetic energy resides in the spring itself rather than in the attached load. For a uniform spring of mass m_s, the effective mass added to the load is approximately m_s/3 in simple harmonic motion calculations. However, the static potential energy stored at a given displacement is still ½kx² to high accuracy, because the static force balance does not involve mass distribution. Dynamic corrections become important only when calculating oscillation frequencies or transient responses.
What happens if a spring is stretched beyond its elastic limit?
Hooke's law and the potential energy formula U = ½kx² apply only within the elastic region, where deformation is reversible. Beyond the elastic limit, a spring undergoes plastic deformation and does not return to its original length when the load is removed. The work done in this regime is dissipated as heat and microstructural damage rather than stored as recoverable potential energy. Some energy is still stored, but it must be computed from the area under the non-linear stress-strain curve. Engineers design springs to operate well below the elastic limit, typically at 50 to 70 percent of maximum recommended deflection.
How does gravitational potential energy change on other planets?
The value of g in U = mgh varies with planetary mass and radius. On Mars, g ≈ 3.72 m/s², so the same mass lifted through the same height stores only 38 percent of the energy it would on Earth. On Jupiter, g ≈ 24.79 m/s², the energy is 2.53 times larger. The calculator allows users to override the default Earth gravity when modeling extraterrestrial systems, lunar landers, or centrifugal artificial gravity in rotating space stations. The formula itself remains valid as long as h is small compared to the planetary radius.
Is potential energy really stored "in" the object?
In the near-Earth approximation, it is convenient to speak of potential energy as belonging to the elevated mass, but more rigorously it is stored in the gravitational field configuration shared by both masses. For a spring, the energy is stored in the strained atomic bonds throughout the material. In field theory, potential energy is a property of the configuration of the entire system, not a substance carried by a single body. This distinction becomes operationally important in general relativity, where the mass-energy of the gravitational field itself contributes to the curvature of spacetime.
Can I use this calculator for rubber bands and bungee cords?
Only approximately. Rubber exhibits non-linear elasticity and hysteresis, meaning the force-displacement curve during loading differs from the unloading curve. The area between these curves represents energy lost as heat. While the calculator will give a rough estimate if you input an effective spring constant measured at the operating displacement, the result neglects damping and non-linearity. For precise bungee jump calculations, engineers use measured force-extension data and dynamic safety factors rather than the ideal spring model. Bungee cords also experience creep and fatigue over repeated cycles, so their effective stiffness degrades with use and must be monitored through periodic inspection and load testing.
What is the relationship between potential energy and force?
In one dimension, force is the negative derivative of potential energy with respect to position: F = -dU/dx. For gravity near Earth, dU/dh = mg, so the gravitational force is -mg, directed downward. For a spring, dU/dx = kx, so the restoring force is -kx, directed toward equilibrium. This differential relationship means that the slope of the potential energy curve tells you the magnitude and direction of the force at every point. A flat potential corresponds to zero force, while a steep potential gradient corresponds to a strong force.

References& sources.

  1. [1]Halliday, D., Resnick, R., and Walker, J. (2013). Fundamentals of Physics. 10th ed. Wiley. Ch. 7-8.
  2. [2]Young, H.D. and Freedman, R.A. (2019). University Physics with Modern Physics. 15th ed. Pearson. Ch. 7.
  3. [3]BIPM (2019). The International System of Units (SI Brochure). 9th ed.
  4. [4]NIST (2018). CODATA Recommended Values of the Fundamental Physical Constants.
  5. [5]Hooke, R. (1678). De Potentia Restitutiva, or of Spring. London.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 313 calculators remain free
  • No billing is enabled
Coming soon