Physics & Engineering Fundamentals · Potential Energy Equation

Potential Energy Equation – Formula, Units, and Worked Examples

The potential energy equation shows how much energy is stored because of position, height, or deformation, with the most common engineering forms being gravitational potential energy \(U = mgh\) and elastic potential energy \(U = \tfrac{1}{2}kx^2\).

Read time \(U=mgh\) Energy equation Mechanics, statics & dynamics

Potential Energy Formula: How to Calculate Gravitational and Elastic Energy

Potential energy, also called stored energy, is the energy an object or system has because of position, elevation, or deformation. In engineering and physics, the most common formulas are gravitational potential energy \(U = mgh\) and elastic potential energy \(U_s = \tfrac{1}{2}kx^2\).

Most common formulas

\[ U = mgh \] \[ U_s = \frac{1}{2}kx^2 \]

Potential energy is stored energy caused by an object’s position in a field or by deformation of a system.

Key takeaways

  • Use \(U = mgh\) when energy comes from height in a gravitational field.
  • Use \(U_s = \tfrac{1}{2}kx^2\) when energy is stored in a spring by stretching or compression.
  • Potential energy is a scalar quantity, so it adds algebraically and depends on the chosen reference level.

Use this when you need to:

  • calculate gravitational energy from mass, gravity, and height
  • estimate how much energy a spring stores when stretched or compressed
  • compare energy before and after a height change in a mechanical system
  • check conservation of mechanical energy in basic engineering problems

Most readers want this first: for objects near Earth’s surface, the potential energy equation is usually \(U = mgh\), where mass is in kilograms, gravitational acceleration is in meters per second squared, and height is in meters, giving energy in joules.

In engineering and physics, “potential energy equation” usually refers to gravitational potential energy when the topic involves elevation, lifting, falling, or energy conservation. That is why \(U = mgh\) is the form most students and engineers search for first.

However, potential energy is a broader idea. A spring stores elastic potential energy according to \(U_s = \tfrac{1}{2}kx^2\), and other systems can store energy in different fields. The key idea is the same: energy is stored because of configuration, not because the object is already moving.

Editorial note: this page focuses on the engineering forms used most often in introductory mechanics, statics, dynamics, and energy-balance problems. Units and symbols are kept consistent with SI conventions, and the examples are framed around realistic engineering use cases.

Engineering diagram of potential energy types showing gravitational mass at height and elastic spring deformation
Potential energy is stored either by height in a gravitational field or by deformation such as stretching or compressing a spring.

Variables and units for the potential energy equation

The correct variables depend on which form of potential energy you are using. In most mechanical engineering and physics problems, the two forms below cover the majority of use cases.

Common symbols used on this page

SymbolMeaningTypical unitWhat it represents
\(U\)Potential energyJStored energy due to position or configuration
\(m\)MasskgThe amount of matter in the object
\(g\)Gravitational accelerationm/s²The local strength of the gravitational field; near Earth, often taken as \(9.81\ \text{m/s}^2\)
\(h\)HeightmVertical distance above a chosen reference elevation
\(U_s\)Elastic potential energyJEnergy stored in a deformed spring
\(k\)Spring constantN/mStiffness of the spring
\(x\)Spring displacementmAmount of stretch or compression from the undeformed position

Unit notes that prevent mistakes

  • Energy is reported in joules, where \(1\ \text{J} = 1\ \text{N}\cdot\text{m}\).
  • For \(U = mgh\), use mass in kilograms, not weight in newtons.
  • Height must be measured relative to a chosen datum; only differences in height matter physically.
  • For \(U_s = \tfrac{1}{2}kx^2\), the displacement must be in meters if \(k\) is in newtons per meter.

Helpful check: if your units do not reduce to newton-meters, the setup is probably wrong.

How the potential energy equation works in engineering problems

The potential energy equation is not just a memorized formula. It is a way to track stored energy inside a system so you can compare states, predict motion, or balance energy terms in design calculations.

1) Gravitational potential energy tracks elevation

For an object near Earth’s surface, gravitational potential energy increases linearly with height. If you lift the same object twice as high, its gravitational potential energy doubles. If you lift an object with twice the mass to the same height, the stored energy also doubles.

\[ U = mgh \]

This form works well when \(g\) can be treated as constant and the height change is small relative to Earth’s radius, which is true for most everyday engineering calculations.

Note for advanced analysis

The equation \(U = mgh\) is a linear approximation valid near Earth’s surface, where gravitational acceleration can be treated as nearly constant. For orbital mechanics and large-distance gravitational analysis, the more general form is used instead:

\[ U = -G\frac{Mm}{r} \]

This distinction helps separate everyday engineering energy calculations from astrophysics and spaceflight analysis.

2) Elastic potential energy grows with the square of deformation

Spring energy behaves differently. If displacement doubles, the stored energy becomes four times larger because displacement is squared.

\[ U_s = \frac{1}{2}kx^2 \]

This makes spring systems much more sensitive to deformation than gravitational systems are to height.

Gravity vs. elastic potential energy at a glance

FeatureGravitational \((mgh)\)Elastic \(\left(\tfrac{1}{2}kx^2\right)\)
Storage mechanismPosition in an external gravitational fieldInternal deformation of a spring or elastic member
SensitivityLinear; double \(h\), double \(U\)Squared; double \(x\), quadruple \(U\)
Always positive?No; depends on the chosen datumYes for the stored-energy magnitude because \(x^2\) is positive

Why your choice of datum changes everything

The potential energy value you calculate depends on where you choose zero height. That reference point is called the datum. This is the source of many student errors, but it becomes simple once you focus on energy differences rather than absolute values.

\[ \Delta U = mg(h_2 – h_1) \]

Imagine a mass sitting on a table on the 10th floor of a building. Is \(h\) measured from the table, the room floor, the lobby, or the street? The answer is that any of those choices can work, as long as the same datum is used consistently for the full problem. Engineers care most about the change in potential energy between two states, not the arbitrary zero line itself.

Scenario check

  • Datum at ground: a mass at 5 m has positive potential energy.
  • Datum at the mass: the same mass has zero potential energy.
  • Datum at a ceiling 10 m above ground: the mass at 5 m has negative potential energy.

The work-energy theorem connection

Potential energy is often described as work waiting to happen. For conservative forces, the work done by the force is the negative change in potential energy.

\[ W = -\Delta U \]

This relationship explains why an object moving downward under gravity loses potential energy while gaining the ability to do work or gain speed. It also connects energy methods directly to mechanics problems that might otherwise be solved with force balances alone. For related equations, see the equations hub.

Conservative vs. non-conservative forces

Potential energy is defined for conservative forces, such as gravity and ideal spring forces. These forces store and release energy in a reversible way. Non-conservative forces, such as friction, do not have a simple potential energy function because they dissipate mechanical energy as heat, sound, or other losses.

This distinction matters in engineering models. If friction is negligible, conservation of mechanical energy is often a fast and accurate tool. If friction is significant, the energy equation must include losses rather than relying only on potential and kinetic energy.

Path independence

For conservative forces, the change in potential energy depends only on the starting and ending positions, not on the path taken between them. That means gravitational potential energy changes by the same amount whether an object is lifted straight up or moved up a long ramp, assuming friction is neglected.

This path independence is one of the defining features of conservative fields and is a core reason energy methods can simplify mechanics problems so effectively.

Energy conversion: potential to kinetic energy

Many users searching for potential energy are really solving a conversion problem. A classic case is an object descending from one height and converting stored gravitational energy into motion.

\[ mgh_1 = \frac{1}{2}mv_2^2 \]

In this idealized case, the loss in potential energy becomes kinetic energy. This is the core idea behind rollercoaster, pendulum, drop-test, and many machine-dynamics problems. It also provides a natural bridge to topics such as acceleration and kinematics when velocity must be related back to motion.

Calculating velocity from potential energy

If the object starts from rest and all gravitational potential energy converts into kinetic energy, the mass cancels out and the final speed depends only on height and gravity.

\[ mgh = \frac{1}{2}mv^2 \] \[ gh = \frac{1}{2}v^2 \] \[ v = \sqrt{2gh} \]

This shortcut is one of the most useful results on the page because it answers the common question, “How do you find speed from height?” In ideal free-fall or frictionless drop problems, the impact speed depends on the vertical drop, not on the object’s mass.

The best way to understand the equation is to solve a few practical cases and then look at where engineers misuse it most often.

Worked examples using the potential energy equation

These examples move from the most common search intent to engineering-oriented applications so the equation feels like a professional tool rather than a memorized physics fact.

Example 1: Hoist motor assembly being lifted into a crane housing

Scenario: A 12 kg hoist motor assembly is lifted 4.5 m above the shop floor during crane maintenance. Find its gravitational potential energy.

1
Write the equation.
\[ U = mgh \]
2
Substitute known values.
\[ U = (12)(9.81)(4.5) \]
3
Calculate the result.
\[ U = 529.74\ \text{J} \]

Answer: \(U \approx 530\ \text{J}\)

Engineering interpretation: the lifted motor assembly stores about 530 joules of gravitational energy relative to the shop floor. That energy matters when evaluating drop hazards, rigging safety, and impact risk if the load is released unexpectedly.

Example 2: Change in potential energy between two elevations

Scenario: A 75 kg technician climbs from a platform at 1.2 m to a maintenance level at 6.8 m. Find the increase in gravitational potential energy.

1
Use the change form.
\[ \Delta U = mg(h_2-h_1) \]
2
Find the height difference.
\[ h_2-h_1 = 6.8-1.2 = 5.6\ \text{m} \]
3
Substitute and solve.
\[ \Delta U = (75)(9.81)(5.6) = 4120.2\ \text{J} \]

Answer: \(\Delta U \approx 4.12\ \text{kJ}\)

Engineering interpretation: the meaningful result is the energy increase between the two elevations, not the absolute potential energy at either level by itself. This is why the datum can be chosen for convenience without changing the physics.

Example 3: Automotive valve spring compressed to prevent valve float

Scenario: An automotive valve spring with stiffness \(k = 850\ \text{N/m}\) is compressed by 0.08 m. Find the elastic potential energy stored in the spring.

1
Write the spring-energy equation.
\[ U_s = \frac{1}{2}kx^2 \]
2
Substitute the values.
\[ U_s = \frac{1}{2}(850)(0.08)^2 \]
3
Calculate.
\[ U_s = 2.72\ \text{J} \]

Answer: \(U_s = 2.72\ \text{J}\)

Engineering interpretation: even a modest compression stores measurable energy in the valve spring. That stored energy is what helps maintain valve control at high engine speed and reduces the risk of valve float in dynamic operation.

Mistakes, limits, and engineering checks

The potential energy equation is simple, but many wrong answers come from using the right-looking formula in the wrong way. These are the checks that matter most in practice.

Do not confuse mass and weight

In \(U = mgh\), the symbol \(m\) is mass. If you already have weight \(W\) in newtons, use \(U = Wh\) instead of multiplying by \(g\) again. Double-counting gravity is a very common setup error.

Be explicit about the datum

Potential energy is always relative to a chosen reference elevation. Two analysts can choose different zero levels and still get the same physically correct answer as long as they compute the same change in height.

Use \(mgh\) only when constant gravity is a good assumption

For most terrestrial engineering problems, treating \(g\) as constant is appropriate. For large-scale orbital or astrophysical problems, the more general gravitational relationship must be used instead of the near-Earth approximation.

Know when not to use the gravitational form

If the problem is about spring deformation, use the elastic form. If the problem is about motion after release, potential energy alone is usually not the final step; it should be connected to kinetic energy, work, or a full energy balance.

Fast sanity checks

  • If height doubles while mass stays constant, gravitational potential energy should double.
  • If spring displacement doubles while stiffness stays constant, elastic potential energy should become four times larger.
  • If your final unit is not joules, recheck the variable units before trusting the number.
  • If the result is negative, make sure the sign convention and reference level match the problem statement.

Frequently asked questions about the potential energy equation

What is the main potential energy equation?

The main equation most readers need is gravitational potential energy, \(U = mgh\). For springs, the common form is \(U_s = \tfrac{1}{2}kx^2\).

Is potential energy a vector or a scalar?

Potential energy is a scalar. It has magnitude but no direction, which makes it easier to add and compare than force vectors and simplifies energy balances.

What happens to potential energy when an object falls?

As an object falls, gravitational potential energy decreases and is converted mainly into kinetic energy. In real systems, some of that energy may also become thermal energy and sound because of air resistance or friction.

Can potential energy be negative?

Yes. Potential energy depends on the chosen datum or reference level. If the selected zero level is above the object, the calculated potential energy can be negative without creating any physical inconsistency.

Why does the spring equation have a 1/2?

The factor \(\tfrac{1}{2}\) comes from integrating the linear spring force \(F = kx\). Because the spring force rises from zero to \(kx\), the average force over the displacement is half of the final force.

What is the difference between \(U\) and \(PE\)?

They are usually interchangeable. \(PE\) is a plain-language abbreviation for potential energy, while \(U\) is the more standard symbol used in engineering, physics, and thermodynamics notation.

References and further reading

Scroll to Top