Skip to content
K Knidox Search…
Physics · Mechanics

Hooke’s Law Calculator (F = k × x)

Solve the spring equation for force, spring constant, or displacement.

N/m
m
Spring force (F)
20N

Elastic potential energy: ½kx² = 1 J.

Force vs extension — the slope is the spring constant k
Straight line F = kx through the origin; force rises to 20 N at 0.1 m extension20 N000.1 m

Hooke’s law is F = k × x: the force a spring exerts equals its spring constant times how far it is stretched or compressed. A spring with k = 200 N/m pulled 0.1 m needs F = 200 × 0.1 = 20 N. Rearrange to k = F ÷ x or x = F ÷ k for the other two.

What Hooke’s law says

Within its elastic range, a spring resists being deformed by an amount proportional to the deformation: F = k × x. Here x is the displacement from the spring’s natural (unstretched) length and k is the spring constant — a measure of stiffness. Double the stretch and you double the force; the relationship is perfectly linear until the material starts to give. Because it is one equation with three variables, knowing any two yields the third.

F = k × x  ·  k = F ÷ x  ·  x = F ÷ k

F = spring force (N), k = spring constant (N/m), x = displacement (m)

Worked example

A spring has a stiffness of k = 200 N/m and is stretched x = 0.1 m. How much force does it take?

  1. 1
    Write Hooke’s law. F = k × x, with k in N/m and x (the displacement from rest length) in metres.
  2. 2
    Substitute the known values. F = 200 N/m × 0.1 m.
  3. 3
    Compute the force. F = 20 N — the force needed to hold the spring at that stretch, equal in size to the spring’s restoring force.

Spring quantities at a glance

A stiffer spring has a larger k; the energy stored while deforming it is the elastic potential energy ½kx².

QuantityFormulaSI unit
Spring forceF = k × xnewton (N)
Spring constantk = F ÷ xnewton per metre (N/m)
Displacementx = F ÷ kmetre (m)
Elastic potential energyE = ½kx²joule (J)

The restoring force and where it breaks down

The spring pushes back. A stretched or compressed spring exerts a force that tries to return it to its rest length — opposite to the displacement. That is why Hooke’s law is often written F = −kx: the minus sign marks the restoring force as pointing against x. The plain F = k × x gives its magnitude.

Linearity has limits. Hooke’s law holds only up to the elastic limit. Stretch a spring too far and it deforms permanently or the force stops rising in step with x; beyond that point the simple formula no longer applies and the spring may not return to its original shape.

What is the spring constant k?
It is the spring’s stiffness — the force needed per metre of stretch, measured in newtons per metre (N/m). A spring with k = 200 N/m takes 200 N to stretch it one full metre, or 20 N to stretch it 0.1 m.
Why is Hooke’s law sometimes written F = −kx?
The minus sign shows the spring’s restoring force points opposite to the displacement, always pulling or pushing back toward the rest length. F = k × x gives the magnitude; F = −kx adds the direction.
What is the elastic limit?
It is the maximum deformation for which force stays proportional to stretch. Past the elastic limit the spring deforms permanently and Hooke’s law no longer holds, so the calculator’s linear result is only valid below that point.
How do I find the elastic potential energy?
Use E = ½kx². For k = 200 N/m stretched x = 0.1 m, E = ½ × 200 × 0.1² = 1 J. This is the energy stored in the spring while it is deformed.
What units should I use?
SI units: newtons (N) for force, newtons per metre (N/m) for the spring constant, and metres (m) for displacement. Convert centimetres or millimetres to metres before calculating.
Does x mean the spring’s length?
No — x is the displacement from the spring’s natural, unstretched length, not its total length. A spring stretched 0.1 m beyond rest has x = 0.1 m regardless of how long it is overall.