Coil Spring Design Calculator Back
Mechanical Design Tool

Coil Spring Design Calculator

Adjust wire diameter, coil diameter, and number of turns to instantly evaluate spring rate, max shear stress, Wahl factor, natural frequency, and buckling risk. Load-deflection and fatigue S-N charts update in real time.

Parameters
Wire diameter d
mm
Mean coil diameter D
mm
Active coils n
Max load F
N
Free length L₀
mm
Material
End condition
Results
 Stress: Safe
 Buckling: Safe
Results
Spring rate k (N/mm)
Max shear stress τ (MPa)
Spring index C = D/d
Wahl factor K_w
Natural freq. f_n (Hz)
Solid length L_s (mm)
Spring Compression Animation (F=kx)
kN/mm FN xmm τMPa Lmm
Load–Displacement Curve
S-N Curve
Theory & Key Formulas

$k = \dfrac{Gd^4}{8D^3n}$

$\tau = \dfrac{8FD}{\pi d^3}K_w$

$K_w = \dfrac{4C-1}{4C-4}+\dfrac{0.615}{C}$

What is Coil Spring Design?

🙋
What exactly is the "spring rate" that this calculator finds? I see it changes when I adjust the wire diameter and coil count.
🎓
Basically, the spring rate (k) is the stiffness. It tells you how much force is needed to compress the spring by a certain distance. In practice, a high spring rate means a very stiff spring. The formula is $k = \frac{Gd^4}{8D^3n}$. Try moving the "Wire Diameter" slider—because it's raised to the 4th power, even a small increase makes the spring dramatically stiffer!
🙋
Wait, really? So if a thicker wire makes it stiffer, why would I ever use more coils? Doesn't that just make the spring longer and weaker?
🎓
Great observation! Yes, increasing the "Active Coils" (n) in the denominator reduces the spring rate, making it softer. A common case is in car suspensions: you need a soft spring for a comfortable ride, which often means many coils. Try it in the simulator—increase the coil count and watch the spring rate drop, even if the wire is thick.
🙋
Okay, I see the stress value too. What's the big deal with the "Wahl Factor" (K_w)? Why isn't the stress just force divided by area?
🎓
In practice, the stress in a bent wire isn't uniform. The Wahl factor corrects for stress concentration because the inside of the coil curve is more stressed than the outside. For instance, in a valve spring for an engine, if the spring index (C = D/d) is too small, the stress concentration is huge and the spring can fail early. Change the "Mean Coil Diameter" to be just slightly bigger than the wire diameter and watch the Wahl factor—and the shear stress—skyrocket.

Physical Model & Key Equations

The fundamental equation governing spring stiffness is derived from the torsion of a straight rod, applied to a helical geometry. It relates the force applied to the resulting deflection.

$$k = \dfrac{G \cdot d^4}{8 \cdot D^3 \cdot n}$$

Where:
k = Spring Rate (N/mm or lb/in)
G = Shear Modulus of the material (e.g., ~79.3 GPa for steel)
d = Wire Diameter
D = Mean Coil Diameter
n = Number of Active Coils

The maximum shear stress inside the spring wire is not simple torsion stress. The Wahl factor accounts for stress concentration due to curvature and direct shear, which is critical for fatigue life prediction.

$$\tau_{max}= \dfrac{8 \cdot F \cdot D}{\pi \cdot d^3}\cdot K_w \quad \text{where}\quad K_w = \dfrac{4C-1}{4C-4}+\dfrac{0.615}{C}, \quad C=\frac{D}{d}$$

Where:
τ_max = Maximum Shear Stress
F = Applied Load
K_w = Wahl Correction Factor
C = Spring Index. A lower index (a "tight" coil) means higher stress concentration.

Real-World Applications

Automotive Suspension: Coil springs absorb road impacts. Designers balance stiffness (spring rate) for handling vs. comfort and ensure stress levels are safe under maximum bump loads. The material choice and spring index are critical for durability over millions of cycles.

Industrial Valves & Actuators: Springs provide the closing force in safety and control valves. A consistent spring rate is vital for precise operation, and high-cycle fatigue resistance is paramount, making stress calculation with the Wahl factor essential.

Consumer Products: From retractable pens to mattress cores, springs provide motion and support. In these high-volume applications, optimizing the wire diameter and coil count directly impacts material cost and assembly.

Aerospace Landing Gear: Springs must absorb immense energy during landing while being as light as possible. This requires sophisticated design using high-strength materials and precise calculation of stress and natural frequency to avoid resonance.

Common Misconceptions and Points to Note

First, the idea that "as long as the spring constant is correct, it's fine" is dangerous. While it's certainly important functionally, overlooking factors like "buckling" can cause your designed spring to tip over sideways inside the actual housing, rendering it completely non-functional. The risk increases sharply, especially when the free length exceeds about four times the mean coil diameter. For example, with D=10mm and L=45mm it might be okay, but simply changing to L=50mm could trigger a "Buckling Risk" warning. If space constraints force you to use a slender spring, countermeasures like guide pins or cups are essential.

Next, a misconception about "strength" in material selection. Choosing a high-strength material (e.g., piano wire) does not solve all problems. While its static strength is high, stainless steel offers superior durability in corrosive environments. Also note that the fatigue S-N chart in this simulator is a simplified spring-steel estimate based mainly on wire diameter and the current stress point; changing Material changes G, so it affects spring rate and natural frequency, not a material-specific S-N curve. Even for high-strength materials, fatigue strength can vary greatly depending on surface condition and manufacturing process, so you should verify catalog values separately.

Finally, miscounting the "number of active coils". The number of active coils is the total coils minus the seating portions at both ends (approximately 0.75 to 1 coil each). Getting this wrong leads to a significant discrepancy between the calculated and actual spring constant. For instance, a spring with 10 total coils and ground ends will have about 8 active coils. A difference of just 1 coil here can change the stiffness by approximately 12%.

How to Use

  1. Enter wire diameter d, mean coil diameter D, active coil count n, and load F.
  2. Keep the spring index C=D/d in the practical 4–12 range where possible.
  3. Changing values automatically updates spring rate k, maximum shear stress τ, Wahl factor K_w, natural frequency f_n, and solid length L_s.
  4. Use buckling ratio L₀/D, allowable stress ratio, the load-deflection chart, and the estimated S-N chart for design checks.

Worked Example

For d=2.5 mm, mean coil diameter D=20 mm, active coils n=8, load F=100 N, and spring steel with G=81 GPa, the formulas give k≈6.18 N/mm, spring index C=8, Wahl factor K_w=1.184, maximum shear stress τ≈386 MPa, natural frequency f_n≈282 Hz, and solid length L_s=25 mm. With the UI spring-steel preset G=80 GPa, k≈6.10 N/mm and f_n≈281 Hz.

Practical Notes

  1. For high-cycle fatigue (>10⁵ cycles), limit shear stress to 40–50% of ultimate tensile strength; preset-shot-peened springs tolerate 550–650 MPa
  2. Spring index C below 4 causes manufacturing difficulty; above 12 increases buckling risk in unsupported compression designs
  3. Natural frequency >200 Hz minimizes resonance with typical motor/pump operating frequencies (50–60 Hz industrial baseline)
  4. Solid length calculation includes one dead coil at each end per ISO 2162-1; compare against available assembly space in housings