Hooke's Law Calculator
F = kx, and the energy that goes with it.
Work out Hooke's Law. F = kx, and the energy that goes with it. Names the counter-intuitive bit rather than hiding it.
Restoring force
10 N
0.25 J stored in the spring
Force grows linearly with stretch but energy grows with the square, which is why the second centimetre of stretch stores three times as much energy as the first. Stretch a spring twice as far and you store four times the energy, not twice. The minus sign in F = −kx says the force opposes the displacement — it always points back towards rest. It is dropped here because the magnitude is what gets measured. Hooke's law only holds up to the elastic limit. Past that the spring deforms permanently and the linear relationship stops applying entirely, which is why a stretched-out spring never quite returns.
How the Hooke's Law Calculator works
Enter a spring constant and a displacement for the restoring force and the energy stored. Force grows linearly with stretch but energy grows with the square, which is why the second centimetre stores three times as much as the first.
Also known as: spring force calculator · spring constant calculator · elastic potential energy calculator · f = kx calculator
Frequently asked questions
What is Hooke's law?
F = kx — the restoring force of a spring is proportional to how far it is displaced from rest. The constant k is the stiffness, in newtons per metre.
How much energy does a stretched spring store?
E = ½kx². Because of the square, stretching twice as far stores four times the energy, not twice.
Why is there a minus sign in F = −kx?
It says the force opposes the displacement — it always points back towards rest. The magnitude is what gets measured, so the sign is usually dropped in practice.
When does Hooke's law stop working?
At the elastic limit. Past that the spring deforms permanently and the linear relationship fails, which is why an over-stretched spring never quite returns to its original length.
Put this calculator on your own site
Free to use, on any site, commercial or not. Paste this where you want it to appear. It is a plain iframe, so it works in WordPress, Squarespace, Wix, Webflow, Ghost and anything else that accepts HTML.
<iframe src="https://www.thecalclibrary.com/embed/hookes-law-calculator" width="100%" height="640" style="border:1px solid #e2e8f0;border-radius:12px" loading="lazy" title="Hooke's Law Calculator"></iframe>
<p style="font:13px/1.5 system-ui,sans-serif;margin:6px 0 0;color:#64748b">Powered by <a href="https://www.thecalclibrary.com/hookes-law-calculator" style="color:#64748b">Hooke's Law Calculator</a> from The Calc Library</p>The only condition is that the credit line below the frame stays in place. That one line is what pays for the tool being free — it is how anyone else finds it.
Related calculators
Simple Harmonic Motion Calculator
Period, frequency and energy for a mass on a spring.
OpenPotential Energy Calculator
mgh, and how little food energy lifting actually costs.
OpenForce Calculator
F = ma, in newtons, kilograms-force and pounds-force.
Open