Physics

Hooke’s Law Calculator

Calculate spring force from the spring constant and displacement.


Hooke’s Law Calculator

Advertisement

Calculates the restoring force an ideal spring exerts when stretched or compressed from its rest position.

How it works

The spring constant is multiplied by the displacement from rest to give the restoring force.

What this does not include

This only applies within a spring’s elastic limit — stretch or compress a spring too far and it permanently deforms, at which point this formula no longer holds.

How to use this calculator

  1. Enter the spring constant and the displacement from the spring’s rest position.

A worked example

A spring with constant 200 N/m stretched 0.05 m: force = k × x = 200 × 0.05 = 10 N.

A stiffer spring, constant 500 N/m, stretched only 0.02 m: force is also 10 N — a stiffer spring needs less displacement to produce the same force.

What the variables mean

Variable Meaning
Spring constant (k) Stiffness of the spring, in newtons per meter
Displacement (x) Distance the spring is stretched or compressed from its rest length

Edge cases worth knowing

The same force can come from very different spring/displacement combinations — the two examples above both produce 10 N, showing force depends on the product, not either value alone.

Hooke’s law only holds within a spring’s elastic limit. Stretch a spring too far and it permanently deforms, and the force no longer scales linearly with displacement — a limit this simple formula doesn’t capture.

Frequently asked questions

What does a higher spring constant mean?

A stiffer spring — it takes more force to stretch or compress it the same distance compared to a spring with a lower constant.

Why is it called a “restoring” force?

Because the spring always pushes or pulls back toward its rest position, opposing whatever displaced it — that’s what makes springs useful for oscillation and shock absorption.

What’s the elastic limit?

The point beyond which a spring stops returning to its original shape — stretch it past this limit and it permanently deforms, and Hooke’s law no longer predicts its behavior accurately.

Be the first to rate this

Written by

R. Solano

Physics writer

R. Solano writes the physics calculators, spanning mechanics, electricity, optics and thermodynamics. Each page names the physical model it uses and the conditions under which that model holds — ideal gas, no air resistance, small-angle approximation — because a physics result without its assumptions is a number without a meaning. Formulas are given in symbols first, then in the calculator.

Reviewed by

V. Kowalski

Calculator reviewer — physics and engineering

V. Kowalski reviews the physics and engineering calculators, checking that each page states the physical model it assumes and that the stated model matches the formula actually implemented. Review covers unit consistency throughout a calculation and whether approximations are flagged where the underlying physics is more complicated than the formula suggests.

How we write and review

Related calculators