Spring Constant Calculator

Hooke's Law — solve for k, force, or displacement with elastic PE and natural frequency.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

Hooke’s Law is one of the most fundamental relationships in mechanics: the force a spring exerts is directly proportional to how far it has been stretched or compressed from its natural length. This calculator solves that relationship in all three directions — find the spring constant k, the applied force F, or the displacement x — and also calculates the elastic potential energy stored in the spring and the natural oscillation frequency for a given attached mass.

How it works

The governing equation is Hooke’s Law:

F = k · x

where:

  • F is the restoring force (newtons, N) — the force the spring exerts back against the load
  • k is the spring constant or stiffness (N/m) — a material-and-geometry property of the spring itself
  • x is the displacement (metres, m) — how far the spring is stretched or compressed from its equilibrium (natural) length

The law holds in the elastic region: displacements small enough that the spring returns to its original length when the load is removed. Beyond the elastic limit, permanent deformation sets in and Hooke’s Law breaks down.

Rearrangements for all three unknowns:

FindFormulaUse when
Spring constantk = F ÷ xYou know load and deflection; want stiffness
ForceF = k × xYou know stiffness and deflection; want load
Displacementx = F ÷ kYou know stiffness and load; want deflection

Elastic potential energy stored in a compressed or stretched spring:

E = ½ k x²

This is derived by integrating the Hooke’s Law force over the displacement range 0 → x. The result is in joules (J).

Natural frequency of a spring-mass system (simple harmonic motion, no damping):

f = (1 / 2π) √(k / m)

where m is the attached mass in kilograms. The period T = 1/f gives the time for one complete oscillation in seconds.

Worked example

A test engineer deflects a coil spring by 25 mm by hanging a 5 kg mass from it (F = 5 × 9.81 = 49.05 N). What is the spring constant?

  1. Convert displacement: 25 mm = 0.025 m
  2. Apply Hooke’s Law: k = F / x = 49.05 / 0.025 = 1,962 N/m
  3. Elastic PE stored: E = ½ × 1,962 × 0.025² = 0.613 J
  4. Natural frequency with that 5 kg mass: f = (1/2π) √(1962/5) ≈ 3.15 Hz

That means the spring-mass system completes about 3.15 full oscillations per second if released.

Spring typeTypical k
Soft foam mattress1–10 N/m
Pen click spring200–800 N/m
Bicycle fork5,000–15,000 N/m
Car suspension coil15,000–35,000 N/m
Industrial press spring100,000–500,000+ N/m

Formula note

The sign convention in full Hooke’s Law is F = −kx (the restoring force opposes displacement). This calculator works with magnitudes — enter positive values for extension or compression and the sign convention is implicit. A positive k always indicates a restoring spring; a negative k would indicate an unstable system and is not physically meaningful for a standard spring.

All inputs are converted internally to SI units (N, m) before calculation, then the result is displayed back in whichever unit you selected. This avoids rounding errors from intermediate unit conversions.

Ad placeholder (rectangle)