Press down on the suspension of a parked car and it sinks a centimetre or two, then springs back. The amount it moves per unit of force is fixed long before the car leaves the factory — it was decided by a coil of wire wound to a specific diameter, with a specific number of turns. Change any one of those numbers and the ride changes with it.
That ratio of force to deflection is the spring constant, and for a helical spring it follows from geometry and one material property in a clean, closed-form way. This article shows where the formula comes from, works a full example, and points out the places where intuition tends to mislead.
Why this calculation matters
A spring is rarely the headline component of a machine, but it quietly sets the behaviour of everything around it. Valve springs decide how fast an engine can rev before the valves float. Suspension springs fix ride height and natural frequency. Return springs in switches, latches, and clutches govern how a mechanism feels and how reliably it resets. In each case the engineer is really specifying one number: how many newtons it takes to move the spring one millimetre.
Get that number wrong and the consequences are immediate. Too stiff, and the mechanism is harsh or refuses to seat. Too soft, and it sags under load or bottoms out. Because the spring constant feeds directly into natural frequency, a stiffness error also shifts resonance — which can turn a quiet assembly into a buzzing one. Being able to predict stiffness from geometry, rather than measuring it after the fact, is what lets you design a spring instead of discovering one.
The core formula
A helical compression spring is a length of round wire wound into a coil. When you push axially on it, the wire itself is loaded almost entirely in torsion — each cross-section twists slightly. Summing that twist over all the active coils gives the axial deflection, and the ratio of force to deflection is the spring rate:
k = G * d^4 / (8 * D^3 * n)
Here k is the spring constant (N/m), G is the shear modulus of the wire material (Pa), d is the wire diameter, D is the mean coil diameter, and n is the number of active coils. Mean coil diameter means measured to the centreline of the wire, not the outside or inside of the coil.
The exponents are the heart of the formula. Stiffness scales with the fourth power of wire diameter, so a small change in wire gauge has an outsized effect — increasing d by 20 percent roughly doubles k. It scales inversely with the cube of coil diameter, so a wider coil is dramatically softer. And it is inversely proportional to coil count, so adding turns is the gentle, linear way to soften a spring.
Once k is known, the force-deflection relationship is simply Hooke's law:
F = k * x or x = F / k
A useful companion quantity is the spring index C = D/d, the ratio of coil diameter to wire diameter. Indices in roughly the 4 to 12 range are common; very low indices make winding difficult and stress concentrations severe, while very high indices give springs that tangle and buckle.
A worked example
Take a steel helical compression spring with shear modulus G = 79 GPa. The wire diameter is d = 3 mm, the mean coil diameter is D = 20 mm, and it has n = 8 active coils.
Step 1 — assemble the geometry in SI units.
d = 0.003 m
D = 0.020 m
n = 8
G = 79e9 Pa
Step 2 — compute the spring constant.
k = G * d^4 / (8 * D^3 * n)
k = 79e9 * (0.003)^4 / (8 * (0.020)^3 * 8)
k = 79e9 * 8.1e-11 / (5.12e-4)
k = 12,498 N/m
So the spring rate is about 12.5 N/mm — it takes roughly 12.5 newtons to compress this spring by one millimetre.
Step 3 — find the deflection under a load.
Apply a force of F = 50 N and use Hooke's law:
x = F / k = 50 / 12,498 = 0.0040 m = 4.0 mm
A 50 N load — about the weight of a 5 kg mass — compresses this spring by 4.0 mm. The spring index here is C = D/d = 20/3 = 6.7, comfortably inside the practical range, so the geometry is sensible as well as the result.
Common mistakes
Mixing up mean, outer, and inner coil diameter. The formula needs the mean diameter, measured to the wire centreline. Using the outside diameter instead inflates D and makes the spring look softer than it is. For a 3 mm wire on a 20 mm mean coil, the outside diameter is 23 mm — a 15 percent error in D becomes a much larger error in k because of the cube.
Counting the wrong number of coils. Only the active coils flex. The end coils that are ground flat or squared to seat the spring do not contribute, so total coils and active coils differ. Using the total count overestimates n and underestimates stiffness.
Forgetting the fourth-power sensitivity to wire diameter. Wire is made to standard gauges with real tolerances. Because k depends on d to the fourth power, a wire that is a few percent under nominal can shift the spring rate by ten percent or more. This is often the largest single source of scatter in a production batch.
Assuming the rate stays linear all the way down. The k = G d^4 / (8 D^3 n) model holds while the coils are free to move. As the spring approaches its solid length — coils touching — it stiffens sharply and then stops. Always check that your working deflection leaves clearance before solid.
Using a tension-spring formula for a torsion spring. This relationship is for axial compression or extension springs. Torsion springs, which are loaded by a moment about the coil axis, obey a different stiffness law based on bending of the wire. Match the formula to the load case.
Try the interactive NovaSolver calculator
Working the fourth powers and cubes by hand is fine once, but spring design is iterative — you nudge the wire gauge, adjust the coil count, and watch the rate move. The Spring Constant Calculator on NovaSolver does that live: choose a helical coil or leaf spring, pick a material, set wire diameter, mean coil diameter, and active coil count, and it returns the spring rate, the spring index C = D/d, the solid length, and the natural frequency, with force-deflection and strain-energy charts that update as you change the inputs.
Related calculators
- Coil Spring Design Calculator — when you need to size a spring to a target load and deflection rather than just check an existing one.
- Coil Spring Fatigue Design Calculator — for springs that cycle, where the stress range and fatigue life matter as much as the rate.
- Spring-Dashpot Viscoelastic Model Simulator — to see how a spring behaves when paired with a damper in a dynamic system.
You can browse the full set in the mechanical engineering tools hub.
Closing note
The spring constant of a helical spring is one of the most satisfying results in machine design: four numbers go in, one number comes out, and it controls the whole force-deflection curve. Keep the exponents in mind — fourth power on wire diameter, inverse cube on coil diameter, inverse on coil count — and you can reason about a design before you cut a single coil. Measure to the wire centreline, count only the active turns, leave room before solid, and the predicted stiffness will match the spring you actually wind.
Top comments (0)