Machine Elements Design

Helical Compression Spring Calculator — Spring Force, Rate & Shear Stress

Helical compression spring design calculator for spring force, deflection, spring rate from geometry, Wahl-corrected shear stress, spring index and solid-height clearance.

Unit-aware inputs Deterministic calculation Engineering interpretation
Calculation workspace

Enter the known values and review the calculated result

Deterministic calculation
01
Parameters

Input parameters

Use consistent values and select the intended engineering units.

Calculation mode

Spring rate & deflection

Force & spring rate

Force & deflection

Spring geometry

Working point

Working force

Working deflection

Allowable stress (optional)

Solid-height check

Free length & coil ends

Spring geometry

Applied load

Allowable stress (optional)

02
Output

Results

Live
Ready to calculate Complete the required inputs and run the calculation.
—
Calculation tools Save, export and manage your results

Save your calculation, export available results, or store a finalized engineering artifact in your account.

Engineering reference

Method, application and limitations

Review the calculation method, intended application and engineering assumptions before using the result in a design decision.

01
Method

Formula and calculation method

Helical compression spring formulas

This calculator evaluates a cylindrical helical compression spring using the linear force-deflection relationship, the standard geometry-based spring-rate equation and a Wahl-corrected shear stress calculation.

Spring force, deflection and spring rate

Spring force:

F = k Δx

Spring deflection:

Δx = F / k

Spring rate from force and deflection:

k = F / Δx

where:

  • F = spring force
  • Δx = axial spring deflection
  • k = spring rate or spring constant

These relations assume a linear spring characteristic over the evaluated deflection range.

Spring rate from helical spring geometry

For a cylindrical helical compression spring made from round wire, the calculator uses:

k = Gd4 / (8D3n)

where:

  • G = shear modulus of the spring material
  • d = wire diameter
  • D = mean coil diameter
  • n = number of active coils
  • k = calculated spring rate

With G in N/mm2 and d and D in mm, the resulting spring rate is in N/mm. Equivalent consistent unit systems may also be used through the calculator's unit conversion system.

Mean, outside and inside coil diameter

The spring-rate and stress equations use the mean coil diameter D. If an outside or inside spring diameter is entered, the calculator converts it to mean diameter:

D = Do - d

D = Di + d

and reports:

Do = D + d

Di = D - d

where Do is outside diameter and Di is inside diameter.

Spring index

The spring index is calculated as:

C = D / d

The implemented geometry check flags a warning when C < 4 or C > 12. This is a geometry warning, not a complete manufacturability or design approval.

Wahl correction factor

The calculator determines the Wahl factor from the spring index:

Kw = (4C - 1) / (4C - 4) + 0.615 / C

The factor increases the nominal torsional shear stress to account for the non-uniform stress distribution associated with wire curvature and direct shear.

Spring shear stress formula

The maximum corrected shear stress reported by the calculator is:

τmax = Kw 8FD / (πd3)

where:

  • τmax = calculated Wahl-corrected shear stress
  • F = applied spring force
  • D = mean coil diameter
  • d = wire diameter
  • Kw = Wahl correction factor

If an allowable shear stress τallow is entered, the calculator also evaluates:

Utilization = τmax / τallow

Safety factor = τallow / τmax

A utilization of 1.0 corresponds to the entered allowable stress. The allowable value is supplied by the user and should be selected for the applicable material, loading condition, environment and design requirements.

Elastic energy

When both force and deflection are available, the calculated elastic energy is:

E = 1/2 FΔx

or equivalently:

E = 1/2 k(Δx)2

Solid height and coil-bind clearance

When the solid-height check is enabled, the implemented end-condition model calculates solid height from total coil count Nt and wire diameter d.

Ground ends:

Hs = Ntd

Not-ground ends:

Hs = (Nt + 1)d

The geometric deflection from free length to solid is:

Δxsolid = L0 - Hs

At a calculated or entered working deflection:

Lwork = L0 - Δx

Solid clearance = Lwork - Hs

A positive solid clearance means the evaluated working point remains above the calculated solid height. This geometric check does not establish a recommended minimum operating clearance or account for manufacturing tolerances.

02
Application

When to use this calculator

Use this calculator for preliminary calculation and verification of cylindrical helical compression springs made from round wire when the spring can be represented by an approximately linear axial force-deflection relationship.

It can be used as a spring force calculator when spring rate and deflection are known, as a compression spring force calculator when a working point must be evaluated, or as a helical compression spring design calculator when wire diameter, coil diameter, active coils and shear modulus are available.

Typical calculation tasks

  • calculate spring force from spring rate and deflection;
  • calculate compression spring deflection from force and spring rate;
  • calculate spring rate from force and deflection;
  • calculate spring rate from wire diameter, mean coil diameter, active coils and shear modulus;
  • convert between mean, outside and inside coil diameter;
  • calculate spring index and Wahl correction factor;
  • calculate Wahl-corrected shear stress at an applied or derived spring force;
  • compare calculated shear stress with a user-entered allowable stress;
  • calculate utilization and stress-based safety factor when an allowable stress is supplied;
  • estimate stored elastic energy at the working point;
  • calculate solid height and geometric clearance from coil bind.

When the geometry mode is most useful

Geometry mode is appropriate for a helical spring design calculation when the basic spring dimensions are already known. Enter wire diameter, the selected coil diameter, active coil count and shear modulus to obtain spring rate. A working force or working deflection may then be added to calculate the corresponding deflection or force, corrected shear stress and elastic energy.

The calculator accepts mean, outside or inside coil diameter. All spring-rate and shear-stress calculations are internally based on the resolved mean coil diameter.

When not to use this calculator

This calculator is not a complete spring-selection or spring-life design system. It does not determine an optimum or required wire diameter, select a spring material, calculate tensile strength from wire size, determine fatigue life, evaluate buckling, surge or natural frequency, calculate presetting or permanent set, or verify temperature-dependent material behavior.

It is also not intended for extension springs, torsion springs, conical springs, variable-pitch nonlinear springs or other geometries that do not follow the implemented cylindrical compression-spring model.

For cyclic, safety-critical, high-temperature or highly optimized springs, additional material, fatigue, stability, manufacturing-tolerance and application-specific verification is required.

03
Decision support

How to interpret the result

The primary results describe the spring's linear force-deflection behavior and, when geometry is available, the calculated stress and geometric operating condition.

Spring force, deflection and spring rate

Spring force F is the axial force corresponding to the evaluated deflection. Within the implemented linear model, force increases directly with deflection:

F = kΔx

Spring deflection Δx is the axial change in spring length produced by the evaluated load.

Spring rate k is the change in force per unit deflection. A larger spring rate represents a stiffer spring.

For the geometry calculation, increasing wire diameter has a strong stiffening effect because d appears to the fourth power. Increasing mean coil diameter or the number of active coils reduces spring rate.

Spring index and Wahl factor

Spring index C = D/d describes the relationship between mean coil diameter and wire diameter. The calculator reports a geometry warning when C is below 4 or above 12.

Wahl factor Kw is the stress correction used by this calculator. A tighter coil geometry generally produces a larger correction and therefore a higher corrected shear stress for the same nominal load and wire dimensions.

Corrected shear stress

τmax is the Wahl-corrected shear stress calculated from spring force, mean coil diameter and wire diameter.

The result is a calculated stress, not a material strength. Whether the stress is acceptable depends on the allowable shear stress appropriate to the actual spring material and loading condition.

Stress utilization and safety factor

When an allowable shear stress is entered:

  • utilization ≤ 1.0 means the calculated corrected shear stress remains at or below the entered allowable value;
  • utilization > 1.0 means the calculated corrected shear stress exceeds the entered allowable value;
  • safety factor > 1.0 corresponds to calculated stress below the entered allowable limit;
  • safety factor = 1.0 corresponds to equality between calculated and allowable stress.

If no allowable stress is entered, the calculator reports the calculated stress but does not establish a stress acceptance criterion.

Solid height and coil-bind result

Solid height is the spring length calculated by the implemented coil-stack model for the selected total coil count, wire diameter and end condition.

Deflection to solid is the geometric difference between free length and calculated solid height. It is not an allowable working deflection.

Solid clearance is the remaining distance between the working spring length and calculated solid height. The calculator treats clearance greater than zero as satisfying the implemented coil-bind check. Zero or negative clearance is treated as unsafe.

A practical spring normally requires additional operating clearance above solid height. The required margin depends on the application, manufacturing tolerances and applicable design practice and is not calculated here.

Overall status

An unsafe result means at least one evaluated criterion has failed, such as exceeding the entered allowable shear stress or reaching the calculated solid height.

A warning can be generated when the spring index falls outside the calculator's 4 to 12 geometry range or when fewer than two active coils are entered in geometry mode.

A safe result means the evaluated stress and/or coil-bind criterion is satisfied for the supplied data. It does not establish that the complete spring design is safe. Fatigue, buckling, surge, material strength, permanent set, temperature effects, corrosion, manufacturing tolerances and other relevant failure modes may still require verification.

04
Worked case

Calculation example

Example: helical compression spring design calculation

Consider a cylindrical compression spring with a known geometry. The objective is to calculate its spring rate, force at a 20 mm working deflection, Wahl-corrected shear stress and remaining clearance to solid height.

Input data

  • Wire diameter: d = 4.0 mm
  • Mean coil diameter: D = 32.0 mm
  • Active coils: n = 8
  • Shear modulus: G = 79.3 GPa = 79,300 N/mm2
  • Working deflection: Δx = 20 mm
  • Allowable shear stress: τallow = 600 MPa
  • Free length: L0 = 80 mm
  • Total coils: Nt = 10
  • End type: closed and ground

1. Calculate the spring index

C = D / d

C = 32 / 4 = 8.00

The spring index lies within the calculator's 4 to 12 geometry range, so no spring-index warning is generated.

2. Calculate spring rate

k = Gd4 / (8D3n)

k = 79,300 × 44 / (8 × 323 × 8)

k = 9.680 N/mm

This is equivalent to approximately 9,680 N/m.

3. Calculate spring force at 20 mm deflection

F = kΔx

F = 9.680 × 20

F = 193.6 N

4. Calculate the Wahl factor

Kw = (4C - 1) / (4C - 4) + 0.615 / C

Kw = (4 × 8 - 1) / (4 × 8 - 4) + 0.615 / 8

Kw = 1.184

5. Calculate corrected spring shear stress

τmax = Kw 8FD / (πd3)

τmax = 1.184 × 8 × 193.6 × 32 / (π × 43)

τmax = 291.9 MPa

6. Compare stress with the entered allowable value

Utilization = τmax / τallow

Utilization = 291.9 / 600 = 0.486, or approximately 48.6%.

Safety factor = τallow / τmax

Safety factor = 600 / 291.9 = 2.06

The evaluated stress criterion is satisfied because the calculated corrected shear stress remains below the entered allowable stress.

7. Calculate elastic energy

E = 1/2 FΔx

E = 0.5 × 193.6 N × 0.020 m

E = 1.94 J

8. Check solid-height clearance

For the selected closed-and-ground end condition, the calculator uses:

Hs = Ntd

Hs = 10 × 4 = 40 mm

Geometric deflection to solid:

Δxsolid = L0 - Hs

Δxsolid = 80 - 40 = 40 mm

Working length at 20 mm deflection:

Lwork = 80 - 20 = 60 mm

Solid clearance = 60 - 40 = 20 mm

Result interpretation

At the evaluated 20 mm deflection, the spring develops approximately 193.6 N of force. The Wahl-corrected shear stress is approximately 291.9 MPa, which is below the entered 600 MPa allowable value, and the working spring length remains 20 mm above the calculated solid height.

This result verifies only the implemented linear spring-rate, stress-limit and coil-bind criteria. It does not verify fatigue life, buckling, dynamic surge, material suitability, permanent set or manufacturing tolerances.

05
Model boundaries

Assumptions and limitations

  • The spring is modeled as a cylindrical helical compression spring made from round wire of constant diameter.
  • The applied force acts axially and the spring response is represented by a linear force-deflection relationship, F = kΔx.
  • The geometry-based spring-rate calculation uses k = Gd4/(8D3n), where D is the mean coil diameter and n is the number of active coils.
  • The entered shear modulus G is assumed to be appropriate for the actual spring material and operating temperature. The calculator does not select a material or determine G automatically.
  • Outside and inside coil diameters are converted to mean diameter using D = Do - d and D = Di + d.
  • The calculated spring force assumes no initial preload or initial tension. This is appropriate to the implemented compression-spring model and should not be applied directly to extension springs with initial tension.
  • The stress result uses the Wahl-corrected expression τmax = Kw8FD/(πd3). It is a simplified engineering stress calculation rather than a complete material or fatigue verification.
  • The calculator flags spring index values outside 4 to 12 as a geometry warning. It also warns when fewer than two active coils are entered in geometry mode.
  • The allowable shear stress is a user-entered design limit. The calculator does not derive allowable stress from material grade, wire diameter, heat treatment, fatigue requirement, temperature or a design standard.
  • A stress utilization at or below 1.0 means only that the calculated corrected shear stress does not exceed the entered allowable value.
  • The solid-height model uses Hs = Ntd for ground ends and Hs = (Nt + 1)d for not-ground ends. In the implemented model, the end selection affects solid height through the ground/not-ground distinction.
  • The solid-height calculation is geometric and does not include manufacturing tolerances, wire-diameter tolerances, end-condition deviations or a recommended minimum clearance above solid.
  • The coil-bind check evaluates whether calculated working length remains strictly greater than calculated solid height. A zero or negative clearance fails the implemented criterion.
  • The calculator does not evaluate spring buckling, lateral stability, surge, natural frequency, resonance or dynamic impact.
  • The calculator does not calculate fatigue life, alternating stress limits, Goodman-type criteria or cycle-dependent endurance.
  • The calculator does not evaluate yielding, permanent set, presetting, relaxation, creep, residual stress, shot peening or other manufacturing and material-treatment effects except through any allowable stress chosen by the user.
  • Temperature, corrosion, surface condition and environmental effects are not modeled directly.
  • The calculator does not size an optimum spring or determine a required wire diameter, coil diameter, free length or coil count from a complete set of design constraints.
  • Final spring design should be checked against the applicable material data, manufacturing requirements, operating conditions and governing engineering standard or design procedure.
06
Questions

Frequently asked questions

What is the spring force formula?

For the linear compression-spring model used by this calculator, spring force is F = kΔx, where F is force, k is spring rate and Δx is spring deflection. In force mode, the online spring force calculator applies this relationship directly from the entered spring rate and deflection.

How do you calculate the force of a compression spring?

If the spring rate is already known, multiply the spring rate by the axial deflection: F = kΔx. In geometry mode, this calculator first determines the spring rate from wire diameter, mean coil diameter, active coils and shear modulus, and can then calculate force from an entered working deflection.

How is the spring rate of a helical compression spring calculated?

The geometry-based spring rate used by this calculator is k = Gd4/(8D3n). G is shear modulus, d is wire diameter, D is mean coil diameter and n is the number of active coils. Increasing wire diameter strongly increases stiffness, while increasing mean coil diameter or active coil count reduces spring rate.

What is the shear stress formula for a helical compression spring?

The calculator uses the Wahl-corrected spring shear stress formula τmax = Kw8FD/(πd3). The Wahl factor Kw depends on the spring index C = D/d and accounts for the increased stress associated with coil curvature and direct shear.

Can I use outside or inside diameter instead of mean coil diameter?

Yes. The calculator accepts mean, outside or inside coil diameter. For an entered outside diameter it uses D = Do - d; for an entered inside diameter it uses D = Di + d. Spring rate, spring index and shear stress are then calculated using the resolved mean diameter.

Does this spring diameter calculator determine the required wire or coil diameter?

No. The calculator accepts a wire diameter and a mean, outside or inside coil diameter and then evaluates the resulting spring geometry. It converts between coil-diameter definitions and reports mean, outside and inside diameter, but it does not solve for an optimum or required spring diameter from design constraints.

What is the spring index and why does the calculator show a warning?

The spring index is C = D/d, the ratio of mean coil diameter to wire diameter. The calculator generates a geometry warning when C is below 4 or above 12. The warning identifies a geometry outside the range used by the calculator's screening logic; it is not by itself a complete manufacturability assessment.

How does the calculator check compression spring solid height and coil bind?

When the solid-height check is enabled, the calculator estimates solid height from total coil count, wire diameter and whether the ends are ground. It then compares the working spring length with that solid height. A positive remaining clearance satisfies the implemented coil-bind criterion, while zero or negative clearance does not.

Does a safe result mean the compression spring design is fully safe?

No. A safe status means only that the criteria actually evaluated by the calculator are satisfied, such as the entered allowable shear-stress limit and/or positive clearance above calculated solid height. Fatigue, buckling, surge, material strength, permanent set, temperature effects and manufacturing tolerances may still require separate verification.

Can this coil spring force calculator be used for extension or torsion springs?

No. The implemented geometry and stress equations are intended for cylindrical helical compression springs. Extension springs may include initial tension, and torsion springs use a different loading and stress model. Those cases require a different calculation method.

Add an engineering note