Hooke's Law Calculator
Apply Hooke's Law to calculate the restoring force of a spring, the displacement, or the spring constant. Also calculates the elastic potential energy stored in the spring using PE = ½kx².
Hooke's Law describes the linear relationship between force and deformation in elastic materials. Formulated by Robert Hooke in 1660 (and originally published as the anagram "ceiiinosssttuv" — Latin "ut tensio sic vis" or "as the extension, so the force"), it states that the restoring force of a spring is proportional to its displacement from equilibrium: F = kx. This single equation underlies countless mechanical systems.
The spring constant k measures stiffness: high k means a stiff spring (large force per unit stretch), low k means soft (large stretch per unit force). Units are newtons per meter (N/m). A typical car shock absorber spring has k ~ 20,000 N/m. A retractable pen spring has k ~ 100-500 N/m. A trampoline spring has k ~ 2,000-5,000 N/m. A skyscraper structural element behaves like a spring with k of millions of N/m for small deflections.
Hooke's Law holds only within the elastic limit — the range where the material returns to its original shape when force is removed. Beyond this, plastic deformation occurs (permanent change) and eventually fracture. Most engineering relies on staying well within elastic limits to ensure repeatable behavior.
The elastic potential energy stored in a deformed spring is PE = ½kx² — quadratic in displacement. This means doubling the stretch quadruples the stored energy, basis of bows, slingshots, suspension systems, and mechanical clocks.
Common applications: structural engineering (deflection analysis), vehicle suspensions, mattresses and seating, mechanical timing devices, musical instruments (string tension), atomic force microscopy, and any system involving elastic deformation.
Inputs
Results
Restoring Force
10 N
Elastic PE
0.25 J
PE (mJ)
250.00 mJ
Hooke's Law Results
| Parameter | Value |
|---|---|
| Spring Constant (k) | 200 N/m |
| Displacement (x) | 0.05 m (5.0000 cm) |
| Restoring Force (F) | 10 N |
| Force (lbf) | 2.2481 lbf |
| Elastic PE | 0.25 J |
| Elastic PE (mJ) | 250.0000 mJ |
| Force at 2x displacement | 20 N |
| PE at 2x displacement | 1 J (4×) |
| Force Formula | F = kx |
| Energy Formula | PE = ½kx² |
Formula
How to use this calculator
- Enter spring constant k in N/m.
- Enter displacement x in meters.
- Calculator returns restoring force F and elastic potential energy PE.
- For springs in parallel: add k values.
- For springs in series: add reciprocals.
- For oscillation: f = (1/2π) × √(k/m).
Worked examples
Bathroom scale
**Scenario:** A 70 kg person stands on a bathroom scale with k = 200,000 N/m. How much does the spring compress? **Calculation:** F = mg = 70 × 9.81 = 686.7 N. x = F/k = 686.7 / 200,000 ≈ 0.0034 m = 3.4 mm. **Result:** Only ~3.4 mm of compression — invisible to the eye but measured electronically. Mechanical scales convert this displacement to a dial reading via gears and levers.
Bungee jump
**Scenario:** Bungee cord k = 75 N/m. Jumper m = 80 kg. Maximum stretch? **Calculation:** At lowest point, PE_grav = PE_elastic. Energy conservation including initial fall to natural cord length: complex. For simple equilibrium stretch: mg = kx → x = 80 × 9.81 / 75 ≈ 10.5 m. Actual max stretch is ~2× this due to oscillation overshoot. **Result:** Equilibrium ~10.5 m stretch; dynamic max ~21 m below natural cord length. Designers select k so max stretch doesn't exceed safe limit (often 100-150% of natural length).
Slinky toy
**Scenario:** Slinky k ≈ 0.7 N/m. Hang it vertically; it stretches under its own weight (mass ~0.2 kg, distributed). Approximate maximum stretch? **Calculation:** F = mg = 0.2 × 9.81 ≈ 2 N. If all weight concentrated at end: x = 2 / 0.7 ≈ 2.86 m. Real slinky distributes weight → ~1 m stretch. **Result:** ~1 m stretch from gravity alone — characteristic of a very soft spring. Why slinkies "walk" down stairs: top releases its potential energy gradually as it falls toward the leading coil.
When to use this calculator
**Use Hooke's Law for:**
- **Mechanical design**: springs, suspensions, vibration isolation. - **Structural analysis**: beam deflection (within elastic range). - **Materials testing**: Young's modulus determination. - **Vibration analysis**: natural frequencies, modal shapes. - **Biomechanics**: tendon and ligament behavior. - **Atomic force microscopy**: cantilever-tip interactions. - **Physics problems**: SHM, energy conservation.
**Limitations:**
- **Elastic limit**: Hooke's law fails beyond it. - **Material**: rubber, foam, bio-tissues are highly nonlinear. - **Temperature**: k changes with T. - **Frequency**: dynamic behavior (viscoelastic materials). - **Buckling**: long thin springs/rods can fail by buckling, not Hooke's law.
**Vehicle suspension design:**
For a car with mass m on 4 springs (k each): - Sprung weight per spring: mg/4. - Sag (compression at rest): x = mg/(4k). - Natural frequency: f = (1/2π) × √(4k/m).
Typical sedan: f ≈ 1.5 Hz (60 cycles per minute) — comfortable ride. Sports car: f ≈ 2-3 Hz (firmer). Track car: f > 3 Hz (very stiff).
**Damping ratio:**
ζ = b / (2√(km))
- ζ < 1: underdamped (oscillates). - ζ = 1: critically damped (fastest stable return). - ζ > 1: overdamped (slow return).
Cars are typically ζ ≈ 0.3-0.6 — somewhat underdamped for comfortable ride.
**Common applications:**
- **Watchmaking**: spiral hairspring drives precision oscillations (4-5 Hz typically). - **Bowstring**: stores 50-200 J of energy. - **Pogo stick**: stores ~100 J at bottom; releases for jumps. - **Trampoline**: springs around perimeter; deflection ~20 cm at impact. - **Shock absorber**: spring + damper; tunes ride quality. - **Atomic force microscope**: nN-scale forces from cantilever bending.
**Elastic limits (% strain):**
| Material | Elastic limit | |---|---| | Rubber | 100-700% | | Soft steel | 0.2% | | Hardened steel | 1.0% | | Aluminum | 0.5% | | Wood | 0.5-1.0% | | Concrete | 0.05% (very brittle) | | Bone | 0.5-1% |
**Beyond elastic:**
- **Yield strength**: stress at which permanent deformation begins. - **Ultimate tensile strength**: max stress before failure. - **Strain hardening**: material becomes harder/stronger after plastic deformation. - **Fatigue**: cyclic loading can cause failure below static limits.
**Software:**
- **FEA tools**: ANSYS, Abaqus for stress-strain analysis. - **CAD with simulation**: SolidWorks Simulation, Fusion 360. - **MATLAB**: dynamic system modeling.
**Pitfalls:**
- **Confusing F = kx with F = ½kx² (energy)**: linear vs quadratic. - **Using Hooke beyond elastic limit**: nonlinear or plastic regime. - **Static vs dynamic**: damping changes effective stiffness at high frequencies. - **Series vs parallel confusion**: reciprocals vs sums. - **Forgetting buckling for long, thin elements**. - **Forgetting Hooke applies to small displacements**: large deflections need nonlinear analysis. - **Wrong sign**: F is restoring (opposite to displacement).
Common mistakes to avoid
- Using F = ½kx² (energy) when F = kx (force) is needed.
- Applying Hooke's law beyond the elastic limit.
- Confusing series and parallel spring formulas.
- Forgetting Hooke's law is for small displacements (large deflections need nonlinear analysis).
- Ignoring damping in dynamic systems.
- Forgetting buckling can occur instead of elastic compression.
- Treating rubber as Hookean (it's highly nonlinear at large strains).
- Using wrong units (N/m vs N/cm, etc.).