Hooke's Law Calculator

Force F = k·x (N)—
Spring constant k = F ÷ x (N/m)—
Extension x = F ÷ k (m)—

How Hooke's Law Calculator is calculated: F = k·x; k = F ÷ x; x = F ÷ k

What is a Hooke's Law Calculator?

The Hooke's Law Calculator is a free online tool that finds the spring force, the spring constant or the extension from the other two, using Hooke's law. School physics students working through springs, elasticity and oscillations use it when how far a spring stretches under a load, or how stiff a spring is from a force and a stretch. Instead of rearranging F = kx for the unknown, where the division is easy to do backwards, you type the force, the spring constant, and the extension and the calculator returns the force from k times x, the constant from F over x, and the extension from F over k straight away.

The working idea is simple. the calculator evaluates all three rearrangements of F = kx from your inputs and shows them together The three answers are the same law read three ways: the force is k times x, the constant is F over x, and the extension is F over k. When the inputs are consistent, all three forms agree with each other — which is the check the calculator provides. There is no sign-up and nothing to install: the page runs entirely in your browser, so your numbers never leave your device.

That matters because Hooke's law is the simplest model of elasticity: the stretch of a spring is proportional to the pull, and the constant of proportionality is the stiffness of the spring Hooke's law only holds within the elastic limit. Stretch a spring too far and it deforms permanently, and the force no longer follows F = kx — the law breaks down, not the calculator. The rest of this page walks through the formula, the input people get wrong most often, and a worked example with real numbers you can check by hand.

How a Hooke's Law Calculator works

At its core, the calculator applies the force is the spring constant times the extension. F = k·x, where F is the force in newtons, k is the spring constant in N/m, and x is the extension from the unstretched length in metres. The vector form is F = −kx, with the minus sign saying the spring pulls back towards its natural length. The formula box at the top of this page shows the same rule in symbols: F = k·x; k = F ÷ x; x = F ÷ k.

The calculator multiplies k by x for the force, divides F by x for the constant, and divides F by k for the extension. The arithmetic is exact; only the two decimals shown are rounded. A zero extension gives a dash for the constant, because you cannot divide by zero, and a zero constant gives a dash for the extension. A negative extension means compression, and the law works the same way with the sign flipped.

The arithmetic is exact for the linear elastic model, so any error in the answer comes from the measurements, not the calculation A force converter can help you check the numbers that feed into this step, and it is worth doing that check before you trust an answer that looks surprising.

The calculator does the arithmetic, but the judgement stays with you: check that the inputs are the ones the problem states, that the units match, and that the answer is in the range you expect before you use it anywhere else. A result that surprises you is usually a mistyped input, not a broken formula.

The the extension explained

The extension is the input people get wrong most often, because it must be the change in length from the unstretched spring, not the total length. A spring that is 30 cm long unstretched and 35 cm long under load has an extension of 5 cm, not 35 cm — and using the total length makes the constant come out far too small. The extension is the stretch, measured from where the spring starts.

Measure the length with no load, then the length with the load, and subtract: the difference is the extension, in metres. If the lengths are in centimetres, divide by 100 first. Check the units: k is in N/m, so the extension must be in metres. An extension of 5 cm is 0.05 m, and entering 5 instead of 0.05 makes the force a hundred times too big.

For the defaults, 200 × 0.05 = 10 N, and 10 ÷ 0.05 = 200 N/m, and 10 ÷ 200 = 0.05 m — all three forms agree, which is the sign the inputs are consistent. A length converter is a good cross-check when the input comes from a measurement or a table rather than from a textbook problem.

A worked example

Take the default numbers on this page: a spring with constant 200 N/m stretched by 0.05 m, with a force of 10 N.

The force is F = 200 × 0.05 = 10 N. The constant from the force and extension is 200 N/m, and the extension from the force and constant is 0.05 m.

A 10 N pull — about the weight of a kilogram — stretches this spring by 5 cm, which is a moderately stiff spring: a soft spring would stretch further under the same pull, and a car suspension spring far less. Double the force to 20 N and the extension doubles to 0.1 m, because the relationship is linear — that proportionality is the whole content of Hooke's law.

You can check the arithmetic above with a pocket calculator: take the inputs, apply the formula step by step, and compare each intermediate value with the one shown. If a step disagrees, the input that feeds it is usually the cause — a mistyped digit, a wrong unit, or a value entered in the wrong box.

Where the Hooke's Law Calculator is used

In car suspension, Hooke's law sizes the springs: the spring constant decides how far the suspension compresses under the car's weight, and how stiff the ride feels.

In weighing scales, a spring balance measures force by extension: the stretch is proportional to the weight, so the scale can be marked in kilograms directly from the stretch. A weight converter often sits next to it in the same workflow, because the two answers answer different halves of the same question.

In seismometers, a mass on a spring records the ground's motion: the ground moves, the mass stays nearly still, and the spring's extension measures the difference.

It also helps to keep the units consistent from the first number to the last. Mixing units — metres with centimetres, degrees with radians, seconds with minutes — is the quietest way to get an answer that looks plausible and is wrong by a large factor. Write the unit next to every number you enter, and check the result's unit against the unit you expect before you use the answer anywhere else.

Hooke's Law Calculator vs Force Converter

A force converter changes the unit of a force — newtons to pounds-force, for example — without changing the physics. This calculator finds a force from a spring: the pull is the spring constant times the extension, which is a relationship between force and stretch, not a unit change.

Use the force converter when you have a force and need it in another unit. Use this calculator when you have a spring and need the force, the stiffness or the stretch from the other two. The distance calculator covers the other side of the same problem, so the two tools complement each other rather than compete.

The two meet in practice: the force here is in newtons, and if your force is in pounds-force, convert it to newtons first, then divide by the extension in metres to get the spring constant.

Common mistakes with the Hooke's Law Calculator

The first mistake is using the total length instead of the extension. The law needs the change in length from the unstretched spring, and using the full length makes the constant far too small.

The second mistake is mixing centimetres and metres. The spring constant is in N/m, so the extension must be in metres — 5 cm is 0.05 m, and entering 5 makes the force a hundred times too big.

The third mistake is applying Hooke's law past the elastic limit. Stretch a spring too far and it stays stretched when you let go — the linear law no longer holds, and the spring is permanently deformed.

A last mistake is trusting the first answer without a rough check. Before you accept a result, estimate it by hand to one significant figure: if the calculator says 400 and your rough estimate says 40, something is off — usually a misplaced decimal point or a wrong unit. The calculator does the arithmetic; the judgement about whether the answer makes sense still belongs to you.

How to use this Hooke's Law Calculator

Open the page and enter the force, the spring constant, and the extension. Enter the force, the spring constant and the extension. All three rearrangements appear at once, so you can check one against the others.

Read the force in newtons as the pull the spring exerts, the constant in N/m as the stiffness, and the extension in metres as the stretch from the natural length. If the three forms disagree, the inputs are inconsistent — check the extension first, because it is the input most often measured wrong.

Everything runs in your browser. No account, no upload, no data sent anywhere — your numbers never leave your device. If a result looks wrong, re-check the inputs first: a single mistyped number is the usual cause, and a force converter will confirm the arithmetic.

Frequently Asked Questions

The force is 10 N, from F = 200 × 0.05 = 10 N. The spring constant is 200 N/m and the extension is 0.05 m.

the force is the spring constant times the extension F = k·x, where F is the force in newtons, k is the spring constant in N/m, and x is the extension from the unstretched length in metres. The vector form is F = −kx, with the minus sign saying the spring pulls back towards its natural length.

It is the stiffness of the spring, measured in newtons per metre: the force needed to stretch the spring by one metre. A constant of 200 N/m means 200 N stretches the spring by 1 m, or 10 N stretches it by 0.05 m. Stiffer springs have larger constants, and the constant depends on the material, the wire thickness and the number of coils.

Past the elastic limit, the point where the spring stops returning to its original length. Up to that point the extension is proportional to the force; beyond it the spring deforms permanently, and eventually it breaks. The limit is a property of the spring, and it is why springs are rated for a maximum load.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.