Hooke's Law Calculator

Solve Hooke's law F = kx for spring force, spring constant or stretch, and get the elastic energy stored in the spring (½kx²).

N/m
How stiff the spring is: newtons of force per meter of stretch.
How far the spring is stretched or compressed from its natural (relaxed) length.

Results

Spring force (F = kx)
7.5 N
Spring constant (k = F/x)
50 N/m
Stretch or compression (x = F/k)
0.15
Energy stored in the spring (½kx²)
0.5625

How it’s calculated

Hooke's law says the restoring force of a spring is proportional to how far it is stretched or compressed from its natural length. The constant of proportionality, k, is the spring constant (stiffness). The minus sign in the textbook form F = −kx only says that the spring pushes back against the displacement; this calculator gives the size of the force.

F = k · x k = F ÷ x x = F ÷ k Energy stored: E = ½ · k · x² (= ½ · F · x) F in newtons (N), k in N/m, x in meters, E in joules

Example (OpenStax College Physics 2e, Example 16.1): a car settles 1.20 cm when an 80.0 kg person gets in. The person's weight is F = 80.0 × 9.80 = 784 N, so the suspension springs have k = 784 ÷ 0.0120 = 6.53 × 10⁴ N/m. Example 16.2 from the same section: a toy-gun spring with k = 50.0 N/m compressed 0.150 m stores ½ × 50.0 × 0.150² = 0.563 J.

Hooke's law holds only up to the spring's elastic limit. Stretch a spring too far and it deforms permanently, and then F = kx no longer applies. For springs in series the combined stiffness is lower; side by side (parallel) the stiffnesses add.

Frequently asked questions

What are the units of the spring constant?

Newtons per meter (N/m) in SI. A stiff spring has a large k: it takes a lot of force to stretch it one meter.

Why is there a minus sign in F = −kx?

The force a spring exerts points opposite to the displacement, back toward the relaxed position. This calculator reports only the magnitude of the force and the distance.

How do I find the spring constant from a hanging weight?

Hang a known mass, measure how far the spring stretches, then use the "Spring constant" mode with F = m × 9.80665 N and x as the stretch. For a mass of 0.5 kg that stretches a spring 10 cm, F = 4.903 N and k = 49.03 N/m.

How much energy does a stretched spring store?

The energy is ½kx², the area under the force-versus-distance graph. Doubling the stretch quadruples the stored energy.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator