Hooke's Law Calculator

Calculate spring force, spring constant or extension using Hooke's law F = kx. Also gives the elastic potential energy stored in the spring.

Last updated 28 November 2026

ResultEnter values to calculate
    Show calculation steps

    What is Hooke's law?

    Hooke's Law: The force needed to stretch or compress a spring is proportional to the displacement from its natural length. — Robert Hooke, 1678

    Hang a weight on a spring and it stretches. Hang twice the weight and it stretches twice as far. Remove the weight and the spring springs back. This simple, proportional behaviour is Hooke's law: the force needed to stretch or compress a spring is proportional to how far it is stretched or compressed.

    F = kx

    The English scientist Robert Hooke first announced the law in 1676 as a Latin anagram, "ceiiinosssttuv", to claim priority without revealing it. In 1678 he published the solution, ut tensio, sic vis: "as the extension, so the force". Hooke studied springs while designing spring-driven watches.

    The constant k, the spring constant, measures stiffness. A stiff car-suspension spring might have k in the tens of thousands of N/m, a soft spring in a ballpoint pen only a few hundred. The spring pulls back with a restoring force of −kx, always directed back towards its natural length. That restoring force is what makes springs, and many other systems, oscillate.

    Hooke's law is not only about springs. Almost any solid behaves this way for small deformations: steel beams, bones, rubber bands, even the bonds between atoms. In materials science it becomes stress = Young's modulus × strain.

    The formula explained

    F = k · x    U = 12kx²
    SymbolQuantitySI unitMeaning
    FSpring forceNForce applied to (or exerted by) the spring
    kSpring constantN/mSpring constant (stiffness)
    xExtension / compressionmExtension or compression from natural length

    Units. Force in newtons, spring constant in N/m and extension in metres. Extensions are often measured in cm or mm, so convert: 4 cm = 0.04 m.

    x is the change in length, not the total length. Measure it from the spring's natural (unloaded) length. If a spring goes from 10 cm to 13 cm, x = 3 cm.

    Sign convention. The force you apply is +kx. The force the spring exerts back is −kx. The calculator works with magnitudes.

    Elastic energy. The work done stretching a spring is stored as elastic potential energy, U = ½kx². It grows with the square of the extension. The calculator shows it as a derived result.

    Oscillation. A mass m on a spring of constant k bounces with period T = 2π√(m/k), independent of how far you pull it, provided Hooke's law holds.

    Elastic limit. Beyond a certain extension, the material deforms permanently and the law stops applying.

    How to use this calculator

    1. Choose the quantity you want to find in the Calculate menu. It is highlighted as the result field.
    2. Enter the known values. Scientific notation such as 1.6e-11 is accepted.
    3. Select a unit for each value. Units are converted to SI automatically.
    4. The answer updates as you type. Open Show calculation steps to see the working, or use Copy result to share a link with your inputs.

    Step-by-step worked example

    Problem. (a) A spring with k = 250 N/m is stretched 4 cm. Find the force and the stored energy. (b) A 0.50 kg mass hung on a spring stretches it by 6.0 cm. Find k. (c) If that mass is pulled down and released, how long does each bounce take?

    Part (a)

    1. Convert. x = 4 cm = 0.04 m.
    2. Force. F = 250 × 0.04 = 10 N.
    3. Energy. U = ½ × 250 × 0.04² = 0.2 J.

    Part (b)

    1. Force from the hanging mass. At rest, the spring force balances the weight: F = mg = 0.50 × 9.81 = 4.9 N.
    2. Spring constant. k = F/x = 4.9 / 0.060 = 82 N/m.

    Part (c)

    1. T = 2π√(m/k) = 2π√(0.50 / 81.7) = 2π × 0.0782 = 0.49 s per complete bounce.

    Try it: the calculator's defaults reproduce part (a). For part (b), choose "Spring constant" and enter F = 4.9 N and x = 6 cm.

    How to interpret the result

    • A larger k means a stiffer spring. It needs more force for the same stretch, stores more energy at a given extension, and oscillates faster.
    • Check the linear range. Plot force against extension. A straight line through the origin confirms Hooke's law. Where the line starts to curve, you have reached the limit of proportionality.
    • Energy rises faster than force. Doubling the stretch doubles the force but quadruples the stored energy. That is why over-stretched springs and elastic bands snap back so violently.
    • Period depends on mass and stiffness only. A heavier mass or softer spring oscillates more slowly. The size of the swing does not matter within the elastic range.

    Real-world applications

    • Weighing scales. Spring balances and many kitchen and luggage scales measure weight by how far a spring stretches. Electronic scales use strain gauges that rely on the same linear elastic behaviour.
    • Vehicle suspension. Car springs, with shock absorbers to damp the bouncing, are chosen by stiffness to balance comfort and handling.
    • Clocks and watches. Mechanical watches use a hairspring and balance wheel. They keep time because the oscillation period depends only on stiffness and inertia, as Hooke realised.
    • Engineering structures. Bridges, buildings and aircraft wings are designed to stay in their elastic range under normal loads, so they return to shape. Engineers calculate deflections with Hooke's law and its stress–strain form.
    • Molecules and materials. Chemical bonds behave like tiny springs for small vibrations. Infrared spectroscopy measures their vibration frequencies, which depend on bond stiffness and atomic masses.
    • Measuring tiny forces. Atomic force microscopes measure forces between a sharp tip and a surface from the bending of a tiny cantilever, using Hooke's law.

    Common mistakes and unit-conversion tips

    1. Using total length instead of extension. Subtract the natural length first.
    2. Leaving x in cm. With k in N/m, the extension must be in metres. 4 cm entered as 4 gives a force 100 times too large. The calculator converts units for you.
    3. Using mass instead of weight. A hanging mass exerts a force mg, not m. 0.5 kg exerts 4.9 N.
    4. Applying it beyond the elastic limit. Once a spring is permanently stretched, F = kx no longer describes it.
    5. Adding springs the wrong way. Two identical springs in series are half as stiff. Side by side in parallel, they are twice as stiff.

    Frequently asked questions

    What is the formula for Hooke's law?

    F = kx, where F is the force in newtons, k is the spring constant in N/m and x is the extension or compression in metres. The restoring force exerted by the spring is F = −kx, and the elastic potential energy stored is U = ½kx².

    A spring stretches from 3.3 cm to 4.5 cm with k = 68 N/m. What is the elastic restoring force?

    The extension is x = 4.5 − 3.3 = 1.2 cm = 0.012 m. F = −kx = −68 × 0.012 = −0.816 N, which is −0.82 N to two significant figures. The minus sign shows the force pulls back toward the unstretched length.

    How do springs combine?

    In series, 1/k = 1/k₁ + 1/k₂ (the combination is softer). In parallel, k = k₁ + k₂ (stiffer).

    What happens beyond the elastic limit?

    The spring deforms permanently and no longer returns to its original length, so F = kx stops applying.

    How do I find the spring constant?

    Hang known masses from the spring and measure the extension each time. Plot force (mg) against extension. The slope of the straight line is k. With a single measurement, k = F/x.

    Sources and further reading

    1. Hooke, R. (1678). Lectures de Potentia Restitutiva, or of Spring Explaining the Power of Springing Bodies. London: John Martyn.
    2. Halliday, D., Resnick, R., & Walker, J. (2018). Fundamentals of Physics (11th ed.). Wiley. Chapters 7 and 15.
    3. Callister, W. D., & Rethwisch, D. G. (2018). Materials Science and Engineering: An Introduction (10th ed.). Wiley. Chapter 6, Mechanical properties of metals.