StatGardenREF. DESK
Calculators/Physics/Hooke's law & spring energy
Physics

Hooke's law & spring energy calculator

Restoring force and stored energy of a stretched or compressed spring.

What this calculator does

Hooke's law & spring energy works out restoring force and stored energy of a stretched or compressed spring. Enter your own figures above and the answer updates as you type: nothing is fixed in the code, so the result reflects exactly the numbers you supply.

The formula this calculator evaluates is printed under the tool and explained below, so you can check the working by hand or reuse it in a spreadsheet.

The formula

FormulaF = kx; Elastic PE = ½kx²

The inputs explained

FieldWhat to enter
Spring constant (N/m)A number, measured in N/m. Starts at 250.
Displacement from rest (m)A number, measured in m. Starts at 0.05.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

How the answer changes with spring constant

Every other input is held at the calculator’s starting values while spring constant varies. Select any row to load that scenario into the calculator.

How the answer changes with spring constant
Spring constant (N/m)Restoring forceElastic potential energyDisplacement for 1 N
1256.250 N0.1563 J0.0080 m
1889.400 N0.2350 J0.0053 m
25012.500 N0.3125 J0.0040 m
37518.750 N0.4688 J0.0027 m
50025.000 N0.6250 J0.0020 m
75037.500 N0.9375 J0.0013 m