| Quantity | Value | Note |
|---|---|---|
| Mean coil diameter D | 0.843 in | OD - d |
| Outside / inside diameter | 0.923 / 0.763 in | D + d / D - d |
| Spring index C | 10.54 | D / d, aim for 4 to 12 |
| Active coils Na | 10.05 | Closed and ground: Nt - 2 |
| Inactive coils | 2 | Nt - Na, the end coils |
| Pitch p | 0.3089 in | coil spacing at free length |
| Free length L0 | 3.264 in | |
| Solid height Ls | 0.964 in | d Nt; up to 1.012 in with 5% tolerance |
| Travel to solid | 2.3 in | L0 - Ls |
| Working length | 1.264 in | L0 - deflection |
| Load at solid | 22.98 lbf | k × travel to solid |
| Material | Music wire (ASTM A228) | |
| Shear modulus G | 81 GPa (11.75 Mpsi) | steps with wire diameter |
| Tensile strength Sut | 289.3 ksi | A / dm estimate; 1,995 MPa |
| Allowable stress | 130.2 ksi | 45% of Sut |
| Stress factor | 1.128 | Bergstrasser |
| Slenderness L0 / D | 3.87 | taller than about 4 needs the buckling check |
| Natural frequency | 159.4 Hz | both ends on plates; 79.71 Hz one end free |
| Wire length | 31.91 in | pi × D × Nt, approximate |
| Spring mass | 20.64 g (0.728 oz) | from the wire volume and density |
Show the math
D = OD - d = 0.923 - 0.08 = 0.843 in; C = D / d = 0.843 / 0.08 = 10.54Na = Nt - 2 = 10.05 (closed and ground ends); inactive = 2k = G d4 / (8 D3 Na) = 11,750 psi × 0.084 / (8 × 0.8433 × 10.05) = 9.99 lbf/in. G = 81 GPa for Music wire (ASTM A228).Ls = d Nt = 0.964 in; travel to solid = L0 - Ls = 3.264 - 0.964 = 2.3 inF = k × y = 9.99 × 2 = 19.98 lbf at the working point; at solid F = 9.99 × 2.3 = 22.98 lbfKB = (4C + 2) / (4C - 3) = (4 × 10.54 + 2) / (4 × 10.54 - 3) = 1.128 (Bergstrasser)τ = K × 8 F D / (π d3). At solid: 1.128 × 8 × 22.98 × 0.843 / (π × 0.083) = 108,600 psi (108.6 ksi). At the working point: 94.47 ksi.Sut = A / dm = 2,211 / 2.0320.145 = 1,995 MPa (d in mm); allowable = 45% of Sut = 130.2 ksi; safety factor at solid = 130.2 / 108.6 = 1.2λ = α L0 / D = 0.5 × 3.264 / 0.843 = 1.94. Absolutely stable if L0 < (π D / α) √(2(E - G) / (2G + E)) = 4.252 in (E = 196.5 GPa, G = 81 GPa). Your L0 is below it.f = (1/2) √(k / mactive), where mactive is the mass of the active coils (π D Na of wire, density 7,850 kg/m3). Result 159.4 Hz.Length = π D Nt = π × 0.843 × 12.05 = 31.91 in; mass = density × wire volume = 20.64 gShort answer: The spring rate is k = G d4 / (8 D3 Na), and the force at any compression is F = k × deflection. G is the shear modulus of the wire, d the wire diameter, D the mean coil diameter and Na the active coils. For the default spring (music wire, 0.08 in wire, 0.923 in outside diameter, 12.05 coils, closed and ground ends), the rate is about 9.99 lbf/in. At 2 in of deflection it pushes back with 20 lbf, and it goes solid at 0.964 in.
Rate is the force a spring adds per unit of compression. It depends on the wire, the coil diameter, the active coils and the material, and not on the free length. Most wrong answers come from putting total coils where active coils belong, or an outside diameter where the mean diameter belongs.
This article contains Amazon affiliate links. 33science earns a commission on qualifying purchases. See our affiliate disclosure.
How to use the compression spring calculator
The spring rate formula
Spring rate is k = G d4 / (8 D3 Na), the form given in Shigley’s Mechanical Engineering Design and in DIN EN 13906-1. Thick wire and a high shear modulus stiffen the spring. A wide coil and many active coils soften it. Force follows Hooke’s law, F = k y, where y is the deflection from the free length.
Worked example with the default spring, Shigley Example 10-2. The mean diameter is D = 0.923 − 0.08 = 0.843 in. Closed and ground ends make Na = Nt − 2 = 10.05. Music wire at this size has G = 11.75 Mpsi, so k = 9.99 lbf/in. At 2 in of deflection the spring is 1.264 in long and pushes with 20 lbf. The same spring in millimetres gives the same answer in other units:
| Quantity | Inches and pounds | Millimetres and newtons |
|---|---|---|
| Wire diameter d | 0.08 in | 2.032 mm |
| Mean diameter D | 0.843 in | 21.41 mm |
| Free length L0 | 3.264 in | 82.906 mm |
| Solid height Ls | 0.964 in | 24.49 mm |
| Spring rate k | 9.99 lbf/in | 1.75 N/mm |
| Force at solid | 23 lbf | 102.2 N |
| Shear stress at solid | 108.6 ksi | 749.1 MPa |
The tool also reproduces Shigley Example 10-1, a 0.037 in wire with 0.4375 in outside diameter, at 4.12 lbf/in. Stored energy is half of force times deflection: the default spring holds about 20 in-lbf at 2 in. The elastic potential energy calculator works that out for any k and deflection, and examples of elastic potential energy shows where springs store it.
Springs combined: in parallel the rates add, k = k1 + k2. In series the compliances add, 1/k = 1/k1 + 1/k2, so the pair is softer than either spring.
Rates of common springs
These are the calculator presets. Wire diameter enters the rate to the fourth power, so it moves the rate more than any other input.
| Preset | d / OD (mm) | L0 (mm) | Rate (N/mm) | Deflection (mm) | Force (N) | Safety factor at solid |
|---|---|---|---|---|---|---|
| Pen or latch spring (music wire) | 0.4 / 4 | 12 | 0.709 | 5 | 3.55 | 1.28 |
| Engine valve spring (chrome-silicon) | 4 / 30 | 50 | 25.6 | 14 | 358 | 1.32 |
| General purpose stainless (302) | 1.5 / 12 | 22 | 5.39 | 6 | 32.3 | 1.41 |
| Heavy chrome-silicon spring | 6 / 45 | 85 | 32.4 | 20 | 649 | 1.32 |

Total coils, active coils and end types
Active coils are the coils that deflect. The coils pressed flat at each end do not, so the rate uses Na, not the Nt you count. The default spring has 12.05 total coils, closed and ground ends and Na = 10.05. The relations come from Shigley Table 10-1 and agree with Lee Spring.
| End type | Active coils Na | Solid height Ls | Free length L0 | Pitch p |
|---|---|---|---|---|
| Closed and ground | Nt – 2 | d Nt | p Na + 2d | (L0 – 2d) / Na |
| Closed, not ground | Nt – 2 | d (Nt + 1) | p Na + 3d | (L0 – 3d) / Na |
| Plain (open) ends | Nt | d (Nt + 1) | p Na + d | (L0 – d) / Na |
| Plain and ground | Nt – 1 | d Nt | p (Na + 1) | L0 / (Na + 1) |
Here p is the pitch, the distance from one coil to the next. Closed and ground ends are the usual choice because the spring stands square. Solid height is nominal: a real spring can run about 5 percent taller (Autodesk), and the tool shows that as the maximum solid height, 1.01 in for the default spring.
Spring index and the Wahl factor
Spring index is C = D / d, the mean diameter over the wire diameter. The default spring has C = 10.54. Aim for 4 to 12. Below 4 the wire is hard to coil and carries high stress on the inside of each turn. Above 12 springs tangle and are hard to hold to tolerance. The calculator flags an index outside that range (Shigley eq. 10-18; DIN EN 13906-1 uses the same window).
Stress in the wire is higher than the plain torsion value because the coil curves the wire. A curvature factor K corrects for it: τ = K × 8 F D / (π d3). Two versions are in common use. Bergstrasser: KB = (4C + 2) / (4C − 3), 1.128 for the default spring. Wahl: Kw = (4C − 1) / (4C − 4) + 0.615 / C, 1.137. They differ by about 1 percent for any index from 4 to 12. The calculator uses Bergstrasser as in Shigley and switches to Wahl, the factor Lee Spring uses, with one control.
Stress, solid height and taking a set
A spring takes a set, which means it stays shorter after you release it, when the stress at solid height passes the yield strength of the wire. Compare the corrected shear stress at solid with an allowable fraction of the tensile strength Sut. For music wire that fraction is 45 percent. If you preset the spring at the factory by compressing it solid so that it sets before use, the allowable rises to about 65 percent.
Sut is an estimate from A / dm with constants from Shigley, so get the certified figure from the wire supplier for a critical spring. The default spring sits at the recommended safety factor of 1.2 at solid. Its travel margin is 15 percent: 2.3 in of travel to solid against a 2 in working deflection. Shigley recommends at least 15 percent so the spring never runs to coil bind in service, and 3 to 15 active coils.
When a compression spring buckles
A long, thin spring bows sideways instead of compressing straight. The risk rises with free length over mean diameter and depends on how the ends are held. The slenderness is λ = α L0 / D, where α is set by the end supports:
| End support | α |
|---|---|
| Both ends flat on plates (fixed) | 0.5 |
| One end flat, one end on a pivot | 0.707 |
| Both ends on pivots | 1 |
| One end fixed, one end free | 2 |
A spring is absolutely stable, meaning it cannot buckle at any deflection, when its free length is under about 2.5 D / α for spring steel (Shigley eq. 10-12). The default spring has λ = 1.94 and a limit of 4.25 in against a free length of 3.264 in, so it is stable. Flat plates on both ends (α = 0.5) need squared and ground ends. If your spring is over the limit, the calculator reports the critical deflection, and the working deflection must stay under it. Run the spring on a rod or in a bore, or shorten the free length.
Spring materials and shear modulus
The rate is proportional to G. G steps down as the wire gets thicker, and the calculator follows it by wire diameter (Machinery’s Handbook). Sources differ by a few percent: music wire is 11.5 Mpsi at PTC and up to 12 Mpsi in Shigley, a 4 percent difference in rate. The same geometry in stainless 302 is about 15 percent softer than music wire, and phosphor bronze gives about half the rate.
| Wire | G (Mpsi) | G (GPa) | Allowable % of Sut, before / after set removal | Typical use |
|---|---|---|---|---|
| Music wire (ASTM A228) | 11.6-12 | 80-82.7 | 45 / 65 | Small precision springs, latches and pens. Highest strength of the common wires. |
| Hard-drawn wire (ASTM A227) | 11.4-11.7 | 78.6-80.7 | 45 / 65 | Low-cost general purpose springs under static loads. |
| Oil-tempered wire (ASTM A229) | 11.2 | 77.2 | 50 / 70 | General purpose springs in larger wire sizes, moderate stress. |
| Chrome-vanadium (ASTM A231/A232) | 11.2 | 77.2 | 50 / 70 | Shock loads and moderate heat. |
| Chrome-silicon (ASTM A401) | 11.2 | 77.2 | 50 / 70 | High-stress, high-cycle springs such as engine valve springs. |
| Stainless 302 (ASTM A313) | 10 | 69 | 35 / 60 | Corrosion resistance, food and outdoor use. |
| Phosphor bronze (ASTM B159) | 6 | 41.4 | 35 / 60 | Corrosion resistance and electrical conductivity at low loads. |
How to measure a spring you have
Measure the wire first, because the rate depends on d to the fourth power: a 1 percent error in d is about a 4 percent error in k, and 1 percent in the mean diameter is about 3 percent. Use a digital caliper on a straight stretch of wire and average a few spots. Then measure the outside diameter across the coils, and enter it as an outside diameter so the tool subtracts d.

Count the turns of wire from one end to the other, including the closed end coils, and estimate the last fraction by eye. That count is Nt. Measure the free length with nothing on the spring. Flat end faces mean closed and ground ends.
A scale confirms the calculated rate. Stand the spring upright on a kitchen scale, press it down square to a measured deflection y, read the mass and convert: F = mass × 9.81 N/kg, then k = F / y. The pen spring preset has a rate of 0.709 N/mm, so 5 mm of compression should read about 360 g, roughly 72 g per millimetre. Take two readings and use the slope between them, since the first stretch of travel on unground ends is not linear.

A measured rate below the calculated one points to a miscounted Na or a diameter entered as the wrong type.
Common mistakes
Free length minus solid height is the travel to solid, not the working travel. A deflection past solid is clamped to solid height by the calculator and flagged.
Natural frequency and surge
A spring that is cycled quickly can resonate along its length and lose its stroke, which is called surge. The calculator gives the natural frequency, 159 Hz for the default spring with both ends on plates. Keep it at 15 to 20 times the operating frequency or higher, so this spring suits cycling up to roughly 8 to 11 Hz (Shigley eq. 10-25). For the energy of a mass on a spring, try the mechanical energy calculator.
Sources
- McGraw-Hill. Shigley’s Mechanical Engineering Design, ch. 10 (instructor slides)
- Lee Spring. Spring Design General Considerations
- Machinery’s Handbook, 31st ed. Shear modulus of spring wire by diameter
- Lee Spring. Spring materials
- PTC. Modulus of elasticity values for compression springs
- Autodesk. Inventor compression spring calculation help
- DIN. DIN EN 13906-1, cylindrical helical springs made from round wire, compression springs
Frequently asked questions
Use k = G x d^4 / (8 x D^3 x Na), where G is the shear modulus of the wire, d the wire diameter, D the mean coil diameter and Na the active coils. The default spring works out to 9.99 lbf/in, or 1.75 N/mm.
Multiply the rate by the deflection, F = k x y, where y is the free length minus the compressed length. The default spring has a rate of 9.99 lbf/in, so 2 in of deflection gives 20 lbf.
Use active coils in the rate formula. Active coils equal total coils minus the end coils that do not deflect: two fewer for closed ends, none for plain open ends.
Enter whichever you measured and label it correctly. The rate formula needs the mean diameter, which is the outside diameter minus the wire diameter, or the inside diameter plus it.
Aim for a spring index between 4 and 12. Lower values are hard to coil and stressed on the inside of the turn, and higher values tangle and drift from tolerance.
The Wahl factor is a stress correction for the curvature of the wire, K = (4C – 1) / (4C – 4) + 0.615 / C. For the default spring it is 1.137, against 1.128 for the Bergstrasser factor.
Solid height is the length of the spring with every coil touching. For closed and ground ends it is the wire diameter times the total coils, which is 0.964 in for the default spring.
A spring buckles when it is slender and compressed past a critical deflection. It cannot buckle if the free length is below about 2.5 times the mean diameter divided by the end constant alpha, which is 4.25 in for the default spring.