Home · Science · Mechanics · Elastic Potential Energy Calculator
Elastic Potential Energy Calculator
The energy stored in a stretched or compressed spring from its spring constant and displacement, with the spring force at that displacement.
What this calculator does
The energy stored in a stretched or compressed spring from its spring constant and displacement, with the spring force at that displacement. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.
The formula and method
Displacement x is measured from the unstretched position; stretching and compressing store the same energy for the same |x|.
The formula assumes Hooke's law holds, i.e. the spring stays within its elastic limit.
The energy is the area under the force-extension graph, a triangle of base x and height k·x.
Worked example
With the example inputs this page opens with (spring constant (n/m) 200, displacement (m) 0.15), the result is 2.25 J — elastic potential energy. Computed from the inputs on this page with the formula below — change any figure and every result updates.
Quick reference
| Spring constant (N/m) | Elastic potential energy |
|---|---|
| 100 | 1.13 J |
| 160 | 1.80 J |
| 200 | 2.25 J |
| 250 | 2.81 J |
| 300 | 3.38 J |
| 400 | 4.50 J |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
Why does the energy go as x² and not x?
The force grows as the spring stretches, so later millimetres cost more work than earlier ones. Averaging the force (half its final value) over the displacement gives ½·k·x².
Is the energy the same for compression as for extension?
Yes, in the ideal Hookean model x enters squared, so a spring compressed by 10 cm stores exactly what it stores stretched by 10 cm, provided it does not buckle or bottom out.
How does the Elastic Potential Energy Calculator work?
The energy stored in a stretched or compressed spring from its spring constant and displacement, with the spring force at that displacement. Spring constant (N/m) · Displacement (m) → Elastic potential energy (J). The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Elastic Potential Energy Calculator need?
Spring constant (N/m) · Displacement (m) → Elastic potential energy (J). Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.