Compression Spring Calculator (Metric)
Estimate spring rate, deflection, shear stress, solid height, and related checks using standard helical compression spring formulas.
How this compression spring calculator helps
A compression spring stores energy when pushed and releases that energy when the load is removed. Designers use these springs in valves, suspension systems, tooling, consumer products, and countless machines. This calculator gives you a quick first-pass estimate of key performance values before moving to detailed CAD/FEA work or full lab testing.
By entering basic geometry and load, you can estimate:
- Spring rate (stiffness, N/mm)
- Deflection at a given load (mm)
- Maximum corrected shear stress (MPa)
- Solid height and remaining clearance to bind
- Stored energy under load
Inputs explained
Wire diameter (d)
This is the thickness of the spring wire. Increasing wire diameter strongly increases spring rate and decreases deflection. It also reduces stress for a given load.
Mean coil diameter (D)
Mean diameter is measured from the centerline of the wire on one side to the centerline on the opposite side. A larger mean diameter makes the spring softer and generally increases stress.
Active coils (Na)
Active coils are the turns that actually flex. More active coils means a lower spring rate and larger deflection for the same load.
Inactive/end coils (Ne)
End condition changes total coil count and solid height. Squared ends often add about two inactive coils in practical designs.
Applied load (F)
The force pressing the spring. From this value, deflection and stress are computed.
Shear modulus (G)
Material property controlling torsional stiffness. For many spring steels, a typical value is around 79–82 GPa. Use certified material values whenever possible.
Free length (L0)
Unloaded length of the spring. Including this value allows a check against coil bind by comparing working deflection with available travel.
Formulas used in this calculator
- Spring index:
C = D / d - Spring rate:
k = (G d⁴) / (8 D³ Na) - Deflection:
δ = F / k - Wahl correction factor:
Kw = (4C - 1)/(4C - 4) + 0.615/C - Corrected max shear stress:
τ = Kw · (8 F D) / (π d³) - Total coils:
Nt = Na + Ne - Solid height:
Ls = Nt · d - Stored energy:
U = 0.5 · k · δ²
Design guidelines and practical checks
1) Keep spring index in a manufacturable range
A very low spring index can make coiling difficult and increase stress concentration; a very high index can reduce stability. A common practical range is roughly C = 4 to 12, depending on process and material.
2) Avoid coil bind in service
Ensure the spring does not fully close under maximum load. A design margin between working length and solid height is usually needed, especially in dynamic applications.
3) Verify stress against material limits
The calculator gives corrected shear stress, but real design still requires checking fatigue life, presetting effects, temperature, corrosion, and surface finish.
4) Include buckling and guidance checks
Long, slender compression springs can buckle. If the free length-to-diameter ratio is high, a guide rod or sleeve may be required.
Common mistakes when sizing compression springs
- Using outer diameter in place of mean diameter without conversion
- Forgetting end-coil effects when estimating solid height
- Ignoring operating temperature impacts on material behavior
- Designing to static stress only and skipping fatigue checks
- Assuming every spring material has the same shear modulus
Quick FAQ
Is this enough for final production release?
No. It is a strong early-stage tool, but final spring selection should include supplier data, tolerance stackups, endurance testing, and application-specific safety factors.
Can I use this for non-metal springs?
Only with caution. If material behavior is non-linear (many polymers/elastomers), these linear formulas may not be accurate.
What units are used?
Inputs are metric: mm, N, and GPa. Output stress is shown in MPa and spring rate in N/mm.
Engineering note: Values from this calculator are educational and preliminary. Always validate against standards and physical testing for mission-critical designs.