Hooke’s Law Formula
Hooke’s law for a spring: F = k x. Enter the spring rate and the extension to get the force and the stored energy, 1/2 k x^2.
How it works
Hooke’s law says the force a spring exerts is proportional to how far it is stretched or compressed. The same linear relation holds for materials in the elastic range: stress is proportional to strain, with Young’s modulus as the constant.
F = k × x
U = ½ k x²
(material form: σ = E × ε)
| Symbol | Meaning | SI unit |
|---|---|---|
| F | Force exerted by the spring (opposes the displacement) | N |
| k | Spring rate (stiffness) | N/m |
| x | Extension or compression from the free length | m |
| U | Elastic energy stored | J |
| σ, ε, E | Stress, strain and Young’s modulus (material form) | Pa, –, Pa |
Springs in parallel add their rates (k = k₁ + k₂); springs in series combine as 1 ÷ k = 1 ÷ k₁ + 1 ÷ k₂. The law holds only up to the elastic limit: a spring stretched too far takes a permanent set, and a coil spring also has a solid height and a minimum free length. For a bar in tension the equivalent spring rate is k = E A ÷ L.
Related: Machine Design guide (springs), Spring Design Calculator, Poisson’s ratio. All formulas are listed in the Formulas library.
Worked example
A spring with a rate of 50 N/mm (50,000 N/m) is compressed 12 mm: F = 50 × 12 = 600 N, and the stored energy is ½ × 50,000 × 0.012² = 3.60 J.
Doubling the compression doubles the force but quadruples the energy (14.4 J).
Things to know
The force is always opposite to the displacement, which is why the textbook form is F = −k x.
Real springs have a preload and a limited linear range. Check the manufacturer’s load at the working length.
The energy stored is the area under the force-extension line, not F × x (which is twice as much).
Common questions
What is Hooke’s law?
The force in a spring is proportional to its extension: F = k x. For materials, stress is proportional to strain (σ = E ε) within the elastic limit.
What is the spring constant?
The force per unit extension, in N/m. A stiffer spring has a larger value. It is also called the spring rate.
How do you find the energy stored in a spring?
U = ½ k x², the area under the force-extension graph.
When does Hooke’s law fail?
Beyond the elastic limit, when the material yields, or when a coil spring goes solid or coils touch. Rubber and many plastics are nonlinear even at small strains.
Sources
- Halliday, D. et al., Fundamentals of Physics, Wiley: Hooke’s law.
- Shigley, J. E. et al., Mechanical Engineering Design, McGraw-Hill: helical spring rate.
Last reviewed: November 10, 2026
