Boneyard Tools

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

  1. Choose whether to solve for force, spring constant or displacement from the dropdown.
  2. Enter the two remaining known values in SI units of N, N/m and m.
  3. Read the solved quantity on the highlighted result card.
  4. Read the elastic potential energy in joules on the second card.
  5. 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

Related tools