Hooke’s Law Calculator

Quick answer

The Hooke's law calculator finds the force in a spring from its spring constant and displacement (or its initial and final length), the stored elastic energy, and works backwards from a force to the extension.

Spring force |F|
Elastic potential energy
0.25
Displacement
5

Springs, rubber bands, car suspensions and even the bonds between atoms obey Hooke’s law for small deformations: the restoring force is proportional to how far you stretch or compress them.

How to use the Hooke’s Law Calculator

  1. Spring force constant k
  2. Displacement from…
  3. Spring displacement Δx
  4. Initial length L₀
  5. Final length L
  6. Every result field is editable: type into Spring force |F| and Spring displacement Δx plus every other field update to match.

Results update as you type, every field has its own unit menu, and everything is calculated in your browser.

How it works

Enter the spring constant and either the displacement or the initial and final lengths. The force shown is the magnitude of the restoring force; it acts opposite to the displacement.

Inputs explained

Field What to enter
Spring force constant k Units: N/m, N/mm, kN/m, lbf/in, lbf/ft, kgf/mm
Displacement from… Choose one: Displacement Δx, Initial and final length
Spring displacement Δx Units: cm, mm, m, in, ft
Initial length L₀ Units: cm, mm, m, in, ft
Final length L Units: cm, mm, m, in, ft

What each result means

  • Spring force |F| = [Spring force constant k]×abs([dx])
  • Elastic potential energy = [Spring force constant k]×[dx]^2÷2
  • Displacement = [dx]

Example values

How the main result changes when Spring displacement Δx changes and everything else stays at the example values above:

Spring displacement Δx (cm) Spring force |F| (N)
2.5 5
3.75 7.5
5 10
6.25 12.5
7.5 15
10 20

Formula

F = −k·Δx, Δx = L − L₀, U = ½·k·Δx²

Worked example

Inputs: Spring force constant k: 200 N/m; Displacement from…: Displacement Δx; Spring displacement Δx: 5 cm.
Results: Spring force |F| = 10 N; Elastic potential energy = 0.25 J; Displacement = 5 cm.

Key terms

Elastic limit
The largest deformation from which a material returns to its original shape.

Frequently asked questions

Why the minus sign in F = −kx?

The spring force acts opposite to the displacement.

What is the spring constant?

The force needed per unit of extension, in N/m.

Does Hooke's law always hold?

Only up to the elastic limit; beyond it, springs deform permanently.

How do springs in series combine?

1/k = 1/k₁ + 1/k₂; in parallel k = k₁ + k₂.

Sources

  1. OpenStax: University Physics Volume 1
  2. HyperPhysics (Georgia State University)

Cite this calculator

Speedy Calculator. (2026). Hooke’s Law Calculator. Speedy Calculator. https://speedycalculator.com/calculators/physics/hookes-law/