\

Potential Energy Equation

A practical engineering guide to gravitational and elastic potential energy, with formulas, variables, units, rearrangements, worked examples, and common misuse checks.

By Turn2Engineering Editorial Team Updated April 22, 2026 8 min read

Key Takeaways

  • Definition: Potential energy is stored energy caused by position in a field or by deformation of a system.
  • Main forms: Most engineering problems use gravitational potential energy \(U = mgh\) or elastic potential energy \(U_s = \tfrac{1}{2}kx^2\).
  • Watch for: Mixed units, using weight instead of mass, and applying \(U = mgh\) when gravity is not effectively constant.
  • Outcome: After this page, you should be able to choose the right form, solve for key variables, and check whether a result is physically reasonable.
Table of Contents

    Potential energy from elevation and spring deformation

    The potential energy equation calculates stored energy caused by height in a gravitational field or by elastic deformation such as stretching or compressing a spring.

    Potential Energy Equation diagram showing gravitational potential energy from mass at height and elastic potential energy stored in a spring
    The diagram shows the two forms readers use most often: gravitational potential energy from elevation change and elastic potential energy from spring deformation.

    Notice first that both cases describe stored energy, not motion itself. In one case the storage comes from vertical position relative to a reference level, and in the other it comes from how far a spring is stretched or compressed from its unstressed length.

    The potential energy formulas engineers use most

    Quick reference: use gravitational potential energy when the problem is about elevation, lifting, falling, or energy change with height. Use elastic potential energy when the problem involves springs, stiffness, and deflection.

    In engineering and introductory mechanics, “potential energy equation” usually refers first to gravitational potential energy near Earth’s surface. That is the form used for lifting, lowering, falling, and energy-balance problems where gravity can be treated as nearly constant over the height change.

    $$ U = mgh $$

    A second important form is elastic potential energy, which applies when a spring stores energy through extension or compression.

    $$ U_s = \frac{1}{2}kx^2 $$

    Both equations describe stored energy. The first ties energy to elevation in a gravitational field, while the second ties energy to deformation in a linear spring. That physical interpretation matters more than memorizing symbols because it tells you when a formula belongs in the problem at all.

    When to choose each form

    If the scenario involves mass moving through a vertical height change, start with \(U = mgh\). If the scenario involves a spring constant and a displacement from the unloaded position, start with \(U_s = \tfrac{1}{2}kx^2\).

    Variables, units, and fast sanity checks

    Unit consistency is one of the quickest ways to catch bad setups. Potential energy should reduce to joules in SI units, which is equivalent to newton-meters.

    Key variables
    • \(U\) Potential energy, usually in joules \((\text{J})\).
    • \(m\) Mass of the object, typically kilograms \((\text{kg})\). Use mass here, not weight.
    • \(g\) Gravitational acceleration, typically \(9.81\ \text{m/s}^2\) near Earth’s surface.
    • \(h\) Vertical height above a chosen datum, usually meters \((\text{m})\).
    • \(k\) Spring constant, typically newtons per meter \((\text{N/m})\).
    • \(x\) Spring displacement from the unloaded position, usually meters \((\text{m})\).
    Unit tip

    For \(U = mgh\), kilograms times meters per second squared times meters reduces to \(\text{kg}\cdot\text{m}^2/\text{s}^2\), which is a joule. For \(U_s = \tfrac{1}{2}kx^2\), newtons per meter times meters squared also reduces to newton-meters.

    Senior engineer check

    If your answer is negative when you expected stored energy magnitude, check your sign convention and your reference elevation. If your units do not reduce to joules, the problem setup is probably wrong.

    VariableMeaningSI unitsUS customary noteTypical useCommon issue
    \(m\)MasskgConvert from slugs or derive from weight carefullyLifting, falling, energy balanceUsing weight and then multiplying by \(g\) again
    \(g\)Gravitational accelerationm/s²\(32.2\ \text{ft/s}^2\) is common in U.S. engineering workNear-surface gravity problemsAssuming constant gravity for very large altitude changes
    \(h\)Vertical elevation changemftElevation-based stored energyUsing path length instead of vertical height
    \(k\)Spring stiffnessN/mlb/ft or lb/in with consistent conversionSpring storage problemsMixing inches with N/m
    \(x\)Spring deformationmft or inElastic storageUsing total length instead of deformation from neutral

    How to rearrange the potential energy equation

    Most readers are not just looking for the formula. They want to solve for a missing variable such as height, mass, or spring deflection. The algebra is simple, but the physical meaning still matters because you should only isolate variables that belong to the correct model.

    Rearranging gravitational potential energy

    $$ h = \frac{U}{mg} $$
    $$ m = \frac{U}{gh} $$

    Rearranging elastic potential energy

    $$ x = \sqrt{\frac{2U_s}{k}} $$
    $$ k = \frac{2U_s}{x^2} $$
    Common misuse

    Rearranging correctly does not guarantee the original model is appropriate. If the system is not an ideal spring or the gravitational field cannot be treated as constant, the algebra may be right while the engineering model is still wrong.

    Worked examples with engineering interpretation

    Example 1: gravitational potential energy of a lifted motor

    A 75 kg motor is lifted 4.2 m above the shop floor during installation. Estimate the increase in gravitational potential energy, assuming standard near-surface gravity.

    $$ U = mgh = (75)(9.81)(4.2) $$
    $$ U \approx 3090\ \text{J} $$

    The motor gains about \(3.09\ \text{kJ}\) of stored gravitational energy. That does not mean the hoist delivered exactly that much total energy, because real lifting systems also lose energy to inefficiencies, but it does tell you the ideal minimum change in stored mechanical energy of the load itself.

    Example 2: energy stored in a compressed spring

    A spring with stiffness \(k = 1200\ \text{N/m}\) is compressed \(0.08\ \text{m}\). Find the stored elastic potential energy.

    $$ U_s = \frac{1}{2}kx^2 = \frac{1}{2}(1200)(0.08)^2 $$
    $$ U_s = 3.84\ \text{J} $$

    This is a much smaller energy value than the lifted motor example, which is a useful reminder that spring energy depends on displacement squared. Small deflections can store modest energy, but larger deflections rise quickly.

    Interpretation tip

    Always translate the final number back into the physical system. Ask what is storing the energy, what reference level was chosen, and whether losses or non-ideal effects matter for the actual engineering decision.

    Where engineers actually use potential energy

    Potential energy shows up across mechanics, machine design, structural dynamics, and fluids whenever energy changes are easier to track than forces at every instant.

    • Lifting and rigging: estimating the change in stored gravitational energy when equipment, materials, or structural components are raised.
    • Dynamics and impact problems: converting potential energy into kinetic energy to estimate speed before impact or motion after release.
    • Spring-loaded systems: evaluating actuator behavior, stored energy devices, vibration systems, and protective spring elements.
    • Energy methods: simplifying mechanics problems when conservative forces dominate and detailed force tracking is unnecessary.
    • Fluid and thermal analogies: building intuition for energy accounting when multiple energy forms appear together.
    Field reality

    In real projects, potential energy is rarely the only term that matters. Friction, damping, fluid drag, inelastic deformation, and actuator losses often change the final result. Potential energy is usually the clean starting point, not the entire finished model.

    Assumptions and neglected factors

    The potential energy equation looks simple because many details are hidden in the modeling assumptions. Surface those assumptions before trusting the number.

    Assumptions checklist
    • 1 For \(U = mgh\), gravitational acceleration is treated as constant over the height change.
    • 2 For \(U_s = \tfrac{1}{2}kx^2\), the spring is assumed linear and follows Hooke’s law over the deformation range.
    • 3 The reference elevation or neutral spring position is chosen consistently.
    • 4 Losses such as friction, damping, plastic deformation, or heat generation are not included in the stored-energy term itself.

    Neglected factors that begin to matter

    • Variable gravity: for large altitude changes, orbital mechanics, or planetary-scale problems, the constant-\(g\) model becomes too crude.
    • Nonlinear springs: real materials and springs may harden, soften, or yield, which breaks the linear \(kx\) assumption.
    • Dissipative effects: friction and damping remove mechanical energy from the ideal storage picture.
    • Geometry changes: when displacement changes the force direction or leverage, a single simple form may not capture the full system behavior.

    Potential energy vs. related equations

    Potential energy is rarely used in isolation. Engineers often pair it with related equations to move from stored energy to force, motion, or broader system energy balances.

    Equation / conceptBest used forKey assumptionMain limitation
    Kinetic energy equationEnergy of motion, usually \( \tfrac{1}{2}mv^2 \)Classical speeds and rigid-body style modelingDoes not represent stored energy from position or deformation
    Hooke’s LawRelating spring force to deformation, \(F = kx\)Linear elastic spring behaviorForce relation, not total stored energy by itself
    Law of Universal GravitationGravity when distance from the attracting body matters explicitlyPoint-mass or spherically symmetric gravity modelMore complex than constant-\(g\) near-surface approximations
    Bernoulli-style energy balanceTracking multiple mechanical energy terms in fluidsFlow simplifications and appropriate control-volume assumptionsNot a substitute for solid-mechanics energy storage models
    Rule of thumb

    If you need stored energy from height, use potential energy. If you need force from spring deformation, use Hooke’s law. If you need speed from an energy conversion, combine potential and kinetic energy in one energy balance.

    Common mistakes and engineering checks

    • Using path length instead of vertical height in gravitational problems.
    • Using weight as if it were mass, then multiplying by \(g\) again.
    • Applying \(U = mgh\) to large-altitude problems where \(g\) is no longer effectively constant.
    • Treating a non-linear or yielding spring as if \(U_s = \tfrac{1}{2}kx^2\) still applied exactly.
    • Ignoring the datum selection and then comparing energies referenced to different zero levels.
    Sanity check

    For lifting problems, estimate the weight force first and multiply by the height change. That rough mental check should land close to the detailed result. For spring problems, remember that doubling deformation increases stored energy by a factor of four.

    Check itemWhat to verifyWhy it matters
    UnitsFinal units reduce to joules or equivalent work unitsCatches mixed unit systems immediately
    MagnitudeThe number feels plausible for the mass, height, stiffness, and deformation involvedFlags decimal-place and conversion errors
    Model fitThe system is actually governed by elevation change or elastic storagePrevents correct math on the wrong equation

    Frequently asked questions

    The potential energy equation gives the energy stored because of position or deformation. In most mechanics problems, the two forms used most often are gravitational potential energy \(U = mgh\) and elastic potential energy \(U_s = \tfrac{1}{2}kx^2\).

    In SI work, potential energy is reported in joules. For gravitational potential energy, use kilograms, meters per second squared, and meters. For elastic potential energy, use newtons per meter for stiffness and meters for displacement.

    Starting from \(U = mgh\), divide both sides by \(mg\). The rearranged equation is \(h = \dfrac{U}{mg}\).

    It is most reliable when gravity can be treated as nearly constant, which is usually true near Earth’s surface over modest height changes. For large altitude changes, orbital problems, or high-precision gravity work, a variable-gravity model is better.

    Summary and next steps

    The potential energy equation is a stored-energy tool, not just a memorized formula. In practical engineering work, that usually means using \(U = mgh\) for elevation-based problems and \(U_s = \tfrac{1}{2}kx^2\) for ideal spring storage.

    The most important judgment calls are choosing the right model, keeping units consistent, and checking whether constant gravity or linear spring behavior are reasonable assumptions for the actual system.

    Where to go next

    Continue your learning path with these focused next steps.

    Scroll to Top