Skip to content
ScienceQuest

Hooke’s Law Calculator

CalculatorSchool Updated

Support ScienceQuest on Buy Me a Coffee (opens in a new tab)

Solve Hooke’s law, F = kx, for force, spring constant or extension, with the elastic energy stored and what happens when you double the stretch.

Calculator

25

Stiffness. A stiffer spring needs more force for the same stretch.

How far the spring is stretched or compressed from its natural length.

Energy stored
Half k x squared, the area under the force against extension graph.
0.625 J
Doubling the stretch
Energy goes as the square of extension, so twice the stretch stores four times the energy.
2.5 J
Force per cm
5 N/cm

Working, with your numbers

  1. F = k x
  2. = 500 × 0.05
  3. = 25 N

Values are converted into the units the equation is worked in before the arithmetic.

Cite this tool

Citing this tool

Last updated . Add the date you accessed it as well, which a citation of a page that can change asks for. If a specific result matters, cite the permalink from the tool’s share row instead of this page: it reproduces the exact parameters.

The equation

F=kxF = kx

Hooke, Lectures de Potentia Restitutiva, or of Spring (1678)

The equation as an image to reuse
Hooke’s Law Calculator: the equation F = kx, solved for any of F, k and x.
The equation the calculator is built on, with its source. Image © ScienceQuest, CC BY 4.0. Free to reuse with credit and a link to this page; how to reuse it. Download PNG

What is the Hooke’s law formula?

The Hooke’s law formula calculates elastic restoring force: F = kx (or F = −kx, the minus sign showing that the restoring force opposes the displacement), where F is the applied or restoring force in newtons (N), k is the spring constant in newtons per meter (N/m), and x is the extension or compression from the spring’s natural length in meters (m).

Stiffness is the slope of a straight line

Hooke’s law says that the force a spring resists with grows in direct proportion to how far it has been moved from its natural length. Write it as F = kx and the spring constant k is nothing more than the slope of that line, measured in newtons per meter. A 500 N/m spring needs 5 N for every centimeter of stretch, and it needs the same 5 N for the tenth centimeter as it did for the first. Textbooks often write F = -kx, where the minus sign records that the spring pulls back toward its rest position rather than along the displacement. The calculator works in magnitudes, so the sign is dropped.

The proportionality is a property of the material, not a universal truth. It holds only up to the limit of proportionality. Past that the line curves over, and any figure calculated from F = kx will overstate what the spring can still give back. The elastic limit comes at or after the limit of proportionality: up to it the spring still returns to its original length when released, and past it the metal takes a permanent set.

Worked example

A spring of stiffness 500 N/m is pulled 5 cm past its natural length.

  • Convert the extension: 5 cm = 0.05 m
  • F = k x = 500 × 0.05
  • F = 25 N
  • E = 0.5 × k × x² = 0.5 × 500 × 0.05²
  • E = 0.5 × 500 × 0.0025 = 0.625 J

So a 25 N pull is held by 0.625 J of stored elastic energy. Pull the same spring to 10 cm and the force doubles to 50 N while the energy quadruples to 2.5 J. The force per centimeter readout stays at 5 N/cm throughout, because that figure is just k in other units.

Why the energy is half k x squared

The force is not constant while you stretch a spring. It begins at zero and only reaches kx at full extension. Work is the area under the force against extension graph, and because that graph is a straight line through the origin, the area is a triangle of base x and height kx. Half base times height gives 0.5 k x². Treating the final force as though it applied for the whole stretch would give k x², exactly twice the truth, which is the single most common error in this calculation.

Because the extension is squared, energy climbs much faster than force. Double the stretch for four times the energy; triple it for nine times. Split a spring’s stretch into two halves and the second half stores three times what the first half did.

Combining springs follows from F = kx alone. Two identical springs in series each carry the full load and each stretch fully, so the pair moves twice as far for the same force and the effective constant halves: two 500 N/m springs in series behave as 250 N/m. In parallel they share the load, so the pair is twice as stiff at 1000 N/m. Cutting one spring in half doubles its constant, since half the coils stretch half as far under the same pull.

Common mistakes

  • Using the total length rather than the extension. A spring 20 cm long at rest and pulled out to 25 cm has an extension of 5 cm, not 25 cm. Everything in this formula is measured from the natural length.
  • Mixing centimeters into a constant quoted in N/m. Feeding 5 into F = 500x gives 2500 N instead of 25 N, a hundredfold error. The unit selector on the extension field exists to prevent exactly this.
  • Multiplying kx by x for the energy. That gives 1.25 J here instead of 0.625 J. The factor of one half is not decoration; it is the difference between a triangle and a rectangle.
  • Extrapolating past the working range. A constant measured over a 5 cm stretch says little about the same spring at 50 cm, where it may already be permanently deformed.

Sources

OpenStax University Physics Volume 1, section 15.1 for Hooke’s law, F = −kx, section 7.1 for the work done on a spring, ½k(x_B² − x_A²), and section 12.4 for the linearity limit coming before the elastic limit. The series, parallel and cut-spring constants are worked out on this page from F = kx. Hooke announced the law in his 1678 lecture Lectures de potentia restitutiva, or of spring, as the MacTutor biography records.

How to calculate spring force with Hooke’s law

  1. Write down the formula: F = k x
  2. Gather the values it needs. The calculator above starts with these:
    • Spring constant: k = 500 N/m
    • Extension: x = 5 cm
  3. Substitute them and work through the arithmetic. The first worked example below runs these values, line by line.
  4. To find one of the other values instead, rearrange the formula for it:
    • Spring constant: k = F ÷ x
    • Extension: x = F ÷ k

More worked examples

Each one runs through the calculator above, so the arithmetic here is the arithmetic it does.

What force compresses a 500 N/m spring by 5 cm?

  1. F = k x
  2. = 500 × 0.05
  3. = 25 N

25 N, and the centimeters have to become meters because the spring constant is quoted per meter. Using 5 rather than 0.05 gives 2500 N, a hundredfold error, which is the most common mistake with this equation by a wide margin.

What is the spring constant if 12 N stretches a spring 3 cm?

  1. k = F / x
  2. = 12 / 0.03
  3. = 400 N/m

400 N/m. The constant is a property of the spring itself, not of the load you happened to hang on it, so measuring with a different weight must give the same answer. If it does not, the spring has been stretched past its limit of proportionality.

How far does a 250 N/m spring stretch under a 10 N load?

  1. x = F / k
  2. = 10 / 250
  3. = 0.04 m

4 cm. Hooke’s law is linear only up to the limit of proportionality, so doubling the load to 20 N gives 8 cm on a real spring, but 60 N may not give 24 cm. Past that point the constant is no longer constant, and past the elastic limit, which comes at or after it, the spring deforms permanently.

Common questions

Why is the energy stored half kx squared rather than kx squared?

Because the force is not constant while you stretch it. It starts at zero and rises to kx, so the work done is the area under a straight line from the origin, which is a triangle rather than a rectangle. The area of that triangle is half base times height, giving half kx squared.

When does Hooke’s law stop working?

Past the limit of proportionality. Up to that point extension is proportional to force. Beyond it the line curves, so a calculated value for a heavily stretched spring will overestimate the force it can return. The elastic limit comes at or after the limit of proportionality: up to it the spring still returns to its original length, and past it the material deforms permanently.

What happens to the spring constant if I cut a spring in half?

It doubles, which follows from F = kx: under the same load half the coils stretch half as far, so the stiffness goes up. Two identical springs in series behave like one spring of half the constant, and two in parallel like one of double the constant.