A coil spring pushes back with a force that grows in proportion to its compression: F = k × x. The spring rate k depends on the wire diameter, the coil diameter, the number of active coils and the material. This calculator gives the rate of a helical compression spring, the force at a chosen deflection, the energy stored, and the stress in the wire so that you can check it against the material’s limits.
How the calculation works
- Spring rate k = G × d⁴ ÷ (8 × D³ × N)
- Force F = k × deflection
- Spring index C = D ÷ d
- Wahl factor Kw = (4C − 1) ÷ (4C − 4) + 0.615 ÷ C
- Shear stress τ = Kw × 8 × F × D ÷ (π × d³), and energy = ½ × k × x²
Example
A steel spring has a wire of 2 mm, a mean coil diameter of 20 mm and 8 active coils, with a shear modulus of 79.3 GPa. The rate is 2.478 N/mm (14.15 lbf/in). Compressed by 10 mm, it pushes with 24.78 N and stores 0.124 J. The spring index is 10, the Wahl factor is 1.145, and the shear stress in the wire is 180.6 MPa.
Where it is used
Suspensions, valves, pens, mattresses, switches and latches all use compression springs. Use the calculator to choose a wire and a coil count that give the force you need, to check that a spring does not exceed its stress limit at full compression, and to estimate the energy it stores. A hardened steel spring wire can often tolerate a stress of 40 to 50 percent of its tensile strength in static use.
Good to know
Compare the shear stress with the allowable value for the wire, at the largest deflection the spring will see, which is often when the coils touch (solid height). Springs in repeated use need a much lower stress to avoid fatigue. Halving the number of coils doubles the rate, and increasing the wire diameter by 20 percent doubles it. The formulas assume a straight spring that does not buckle, so long, thin springs need a guide or a rod.
Related tools
For the vibration of a mass on a spring, use the spring-mass calculator, and for a simple linear spring, Hooke’s law. The shaft torsion calculator uses the same shear modulus.