Compression Spring Calculator & Designer
Design a round-wire compression spring: calculate rate, solid height, Wahl stress, buckling, Goodman fatigue and surge frequency, with animated compression.
This compression spring calculator brings the main sizing checks into one calculation sheet. Use it to explore a new cylindrical spring, compare a proposed geometry with a supplier’s drawing, or understand a spring rate calculation in a machine-design course. It is intended for round wire, constant mean diameter and a small helix angle under centered axial compression.
Start with wire diameter, mean coil diameter, active turns and free length. Mean diameter is outside diameter minus one wire diameter. The two supported end finishes are closed and ground, and closed without grinding; each is modeled with two inactive end turns. Active turns can be fractional. Select metric or US units in the viewer; calculations retain a consistent internal unit system.
Enter the minimum and maximum forces, including any assembly preload. The calculator finds spring rate, working compression, loaded length and clearance before the coils touch. It also estimates solid height and the force and stress reached there by extending the ideal linear model. A 15% extra-travel screen flags designs that run close to coil contact. Actual end geometry and manufacturing tolerances can change the solid height.
The stress result includes Wahl’s correction for wire curvature and direct shear. Compare the working yield factor and Goodman fatigue factor with your selected requirement. All three shear-strength inputs are editable: yield strength, ultimate strength and the fully reversed endurance limit. The default strengths illustrate a design scenario; they are not certified values for a named wire grade. Fatigue data must represent the finished spring’s surface condition, environment and required reliability.
Choose the actual lateral restraint at the seats for the buckling check. Flat-looking spring ends do not establish that a seat cannot tilt. For surge, separately choose whether the longitudinal mode represents a spring between plates or one with a free end. The 20:1 separation screen is a conservative textbook design recommendation. Attached moving masses, support flexibility and forcing harmonics need a system-level vibration assessment.
Press play to watch the specified load cycle at a deliberately slow speed. The active coil changes color with instantaneous peak shear stress divided by shear yield strength; inactive ends remain gray. This illustrates uniform peak stress along the ideal active wire, not a finite-element stress field or a prediction of vibration.
Use the force, stress and Goodman plots to see which constraint governs a compression spring design. This spring calculator does not predict finite fatigue life, contact impacts, relaxation, corrosion, manufacturing residual stress or post-buckling motion. Confirm final dimensions, tolerances and strength data with the spring manufacturer. No EN 13906 tables are used.
How it is calculated
The calculation follows the close-coiled spring methods of Shigley, chapter 10, with separate static, fatigue, stability and dynamic screens.
With mean diameter , wire diameter and active turns , torsional compliance gives and . Both end options have ; estimated solid height is for ground ends and without grinding. These are conventional geometric estimates, not guaranteed manufacturing limits.
Peak shear uses , and . Curvature and direct shear are already included; no second correction is applied. See Chiu et al., attached pp.4–6, Eqs.(10), (24) and (26).
The proportional-load Goodman factor is , with and . The static factor is . must be the zero-mean, fully reversed shear intercept after relevant corrections. The Goodman boundary at required factor is .
For buckling, , and . When , . Otherwise the model predicts no buckling; the unavailable critical deflection is intentionally blank. Ideal restraint factors are 0.5, , 1 and 2. Chiu et al., attached pp.4–5, Eq.(13), reproduces this Shigley model. Its printed Eq.(14) has a reversed inequality: the prose specifies for absolute stability, consistent with Eq.(15); that is the criterion implemented here.
For surge, the active-wire mass is . The uniform distributed-spring wave equation gives between fixed/driven plates and with one end free. Here is in N/m. This wave-equation reduction is derived here, consistent with Shigley’s longitudinal-mode treatment; it differs from the lumped spring–mass frequency . The screen uses .
Reference checks retain published rounding. IGNOU’s uncorrected stress is compared only with the nominal-torsion step. Jönköping’s Bergsträsser stress is not substituted for Wahl stress.
Assumptions
Centered compressive force; cylindrical, constant-pitch active body; circular wire; small helix angle; homogeneous isotropic linear elasticity with . Closed ends contribute two inactive turns. No beneficial presetting or residual-stress credit is applied. Strength inputs are user-supplied design data; defaults are an illustrative spring-steel-like scenario, not a material certificate. Use shear properties, not tensile values.
Fatigue assumes repeated loading between the two specified forces, an endurance-limit model and proportional scaling of both loads for the reported factor. It does not calculate cycle life or failure probability. The animation is quasistatic and slowed down independently of the entered operating frequency. Its uniform active-wire color represents the local peak shear at each ideal active section, not stress over the wire cross-section. The wire stroke is exaggerated for legibility; coil centerline geometry follows the selected dimensions.
Where it applies
Use for preliminary sizing of ordinary round-wire compression springs with closed ends. A spring index of 4–12 and helix angle at or below 12° are practical screening recommendations, not hard manufacturing boundaries. Working compression must remain below estimated solid travel. Solid-load and solid-stress results are elastic extrapolations to first full contact, not post-contact predictions; discard the extrapolation beyond yield.
Buckling assumes ideal unguided end restraints, not a guide rod or bore. Initial crookedness, misalignment and friction can cause earlier lateral motion. No post-buckling result is provided. Surge excludes supported masses, damping, contact, end-seat flexibility and variable pitch; the 20:1 screen is not a complete resonance assessment. Static loading can be assessed through the yield result; a nonzero steady mean stress still gives a formal Goodman intercept factor even with zero amplitude.
Supply endurance data corrected for the actual wire size, surface treatment, reliability, temperature and environment. A fatigue factor above the requested value does not certify service life. The tool does not apply EN 13906 fatigue tables, manufacturing tolerances, set-removal rules, thermal relaxation or corrosion allowances.
References
- R. G. Budynas and J. K. Nisbett, Shigley’s Mechanical Engineering Design, 11th edition (2020), chapter 10, Mechanical Springs; chapter 6, fatigue criteria. Publisher bibliographic link (full text not attached): https://www.mheducation.com.sg/shigley-s-mechanical-engineering-design-11th-edition-si-units-9789813158986-asia-group
- Jönköping University, Applied Mechanics §9.15, Springs and dampers: derivation of rate, Wahl/Bergsträsser distinction, end coils, worked Example 1. https://mechanics.ju.se/MachineElements/springs.html
- Formosa Spring, How to Calculate Spring Rate, worked compression-spring example. https://www.formosaspring.com/en/articles/spring-rate-calculation/
- Formosa Spring, Solid Height of Compression Springs: end-finish estimates and travel allowance. https://www.formosaspring.com/en/articles/solid-height-compression-springs/
- IGNOU, Unit 13: Springs, Example 13.1, printed pp.165–166, attached pp.5–6. https://egyankosh.ac.in/bitstream/123456789/31842/1/Unit-13.pdf
- M.-C. Chiu et al. (2016), Numerical Assessment of a One-Mass Spring-Based Electromagnetic Energy Harvester on a Vibrating Object, Archives of Acoustics 41(1), 119–131. https://doi.org/10.1515/aoa-2016-0012 — Eq.(13) buckling, Eq.(24) Wahl, Table 6 published stiffness; Eq.(14) inequality typo noted above.
- M. Latcha, Oakland University ME4300, Quiz and Exam Resource, Helical springs: surge and modified Goodman relations. https://www.secs.oakland.edu/~latcha/ME4300/ME_4300_Equations.pdf
Inputs
| Input | Symbol | Unit | Default |
|---|---|---|---|
| Wire diameter Round wire. Use the actual finished wire diameter. | d | mm | 2 |
| Mean coil diameter Mean diameter = outside diameter − wire diameter. | D_m | mm | 16 |
| Active coils Exclude two inactive end turns. Fractional turns are allowed. | N_a | 8 | |
| Free length | L_0 | mm | 50 |
| End finish Both choices have two inactive end turns. Solid height is an estimate. | ends | Closed and ground | |
| Minimum axial load Include assembly preload. Compression loads only. | F_lo | N | 15 |
| Maximum axial load | F_hi | N | 60 |
| Cyclic loading frequency For surge screening. Include relevant forcing harmonics when interpreting the result. | f_drive | Hz | 5 |
| Lateral end restraint Select actual rotational restraint. A ground end alone does not guarantee a seat cannot tilt. Model assumes no guide. | seat | Parallel seats, no tilt (α = 0.5) | |
| Surge boundary condition Between plates uses the same longitudinal mode as one fixed end and one driven end. The free-end option has half that frequency. Lateral buckling restraint is selected separately. | surge_ends | Between plates | |
| Shear modulus Default is a typical spring-steel modulus, not a certified grade. | G_mod | GPa | 79.3 |
| Young’s modulus | E_mod | GPa | 207 |
| Material density | rho_mat | kg/m^3 | 7850 |
| Shear yield strength Enter material data for the finished wire. Default is an example design input. | S_sy | MPa | 900 |
| Ultimate shear strength Use shear strength, not tensile strength. Default is an example design input. | S_su | MPa | 1340 |
| Reversed shear endurance limit Goodman ordinate intercept at zero mean stress. Correct for surface finish, peening, size, temperature and reliability; do not enter pulsating stress amplitude directly. | S_se | MPa | 350 |
| Required strength factor Applied to yield and proportional-load Goodman fatigue checks. | n_req | 1.5 | |
| Compression cycle ▶ Slow visualization of the specified load cycle; this is not a dynamic response simulation. | phase | deg | 180 |
Results
With the default inputs above, the calc gives:
| Result | Value |
|---|---|
| Spring rate | 4.84 N/mm |
| Maximum working compression | 12.4 mm |
| Clearance above solid | 17.6 mm |
| Estimated solid height | 20 mm |
| Maximum Wahl shear stress | 361.8 MPa |
| Working yield factor | 2.49 |
| Goodman fatigue factor | 1.8 |
| Lateral stability | No buckling predicted |
| Fundamental surge frequency | 349.3 Hz |
| Surge / excitation ratio | 69.9 |
| Loading frequency at 20:1 | 17.5 Hz |
| Yield factor at solid | 1.03 |
Checked against sources
Each case below was calculated by this calc and agrees with the value from its source (within the tolerance where one is shown).
Formosa music-wire rate example
Source: Formosa Spring, How to Calculate Spring Rate, Worked example: d = 1.0 mm, OD = 8.0 mm (mean D = 7.0 mm), Na = 8, G = 79,300 MPa, published rate ≈3.6 N/mm. https://www.formosaspring.com/en/articles/spring-rate-calculation/
Inputs: Wire diameter = 1 mm; Mean coil diameter = 7 mm; Free length = 20 mm; Minimum axial load = 0 N; Maximum axial load = 10 N; the others as above.
| Result | Source | This calc |
|---|---|---|
| Spring rate | 3.6 ± 0.02 N/mm | 3.612 N/mm |
Jönköping worked example: rate and solid height
Source: Jönköping University, Applied Mechanics §9.15, Example 1, publishes k=4.84 N/mm, solid height 20 mm, travel 30 mm and solid force 145 N. Its 289 MPa service stress uses Bergsträsser; this tool uses Wahl and therefore deliberately does not assert that stress. https://mechanics.ju.se/MachineElements/springs.html
Inputs: Minimum axial load = 0 N; Maximum axial load = 48.4 N; the others as above.
| Result | Source | This calc |
|---|---|---|
| Spring rate | 4.84 ± 0.005 N/mm | 4.84 N/mm |
| Estimated solid height | 20 mm | 20 mm |
| Available deflection to solid | 30 mm | 30 mm |
| Linear extrapolated load at solid | 145 ± 0.5 N | 145.2 N |
IGNOU Example 13.1: axial flexibility and nominal stress
Source: IGNOU Unit 13, Example 13.1, printed pp.165–166 (attached pages 5–6): d=6 mm, mean diameter 80 mm, 10 coils, G=80 GPa and rounded proof force 191 N give 75.5 mm axial motion. The source neglects curvature/direct shear, so its 180 MPa is checked against nominal torsional stress only; Wahl stress remains higher. Free length 220 mm is added solely to accommodate this compression trial. https://egyankosh.ac.in/bitstream/123456789/31842/1/Unit-13.pdf
Inputs: Wire diameter = 6 mm; Mean coil diameter = 80 mm; Active coils = 10; Shear modulus = 80 GPa; Free length = 220 mm; Minimum axial load = 0 N; Maximum axial load = 191 N; the others as above.
| Result | Source | This calc |
|---|---|---|
| Maximum working compression | 75.5 ± 0.1 mm | 75.457 mm |
| Nominal torsional stress at maximum load | 180 ± 0.3 MPa | 180.1 MPa |
Chiu Table 6: published spring stiffness
Source: Chiu et al., Archives of Acoustics 41 (2016), Table 6, printed p.130, 5 Hz row: spring k=65.05289 N/m, wire 0.00092 m, mean diameter 0.0246 m, Na=7. G=11×10^6 psi from Table 1. Rounded geometry gives 65.1733 N/m (0.185% higher), accommodated by 0.2 N/m absolute tolerance. The paper's pitch/free-length entries are not mutually consistent with Eq.(12); they are not used to validate geometry. doi:10.1515/aoa-2016-0012
Inputs: Wire diameter = 0.92 mm; Mean coil diameter = 24.6 mm; Active coils = 7; Free length = 80.85 mm; Minimum axial load = 0 N; Maximum axial load = 0.1 N; Shear modulus = 75.842 GPa; Young’s modulus = 199.9 GPa; Material density = 7,810 kg/m³; the others as above.
| Result | Source | This calc |
|---|---|---|
| Spring rate | 0.06505 ± 2 × 10⁻⁴ N/mm | 0.06517 N/mm |







Responses