CCalclabhub

Science · 63 calculations

Mechanics

How To Calculate Elastic Potential Energy

Squashing or stretching a spring stores energy that can be released later, and this page shows exactly how much. The calculation turns a spring constant and a displacement into the stored elastic potential energy, the restoring force, and what happens to both when the displacement is doubled.

Last updated

Quick Answer

E = (1/2)kx^2

E
Elastic potential energy stored in the spring, in joules (J)
k
Spring constant, a measure of stiffness, in newtons per metre (N/m)
x
Displacement from the unstretched position, in metres (m)
F
Restoring force exerted by the spring, in newtons (N)

Elastic potential energy is half the spring constant multiplied by the square of the displacement from equilibrium. The restoring force at that displacement is the spring constant times the displacement. With k = 200 N/m and x = 0.15 m the stored energy is 2.25 J and the force is 30.0 N; doubling the displacement gives 9.0 J and 60.0 N.

What Is Elastic Potential Energy?

Elastic potential energy is the energy stored in an object when it is temporarily deformed, such as a spring that has been stretched or compressed. Work done to change the shape is not lost; it is held in the material and given back when the object returns to its original form. A coiled spring, a bent archery bow and a squashed rubber ball all store this kind of energy. It is called potential because it is energy of position or configuration rather than energy of motion, and it becomes kinetic energy the moment the deforming force is removed and the object springs back.

The formula follows directly from Hooke's law. That law says the restoring force a spring exerts grows in proportion to how far it has been displaced, written F = kx, where k is the spring constant. Because the force starts at zero and rises linearly, the average force needed to reach a displacement x is only half of the final force, kx/2. Work equals average force times distance, so the work done, and hence the energy stored, is (kx/2) times x, which simplifies to one half of k times x squared. The factor of one half is therefore not arbitrary; it is the signature of a force that builds up gradually rather than staying constant.

The square in the formula is the single most important feature to absorb. Raising the displacement does not raise the stored energy in the same proportion. With the default spring constant of 200 N/m, a displacement of 0.15 m stores 2.25 J. Push the spring twice as far, to 0.30 m, and the stored energy becomes 9.0 J, which is four times as much. This quadratic growth is why a small extra compression in a spring-powered device stores dramatically more energy, and why springs can become surprisingly dangerous when overloaded. Force, by contrast, only doubles over the same change, rising from 30.0 N to 60.0 N.

The spring constant k tells you how stiff the spring is and is measured in newtons per metre. A large k means a stiff spring that pushes back hard for a small displacement; a small k means a soft spring that gives way easily. Because energy depends on k directly, a stiff spring stores more energy than a soft one at the same displacement. The constant is a property of the material, the wire thickness, the coil radius and the number of turns, and it is usually supplied by the manufacturer or measured by hanging known loads and recording the extension. Doubling k doubles both the energy and the force at a given displacement.

Direction is handled by the square, which is a convenient feature of the energy formula. Whether the spring is stretched by 0.15 m or compressed by 0.15 m, the value of x squared is the same, so the stored energy is the same positive 2.25 J. The restoring force, however, always points back towards equilibrium: a stretched spring pulls inward while a compressed spring pushes outward. The force formula F = kx is usually quoted as a magnitude, with the direction supplied separately by noting that it opposes the displacement. Energy is a scalar and carries no direction at all, so it is always reported as a positive quantity for a real spring.

Hooke's law and the energy formula are idealisations that hold only while the spring stays within its elastic limit. Within that range, removing the load lets the spring recover its shape completely and the stored energy is returned. Stretch it beyond the elastic limit and the material yields: the spring is permanently deformed, the force is no longer proportional to displacement, and the simple quadratic formula stops describing what happens. Some devices are deliberately non-linear, such as progressive suspension springs whose stiffness rises with compression, and these need a force curve rather than a single constant. The calculation on this page assumes a linear, ideal spring throughout.

Elastic potential energy is one member of a family of energy forms that trade into one another. In a mass hanging from a spring, energy cycles between elastic storage and kinetic energy as the mass bounces, with gravitational potential energy joining the exchange when the motion is vertical. In a horizontal oscillator the total mechanical energy stays constant at the maximum displacement, where the kinetic energy is zero and all the energy is elastic. Friction and internal damping slowly convert that stored energy into heat, which is why a real spring eventually stops oscillating even though the ideal formula predicts endless motion.

Units are the most common source of wrong answers, and displacement is the usual culprit. The spring constant is quoted in newtons per metre, so the displacement must be entered in metres, not centimetres or millimetres. A displacement of fifteen centimetres is 0.15 m, not 15 m; using 15 directly would inflate the energy by a factor of ten thousand because the error is squared. The spring constant must likewise be in N/m rather than N/cm, and the resulting energy is in joules. Checking that the inputs are in base SI units before calculating prevents the great majority of mistakes with this formula.

The same arithmetic underlies a long list of everyday devices. Bathroom scales translate a spring's compression into a weight reading, vehicle suspension absorbs road shocks by storing and releasing energy, and trampolines return much of a jumper's energy on the way back up. Clock mechanisms and retractable tape measures use springs as energy reservoirs, and engineers size them by working backwards from the energy they need to deliver. The formula also leaves things out: it assumes a massless spring, no hysteresis and a small linear deformation, whereas real materials lose a little energy to internal friction on each cycle. Within those boundaries the result is exact and easy to verify: the stored energy is half the stiffness times the square of the displacement, and any doubling of that displacement multiplies the energy by four.

Formula

E = (1/2) k x^2

Formula page →

Half the spring constant times the square of the displacement from equilibrium. Because x is squared, doubling the displacement quadruples the stored energy.

SymbolMeaning
EElastic potential energy
kSpring constant
xDisplacement

The force a linear spring exerts is proportional to its displacement and points back towards equilibrium. Unlike energy, force grows only linearly with x.

SymbolMeaning
FRestoring force
kSpring constant
xDisplacement

E(2x) = (1/2) k (2x)^2 = 4E

Formula page →

Replacing x by 2x multiplies the stored energy by four, while the force at the same point only doubles. The contrast is the clearest demonstration of the quadratic dependence.

SymbolMeaning
2xDoubled displacement
kSpring constant
E(2x)Energy at doubled displacement

How To Calculate Elastic Potential Energy

  1. 1

    Identify the spring constant

    Find the spring constant k and confirm it is quoted in newtons per metre. In the worked case it is 200 N/m, meaning the spring pushes back with 200 newtons for every metre of displacement. If the value is given in newtons per centimetre, convert it first, because using the wrong unit here will flow through the whole calculation and spoil both the energy and the force.

  2. 2

    Convert the displacement to metres

    Express the displacement x from the unstretched position in metres. The worked spring is displaced by 0.15 m, which is fifteen centimetres written in base units. This conversion is the single most important habit with this formula: because x is squared, a unit slip is magnified enormously, so always write the displacement in metres before doing anything else.

  3. 3

    Square the displacement

    Work out x squared, the displacement multiplied by itself. For 0.15 m this gives 0.0225 square metres. Squaring makes the sign irrelevant, so a compression of 0.15 m produces the same value as a stretch of 0.15 m. Keeping this intermediate figure explicit helps you see where the quadratic behaviour comes from and makes it easy to reuse for the doubled-displacement case.

  4. 4

    Apply the energy and force formulas

    Multiply half the spring constant by the squared displacement to get the stored energy: 0.5 times 200 times 0.0225 gives 2.25 J. Separately, multiply the spring constant by the displacement for the restoring force: 200 times 0.15 gives 30.0 N. Energy and force are related but different quantities, so keep the two results labelled clearly rather than treating them as interchangeable.

  5. 5

    Check the doubled displacement

    Replace x by 2x to see the scaling rule in action. At 0.30 m the force is 200 times 0.30, or 60.0 N, exactly double the original 30.0 N. The energy is 0.5 times 200 times 0.30 times 0.30, which is 9.0 J, exactly four times the original 2.25 J. If your doubled energy is not four times the first value, the displacement was not squared correctly.

Examples

Example 1: Energy stored in the default spring

springConstant
200 N/m
displacement
0.15 m
StepCalculationResult
Spring constantk, already in N/m200 N/m
Squared displacementx^2 = 0.15 x 0.150.0225 m^2
Stored elastic energyE = 0.5 x 200 x 0.02252.25 J

Result: The spring stores 2.25 J of elastic potential energy at a displacement of 0.15 m.

Example 2: Restoring force at the same displacement

springConstant
200 N/m
displacement
0.15 m
StepCalculationResult
Displacement in metres15 cm converted0.15 m
Restoring forceF = 200 x 0.1530.0 N

Result: The spring pushes back with a restoring force of 30.0 N, directed towards its unstretched position.

Example 3: Doubling the displacement

springConstant
200 N/m
displacement
0.15 m
StepCalculationResult
Doubled displacement0.15 x 20.30 m
Force at double displacementF = 200 x 0.3060.0 N
Energy at double displacementE = 0.5 x 200 x 0.30 x 0.309.0 J

Result: Doubling the displacement gives a force of 60.0 N and stores 9.0 J, four times the original energy.

Calculator

Elastic potential energy

2.25

Restoring force
30
Energy at double displacement
9
Force at double displacement
60

Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.

Prefer a full-width tool? Open the Elastic Potential Energy calculator page.

Common Mistakes

  • Leaving the displacement in centimetres

    The spring constant is in newtons per metre, so displacement must be in metres. Entering 15 instead of 0.15 makes the squared term one hundred times larger in the force-free sense and ten thousand times too large in the energy, because the displacement is squared. Convert every length to metres before substituting.

  • Forgetting the factor of one half

    It is tempting to multiply k by x squared and call the result the energy, but that gives 4.5 J instead of the correct 2.25 J for the default spring. The half appears because the force builds from zero to kx during the displacement, so the average force is only kx/2. Do not drop it.

  • Using the force where the energy is needed

    Force and energy have different units and different dependence on displacement. The default spring exerts 30.0 N but stores 2.25 J, and doubling the displacement changes those to 60.0 N and 9.0 J respectively. Reporting newtons for an energy question, or expecting the energy only to double, confuses the two quantities.

  • Assuming doubling the displacement doubles the energy

    Because the displacement is squared, doubling it multiplies the stored energy by four, not by two. In the worked case the energy rises from 2.25 J to 9.0 J while the force merely doubles from 30.0 N to 60.0 N. Re-check any answer where energy and force appear to scale the same way.

  • Treating compression as negative energy

    The displacement is squared, so a compressed spring and a stretched spring of the same magnitude store the same positive energy. There is no such thing as negative elastic potential energy for a real spring. The sign of the displacement only matters when you discuss the direction of the restoring force, never the size of the stored energy.

  • Applying the formula beyond the elastic limit

    Hooke's law holds only while the spring stays within its elastic range. Stretch it far enough and the material yields, the force stops being proportional to displacement, and the quadratic energy result becomes wrong. Check that the spring recovers its shape after unloading before trusting the calculation.

FAQ

Why is there a factor of one half in the elastic energy formula?

The force is not constant while a spring is being stretched; it grows from zero to kx. The work done is the average force, which is half of kx, multiplied by the distance x. That gives (kx/2) times x, or one half of k times x squared.

What happens to the stored energy if I double the displacement?

It becomes four times larger, because energy depends on the square of the displacement. With the default values the energy rises from 2.25 J at 0.15 m to 9.0 J at 0.30 m. The restoring force only doubles, from 30.0 N to 60.0 N.

Does compressing a spring store less energy than stretching it?

No. The displacement is squared, so a compression and a stretch of equal magnitude store exactly the same positive energy. A spring compressed by 0.15 m and one stretched by 0.15 m both hold 2.25 J for the default spring constant.

What units must I use for the spring constant and displacement?

Use newtons per metre for the spring constant and metres for the displacement. The energy then comes out in joules automatically. Fifteen centimetres must be written as 0.15 m; entering 15 gives an answer that is wrong by a factor of ten thousand.

What is the difference between elastic potential energy and the restoring force?

The restoring force is kx, measured in newtons, and tells you how hard the spring pushes at a given displacement. The elastic potential energy is half of kx squared, measured in joules, and tells you how much work the spring can do as it returns to equilibrium. One grows linearly with displacement, the other quadratically.

When does the formula stop being accurate?

It assumes an ideal linear spring within its elastic limit, with negligible mass and no internal damping. Real springs yield if stretched too far, may be deliberately non-linear, and lose a little energy as heat each cycle. Outside the elastic range the quadratic result no longer applies.

References

  1. [1]Wikipedia, Elastic energy — https://en.wikipedia.org/wiki/Elastic_energy
  2. [2]Wikipedia, Hooke's law — https://en.wikipedia.org/wiki/Hooke%27s_law
  3. [3]Wikipedia, Potential energy — https://en.wikipedia.org/wiki/Potential_energy