Skip to content
Formulaxis

Strength of materials and structural sizing

Hooke’s law: calculating spring force

Calculate a spring’s force, stiffness or deflection in the linear elastic range. Deflection measures the change from the unloaded length, and results are positive magnitudes. The examples distinguish this change from the total length and show conversions between stiffnesses in newtons per metre and per millimetre.

Created on , Revised on v2.0

Method and validation

Hooke’s law: calculating spring force

Initial example : 250 N/m.

Initial example : 30 mm.

Initial values are examples.

Results

Force magnitude F
7.5N

The relation assumes constant stiffness within the spring's linear elastic range.

Applied formulas

F=k×|Δx|
F=(250 Nm)×(0.03 m)=7.5 N

Values are substituted in SI units and results are shown in the selected units.

Estimated reading time : 4 min · 610 words

Calculation details

The result is the absolute value of force or deformation. To recover the total length, add the extension to the unloaded length, or subtract the compression from it.

01 · Force magnitude

FORMULA

F=k×|Δx|

NUMERICAL SUBSTITUTION

F=(250 Nm)×(30 mm)

RESULT

F=7.5 N

Restoring force and spring deformation

Hooke’s law describes a force proportional to a spring’s deflection while its response remains elastic and linear. Stiffness is the coefficient of this proportionality: greater stiffness requires more force for the same change in length. Deflection is measured from the unloaded length, not from an arbitrary origin. The restoring force opposes displacement, but this calculator returns positive magnitudes. A real spring may have preload, travel limits or a nonlinear response requiring a different description.

Formulas and symbols

Stiffness is strictly positive. The inverse calculation of stiffness requires positive force and deformation.

F=k×|Δx|Force magnitude: spring force.

k=F|Δx|Spring stiffness: stiffness.

|Δx|=FkDeflection magnitude: deflection.

  • k: spring stiffness, in N/m or N/mm depending on the selected unit.
  • |Δx|: absolute value of extension or compression from the unloaded length.
  • F: absolute value of force. The calculation converts units before operations; the restoring force acts opposite to displacement.

Stiffness conversions

ValueEquivalent
1 N/mm1 000 N/m
5 N/mm5 000 N/m
0,25 N/mm250 N/m
1 kN/m1 000 N/m
1 N/cm100 N/m

OpenStax — University Physics Volume 1, Ch. 5 Key Equations ; NIST — Guide to the SI, Appendix B.9: conversion factors.

Worked examples

Example 1: 250 N/m spring

A deformation of 30 mm, or 0,030 m, produces a force of 7,5 N.

Example 2: Measurement of 40 N at 8 mm

The stiffness is 5 000 N/m, or 5 N/mm.

Example 3: 15 N load on a spring

At a stiffness of 300 N/m, the deformation is 50 mm.

Assumptions and limitations

The relation assumes constant stiffness within the spring's linear elastic range. It does not model preload, progressive stiffness or hysteresis. To recover k, force and deformation must be strictly positive; force and deformation modes may yield zero.

Common mistakes

Entering total length instead of deflection overestimates the force: subtract the unloaded length.

Confusing N/mm and N/m introduces a factor of a thousand: check the stiffness unit.

Interpreting a positive value as the actual force direction ignores the restoring action: define orientation separately.

Applying constant stiffness beyond the linear range extrapolates the model: consult the spring curve.

Using a total force including preload distorts stiffness identification: check the origin of the force-displacement measurement.

Frequently asked questions

Which length should be used in Hooke's law?

The extension or compression measured from the unloaded length. For example, going from 100 to 108 mm represents a deformation of 8 mm.

Why is F=−kx sometimes written?

The minus sign represents a restoring force opposite to displacement in a signed coordinate convention. The calculator uses absolute values and therefore omits this sign in the displayed values. This does not change the physical behaviour: the spring tends to return to its reference state.

How do you convert stiffness from N/mm to N/m?

Multiply by 1 000: a deformation of 1 mm is a thousand times smaller than a meter, so 1 N/mm equals 1 000 N/m.

Do force and deformation determine spring energy?

For a linear spring without preload, elastic energy is half the final force times deformation. Force rises from zero, so multiplying final force by displacement overestimates the work. A nonlinear curve requires integration.