# Compression Spring Design Calculator

URL: https://speedycalculator.com/calculators/physics/spring/
Last updated: 2026-11-08

> The compression spring design calculator finds the spring rate, active and total coils, solid height, free length and stress of a helical compression spring from the load, deflection, wire size, diameter and material.

## Inputs

- Working load F (N, kN, MN, mN, lbf, kgf, dyn)
- Deflection at that load (mm, cm, m, in, µm)
- Wire diameter d (mm, cm, m, in, µm)
- Outside diameter (mm, cm, m, in, µm)
- Material
- End type

## Results

- Spring rate k
- Mean coil diameter
- Spring index C
- Active coils needed
- Total coils
- Solid height
- Free length (15% clash allowance)
- Shear stress at the load

## Formula

```
k = F/Δx,  N_a = G·d⁴ / (8·D³·k),  C = D/d,  K_w = (4C − 1)/(4C − 4) + 0.615/C,  τ = K_w·8·F·D/(π·d³)
Free length ≈ solid height + Δx × 1.15 (15% clash allowance)
```

## Explanation

Designing a spring starts with what it must do: carry a load over a deflection. The wire diameter, coil diameter and material then fix how many coils it needs, how long it is and how highly it is stressed.

### How to use the Compression Spring Design Calculator

- **Working load F**
- **Deflection at that load**
- **Wire diameter d**
- **Outside diameter**
- **Material**
- **End type**

Results update as you type, every field has its own unit menu, and everything is calculated in your browser.

### How it works

Enter the working load and deflection, the wire diameter, the outside diameter, the material and the end type.

### Inputs explained

FieldWhat to enterWorking load FUnits: N, kN, MN, mN, lbf, kgf …Deflection at that loadUnits: mm, cm, m, in, µmWire diameter dUnits: mm, cm, m, in, µmOutside diameterUnits: mm, cm, m, in, µmMaterialChoose one: Music wire (ASTM A228), Hard-drawn steel (A227), Oil-tempered steel (A229), Chrome vanadium (A231) …End typeChoose one: Squared and ground ends, Squared (closed) ends, not ground, Plain ends, Plain and ground ends

### What each result means

- **Spring rate k** = [Working load F]÷[Deflection at that load]÷1000
- **Mean coil diameter** = [Outside diameter] - [Wire diameter d]
- **Spring index C** = ([Outside diameter] - [Wire diameter d])÷[Wire diameter d]
- **Active coils needed** = [Material]×[Wire diameter d]^4÷(8×([Outside diameter] - [Wire diameter d])^3×[Working load F]÷[Deflection at that load])
- **Shear stress at the load** = ((4×[Spring index C] - 1)÷(4×[Spring index C] - 4) + 0.615÷[Spring index C])×8×[Working load F]×([Outside diameter] - [Wire diameter d])÷(pi×[Wire diameter d]^3)

### Example values

How the main result changes when **Working load F** changes and everything else stays at the example values above:

Working load F (N)Active coils needed10015.53715010.3582007.7692506.2153005.1794003.884

## Worked example

Inputs: Working load F: 200 N; Deflection at that load: 20 mm; Wire diameter d: 3 mm; Outside diameter: 25 mm; Material: Music wire (ASTM A228); End type: Squared and ground ends.

Results: Spring rate k = 10 N/mm; Mean coil diameter = 22 mm; Spring index C = 7.333; **Active coils needed = 7.769**; Total coils = 9.769; Solid height = 29.3061 mm; Free length (15% clash allowance) = 52.3061 mm; Shear stress at the load = 498.9262 MPa.

## Key terms

- **Active coils**: Coils that deflect under load.

## FAQ

**What spring index is best?**
Between about 4 and 12. Lower is hard to coil, higher may buckle or tangle.

**What is the Wahl factor?**
A correction for curvature and direct shear in the wire.

**How many inactive coils do ends add?**
About 2 for squared ends.

**What stress is allowed?**
Roughly 40–50% of the wire's tensile strength for static loads.


## Sources

- [Shigley's Mechanical Engineering Design (Budynas & Nisbett): reference text](https://www.mheducation.com/highered/product/shigley-s-mechanical-engineering-design-budynas/M9780073398204.html)
- [The Engineering ToolBox](https://www.engineeringtoolbox.com/)
