Compression

How to Calculate Spring Deflection: A Practical Guide

Learn how to calculate spring deflection step by step: spring rate, Hooke’s law, a full worked example and the travel limits you must never exceed.

Mby molas.app.br·July 02, 2026·9 min read
3D…

Knowing how to calculate spring deflection is the first step to correctly sizing any design that relies on controlled force and motion. Deflection, also called travel, is simply the distance a spring moves from its free length when you apply a load to it. The greater the force, the greater the movement — and within certain limits, that relationship is remarkably predictable.

In this technical yet practical guide, we start from the concept of deflection, move through Hooke’s law and spring rate, and arrive at a complete worked example with real numbers. You will understand not only the formula but also the physical limits that cannot be crossed: solid height and the material stress limit. By the end, you will see how to validate everything in seconds using the force tester in the Molas Online 3D designer.

What spring deflection (travel) actually is

Deflection is the change in a spring’s length when a force compresses it. If a spring has a free length of 60 mm and, under load, measures 45 mm, the deflection is 15 mm. This displacement is what most designers need to control: how far the spring will sink under a given load, or how much force is needed to reach a specific working height.

In compression springs, deflection always shortens the spring. It is measured in millimetres (mm) and is directly proportional to the applied force, as long as you stay in the material’s elastic region. Leaving that linear region means permanent deformation — the spring no longer returns to its original free length, and all the calculations stop being valid.

Hooke’s law and the linear region

The foundation of the whole calculation is Hooke’s law, which describes linear elastic behaviour. It states that the applied force is proportional to the deflection, with the constant of proportionality being the stiffness of the spring. As long as the spring works within its elastic range, doubling the force doubles the travel.

This linearity is what makes helical springs so useful and predictable. A force-versus-deflection graph of a well-designed compression spring is practically a straight line. The slope of that line is precisely the spring rate, the central parameter we look at next.

F = k · x

What spring rate (stiffness) is and how to get it

The spring rate, or stiffness, represents how many newtons of force are needed to move the spring by 1 millimetre. Its unit is N/mm. A spring with k = 5 N/mm needs 5 N for every millimetre of deflection. The higher the k, the stiffer — that is, the “harder” — the spring.

For helical compression springs, stiffness depends on geometry and material according to the classic formula below. Note that the wire diameter is raised to the fourth power: this is why a small change in wire gauge dramatically changes the stiffness.

In this formula, G is the material’s shear modulus (in MPa), d is the wire diameter (in mm), Dm is the mean coil diameter (in mm) and Na is the number of active coils. Pay attention to the mean diameter: it is the outer diameter minus one wire gauge, not the outer diameter itself.

k = G · d⁴ / (8 · Dm³ · Na)

Solving the formula for deflection

If Hooke’s law says that force equals stiffness times deflection, we simply rearrange it to isolate what we want to calculate. Deflection becomes the force divided by the spring rate.

With this simple relation, any known combination of force and stiffness immediately yields the spring’s travel. In practice, the trick lies in calculating k correctly — which depends entirely on the right geometry, especially the mean diameter and the number of active coils.

x = F / k

A complete worked example

Let us calculate the deflection of a real spring. Consider: wire diameter d = 2.5 mm, outer diameter OD = 25 mm, music wire with G ≈ 79000 MPa and Na = 6 active coils. First, we need the mean diameter: Dm = OD − d = 25 − 2.5 = 22.5 mm.

Now we apply the stiffness formula. The numerator is 79000 × 2.5⁴ = 79000 × 39.0625 ≈ 3,085,938. The denominator is 8 × 22.5³ × 6 = 8 × 11,390.6 × 6 ≈ 546,750. Dividing, we get k ≈ 5.64 N/mm. In other words, each millimetre of travel requires about 5.64 N.

Now suppose a load of 100 N. The deflection is x = F / k = 100 / 5.64 ≈ 17.7 mm. If the load rose to 150 N, the travel would be 150 / 5.64 ≈ 26.6 mm. Notice how linearity makes life easy: with k in hand, any load turns into deflection with a single division.

k = 79000 · 2.5⁴ / (8 · 22.5³ · 6) ≈ 5.64 N/mm

Loaded height: where the spring really sits

Calculating deflection is useful, but during assembly what matters is the working height — the length the spring assumes under load. This loaded height is simply the free length minus the deflection.

Back to the example, if the free length is 60 mm and the deflection under 100 N was 17.7 mm, the loaded height is Lc = 60 − 17.7 = 42.3 mm. It is this 42.3 mm value that must fit into your mechanical assembly. Always check that the loaded height respects the available space and, above all, that it still stays above the solid height.

Lc = FL − x

Maximum safe deflection and solid height

There is an absolute physical limit to deflection: the solid height, which is the length of the fully compressed spring with all coils touching. You should never design the spring to reach solid during normal operation, because there the stiffness spikes and the material undergoes uncontrolled stress. The approximate solid height is the total number of coils multiplied by the wire diameter.

Beyond the geometric limit, there is the material stress limit. Even before reaching solid height, the shear stress in the coils can exceed the elastic limit of the steel, causing permanent set or loss of force (relaxation). As a rule of thumb, designers usually limit working deflection to around 70 to 80% of the deflection to solid, leaving a safety margin. Always check the stress, not just the available travel.

Deflection in extension and torsion springs

Not every spring works in compression. Extension springs use the same stiffness formula but have one important quirk: initial tension. They are wound with the coils touching and require a minimum force before they even begin to stretch. Because of this, deflection only occurs after the applied load exceeds that initial tension, and the calculation becomes x = (F − Finitial) / k.

Torsion springs, on the other hand, do not work with linear displacement but with angular deflection, measured in degrees or radians. What matters there is the applied moment (torque) and the angular rate. Hooke’s law principles still hold, but the stiffness formula changes, involving the modulus of elasticity in bending rather than the shear modulus.

How to measure deflection in practice

On the bench, measuring deflection is straightforward: record the free length, apply a known load and measure the new length with a caliper. The difference is the deflection. By applying two different loads and dividing the change in force by the change in length, you obtain the actual measured spring rate, which can then be compared with the calculated value.

Small discrepancies between the calculated and measured k are normal and come from wire tolerances, end finishing and the material’s real modulus. If the difference is large, the problem is almost always in the active coil count or in using the wrong diameter — the outer instead of the mean.

Validating with the Molas Online force tester

Redoing these calculations by hand for every design variation is laborious and error-prone. In the Molas Online 3D designer, you build the spring by entering wire gauge, diameters, length and coils, and the force tester instantly shows the load-versus-deflection curve — the spring rate, the force at any working height and the margin to solid height appear automatically.

It is the fastest way to confirm whether your spring delivers the desired force over the available travel before manufacturing. It is worth testing different wire gauges to see, in practice, how the wire diameter raised to the fourth power transforms stiffness. Build your spring in the 3D designer and use the force tester to validate deflection in seconds.

Frequently asked questions

How do I calculate the deflection of a compression spring?

First calculate the spring rate k with the formula k = G · d⁴ / (8 · Dm³ · Na). Then divide the applied force by the stiffness: x = F / k. The result, in millimetres, is how much the spring shortens from its free length under that specific load.

What is the difference between deflection and spring rate?

Deflection is the distance the spring travels under load, measured in millimetres. Spring rate is the stiffness, measured in N/mm, and indicates how much force is needed per millimetre of travel. One is the movement; the other is the resistance to that movement.

Is spring deflection always linear?

Yes, as long as the spring works in the elastic region described by Hooke’s law. Linearity is lost when the coils start to touch (near solid height) or when stress exceeds the material limit, causing permanent set and non-linear curves in the load-deflection graph.

Should I use the outer or the mean diameter in the calculation?

Always the mean diameter (Dm), which is the outer diameter minus one wire gauge. Mistakenly using the outer diameter overestimates Dm and yields a calculated stiffness lower than the real one, one of the most common errors in spring sizing.

How do I know the maximum safe deflection of a spring?

The geometric maximum deflection is the free length minus the solid height. For safety, limit working travel to about 70 to 80% of that value and verify that the shear stress stays below the material limit, avoiding relaxation and permanent deformation.

Why should I use active coils and not the total?

Active coils are the ones that actually deform under load. Squared and ground ends do not contribute to deflection. Using the total number instead of the active ones underestimates stiffness and makes the spring appear softer than it really is.

Design your spring now

Use the 3D tool, validate the design and get a quote instantly.

Open the designer