Elastic Potential Energy Calculator

Compute the energy stored in a stretched or compressed spring, or work backward to the spring constant or the extension, with a chart for each mode.

🔩 Elastic Potential Energy Calculator
Spring constant (k)
01000
Displacement from relaxed length (x)
02
Starting displacement x1 (optional, same unit as x)
same unit
Attached mass (optional, for launch speed)
Force applied (F, optional if you give the energy)
01000
Extension (x)
02
Stored energy (U, optional if you give the force)
Attached mass (optional, for the oscillation period)
Spring constant (k)
01000
Stored energy (U)
0100
Attached mass (optional, for launch speed)
Stored energy U (J)
—
Detail
—
Detail
—
Detail
—
Detail
—
Detail
—
Detail
—
Detail
—

🔩 What is Elastic Potential Energy?

Elastic potential energy is the energy stored in an elastic object, most often a spring, when it is stretched or compressed away from its relaxed length. The work you do pulling the spring is not lost. It is stored in the deformed material, and it comes back as motion, sound or heat when the spring is released. For a spring that follows Hooke's law, the stored energy is U = ½ k x², where k is the spring constant that measures stiffness and x is how far the spring has moved from its relaxed length.

This calculator has three modes. In Find energy you enter k and the displacement x and get the energy, the force at that stretch, the work needed to go from one displacement to another, and the speed an attached mass would have when the spring snaps back to its relaxed length. In Find k you work backward from a measurement: a force and an extension give k = F / x, an energy and an extension give k = 2U / x², and an optional mass gives the oscillation period of the mass-spring system. In Find extension you know k and the energy you want to store and solve for the stretch, x = √(2U / k).

Spring energy turns up everywhere: the dart in a toy launcher, the suspension of a car, the bounce of a trampoline, the return spring in a pen, the lab spring in a physics class, and the safety spring in a door latch. It is also the first example of a potential energy function that students meet, and the same quadratic shape appears in the quantum harmonic oscillator, where the potential is ½ mω²x² with k = mω². A common mistake is to treat the energy as proportional to the stretch. It is not. Because U depends on x², doubling the stretch quadruples the energy, while the force only doubles. Another mistake is to forget that the formula applies only within the elastic, linear range of the spring.

The results show the energy in joules, foot-pounds and calories, the spring constant in N/m, N/cm and lbf/in, and a chart for each mode. For related ideas see the kinetic energy calculator for what the released energy becomes, the work, energy and power calculator for the work-energy theorem, the force calculator for F = ma, the mechanical advantage calculator for simple machines, and the quantum harmonic oscillator calculator for the quantum version of the same potential.

📐 Formula

U  =  ½ k x²     F  =  k x
U = elastic potential energy stored in the spring (J)
k = spring constant in N/m (1 N/cm = 100 N/m, 1 lbf/in = 175.127 N/m)
x = stretch or compression from the relaxed length (m)
F = force needed to hold that stretch (N)
Example: k = 25 N/m and x = 0.2 m give U = ½ × 25 × 0.04 = 0.5 J and F = 5 N
W  =  ½ k (x₂² − x₁²)     v  =  x √(k ÷ m)
W = work to stretch from x₁ to x₂ (J), the change in stored energy
v = speed of an attached mass m when it passes the relaxed length, from ½ m v² = ½ k x²
Example: k = 25 N/m, x = 0.2 m and m = 0.5 kg give v = 0.2 × √50 = 1.414 m/s
k  =  F ÷ x    k  =  2U ÷ x²    x  =  √(2U ÷ k)    T  =  2π √(m ÷ k)
T = period of a mass m oscillating on the spring (s), for the ideal mass-spring system with a massless spring
Series: 1/k = 1/k₁ + 1/k₂    Parallel: k = k₁ + k₂
Example: F = 12 N at x = 0.08 m gives k = 150 N/m, and with m = 0.3 kg the period is T = 0.281 s

📖 How to Use This Calculator

Steps

1
Choose what you want to find - Pick Find energy, Find k or Find extension with the tabs above the inputs.
2
Enter the values and units - Type each number and pick its unit. Units describe the number you typed and never rewrite it, so set the unit first or retype the value after changing it.
3
Read the results and the chart - Check the main result, the conversions, the optional force, work, speed or period, and see where your point sits on the chart.

🔗 Squared Growth, Series and Parallel Springs

Why energy scales with x². The force on a Hooke's law spring rises in a straight line from zero to kx. The work to stretch it is the area under that line, a triangle with base x and height kx, so U = ½ x (kx) = ½ k x². The second chart in Find energy mode shades that triangle. Stretching twice as far doubles both the base and the height, so the area is four times larger.

Springs in parallel share the stretch and add their forces, so the combined stiffness is k = k₁ + k₂. Two springs of 25 N/m and 75 N/m side by side behave like one 100 N/m spring. Springs in series share the force and add their stretches, so 1/k = 1/k₁ + 1/k₂, and the pair is softer than either spring. For the same two springs the series stiffness is 25 × 75 / 100 = 18.75 N/m. Check it by force: pulling with 10 N stretches the 25 N/m spring 0.4 m and the 75 N/m spring 0.1333 m, a total of 0.5333 m, and 10 / 0.5333 = 18.75 N/m. Enter the combined k in the calculator to get the energy of the whole arrangement.

Limits. Every real spring has an elastic limit. Past it the spring is permanently deformed and part of the work is lost as heat, so U = ½ k x² no longer applies. Even below that limit, Hooke's law is only a linear approximation. Coil springs are close to linear over much of their range, but a coil that is nearly fully closed, a spring pushed to its maximum length, or a rubber band follows a curved force-stretch relation instead. For those, the measured force-distance area gives the energy, and this calculator gives a first estimate only.

💡 Example Calculations

Example 1 - Lab spring stretched 0.2 m

A lab spring with k = 25 N/m is stretched 0.2 m with a 0.5 kg mass attached

1
Energy: U = ½ × 25 × 0.2² = ½ × 25 × 0.04 = 0.5 J
2
Force: F = kx = 25 × 0.2 = 5 N (1.124 lbf)
3
Other units: 0.5 J = 0.3688 ft-lbf = 0.1195 cal
4
Launch speed: v = 0.2 × √(25 ÷ 0.5) = 1.414 m/s, and the check ½ × 0.5 × 1.414² = 0.5 J matches U
Result = U = 0.5 J, F = 5 N, v = 1.414 m/s
Try this example →

Example 2 - Toy dart launcher

A toy launcher spring of 1.2 N/cm is compressed 3 cm behind a 10 g dart

1
Convert: 1.2 N/cm = 120 N/m, and 3 cm = 0.03 m
2
Energy: U = ½ × 120 × 0.03² = 0.054 J, and the force is F = 120 × 0.03 = 3.6 N
3
Launch speed: v = 0.03 × √(120 ÷ 0.01) = 3.286 m/s, assuming no friction and a massless spring
4
Compressing twice as far (6 cm) would store 0.216 J, four times as much
Result = U = 0.054 J, F = 3.6 N, v = 3.286 m/s
Try this example →

Example 3 - Car suspension spring (illustrative rate)

An illustrative 400 lbf/in coil spring compressed 2 in

1
Convert: 400 lbf/in = 70,050.7 N/m, and 2 in = 0.0508 m
2
Energy: U = ½ × 70,050.7 × 0.0508² = 90.39 J, which is 66.67 ft-lbf
3
Force: F = 70,050.7 × 0.0508 = 3,558.6 N, which is 800 lbf
4
Compressing 4 in instead stores 361.55 J, four times the energy for twice the force
Result = U = 90.39 J (66.67 ft-lbf), F = 3,558.6 N (800 lbf)
Try this example →

Example 4 - Trampoline-like value, work from 0.2 m to 0.5 m

An illustrative effective stiffness of 4000 N/m, deflected from 0.2 m to 0.5 m

1
Energy at 0.5 m: U = ½ × 4000 × 0.25 = 500 J, with F = 4000 × 0.5 = 2000 N
2
Energy already stored at 0.2 m: ½ × 4000 × 0.04 = 80 J
3
Work between the two: W = ½ × 4000 × (0.5² − 0.2²) = 420 J
Result = U = 500 J, W (0.2 m to 0.5 m) = 420 J
Try this example →

Example 5 - Find k from a measurement

A spring stretches 8 cm under a 12 N pull and stores 0.48 J, with a 0.3 kg mass

1
From the force: k = F / x = 12 ÷ 0.08 = 150 N/m (1.5 N/cm, 0.8565 lbf/in)
2
From the energy: k = 2U / x² = 2 × 0.48 ÷ 0.0064 = 150 N/m, so the two methods agree
3
Period of the mass-spring system: T = 2π √(0.3 ÷ 150) = 0.281 s
4
Frequency: f = 1 ÷ 0.281 = 3.559 Hz
Result = k = 150 N/m, T = 0.281 s
Try this example →

Example 6 - Find the extension for a given energy

How far does an 800 N/m spring stretch when it stores 10 J, with a 2 kg mass?

1
Extension: x = √(2 × 10 ÷ 800) = √0.025 = 0.1581 m (15.81 cm, 6.225 in)
2
Force at that stretch: F = 800 × 0.1581 = 126.49 N (28.44 lbf)
3
Launch speed: v = 0.1581 × √(800 ÷ 2) = 3.162 m/s
4
Four times the energy (40 J) would stretch the spring only to 0.3162 m, twice as far
Result = x = 0.1581 m, F = 126.49 N, v = 3.162 m/s
Try this example →

❓ Frequently Asked Questions

What is the formula for elastic potential energy?+
For a spring that obeys Hooke's law, U = ½ k x², where k is the spring constant in N/m and x is the stretch or compression from the relaxed length in metres. The result is in joules. A spring with k = 25 N/m stretched 0.2 m stores 0.5 × 25 × 0.04 = 0.5 J.
Why is spring energy proportional to x squared?+
The force grows linearly with stretch, F = kx, and the energy is the area under the force-distance line, a triangle with area ½ x (kx). Both the base and the height grow with x, so the area grows with x². Doubling the stretch quadruples the energy while only doubling the force.
How do you find the spring constant?+
Divide the force by the extension, k = F / x. A 5 N pull that stretches a spring 0.2 m gives k = 25 N/m. If you know the stored energy instead, use k = 2U / x², so 0.5 J at 0.2 m also gives 25 N/m. The Find k tab does both and compares them.
How do you find the extension from energy?+
Solve U = ½ k x² for x to get x = √(2U / k). With k = 800 N/m and U = 10 J, x = √(20 / 800) = 0.158 m. Because of the square root, four times the energy only doubles the extension.
How much work does it take to stretch a spring from x1 to x2?+
The work is the change in stored energy, W = ½ k (x₂² − x₁²). For k = 4000 N/m going from 0.2 m to 0.5 m, W = 0.5 × 4000 × (0.25 − 0.04) = 420 J. It is not the same as the work to stretch from rest by the difference of 0.3 m, which would be only 180 J.
How fast does a mass leave a spring?+
If all the stored energy becomes kinetic energy at the relaxed length, ½ m v² = ½ k x², so v = x √(k / m). A 0.5 kg mass on a 25 N/m spring released from 0.2 m moves at 1.414 m/s. Friction, air drag and the spring's own mass make real launches somewhat slower.
What is the period of a mass on a spring?+
For the ideal mass-spring system, T = 2π √(m / k). With m = 0.3 kg and k = 150 N/m, T = 0.281 s, a frequency of about 3.56 Hz. The period does not depend on the amplitude as long as the spring stays in its linear range and the spring's own mass is small.
What is the spring constant of springs in series and parallel?+
In parallel the stiffnesses add, k = k₁ + k₂. In series the reciprocals add, 1/k = 1/k₁ + 1/k₂, so the combination is softer than either spring. For 25 N/m and 75 N/m, parallel gives 100 N/m and series gives 18.75 N/m.
What is the elastic limit of a spring?+
The elastic limit is the largest stretch from which the spring still returns to its original length. Beyond it the spring is permanently deformed and the formula U = ½ k x² no longer describes it. Stay within the working range stated for your spring, and treat the result here as an estimate near that limit.
Does Hooke's law work for a rubber band?+
Only for small stretches. A rubber band is non-linear, so its force is not proportional to its stretch over a large range, and it also loses some energy as heat on each cycle. Use the ½ k x² result as a rough estimate for rubber, and measure the force-distance curve for anything accurate.
What are the units of the spring constant?+
The SI unit is newtons per metre (N/m). Springs are also quoted in N/cm, where 1 N/cm = 100 N/m, and in lbf/in, where 1 lbf/in = 175.127 N/m. The calculator converts all three before applying any formula, and it shows k in each of them in Find k mode.
Is the stored energy the same when stretching and compressing?+
For an ideal spring, yes. The energy depends on x², so a stretch of 0.2 m and a compression of 0.2 m both store the same energy. Real coil springs can differ near the ends of their range, when the coils touch in compression or the wire yields in extension.

What is the formula for elastic potential energy?

For a spring that obeys Hooke's law, U = 1/2 k x^2, where k is the spring constant in N/m and x is the stretch or compression from the relaxed length in metres. The result is in joules. A spring with k = 25 N/m stretched 0.2 m stores 0.5 x 25 x 0.04 = 0.5 J.

Why is spring energy proportional to x squared?

The force grows linearly with stretch, F = kx, and the energy is the area under the force-distance line, which is a triangle with area 1/2 x (kx). Because the area depends on both the base and the height, and both grow with x, the energy grows with x squared. Doubling the stretch quadruples the energy.

How do you find the spring constant?

Divide the force by the extension, k = F / x. A 5 N pull that stretches a spring 0.2 m gives k = 25 N/m. If you know the stored energy instead, use k = 2U / x^2, so 0.5 J at 0.2 m also gives 25 N/m.

How do you find the extension from energy?

Solve U = 1/2 k x^2 for x to get x = sqrt(2U / k). With k = 800 N/m and U = 10 J, x = sqrt(20 / 800) = 0.158 m. Four times the energy only doubles the extension.

How much work does it take to stretch a spring from x1 to x2?

The work is the change in stored energy, W = 1/2 k (x2^2 - x1^2). For k = 4000 N/m going from 0.2 m to 0.5 m, W = 0.5 x 4000 x (0.25 - 0.04) = 420 J. It is not the same as stretching from rest to the difference.

How fast does a mass leave a spring?

If all the stored energy becomes kinetic energy when the spring passes its relaxed length, 1/2 m v^2 = 1/2 k x^2, so v = x sqrt(k / m). A 0.5 kg mass on a 25 N/m spring released from 0.2 m moves at 1.414 m/s. Friction and the spring's own mass make real launches slower.

What is the period of a mass on a spring?

For an ideal mass-spring system T = 2 pi sqrt(m / k). With m = 0.3 kg and k = 150 N/m, T = 0.281 s, which is a frequency of about 3.56 Hz. The period does not depend on the amplitude as long as the spring stays linear.

What happens to the total spring constant of springs in series and parallel?

In parallel the stiffnesses add, k = k1 + k2. In series the reciprocals add, 1/k = 1/k1 + 1/k2. For 25 N/m and 75 N/m, parallel gives 100 N/m and series gives 18.75 N/m.

What is the elastic limit of a spring?

The elastic limit is the largest stretch from which the spring still returns to its original length. Beyond it the spring is permanently deformed, and the formula U = 1/2 k x^2 no longer describes it. Stay well inside the range given by the manufacturer.

Does Hooke's law work for a rubber band?

Only for small stretches. A rubber band is non-linear, so its force is not proportional to its stretch over a large range, and it also loses energy as heat on each cycle. Treat the 1/2 k x^2 result as a rough estimate for rubber.