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.

ResultEnter values to calculate
    Show calculation steps

    Hooke's Law formula

    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

    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

    Hooke's law describes linear elastic behaviour. Hooke summarised it as "ut tensio, sic vis" — as the extension, so the force. The restoring force exerted by the spring is −kx, which points back toward equilibrium. The calculator works with magnitudes.

    Hooke's law holds up to the elastic limit. In materials science it generalises to stress = Young's modulus × strain. It also underpins simple harmonic motion, with period T = 2π√(m/k).

    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.

    Worked example

    A spring with k = 250 N/m is stretched 4 cm.

    1. F = 250 × 0.04 = 10 N.
    2. Stored energy = ½ × 250 × 0.04² = 0.2 J.

    Frequently asked questions

    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.