Stiffness • Shear Stress • Wahl Factor — Compression Spring • Simulate • Explore • Practice • Quiz
A helical compression spring is one of the most widely used mechanical components in engineering. Found in everything from ballpoint pens to automotive suspension systems, these springs store elastic energy when compressed and release it when the load is removed. Proper spring design requires balancing multiple parameters: wire diameter, coil diameter, number of active turns, material selection, and the applied force. This calculator provides a comprehensive toolset for analysing helical compression springs according to standard mechanical engineering principles.
The spring rate or stiffness (k) defines how much force is needed per unit deflection. For a helical compression spring, it is calculated as k = Gd4 / (8D3n), where G is the shear modulus of the wire material, d is the wire diameter, D is the mean coil diameter, and n is the number of active coils. A higher wire diameter dramatically increases stiffness (fourth power), while a larger coil diameter decreases it (inverse cube). Engineers select the spring rate to match the required load-deflection characteristics of their application.
The Wahl correction factor (Kw) accounts for the curvature effect and direct shear in helical springs. It is given by Kw = (4C − 1) / (4C − 4) + 0.615 / C, where C = D/d is the spring index. The maximum shear stress on the wire is then τ = Kw × 8FD / (πd3). Without the Wahl factor, the stress calculation would underestimate the actual stress on the inner surface of the coil, potentially leading to premature failure. A spring index between 4 and 12 is generally recommended; values below 4 are difficult to manufacture, while values above 12 tend to tangle.
The deflection (δ) under load equals F/k, or equivalently 8FD3n / (Gd4). The free length is the unloaded length of the spring, typically calculated as (n + 2) × d + n × gap, where the extra 2 turns are inactive end coils (for squared-and-ground ends). The solid length is the minimum possible length when all coils are in contact: Ls = (n + 2) × d. The spring must be designed so that the working deflection does not bring it to solid length during normal operation, maintaining adequate clearance.
The three most common spring materials are spring steel (G ≈ 80 GPa, yield shear ≈ 600 MPa), stainless steel (G ≈ 69 GPa, yield shear ≈ 500 MPa), and phosphor bronze (G ≈ 41 GPa, yield shear ≈ 300 MPa). The safety factor is the ratio of the material's yield shear stress to the calculated maximum shear stress. A safety factor of at least 1.2 to 1.5 is recommended for static applications, and 2.0 or higher for fatigue-loaded springs. This simulator lets you compare materials instantly by switching the material pill.
In Simulate mode, adjust the wire diameter, coil diameter, active turns, and applied force using sliders, and watch the spring animate with real-time readouts for stiffness, stress, deflection, spring index, Wahl factor, and safety factor. Use presets for common configurations like Light Duty, Heavy Duty, Valve Spring, and Pen Spring. Switch to Explore mode to study 12 spring concepts across Spring Types, Key Formulas, and Material Properties with worked examples. Practice mode generates random calculation problems, and Quiz tests your knowledge with 5 questions per session.