Skip to content
Omnikalc

Hooke's law calculator: spring force and energy

Calculate the force of a spring from its stiffness and how far it is stretched or compressed, with the stored energy and the equivalent hanging mass.

Updated on
Your inputs

Value out of range

Value out of range

Results

Spring force

8.90 N

Elastic potential energy

0.226 J

In pounds-force
2.00 lbf
Hanging mass that stretches it this far
2.00 lb
Natural frequency with that mass
2.21 Hz

Hooke’s law

For a spring, or any elastic material within its limits, the restoring force is proportional to the displacement from rest:

F = k × x

  • k: spring constant or stiffness, in newtons per meter (N/m) or pounds-force per inch (lbf/in)
  • x: how far the spring is stretched or compressed

A stiff spring has a large k; a soft spring a small one. 1 lbf/in equals about 175 N/m.

Stored energy

Work done to stretch a spring is stored as elastic potential energy:

E = ½ × k × x²

Doubling the stretch quadruples the stored energy.

Worked example

A spring has a stiffness of 1 lbf/in (175 N/m) and is stretched 2 inches (5.08 cm).

  1. Force: 1 × 2 = 2 lbf, or 8.90 N.
  2. Energy: ½ × 175 × 0.0508² = 0.226 J.
  3. Hanging mass that stretches it that far: a 2 lb weight.
  4. If that mass bounces on the spring, it oscillates at f = √(g ÷ x) ÷ 2π = 2.21 Hz.

Measuring a spring constant

  1. Hang the spring and note its length.
  2. Add a known mass and measure the new length.
  3. Compute k = m × g ÷ stretch.
  4. Repeat with several masses and plot force against stretch: the slope of the straight line is k.

Springs in series and in parallel

  • In parallel (side by side), stiffnesses add: k = k₁ + k₂.
  • In series (end to end), the inverses add: 1/k = 1/k₁ + 1/k₂, so the combination is softer.

Where it applies

Hooke’s law describes car suspensions, mattress coils, scales, trampolines and the tiny deformations of beams and bridges. It fails beyond the elastic limit, where the material deforms permanently, and for materials like rubber, whose force grows non-linearly with stretch.

Natural frequency

A mass m on a spring of stiffness k oscillates at f = (1 ÷ 2π) × √(k ÷ m). With the mass that produces a static stretch x, this simplifies to √(g ÷ x) ÷ 2π, which is why a car with soft suspension bounces slowly.

Frequently asked questions

What is Hooke's law?

Within its elastic limit, the force a spring exerts is proportional to how far it is stretched or compressed: F = k × x, where k is the spring constant.

How do I find a spring constant?

Hang a known mass from the spring and measure the stretch. k = m × g ÷ x. If a 1 kg mass stretches a spring by 5 cm, k = 9.81 ÷ 0.05 = 196 N/m.

How much energy does a spring store?

The elastic potential energy is ½ k x². A 200 N/m spring stretched 5 cm stores ½ × 200 × 0.05² = 0.25 joule.

When does Hooke's law stop working?

Beyond the elastic limit, the material deforms permanently and force is no longer proportional to stretch. Rubber bands and very large deformations also behave non-linearly.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.