Spring Calculator – Hooke's Law F = kx & Spring Energy

Use this free Spring Calculator (Hooke's Law) to find the force a spring exerts and the energy it stores. Enter the spring constant and how far the spring is stretched or compressed, and the calculator gives you the force in newtons (N) and the stored energy in joules (J).

pull stretch (x)

Formula

Hooke's Law: Force = Spring Constant × Extension  →  F = kx

Stored elastic energy = ½ × k × x²  →  E = ½kx²

The spring constant k measures stiffness: a bigger k means a stiffer spring that needs more force for the same stretch.

How to use

Worked example

A spring with k = 200 N/m is stretched by 0.1 m. Force = 200 × 0.1 = 20 N. Stored energy = ½ × 200 × 0.1² = ½ × 200 × 0.01 = 1 J.

FAQ

Does Hooke's law work for compression too?
Yes. The same formulas apply whether the spring is stretched or squashed — x is simply how far it is from its natural length, and the spring pushes back the opposite way.

Does Hooke's law always hold?
Only up to the spring's elastic limit. Stretch a spring too far and it deforms permanently — beyond that point F = kx no longer applies.

Where is spring energy used?
Wind-up toys, trampolines, car suspension, mattresses and archery bows all store and release elastic potential energy.