Hookes Law Spring Calculator
Solves force, spring rate or displacement for a linear spring (F = F₀ + kx), with restoring-force direction, stored energy and an optional preload.
Inputs
Force, spring rate or displacement for a linear spring, with optional preload, restoring-force direction and stored energy.
Enter the values and press Calculate.
Or load an example to see a worked result.
How to use this calculator
- Choose what to solve: the load from stiffness and displacement, the stiffness from a load and displacement, or the displacement for a load.
- Enter the known values with their units. Displacement x is measured from the spring's free (unstretched) length — positive for extension, negative for compression.
- Optionally add a preload F₀ and your own linear-range limit from the spring's data sheet under More options.
How it works
A linear spring follows F = F₀ + k·x, with k > 0 the spring rate and F₀ any preload (initial tension) at x = 0. The inverses are x = (F − F₀) ÷ k and k = (F − F₀) ÷ x; a zero displacement cannot give a stiffness.
The applied load and the spring's restoring force act in opposite directions: the restoring force on the load is −F. The elastic energy stored over x is U = ½·k·x² in consistent SI units. With a preload, the extra work F₀·x is shown separately rather than hidden in U.
This is the linear-elastic model only. Coil bind, buckling, set, fatigue and hysteresis are outside it, and the only range check is a limit you enter — the tool does not predict spring failure.
Worked example
k = 20 N/mm, x = 5 mm. F = 20 N/mm × 5 mm = 100 N; the restoring force on the load is −100 N. Stored energy U = ½ × 20,000 N/m × (0.005 m)² = 0.25 J. With a 10 N preload the load becomes 110 N; U is still 0.25 J and the work including the preload is 10 × 0.005 + 0.25 = 0.30 J.
Frequently asked questions
Why is restoring force negative?
Because it opposes the displacement. Stretch a spring to the right and it pulls back to the left: F_restore = −k·x. The applied load you must supply has the same size but the opposite direction, which is why the calculator reports the two separately.
Does this work for nonlinear springs?
No. Progressive, conical and variable-pitch springs, elastomers and springs near coil bind do not have a single constant rate. Use the rate only over the range your supplier states it holds — enter that limit to have the result checked against it.
How is preload handled?
As a constant force F₀ already present at x = 0, so F = F₀ + k·x. Solving for k or x subtracts the preload first. The stored-energy figure ½kx² excludes the preload's work, which is shown on its own line.
Related tools
- Elastic Constants Calculator
- Young's Modulus Calculator
- Stress & Strain Calculator
- Factor of Safety Calculator
- Spring Rate Calculator
- Beam Shear, Moment & Deflection Calculator
Explore more in Structural, Materials, Mechanical & Workshop.
Cite this tool
Zerdly. (2026). Hookes Law Spring Calculator. Retrieved from https://www.zerdly.com/tools/hookes-law-spring-calculator/
Tip: Enter any known values to calculate the remaining results.
Designed to run locally in your browser. Tool inputs are not intentionally stored by Zerdly unless stated otherwise.



