Hooke's Law Calculator

Solve F=kx, elastic PE, series/parallel springs and SHM oscillation — with full working.

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 useful relationships in classical mechanics and materials science. It governs everything from the suspension spring in a car to the atomic bonds in a crystal lattice, and its elegant simplicity — F = kx — hides a surprising amount of practical depth. This calculator exposes four distinct modes so you can solve whichever aspect of spring behaviour you need, with unit conversion, step-by-step working and copy-to-clipboard output throughout.

What the calculator covers

Basic F = kx lets you solve for any one of the three variables given the other two. Enter any combination of force, spring constant and displacement in your preferred unit (N, kN, lbf, kgf; m, cm, mm, in, ft; N/m, N/mm, kN/m, lbf/in, lbf/ft) and the result is displayed instantly with a complete algebraic trace.

Series and parallel combinations handle up to five springs at once. Series springs share the same tension but each adds its own deflection — the equivalent stiffness is always softer than the weakest individual spring. Parallel springs share the same displacement — each carries a fraction of the load and the equivalent stiffness is the sum of all constants.

Elastic potential energy (E = ½kx²) quantifies the work done compressing or extending a spring. The quadratic dependence on x means a small extra extension stores disproportionately more energy — doubling x stores four times as much.

Oscillation (SHM) treats the ideal spring-mass system undergoing simple harmonic motion. Given k, mass and amplitude the tool returns angular frequency (ω = √(k/m)), frequency (f = ω/2π), period (T = 2π√(m/k)), peak velocity (v_max = ωA), peak acceleration (a_max = ω²A) and total mechanical energy (E = ½kA²).

How it works

All arithmetic runs in JavaScript inside your browser — nothing is sent to any server. Inputs are converted to SI units internally (N, m, kg, J) before any calculation, then converted back to your chosen display unit for the result. This avoids cascading rounding errors and means you can freely mix unit systems between inputs.

The “Show working” trace expands to reveal each algebraic substitution in sequence, making it straightforward to copy the method into a lab report or homework solution.

Worked example

A car suspension spring has a stiffness of 25 kN/m. The car body rests on four springs and the vehicle mass is 1 400 kg.

  1. Load per spring: F = (1400 × 9.81) / 4 = 3 433.5 N
  2. Static compression: x = F/k = 3 433.5 / 25 000 = 0.137 m (13.7 cm)
  3. Elastic PE per spring: E = ½ × 25 000 × 0.137² = 234.7 J
  4. Natural frequency: f = (1/2π)√(25 000 / 350) ≈ 1.35 Hz (350 kg per corner)

A frequency near 1–1.5 Hz matches the comfortable ride-frequency target for passenger cars. Enter these numbers in the calculator’s Oscillation tab to verify each figure and explore how a stiffer or softer spring shifts the frequency.

Formula reference

QuantityFormulaSI units
Restoring forceF = kxN
Spring constantk = F/xN/m
Displacementx = F/km
Elastic PEE = ½kx²J
Series equivalent1/k_eq = Σ(1/kᵢ)N/m
Parallel equivalentk_eq = ΣkᵢN/m
Angular frequencyω = √(k/m)rad/s
PeriodT = 2π√(m/k)s
Frequencyf = (1/2π)√(k/m)Hz
Peak velocityv_max = ωAm/s
Peak accelerationa_max = ω²Am/s²
Total SHM energyE = ½kA²J

All calculations are 100% client-side. No figures you enter are uploaded or stored.

Ad placeholder (rectangle)