Hooke’s Law Calculator
Calculate a spring’s restoring force, its stiffness, its extension or compression and the elastic energy it stores.
Fill in two quantities and leave the other two empty. The displacement is signed: positive for extension, negative for compression. The restoring force has the opposite sign.
Model: an ideal, massless spring used within its linear elastic range. Beyond the elastic limit, F = −kx no longer applies and the spring may stay permanently deformed.
Results
Spring diagram
The dashed line marks the equilibrium position; the arrow shows the direction of the restoring force.