Spring Potential Energy Calculator

Spring potential energy2.25 J
Spring force at this displacement30.00 N
How this was calculated
  1. Stored energy: 0.5 × 200.00 × 0.15² = 2.25 J.
  2. The spring pulls back with 30.00 N at this displacement (Hooke's law, F = kx). Energy grows with the square of the stretch, so the second half of a stretch stores three times as much energy as the first half.

A spring potential energy calculator tells you how much energy an ideal spring stores when you stretch or compress it from its natural length. Enter the spring constant k in N/m and the displacement x in meters, and the tool returns the potential energy U in joules using U = 0.5 × k × x². It also reports the restoring force from Hooke's law, F = kx, so you see both the stored energy and the pull or push the spring exerts. The numbers can be surprising: a 200 N/m spring stretched 0.15 m stores 2.25 J and pulls back with 30.00 N, yet a softer 50 N/m spring stretched 0.40 m stores 4.00 J, more than the firm spring, because displacement is squared. Even a stiff 1,000 N/m spring compressed just 0.05 m stores only 1.25 J while already pushing with 50.00 N.

This method is the accepted standard because it follows directly from Hooke's law, the foundational rule for elastic behavior, and the squared-displacement term is what makes the result match measured spring behavior. Because energy grows with x², the second half of a stretch stores three times as much energy as the first half, a pattern confirmed by experiment. The formula holds only within the elastic limit; beyond it the spring deforms permanently and the calculation overstates the stored energy. This page shows the formula, step-by-step workings, worked examples, and sources so you can verify every result yourself.

Worked examples

A firm spring

Primary result: 2.25 J — 200 N/m stretched 0.15 m, pulling back with 30.00 N. (200 N/m · 0.15 m)

Spring potential energy2.25 J
Spring force at this displacement30.00 N

A soft spring stretched far

Primary result: 4.00 J — only 50 N/m, but 0.40 m of stretch stores more than the firm spring. (50 N/m · 0.4 m)

Spring potential energy4.00 J
Spring force at this displacement20.00 N

A stiff spring, barely moved

Primary result: 1.25 J — 1,000 N/m compressed just 0.05 m, already pushing with 50.00 N. (1000 N/m · 0.05 m)

Spring potential energy1.25 J
Spring force at this displacement50.00 N

Why the energy is half kx squared

A spring potential energy calculator relies on the formula U = 0.5 × k × x², where k is the spring constant in N/m and x is the displacement from the natural length. The restoring force follows Hooke's law, F = kx, which tells us that force grows linearly from zero as you stretch or compress the spring. Because the force starts at zero and increases in a straight line, the average force over the full stretch is exactly half of the final force. That is where the one-half in the formula comes from: you are multiplying the average force by the displacement, and the average force is half the peak force.

This linear growth has a surprising consequence. Because energy grows with x², the second half of a stretch stores three times as much energy as the first half. The formula makes this clear: doubling the displacement does not double the stored energy — it quadruples it. Consider a 200 N/m spring stretched 0.15 m. It stores 2.25 J and pulls back with 30.00 N. Now compare that with a soft 50 N/m spring stretched 0.40 m, which stores 4.00 J. The soft spring stores more energy than the firm spring, because displacement is squared and the larger stretch dominates the calculation.

A stiff spring tells the same story from the other direction. A stiff 1,000 N/m spring compressed 0.05 m stores 1.25 J while already pushing with 50.00 N. The force is high, but the small displacement keeps the energy modest. This is why the formula matters: force alone does not tell you how much energy is stored. You need both the spring constant and the displacement — and the squaring of x means that stretching a spring twice as far requires four times the energy.

Hooke's law holds only within the elastic limit. Beyond it the spring deforms permanently and the formula overstates the stored energy. A calculator that uses U = 0.5 × k × x² assumes the spring returns to its natural length when the force is removed. If the stretch has pushed the material past its yield point, that assumption fails.

Worked examples

The table below shows three verified examples that illustrate how a spring potential energy calculator handles different combinations of stiffness and displacement. Each row applies the same formula, U = 0.5 × k × x², where k is the spring constant in N/m and x is the displacement from the natural length. The restoring force follows Hooke's law, F = kx. These examples cover extension and compression, and they span a wide range of spring constants so you can see how each variable affects the result.

The first two springs reveal a key insight that surprises many users. A 200 N/m spring stretched 0.15 m stores 2.25 J and pulls back with 30.00 N. A soft 50 N/m spring stretched 0.40 m stores 4.00 J, which is more than the firm spring, because displacement is squared. The softer spring stretches farther, and that extra distance more than makes up for its lower stiffness. The restoring force in the soft spring is only 20.00 N, yet it holds twice the energy of the stiffer one. This is why a spring potential energy calculator asks for both values rather than estimating from force alone.

The third example shows the opposite extreme. A stiff 1,000 N/m spring compressed 0.05 m stores 1.25 J while already pushing with 50.00 N. The force is the highest of the three springs, but the stored energy is the lowest, because the small displacement is squared before multiplication. A short compression simply cannot accumulate much energy, even when the spring is very rigid. Comparing all three rows side by side makes the pattern clear: energy tracks displacement more strongly than it tracks stiffness or force.

Because energy grows with x², the second half of a stretch stores three times as much energy as the first half. Doubling the displacement quadruples the stored energy, which is why the soft spring in the second row outperforms the firm spring in the first. Keep in mind, though, that Hooke's law holds only within the elastic limit. Beyond it the spring deforms permanently and the formula overstates the stored energy. A reliable calculation assumes the spring returns to its natural length when the load is removed.

Spring constant (N/m)Displacement (m)Restoring force (N)Stored energy (J)
2000.1530.002.25
500.4020.004.00
1,0000.0550.001.25

Springs at work

Springs quietly power many everyday devices by storing and releasing energy on demand. Vehicle suspension relies on springs to absorb bumps in the road, compressing as the wheel hits a pothole and then expanding to push the wheel back down. Pogo sticks work the same way: each jump compresses a spring, which then releases its stored energy to launch the rider upward. Archery bows use a flexible limb that acts like a spring, storing energy as the archer draws the string and transferring it to the arrow on release. Mechanical watches take this idea further, using a wound mainspring that unwinds slowly through a series of gears to keep time for hours or days.

In every one of these cases, the spring behaves according to the same underlying physics. An ideal spring stores potential energy U = 0.5 × k × x², where k is the spring constant in N/m and x the displacement from the natural length. The restoring force follows Hooke's law, F = kx. A spring potential energy calculator applies these formulas directly, letting you see how much energy a given spring holds at a particular stretch or compression.

The numbers reveal a key insight: displacement matters more than stiffness. A 200 N/m spring stretched 0.15 m stores 2.25 J and pulls back with 30.00 N. Compare that with a soft 50 N/m spring stretched 0.40 m, which stores 4.00 J — more than the firm spring, because displacement is squared. On the other hand, a stiff 1,000 N/m spring compressed 0.05 m stores 1.25 J while already pushing with 50.00 N. A stiff spring can deliver a strong force without holding much total energy if it barely moves.

Because energy grows with x², the second half of a stretch stores three times as much energy as the first half. This is why drawing a bow the last few inches feels much harder than the first few, and why a vehicle's suspension must be carefully matched to its expected travel. It is also why a spring potential energy calculator is useful for comparing designs: small changes in displacement can have a larger effect than big changes in stiffness.

One caution applies to all of these examples. Hooke's law holds only within the elastic limit; beyond it the spring deforms permanently and the formula overstates the stored energy. A suspension spring that has been overloaded, a pogo stick that has bottomed out, or a bowstring pulled past its design range will no longer follow the neat relationship between force and displacement. Staying within the elastic limit keeps the energy calculations valid and the spring working as intended.

Limits of the ideal spring

A spring potential energy calculator relies on the ideal spring model, where potential energy follows a clean parabola: U = 0.5 × k × x². This parabola is what makes the math so tidy, because energy grows with the square of displacement. That squaring effect is not trivial. The second half of a stretch stores three times as much energy as the first half, which is why pulling a spring the last few centimeters feels dramatically harder than the first few. But real springs do not follow that parabola forever. Several physical limits bend the curve away from the ideal, and each one changes how much energy the spring actually stores.

The first and most important limit is the elastic limit. Hooke's law, F = kx, holds only within this range. Stretch the spring past that point and the material deforms permanently. The coils do not return to their original shape, and the simple formula U = 0.5 × k × x² overstates the stored energy because the spring can no longer give that energy back. The parabola flattens, and the calculator's result becomes optimistic. This is the most common way the ideal model breaks down.

Coil bind is a second limit that affects compression springs specifically. When the coils are pressed tight against each other, the spring cannot compress any further. The parabola would predict ever-increasing energy, but the physical spring simply stops moving. Beyond that point, additional force does not store energy in the spring at all — it transfers directly to the end plates. A calculator that ignores coil bind will keep producing larger numbers even though the spring has reached a hard mechanical stop.

Hysteresis and spring mass add further complications. Hysteresis means the spring gives back slightly less energy than was put in, because internal friction converts some of that energy to heat. The parabola assumes perfect reversibility, but real materials dissipate energy on every cycle. Spring mass matters too: a heavy spring does not stretch uniformly, so the effective displacement at the moving end differs from the average displacement across the coils. The formula treats the spring as massless, which is never fully true.

  • Elastic limit: beyond this point the spring deforms permanently and the formula overstates stored energy
  • Coil bind: compressed coils touch and the spring cannot compress further, so no additional energy is stored
  • Hysteresis: internal friction returns less energy than was put in, breaking the ideal reversibility assumption
  • Spring mass: a heavy spring stretches unevenly, so the massless ideal no longer matches reality
A spring potential energy calculator assumes Hooke's law holds and the spring stays within its elastic limit. Once the spring deforms, binds, or dissipates energy through friction, the parabola stops being an accurate predictor.

FAQs

How is spring potential energy calculated?

Spring potential energy is calculated using the formula U = 0.5 × k × x², where k is the spring constant and x is the displacement from rest. For a 200 N/m spring stretched 0.15 m: 0.5 × 200 × 0.0225 = 2.25 J. The energy stored depends on both stiffness and how far the spring is stretched or compressed.

What is the spring constant?

The spring constant, k, measures stiffness in newtons per metre — the force needed to stretch the spring by one metre. A higher k means a stiffer spring. The stiff example uses 1,000 N/m, meaning it requires 1,000 N of force to stretch that spring by one metre from its resting position.

Why does a soft spring sometimes store more energy?

Energy depends on displacement squared, so stretching a spring farther can outweigh a lower spring constant. The 50 N/m spring stretched 0.40 m stores 4.00 J, beating the firm spring's 2.25 J at 0.15 m. Even though the soft spring is less stiff, the larger displacement more than makes up for it in stored energy.

What force does the spring exert?

The force a spring exerts is given by F = kx by Hooke's law, where k is the spring constant and x is the displacement. For the 1,000 N/m spring compressed just 0.05 m, the force equals 50.00 N. The force increases linearly with displacement, so compressing or stretching twice as far produces twice the force.

Does compression store the same energy as stretching?

Yes. Because x enters the formula as x², compressing by the same amount stores the same energy in an ideal spring. The sign of the displacement does not matter — only the magnitude. A spring compressed 0.10 m stores the same energy as one stretched 0.10 m, assuming the spring constant is the same and the spring behaves ideally.

When does the formula stop working?

The formula stops working past the elastic limit, where the spring takes a permanent set and will not return to its original shape. Near full compression the coils touch, known as coil bind, and stiffness soars well beyond the linear value of k. In both cases the simple U = 0.5 × k × x² relationship no longer applies.

Sources

Related calculators

Hooke's Law Calculator
Spring force from stiffness and stretch — F = k × x — with the elastic potential energy the spring stores, ½kx², alongside.
Simple Harmonic Motion Calculator
From amplitude and period to frequency, angular frequency, peak speed and peak acceleration of an oscillator.
Pendulum Calculator
A pendulum's period and frequency from its length — or the length needed for a target period — on Earth, Mars or the Moon. The physics behind the grandfather clock.
Work-Energy Theorem Calculator
Net work from a change in speed using the work-energy theorem — kinetic energy before and after, and average power when you add the time.