Hooke's Law Calculator
Hooke's law says a spring's force is proportional to how far it is stretched, F = k x x. Pick which quantity to solve for, enter the other two in SI units, and the calculator returns the missing value along with the elastic potential energy stored in the spring. For example a 200 N/m spring stretched 0.1 m pushes back with 20 N and stores 1 joule.
How to use the Hooke's law calculator
- Choose whether to solve for force, spring constant or displacement from the dropdown.
- Enter the two remaining known values in SI units of N, N/m and m.
- Read the solved quantity on the highlighted result card.
- Read the elastic potential energy in joules on the second card.
- Press Copy to grab the result line.
Examples
Force from constant and stretch
k = 200 N/m, x = 0.1 m
F = 20 N, energy = 1 J
Spring constant from force and stretch
F = 50 N, x = 0.25 m
k = 200 N/m, energy = 6.25 J
Displacement from force and constant
F = 30 N, k = 150 N/m
x = 0.2 m, energy = 3 J
Frequently asked questions
What is Hooke's law?
Hooke's law states that the restoring force of a spring is proportional to its displacement from the natural length: F = k x x, where k is the spring constant and x is the stretch or compression. The stiffer the spring, the more force a given stretch produces.
How do I find the spring constant?
Rearrange the law to k = F / x, so divide the spring force by the displacement. A 50 N force at a 0.25 m stretch gives a spring constant of 200 N/m.
How do I find the displacement?
Rearrange to x = F / k, dividing the force by the spring constant. A 30 N force on a 150 N/m spring stretches it 0.2 m.
How is elastic potential energy calculated?
The energy stored in a stretched spring is one half times the spring constant times the displacement squared, PE = 0.5 x k x x^2, in joules. The tool reports it on every result alongside the solved quantity.
What units should I use?
Use newtons for force, newtons per meter for the spring constant and meters for displacement. With those SI inputs the energy comes out in joules. Convert centimeters to meters before entering them.
Why must every value be greater than zero?
The calculator works with magnitudes and requires positive inputs, so it treats the size of the stretch and force rather than their direction. Enter the amount of compression as a positive number if you are compressing rather than stretching.
Does Hooke's law always hold?
Only within the elastic limit of the spring. Stretch it too far and it deforms permanently or breaks, and the straight-line relationship F = k x x no longer applies beyond that point.
How do springs combine in series or parallel?
This tool models a single spring. Springs side by side (parallel) add their constants, while springs end to end (series) combine as reciprocals, giving a softer overall stiffness. Work out the effective constant first, then enter it here.
Is anything sent to a server?
No. The algebra runs in your browser, so the values you enter are never uploaded.
Learn more
- Spring constant, stiffness and stored energy
What the spring constant really measures, why stored energy grows with the square of the stretch, and where Hooke's law breaks down.
Related tools
Kinetic Energy Calculator
Calculate kinetic energy, mass or velocity using KE = 1/2 m v^2. Enter any two values in SI units (kg, m/s, joules) to solve for the third.
Force Calculator
Solve Newton's second law online. Enter any two of force, mass or acceleration and get the third, in newtons, kilograms and metres per second squared.
Mechanical Advantage Calculator
Calculate actual mechanical advantage from load and effort force, AMA = load / effort. Add the ideal mechanical advantage to find efficiency as a percent.
Torque Calculator
Calculate torque from force, lever arm and angle using T = F x r x sin(theta). Solve for torque, force or lever arm in newton-metres, 90 degrees by default.
555 Timer Calculator
Calculate 555 timer astable frequency, period, high and low times and duty cycle from R1, R2 and the timing capacitor. Free oscillator design helper.
Absolute Humidity Calculator
Calculate absolute humidity in grams of water vapor per cubic meter from air temperature and relative humidity. Fast, free and works in your browser.