Toolbox

Compression spring calculator

You need a coil spring for a force and a travel, or you have a spring's dimensions and want its rate, the stress in the wire, and whether it will go solid or buckle. The tool loads with a worked example filled in. Replace every value marked as an example with your own.

More calculators in the Toolbox

Spring rate

k = G d⁴ / (8 D³ Na). k is the rate (force per unit of deflection), G the shear modulus of the wire, d the wire diameter, D the mean coil diameter (the outside diameter less one wire, or the inside diameter plus one) and Na the number of active coils. The deflection under a load F is y = F / k.

Worked example: d 2 mm, D 20 mm, 10 active coils, squared and ground ends, free length 60 mm, G 79.3 GPa (example value). The rate is 79 300 × 2⁴ / (8 × 20³ × 10) = 1.98 N/mm. Under 50 N the spring deflects 25.2 mm, so its working length is 34.8 mm.

Shear stress and the curvature factor

τ = K × 8 F D / (π d³), with the spring index C = D / d. The tool reports K = (4C + 2) / (4C − 3), the Bergsträsser factor, and shows the Wahl factor (4C − 1) / (4C − 4) + 0.615 / C beside it. Both factors add two things to the basic torsion stress: the direct shear in the wire, and the extra stress on the inside of each coil from its curvature. They agree within about 1% at usual spring indexes.

In the worked example C = 10, K = 1.135 (Wahl 1.145), and the stress at 50 N is 361 MPa.

Most springs have an index between 4 and 12 (as listed by Toolgrit and Open Exam Prep). Toolgrit's guide gives the reasons: below 4 the wire is bent so tightly that it is hard to coil; above 12 the coils are loose, and the spring tangles and buckles easily.

Active coils, total coils and solid height

Total coils: every coil, counted tip to tip of the wire. Active coils: the ones that deflect. End-type relations as listed by AmesWeb and MW Components:

End typeTotal coils NtSolid lengthPitch
PlainNad (Nt + 1)(L0 − d) / Na
Plain and groundNa + 1d NtL0 / (Na + 1)
Squared (closed)Na + 2d (Nt + 1)(L0 − 3d) / Na
Squared and groundNa + 2d Nt(L0 − 2d) / Na

In the worked example the spring has 12 total coils, a solid length of 24 mm and a pitch of 5.6 mm. It can deflect 36 mm before it goes solid, which takes 71.4 N and stresses the wire to 516 MPa. If the spring can be pressed solid in use, this is the stress the wire will see. At 50 N, 10.8 mm of travel is left to solid, 29.9% of the deflection to solid.

Will the spring buckle?

A spring is stable at any deflection when its free length L0 < (π D / α) × √(2 (E − G) / (2 G + E)), where E is Young's modulus and α depends on how the ends are held: 0.5 between flat parallel surfaces, 0.707 with one end flat and one pivoted, and 1 with both ends pivoted. Buckling end constants as listed by AmesWeb and Open Exam Prep. A longer spring may buckle: run it on a rod or in a bore. With E 206 GPa (example value), the worked example's limit between flat parallel surfaces is 105 mm (5.24 D), so the 60 mm spring is stable.

Putting a spring on a drawing

Rapid Datum doesn't draw springs. The tool gives the values to give your spring maker: wire diameter, outside diameter (or inside, when the spring works in a bore), free length, total coils, active coils, end type, the load at a stated length (for the worked example, 50 N AT 34.8 LENGTH), the rate as a reference value, and the solid length as a maximum. Spring makers usually test a spring by its load at a stated length, so give that and its tolerance, with the rate as a reference. The tolerances on every value come from your spring maker.

Limits

First numbers for a round-wire helical compression spring, from elastic formulas. The tool doesn't check the wire's strength: that depends on the material, the wire size and how the spring is made, and comes from the wire or spring maker. It leaves out fatigue, surge, set, and manufacturing tolerances, which are wide for springs. It doesn't calculate how much the outside diameter grows under load. For a spring that matters, give these numbers to a spring maker as a starting point.

Standard helical spring formulas, in the form given in machine design textbooks such as Shigley's Mechanical Engineering Design.

Questions

How do you calculate the rate of a compression spring?

k = G d⁴ / (8 D³ Na), with G the wire's shear modulus, d the wire diameter, D the mean coil diameter and Na the active coils.

What is the difference between total and active coils?

Total coils are every coil, counted tip to tip of the wire. Active coils are the ones that deflect; the end coils of a squared spring do not.

Does the calculator save my inputs?

No. Copy link puts the inputs in the address after the #, so the link reopens them. Nothing is stored on our server, and no account or email is needed.