Skip to content
DeviceCheckHub

Hooke’s Law Calculator

The force, spring constant or stretch of a spring from the other two, the spring constant from a hanging mass or two lengths, the bounce period of a mass on a spring, and the combined constant of springs in series or in parallel.

F = k × x

Stretches, lengths and the amplitude all use the length unit, and the masses the mass unit. Separate several spring constants with commas or spaces; leave the mass of the spring at 0 to ignore it.

Examples:
A spring of 200 N/m stretched 10 cm pushes back with 20 N.

F = 20 N

Force
20 N = 4.4962 lbf
Spring constant k
200 N/m = 1.142 lbf/in
Stretch
10 cm = 3.937 in
Energy stored
1 J
Compliance 1/k
5 mm/N
The same spring at other stretches
StretchForceEnergy
2.5 cm5 N0.0625 J
5 cm10 N0.25 J
7.5 cm15 N0.5625 J
10 cm (yours)20 N1 J
15 cm30 N2.25 J
20 cm40 N4 J

Steps

  1. Force: F = k × x = 200 N/m × 0.1 m = 20 N.
  2. Energy stored: U = ½ × k × x² = ½ × 200 N/m × (0.1 m)² = 1 J.
  • Hooke’s law holds only while the spring stays elastic. Stretched past its limit a spring bends for good and the force stops growing in proportion; check the maker’s rating for the largest safe stretch.

How to use the Hooke’s law calculator

  1. Choose what to work out: force and stretch with Hooke’s law, a mass bouncing on a spring, or several springs joined together.
  2. For Hooke’s law, pick the value to calculate and enter the other two. The load can be a force or a hanging mass, and the stretch can be the change in length or the spring’s length at rest and under the load.
  3. For a mass on a spring, enter the mass and the spring constant to get the period, or a period, a frequency or a count of bounces to get the spring constant or the mass.
  4. For several springs, list their spring constants, choose series or parallel, and enter the force on them.
  5. Read the answer in both metric and US units, with the steps and a table of the same spring under other loads.

Hooke’s law: F = kx

Pull on a spring and it stretches; push on it and it squeezes. Hooke’s law says that, within limits, the force F and the change in length x are proportional: F = k × x. The constant k, called the spring constant, the rate or the stiffness, is the force needed for each unit of stretch. In SI units the force is in newtons and the stretch in meters, so k is in newtons per meter, N/m; in US units it is often given in pounds-force per inch, lbf/in. The spring pushes back with an equal force the other way, the restoring force, which is why the law is often written F = −kx.

A spring of 200 N/m stretched 10 cm, or 0.1 m, pulls back with 200 × 0.1 = 20 N. Turned around, the same spring stretches x = F ÷ k = 25 cm under a force of 50 N. In US units, a spring of 1.2 lbf/in stretched 4 in takes 4.8 lbf, which is 21.351 N.

Finding the spring constant

The easiest way to measure k is to hang a known mass from the spring and see how far it stretches. The force is the mass’s weight, m × g with g = 9.80665 m/s², so k = m × g ÷ x. A 500 g mass that stretches a spring 2 cm weighs 4.9033 N, which gives k = 245.17 N/m. Measure the stretch from where the spring hangs without the mass, not from the ceiling or the hook. If you know the spring’s length at rest and under the load, choose “Two lengths”: a spring 10 cm long at rest that is 15 cm long under 20 N has stretched 5 cm, so k = 400 N/m.

The inverse of the spring constant is the compliance, 1 ÷ k, the stretch for each unit of force. A spring with a rate of 10 N/mm has a compliance of 0.1 mm/N. Watch the unit: 200 N/mm is a thousand times stiffer than 200 N/m, and stretched 10 cm it would take 20,000 N.

Energy stored in a spring

Stretching a spring takes work, which the spring stores as elastic potential energy, U = ½ × k × x². Because the stretch is squared, twice the stretch stores four times the energy: the 200 N/m spring holds 1 J at 10 cm and 4 J at 20 cm. The table under the result shows the force and energy at other stretches, and the potential energy calculator works out spring energy in other energy units.

A mass bouncing on a spring

A mass on a spring that is pulled down and let go bounces up and down in simple harmonic motion. Its period, the time for one bounce down and back, is T = 2π√(m ÷ k), and its frequency is f = 1 ÷ T. As long as the spring obeys Hooke’s law, the period does not depend on how far it bounces. A 0.5 kg mass on a spring of 200 N/m has a period of 0.31416 s, about 3.1831 Hz; four times the mass, 2 kg, doubles the period to 0.62832 s. This is also a way to measure k: count 10 bounces of a 0.5 kg mass taking 5 seconds, and the period of 0.5 s gives k = 78.957 N/m.

The formula treats the spring as weightless. A real spring moves with the mass, but not all of it moves as fast, so for a uniform spring a third of its own mass acts as if it were added to the load. A 60 g spring carrying 0.5 kg bounces with a period of 0.32038 s instead of 0.31416 s; enter the spring’s mass to include it.

Springs in series and in parallel

Springs joined end to end are in series: each carries the whole force, and their stretches add up. Their compliances add, 1 ÷ k = 1 ÷ k₁ + 1 ÷ k₂ + …, so the set is softer than its softest spring. Springs side by side are in parallel: they all stretch the same, and their spring constants add, k = k₁ + k₂ + …. A spring of 200 N/m and one of 300 N/m act like 120 N/m in series and 500 N/m in parallel. Three equal springs of 100 N/m in parallel make 300 N/m. These rules are the same as those for capacitors in an electric circuit.

Where Hooke’s law stops working

Hooke’s law is a first-order approximation. It holds well for small stretches, but no material can be squeezed beyond a certain size or stretched beyond another without changing for good, and many materials stray from the law well before those limits. A spring pulled past its limit stays longer after you let go. For a real spring, keep within the stretch or load its maker gives.

Hooke and the spring

The law is named after the British scientist Robert Hooke, who first stated it in 1676 as a Latin anagram, ceiiinosssttuv. In 1678 he published the answer, ut tensio, sic vis, “as the extension, so the force”, and wrote that he had known the law since 1660. Springs themselves are far older: a bow is a spring, coiled springs appeared in door locks early in the 15th century, and spring-driven clocks followed in the same century. Hooke’s law is the principle behind the spring scale, the galvanometer and the balance wheel of a mechanical clock.

Springs come in several kinds. Extension springs are made to be pulled, compression springs to be pushed, and torsion springs to be twisted, so that their rate is a torque per angle, such as N·m per radian, rather than a force per length. Other common springs include leaf springs in vehicle suspensions, Belleville washers that apply tension to bolts, and constant-force springs, tightly rolled ribbons that pull with nearly the same force as they unroll. Most are made of spring steel.

Common mistakes

Your values stay on your device

Everything is worked out in your browser. Nothing you type is sent anywhere or stored.

Frequently asked questions

What is Hooke’s law?

Hooke’s law says that the force needed to stretch or squeeze a spring is proportional to how far it moves: F = k × x, where k is the spring constant. The spring pushes back with the same force in the opposite direction, which is why the law is often written F = −kx.

How do I find the spring constant?

Hang a known mass from the spring and measure how far it stretches. The force is the weight, m × g, so k = m × g ÷ x. A 500 g mass that stretches a spring 2 cm gives k = 0.5 kg × 9.80665 m/s² ÷ 0.02 m = 245.17 N/m.

What are the units of the spring constant?

Force per length: newtons per meter (N/m) in SI units, also written as N/mm or kN/m, and pounds-force per inch (lbf/in) in US units. 1 lbf/in is about 175.13 N/m, and 200 N/m is 1.142 lbf/in.

How much energy does a stretched spring store?

U = ½ × k × x². A spring of 200 N/m stretched 10 cm stores 1 J; stretched twice as far, 20 cm, it stores 4 J, four times as much.

What is the period of a mass on a spring?

T = 2π√(m ÷ k), which does not depend on how far it bounces. A 0.5 kg mass on a spring of 200 N/m bounces with a period of 0.31416 s, 3.1831 Hz.

Is anything I type sent anywhere?

No. Everything is worked out in your browser, and nothing you type is sent anywhere or stored.

Last updated · About DeviceCheckHub