Physics I: Mechanics › Oscillations & gravitation › Hooke's law
Hooke's law
The force law behind every spring — and the seed that grows into all of simple harmonic motion.
Notation on this page: x is measured from the spring's equilibrium position (positive = stretched one way along your chosen axis), and k is the spring constant in N/m.
Where it comes from
Springs fight back when you deform them — and they fight back proportionally. The cleanest way to see it is the experiment Robert Hooke ran in the 1670s: hang known masses from a spring and measure how far it stretches. Here is the data (g = 9.8 m/s²):
That constant ratio is the spring constant k: force per unit stretch. But a ratio alone misses the direction. Stretch the spring to the right (+x) and it pulls back to the left (−x) — the force always opposes the displacement. That restoring character is the minus sign:
Hooke published it in 1678 as the Latin anagram ceiiinosssttuv, decoded as “ut tensio, sic vis” — as the extension, so the force. Three and a half centuries later it is still the starting point of every oscillation in physics, from guitar strings to car suspensions to molecular bonds.
Derivation
Hooke's law is an experimental law — its “proof” is the measurement itself. We derive the formula from the stretch data above, step by step. The key move is in Step 1: a mass hanging at rest lets us weigh the spring's pull with gravity.
Where does the law break? Past the spring's elastic limit the data stops being linear — stretch a spring too far and it stays stretched. Hooke's law is the small-deformation law; every real spring has a range where it holds and a point where it doesn't.
How to use it
The procedure, every time:
- Find equilibrium. x = 0 is the spring's natural length — mark it before measuring anything.
- Choose +x. Stretched toward +x gives F = −kx pointing −x. Write the sign the axis gives you, not the one you feel like.
- Solve for the unknown. F = −kx, or k = |F/x|, or x = −F/k. Rearrange before plugging numbers.
- Hanging at rest? Forces balance: k|x| = mg (magnitudes). This is how springs become scales — and how you measure an unknown k.
- Units check. k is N/m; kx is (N/m)·m = N. If your k comes out in N·m, something is upside down.
Magnitude shortcut
Worked examples
Four problems, easiest first. In each one, read every step — the why of each move is the lesson.
Example 1 — the basic move: k = 200 N/m, stretched 5.0 cm
- Inventory. k = 200 N/m, x = +0.050 m (stretched toward +x). Unknown: F.
- Write the law. F = −kx.
- Substitute. F = −200 × 0.050 = −10 N.
- Read the sign. −10 N means 10 N in the −x direction — back toward equilibrium. Units check: (N/m)·m = N ✓
Your turn — k = 150 N/m, stretched 4.0 cm. F = ?
Answer: −6.0 N (6.0 N toward equilibrium). F = −150 × 0.040 = −6.0 N. The negative sign says the force points opposite the stretch — restoring.
Example 2 — weighing k: a 2.0 kg mass hangs at rest, stretching the spring 10 cm
- At rest, forces balance. Upward spring pull = downward weight: k|x| = mg.
- Weight. mg = 2.0 × 9.8 = 19.6 N. Stretch x = 0.10 m.
- Solve. k = 19.6 / 0.10 = 196 N/m.
- Sanity check. ~200 N/m is a firm but ordinary spring — plausible for holding 2 kg with a 10 cm sag ✓
Your turn — a 0.50 kg mass hangs at rest, stretching a spring 2.5 cm. k = ?
Answer: 196 N/m. mg = 0.50 × 9.8 = 4.9 N; k = 4.9 / 0.025 = 196 N/m. Same stiffness as Example 2 — k belongs to the spring, not the load.
Example 3 — compression: k = 500 N/m, compressed 3.0 cm
- Set the axis. +x to the right. Compression means the end moved left: x = −0.030 m.
- Substitute. F = −kx = −500 × (−0.030) = +15 N.
- Read the sign. +15 N points +x — the spring pushes the mass back out toward equilibrium ✓
Your turn — k = 300 N/m, compressed 2.0 cm. F = ?
Answer: +6.0 N. x = −0.020 m, so F = −300 × (−0.020) = +6.0 N — pushing back toward equilibrium, as a compressed spring should.
Example 4 — judgment call: soft vs. stiff spring under a 20 N load
- Soft spring. |x| = F/k = 20/100 = 0.20 m.
- Stiff spring. |x| = 20/400 = 0.050 m — one quarter the stretch.
- The lesson. Stiffer spring (bigger k) → less stretch for the same force. A truck's suspension uses large k so a heavy load barely sags; a soft k would bottom out.
Your turn — a 12 N load: spring A (k = 60 N/m) vs. spring B (k = 240 N/m). Stretches?
Answer: A stretches 0.20 m, B stretches 0.050 m. xA = 12/60 = 0.20 m; xB = 12/240 = 0.050 m. B is 4× stiffer, so it stretches 1/4 as far.
Memorization tips
- Say the minus aloud: “F equals minus k x.” Dropping it in speech is how you drop it on paper.
- Minus = restoring. The force always points home to x = 0. If your answer's force points away from equilibrium, the sign is wrong — no exceptions.
- k is stiffness, not springiness. Big k = stiff = hard to stretch. N/m: newtons per metre of stretch.
- “Ut tensio, sic vis.” As the extension, so the force — Hooke's 1678 one-liner is the law.
- The doubling test (your 5-second self-check): double the load, double the stretch. If a problem's numbers don't scale that way, you're past the elastic limit — or misreading x.
- Rebuild from zero: no stretch → no force; a little stretch → a little restoring force. The formula just says that, linearly.
Final challenge
Five mixed questions — computations, units, series/parallel, and the traps, all in one. Score 5/5 and Hooke's law is yours.
← Back to the Physics I formula sheet
How to learn a formula here
- Read each section in order — every section ends with a short quiz. Take it before moving on; the questions test exactly what you just read.
- Work the examples with the answers covered, then uncover one step at a time and compare.
- Finish with the final challenge — five mixed questions including the classic traps.
- Retake what you miss — every quiz reshuffles each attempt, and every answer explains itself.
Frequently asked questions
What is the spring constant k?
The stiffness of the spring: the force needed per metre of stretch, in N/m. A larger k means a stiffer spring — more force for the same stretch.
Why is there a minus sign in F = −kx?
The minus sign makes the force restoring: it always points opposite the displacement, back toward equilibrium. Without it the formula would claim the spring pushes itself further outward.
Is x the spring's total length?
No — x is the displacement from the spring's natural (equilibrium) length: how far it is stretched or compressed. A 30 cm spring stretched to 35 cm has x = 5 cm.
Does Hooke's law work for rubber bands?
Only for small stretches. Real materials follow F = −kx up to their elastic limit; stretch a rubber band too far and the force grows faster than linear, then the material deforms permanently.
How do springs in series and parallel combine?
In parallel the k values add (k1 + k2) — each spring stretches the same amount and their forces add. In series 1/k = 1/k1 + 1/k2, so two identical springs in series give k/2.
More from the codex
Physics I formula sheet
All the mechanics formulas — kinematics, forces, energy — printable and quiz-ready.
Open sheet → LiveFormula Sheet Builder
Mix and match any sections into your own printable sheet.
Open tool → LivePrompt Simulator
Practice prompt engineering with deterministic scoring.
Open tool →Support the codex
This page is free, with no account and no ads. If it helped you learn, consider supporting the indie dev behind it.
Questions or a bug to report? Email [email protected].