Hooke's Law Calculator
Hooke's law is one of the simplest and most widely applicable laws in physics: the force a spring exerts is directly proportional to how far it has been stretched or compressed from its natural length. Written as F = kx, the force F in newtons equals the spring constant k (in N/m) times the displacement x in metres. The spring constant k measures stiffness: a large k means a stiff spring that requires a large force for a small stretch, while a small k describes a soft spring that extends easily. The law applies not just to coiled metal springs but to any elastic material within its elastic limit, including rubber bands, suspension systems, elastic tendons, and even the bonds between atoms. This calculator solves Hooke's law in all three directions: find the force from k and x, find the spring constant from force and displacement, or find the displacement from force and spring constant. It also computes the elastic potential energy stored in the spring as PE = 0.5kx2. This quantity grows with the square of the displacement, so doubling the extension quadruples the stored energy, which is why over-stretched springs and bungee cords release so much energy on the return. The default example uses k = 200 N/m and x = 0.05 m, giving a restoring force of 10 N and a stored energy of 0.25 J. Results update as you type. Use this calculator for physics homework, for spring selection in engineering design, for understanding suspension systems, or to explore elastic potential energy in oscillating systems.
F = kx. Elastic PE = 0.5kx². Valid within the elastic limit. Results in SI units, rounded for display.
How it works
Hooke's law: F = kx. Spring constant: k = F/x. Displacement: x = F/k. Elastic potential energy: PE = 0.5kx². Because PE involves x squared, it is more sensitive to displacement than force is. The spring constant in N/m is the slope of the force-displacement graph and can be measured experimentally by dividing a known applied force by the resulting extension.
Worked example
A spring with constant k = 200 N/m is stretched x = 0.05 m (5 cm). Spring force = 200 times 0.05 = 10.00 N. Elastic PE = 0.5 times 200 times 0.05 squared = 0.5 times 200 times 0.0025 = 0.25 J. These match the default values pre-filled above.
Related calculators
- Pendulum Calculator: the other classic simple harmonic oscillator.
- Kinetic Energy Calculator: energy from mass and velocity.
- Work Calculator: work done by a force over a distance.
- Force Calculator: net force from mass and acceleration.
- Spring Potential Energy Calculator NZ: Calculate the elastic potential energy stored in a spring, with options for springs in series or parallel.