Compression Spring Design: A Practical Walkthrough
Short answer: Start with the load at two positions, not with wire diameter. From those two points you get the spring rate (N/mm), then derive active coils, free length, solid height and stress. A typical compression spring design iteration runs: define loads → calculate rate → size wire and mean diameter → check stress and solid height → set tolerances. BQUQ machines and winds custom compression springs in a Dongguan ISO9001 factory, with CNC tolerances to ±0.005 mm on related hardware, four production lines under one roof, flexible MOQ, and quotes returned in 12 working hours. Most designs converge in two or three passes once you fix the two load points and the installed cavity.
Why does compression spring design start with two load points?
A compression spring is a force-versus-deflection device. If you cannot state the force it must produce at two different lengths, you are not designing a spring — you are guessing at one. Every other number in the design flows from those two points.
Typical inputs look like this:
- F1 at L1 — the preload force when the assembly is closed, e.g. 12 N at 22 mm.
- F2 at L2 — the working force at full travel, e.g. 38 N at 15 mm.
- Cavity limits — maximum outside diameter, minimum free length, and the solid height the housing can tolerate.
- Environment — temperature, moisture, cycling rate, and whether corrosion resistance matters.
From F1, F2, L1 and L2 the spring rate is simply:
k = (F2 − F1) / (L1 − L2)
In the example above, k = (38 − 12) / (22 − 15) = 26 / 7 ≈ 3.71 N/mm. That single number is the spine of the whole design. Everything else — wire diameter, coil count, free length — is chosen to deliver that rate inside the space you have.
The mistake that costs the most tooling time
The most common failure we see in incoming enquiries is a drawing that specifies free length and wire diameter but never states the working loads. A spring wound to those dimensions may sit perfectly on a bench and still be wrong in the assembly, because the load at installed height depends on the rate, not on the free length alone. If your drawing shows only geometry, add the two load points before you send it.
How do you calculate spring rate from wire diameter and coil count?
Once you know the target rate, the classic formula tells you which wire and coil geometry will deliver it:
k = G · d⁴ / (8 · D³ · n)
Where:
| Symbol | Meaning | Typical unit |
|---|---|---|
| G | Shear modulus of the wire material | N/mm² |
| d | Wire diameter | mm |
| D | Mean coil diameter (OD − d) | mm |
| n | Number of active coils | — |
For music wire and oil-tempered carbon steel, G is typically around 79,000–81,500 N/mm². For austenitic stainless such as 302 or 304, G is typically lower, around 69,000–72,000 N/mm², which is why a stainless spring of identical geometry is softer and needs slightly more wire or fewer active coils to hit the same rate.
Reading the formula like a designer
The exponents matter more than anything else on the page.
- d⁴ — wire diameter dominates. Going from 1.0 mm to 1.1 mm wire raises the rate by roughly 46%, not 10%. Small wire changes have large force consequences.
- D³ — mean diameter works in the opposite direction. A larger coil is much softer.
- n — active coils scale the rate linearly and inversely. Doubling active coils halves the rate.
This is why the practical design loop is: pick a wire diameter from the load you need, pick a mean diameter from the cavity you have, then solve for active coils. If the answer is a non-integer like 7.4, that is fine — springs are wound to fractions of a coil all the time.
End coils and total coils
Active coils are not total coils. Closed, squared, ground ends — the normal choice for compression springs that must sit flat — add two dead coils that contribute almost nothing to deflection. So:
total coils = active coils + 2 (for closed and ground ends)
If you are working from a stock spring catalogue that lists total coils, subtract two before using the rate formula. Getting this wrong is a reliable way to be 20–30% off on force.
What is solid height and why does it limit travel?
Solid height is the length of the spring when every coil touches. It is the hard floor of your design — the spring cannot compress past it without becoming a rigid tube and taking damage.
For closed and ground ends, a working approximation is:
solid height ≈ total coils × d
A more conservative shop figure adds a small allowance per coil for wire ovality and coating thickness, so many designers use solid height ≈ (total coils + 1) × d as a safety estimate.
The travel budget
Compare solid height against your minimum working length L2. The gap between them is your remaining travel margin. A useful rule of thumb is to keep the spring at least 15–20% away from solid at maximum deflection, and more than that if the spring cycles fast or carries a dynamic load. A spring that bottoms out under load will lose rate, take a set, and eventually fail at the end coils.
| Check | Typical target | Why |
|---|---|---|
| Deflection to solid | Keep 15–20% reserve | Avoid coil clash and set |
| Stress at L2 | Below allowable for material and cycle life | Fatigue and set resistance |
| Slenderness (free length / mean diameter) | Under about 4 for unsupported use | Prevent buckling |
| Index (D / d) | Typically 4 to 12 | Windability and stress balance |
If the slenderness ratio climbs above roughly 4, plan for a guide rod or a pocket bore. Otherwise the spring will bow sideways under load and rub the housing.
Which material should you choose?
Material choice is a trade between stress capacity, corrosion resistance, temperature, and cost. The table below covers what we wind most often.
| Material | Typical use | Corrosion resistance | Notes |
|---|---|---|---|
| Music wire (ASTM A228) | General purpose, high fatigue life | Low — needs plating | Highest tensile of the common carbon wires |
| Oil-tempered carbon (A229/A230) | Larger wire diameters, cost-sensitive | Low — needs plating | Good for heavy-duty compression springs |
| 302 / 304 stainless | Washdown, outdoor, mild chemical | Good | Softer modulus; larger wire for the same rate |
| 17-7PH stainless | High stress plus corrosion resistance | Very good | Precipitation hardened; higher cost |
| Phosphor bronze | Electrical and non-magnetic uses | Moderate | Often chosen for conductivity |
Two practical notes. First, if you need corrosion resistance and high stress together, 17-7PH is usually the answer, and it is worth reading our notes on 17-7PH spring steel before you commit. Second, plating is not free of consequences — hydrogen embrittlement risk after electroplating means high-strength carbon springs normally need a bake cycle, and our article on spring plating and powder coat covers what that means for your drawing.
How do tolerances and stress relief affect the finished part?
A spring is a compliant part, so its tolerances behave differently from a machined block. Two dimensions drive most of the argument between designer and supplier: free length and load.
Free length versus load tolerance
Free length is easy to measure and therefore easy to over-specify. Load at a stated height is what actually matters in the assembly. A spring can be 0.8 mm off on free length and still hit its working load perfectly, because rate and free length trade off against each other.
The practical approach is to tolerance the load at the installed height, and give free length a looser band. If you must hold both tightly, expect higher cost and more inspection. Our breakdown of spring length tolerance explains where the real limits sit.
Stress relief and set removal
After coiling, compression springs are usually stress-relieved to reduce residual winding stress, and often preset (compressed to solid once) so they do not lose length in service. Skipping these steps produces a spring that takes a set on the customer's bench — a failure that looks like a design error but is really a process omission. The mechanics are covered in our piece on spring stress relief.
Squareness and flatness
Ends that are not square and ground cause the spring to lean, which shifts load sideways and wears the bore. For springs with a slenderness ratio above 3, or any spring that must sit flat on a mating face, specify squareness and check our guidance on spring end squareness and flatness.
What does a real design pass look like?
Take a valve return spring: 12 N preload at 22 mm, 38 N at 15 mm, maximum OD 12 mm, stainless for washdown, 200,000 cycles expected.
1. Rate: k = 3.71 N/mm as calculated above.
2. Wire and diameter: choose d = 1.2 mm, OD = 11.0 mm, so D = 9.8 mm. Index D/d ≈ 8.2, comfortably windable.
3. Active coils: rearrange the rate formula with G = 70,000 N/mm² for stainless. Solving gives n ≈ 8.7 active coils.
4. Total coils: 8.7 + 2 ≈ 10.7, round to 11 total.
5. Solid height: 11 × 1.2 ≈ 13.2 mm, plus allowance ≈ 14.4 mm. Minimum working length is 15 mm, so the reserve is thin — about 4%. That fails the 15% rule.
6. Fix: increase wire to 1.3 mm and reduce active coils, or increase mean diameter slightly. Either move restores margin, at the cost of a small change in rate that must be re-solved.
This is the loop. It normally takes two or three passes, and the pass that matters is the one where you check solid height and stress rather than just hitting the rate.
Buildability: the questions a factory will ask you
When a drawing arrives at BQUQ, the questions that come back fastest are:
- What is the force at the installed height, and at full travel?
- What is the maximum solid height the housing allows?
- Is the spring guided, or free-standing?
- Does it need to pass a salt-spray or washdown requirement?
- What is the expected cycle count and cycle rate?
Answer those five and a quote is straightforward. BQUQ runs CNC machining to ±0.005 mm, metal stamping, custom springs and heat sink production across four production lines in one Dongguan factory, so spring ends, retainers and housings can be produced and matched in the same facility. MOQ is flexible, and quotes come back within 12 working hours. You can see the standard range on our compression springs page, and if your mechanism also needs a return element in the other direction, compare torsion springs and extension custom springs before you split the design across two suppliers.
Frequently Asked Questions
Q: Can I design a compression spring without a calculator?
A: You can get close with the rate formula and a spreadsheet, but hand calculation gets risky once you add end coil corrections, preset effects and stress checks. Most engineers use a calculator for the first pass and then verify solid height, index and stress separately. The formula k = G·d⁴ / (8·D³·n) is the core of every calculator anyway.
Q: How many active coils should a compression spring have?
A: Most practical compression springs use between 3 and 15 active coils. Below about 3 the spring behaves stiffly and end effects dominate, making the rate hard to predict. Above roughly 15 the spring becomes long and buckling-prone unless it is guided. Start from the rate you need and let the formula tell you the coil count.
Q: Why does my stainless compression spring feel weaker than the carbon one?
A: Stainless grades such as 302 and 304 have a lower shear modulus, typically around 69,000–72,000 N/mm² against roughly 79,000–81,500 N/mm² for carbon and music wire. The geometry is identical, but the material is softer, so the spring rate drops. Compensate with slightly thicker wire or fewer active coils.
Q: What tolerance should I put on spring load?
A: A typical commercial tolerance is ±10% on load at a stated height, tightening to ±5% for precision assemblies. Tolerancing load rather than free length usually gives a better part at lower cost, because rate and free length can trade off. Tell your supplier the installed height and the force window, and let them manage the geometry.
Q: When should I use a guide rod with a compression spring?
A: Use a guide when the free length divided by mean diameter exceeds about 4, or whenever the spring sits in a bore that could be rubbed. Buckling shifts load sideways, wears the housing and shortens fatigue life. A guide rod or a close-fitting pocket costs little and removes the failure mode entirely.
Related Resources
- About BQUQ and our Dongguan factory: /about/
- Custom compression springs and other spring products: /compression-springs/
- Industry trends affecting lead times and materials: /industry-dynamics/
- Technical articles on springs, stamping and machining: /bquq-blog/
- Frequently asked questions from buyers: /faq/
- Case studies from production programs: /case/
- Contact the engineering team for a 12-hour quote: /contact/
Authored by the BQUQ Engineering Team. BQUQ (Dongguan) runs CNC machining (±0.005 mm), metal stamping, custom springs, and heat sink production in one ISO9001 factory. Source-direct from Dongguan, China — quote in 12 hours: sc@bquq.com | WhatsApp +86 13713157787 | www.bquq.com


