| Energy | Value |
|---|---|
| Joules (J) | 0.5625 |
| Millijoules (mJ) | 562.5 |
| Kilojoules (kJ) | 0.0005625 |
| Foot-pounds (ft·lbf) | 0.414879 |
| Calories (cal) | 0.134441 |
Show the math
U = ½ × k × x², with U in joules (J), k in newtons per meter (N/m) and x in meters (m). Rearranged: k = 2U / x² and |x| = √(2U / k). From a force: k = F / x and U = ½ × F × x.Stretching a spring from 0 to x, the force grows from 0 to kx, so the average force is ½kx. Work = average force × distance = ½kx × x = ½kx².x is the change from the rest length, not the total length. Stretching and compressing by the same amount store the same energy, because x is squared.Your inputs are already in N/m, m, N and J.U = ½ × 50 N/m × (0.15 m)² = 0.5625 JF = k × |x| = 50 N/m × 0.15 m = 7.5 N. It points back toward the rest length (F = -kx).Short answer: Elastic potential energy is U = ½ × k × x²: the spring constant k in newtons per meter, times the square of the stretch x in meters, halved. The result is in joules. A spring with k = 50 N/m stretched 0.15 m stores 0.5625 J of elastic potential energy.
Most wrong answers come from three slips: leaving the stretch in centimeters or inches, entering the spring’s total length instead of how far it moved from rest, and dropping the half or the square. Spring potential energy is the same quantity under another name. The calculator converts the units, solves for energy, k or stretch, and shows your numbers substituted so you can check your own working.
This article contains Amazon affiliate links. 33science earns a commission on qualifying purchases. See our affiliate disclosure.
How to use the elastic potential energy calculator
Elastic potential energy formula: U = ½kx²
The elastic potential energy formula, also called the spring energy formula, is U = ½ × k × x². U is the stored energy in joules, k is the spring constant in newtons per meter and x is the displacement from the rest length in meters (OpenStax University Physics). It applies to any object that obeys Hooke’s law, which means the force is proportional to the stretch.
Worked example: a spring with k = 50 N/m stretched 0.15 m. U = ½ × 50 N/m × (0.15 m)² = 0.5625 J, or 0.4149 ft-lbf. The spring pulls back with F = kx = 7.5 N at that stretch.
| Stretch | Stretch (m) | Energy (J) | Compared with the first row |
|---|---|---|---|
| 1 × | 0.15 | 0.5625 | 1 × |
| 2 × | 0.3 | 2.25 | 4 × |
| 3 × | 0.45 | 5.063 | 9 × |
Elastic potential energy is one of the forms of energy in our forms of energy guide. For energy stored by height instead of stretch, use the potential energy calculator.
Why the formula has a half
The force is not constant while you stretch a spring. It starts at zero and rises in a straight line to kx, so the average force is ½kx. Work is average force times distance, which gives ½kx × x = ½kx², and that work is the energy the spring stores (HyperPhysics).
You can check it with the worked example. The final force is 7.5 N, and half of that times 0.15 m is 0.5625 J. Using the full 7.5 N would overstate the energy by a factor of two.
Stretch, compression and the rest length
Compression uses the same formula as stretching. The stretch x is squared, so a negative displacement gives the same positive energy, and elastic potential energy is never negative. A spring squeezed 0.15 m stores 0.5625 J, the same as one stretched that far (OpenStax).
To get the energy between two stretches, subtract the two energies. Do not square the difference in stretch. With k = 4 N/cm (400 N/m), 0.18 J is stored at 3 cm and 0.72 J at 6 cm, so the second 3 cm costs 0.54 J, three times the first. For k = 200 N/m, going from 0.1 m to 0.3 m takes 8 J (9 J minus 1 J), not the 4 J that squaring the 0.2 m difference gives.
Units and converting to meters
The formula gives joules only when k is in newtons per meter and x is in meters. A stretch left in centimeters makes the answer 10,000 times too large, because the stretch is squared. The calculator converts for you and shows the SI values under the result (NIST).
| Input | Conversion | Example |
|---|---|---|
| Stretch in cm or mm | Divide by 100 or 1,000 | 6 cm is 0.06 m |
| Stretch in inches | Multiply by 0.0254 | 2 in is 0.0508 m |
| k in N/cm | Multiply by 100 | 4 N/cm is 400 N/m |
| k in lbf/in | Multiply by 175.1268 | 10 lbf/in is 1,751.3 N/m |
Pound-force per inch works without conversion if you stay in imperial units: k = 10 lbf/in stretched 2 in stores 20 in-lbf. That is 1.667 ft-lbf or 2.26 J (NIST).
| Energy unit | Joules per unit | The 0.15 m example |
|---|---|---|
| Joule (J) | 1 | 0.5625 J |
| Millijoule (mJ) | 0.001 | 562.5 mJ |
| Foot-pound (ft-lbf) | 1.355818 | 0.4149 ft-lbf |
| Calorie (cal) | 4.184 | 0.1344 cal |
Find the spring constant or the stretch from the energy
Rearrange U = ½kx² to solve for either unknown. The spring constant k measures stiffness: a larger k means more force, and more energy, for the same stretch.
| Solve for | Formula | Example |
|---|---|---|
| Energy U | U = ½ × k × x² | A spring with k = 50 N/m stretched 0.15 m stores 0.5625 J of elastic potential energy. |
| Spring constant k | k = 2U / x² | A spring that stores 1 J of elastic potential energy when stretched 0.1 m has a spring constant of k = 200 N/m. |
| Stretch x | x = √(2U / k) | A spring with k = 4 N/cm that stores 0.72 J of elastic potential energy is stretched or compressed 6 cm from its rest length. |
| k from force and stretch | k = F / x, then U = ½ × F × x | A spring that stretches 1.2 cm under a force of 784 N has k = 65,333 N/m and stores 4.704 J of elastic potential energy. |
Solving for k needs a stretch other than zero, and solving for x returns a magnitude: the spring can be stretched or compressed by that amount. With U = 1 J and k = 50 N/m the stretch is 0.2 m or 20 cm. The last row is a spring-and-weight case: an 80 kg person settles a car suspension by 1.2 cm, which is a whole-system value and not one coil spring (OpenStax College Physics).
Measure the spring constant of your own spring
Hang a known mass from the spring and measure how far it stretches from its unloaded length. Multiply the mass in kilograms by 9.8 to get the force in newtons, then k = F / x. A pull of 7.5 N that stretches a spring 0.15 m gives k = 50 N/m, and the calculator’s force-and-stretch mode does the division and adds the energy.

For a stiffer spring that a hanging mass barely moves, clamp one end and pull the other with a handheld luggage scale. Read the force, measure the stretch, and repeat at two or three stretches. A scale that reads in pounds is giving pound-force, which the calculator accepts directly; a scale that reads in kilograms needs the 9.8 multiplier. If k comes out about the same each time, the spring is following Hooke’s law.

When the formula stops being accurate
U = ½kx² holds only while force is proportional to stretch. Past the proportionality limit the graph of force against stretch curves, and past the elastic limit the spring stays deformed after release (OpenStax University Physics). No single stretch marks that limit for every spring, so the calculator shows a warning instead of a number. Check the maker’s rated extension if you have it.
Rubber bands and bungee cords are never linear, and they lose energy as heat on each cycle, so the formula gives a rough estimate for them (University of Maryland, Vernier). Real values of k run from a toy to a car suspension:
| Spring | k (N/m) | Stretch | Energy |
|---|---|---|---|
| Slinky (estimate) | 6 | 10 cm | 0.03 J |
| Homemade tubing bungee (one measurement) | 15.2 | 1 m | 7.6 J |
| Toy gun spring | 50 | 0.15 m | 0.5625 J |
| Car suspension, whole system | 65,300 | 1.2 cm | 4.704 J |
The table draws on University of Leicester for the Slinky, a BYU demonstration for the tubing and OpenStax for the toy gun and the car. More everyday cases are in our examples of elastic potential energy.
Where the stored energy goes when the spring is released
On release the stored energy becomes kinetic energy of whatever the spring pushes, and with no losses ½kx² = ½mv², so v = √(2U / m). The 2 g ball in a toy gun with k = 50 N/m, compressed 0.15 m, leaves at 23.7 m/s, about 85.38 km/h or 53.05 mph. Friction and the spring’s own mass make real speeds lower. Check the result against the kinetic energy calculator.

The stored energy does not depend on mass, only on k and x. Mass decides how fast the energy leaves: a spring with k = 300 N/m compressed 5 cm stores 0.375 J, and it launches a 0.226796 kg mass (half a pound) at 1.818 m/s. A heavier mass leaves slower and a lighter one faster, with the same energy.
Sources
- OpenStax. University Physics Volume 1, 8.1 Potential Energy of a System
- OpenStax. College Physics 2e, 16.1 Hooke’s Law: Stress and Strain Revisited
- OpenStax. University Physics Volume 1, 12.4 Elasticity and Plasticity
- Georgia State University. HyperPhysics, Elastic Potential Energy
- NIST. Guide for the Use of the SI, Appendix B.8 Conversion factors
- NIST. Guide for the Use of the SI, Appendix B.9 Conversion factors
- University of Leicester. Physics in Science and Technology, Slinky article
- Brigham Young University. Bungee cord demonstration
- University of Maryland. Physics Lecture-Demonstration Facility, Bungee cord
- Vernier. Elastic hysteresis of a rubber band
A coil spring that is twisted instead of stretched follows the same linear rule with torque and angle. The torsion spring calculator finds its rate, the torque at an angle and the bending stress.
A spring stores energy of 1/2 k x^2. To find k for a real coil spring from its wire and coil size, use the compression spring calculator.
Frequently asked questions
Elastic potential energy is the energy stored in a spring or other elastic object when it is stretched or compressed from its rest length. It is released as kinetic energy when the object springs back.
U = 1/2 x k x x^2, where k is the spring constant in newtons per meter and x is the stretch from the rest length in meters. The result is in joules, and k = 50 N/m stretched 0.15 m gives 0.5625 J.
Convert k to newtons per meter and the stretch to meters, square the stretch, multiply by k and halve it. A spring with k = 50 N/m stretched 0.15 m stores 0.5625 J.
The spring force rises from zero to kx as the spring stretches, so the average force is 1/2 kx. Work is average force times distance, which gives 1/2 kx^2.
Yes. The stretch is squared, so compressing a spring by a distance stores the same energy as stretching it by that distance, and the energy is never negative.
Use k = 2U / x^2. A spring that stores 1 J at a stretch of 0.1 m has k = 200 N/m.
No. The stored energy depends only on the spring constant and the stretch. Mass sets how fast the energy moves an object when the spring is released.
The formula gives joules only when k is in newtons per meter and x is in meters. Because x is squared, a stretch left in centimeters makes the answer 10,000 times too large.