Hooke's Law Calculator

Calculate the force in a spring and the stored elastic potential energy, based on the spring constant and displacement.

Spring force
20.00 N
F = k × x
Elastic potential energy
1.00 J
Embed on your website →

How to use Hooke's law calculator

  1. Enter the spring constant (k), which describes how stiff the spring is.
  2. Enter how far the spring is stretched or compressed from its rest length, in meters.
  3. The calculator works out the force in the spring and the stored elastic potential energy.

Hooke's law

F = k × x

Hooke's law states that the force (F) needed to stretch or compress a spring is directly proportional to the displacement (x) from its rest length, as long as the spring isn't loaded beyond its elastic limit. The spring constant (k, measured in N/m) describes how stiff the spring is — the higher k, the more force is needed for the same displacement.

The energy stored in a stretched or compressed spring is called elastic potential energy, and is calculated with:

E = ½ × k × x²
Note: Hooke's law is a linear approximation that only holds within the spring's elastic region. If the spring is stretched too far, it deforms permanently (plastic deformation), and the relationship between force and displacement stops being linear.
Ad space — reserved for future partners

Frequently asked questions

Does Hooke's law apply to compression too, not just stretching?

Yes, Hooke's law applies equally to both stretching and compressing a spring — the displacement x simply represents the distance from the rest length, in either direction.

What happens if the spring is stretched beyond its elastic limit?

Then the relationship between force and displacement stops being linear, and the spring can become permanently deformed (plastic deformation) — it no longer returns to its original shape when the force is removed. Hooke's law no longer applies in this region.

What is Hooke's law used for in practice?

Hooke's law is used, among other things, in spring scales, shock absorbers, clock springs, and other mechanical devices that store or release energy elastically. It's also a fundamental principle in materials science for describing elastic deformation in solids generally.

Embed this calculator on your website

Copy the code below to show this calculator directly on your blog or website — completely free.