Hooke's Law Calculator

A 200 newton per meter spring stretched 0.15 meters pulls with 30 newtons and stores 2.25 joules. A stiffer spring has a higher constant. The energy grows with the square of the stretch, so stretching twice as far stores four times the energy.

Springs in parallel add their constants, and springs in series combine to a lower constant, which matters in design.

Hooke's Law Calculator: inputs

Calculated result
Spring force (N)30
Stored energy (J)2.3

Hooke's Law Calculator: Spring constant (N/m) sensitivity

Hooke's Law Calculator: Spring constant (N/m) and Spring force (N)5 calculations vary the “Spring constant (N/m)” input while holding the other entered inputs constant.1602418027200302203324036

Hooke's Law: formula

Force = k × x; stored elastic energy = ½ × k × x²

OpenStax University Physics: elasticity and plasticity

Use a spring constant in N/m and displacement from equilibrium in meters. A manufacturer’s stiffness or a measured force–displacement slope must apply over the modeled range. Record extension relative to equilibrium rather than the spring’s entire length; convert centimeters to meters first.

Hooke's Law: worked example

Spring constant (N/m)200
Stretch or compression (m)0.15
Spring force (N)30
Stored energy (J)2.3

The constant-stiffness approximation applies within the material and geometry’s linear response range. Nonlinearity can occur before permanent deformation; an elastic material is not necessarily linear over every extension. The ideal stored-energy result excludes damping, friction and hysteresis.

Hooke's Law: changing Spring constant (N/m)

Spring constant (N/m)Spring force (N)Stored energy (J)
160241.8
180272
200 (example)302.3
220332.5
240362.7

Hooke's Law: compare input ranges

InputTested fromToSpring force (N): low inputSpring force (N): high inputSwing
Spring constant (N/m)18022027336 (20%)
Stretch or compression (m)0.140.1728346 (20%)

Hooke's Law: individual input comparisons

InputValueSpring force (N)Stored energy (J)
Spring constant (N/m)160241.8
180272
200302.3
220332.5
240362.7
Stretch or compression (m)0.12241.4
0.14282
0.15302.3
0.17342.9
0.18363.2

Hooke's Law: combined input changes

Spring constant (N/m) / Stretch or compression (m)0.120.150.18
16019.22428.8
18021.62732.4
200243036
22026.43339.6
24028.83643.2

Hooke's Law: which assumptions move the result?

Hooke's Law: Spring force (N) as Spring constant (N/m) changesSpring force (N) starts at 24. Moving Spring constant (N/m) from 160 to 240 changes it to 36, with Stretch or compression (m) 0.15 kept fixed.1602418027200302203324036
Chart quantityDisplayed settings
Spring constant (N/m)160 → 240
Spring force (N)24 → 36
Stretch or compression (m)0.15
Hooke's Law: Spring force (N) as Stretch or compression (m) changesSpring force (N) starts at 24. Moving Stretch or compression (m) from 0.12 to 0.18 changes it to 36, with Spring constant (N/m) 200 kept fixed.0.12240.14280.15300.17340.1836
Chart quantityDisplayed settings
Stretch or compression (m)0.12 → 0.18
Spring force (N)24 → 36
Spring constant (N/m)200

Hooke's Law: values and definitions

Quantity and definitionValue used
Spring constant (N/m)200
Stretch or compression (m)0.15
Spring force (N)30
Stored energy (J)2.3

Hooke's Law: half and double Spring constant (N/m)

Spring constant (N/m)Spring force (N)
10015
20030
40060

Common error: Entering the spring's total length instead of the change in length. The formula uses only how far it moves from its resting length.

Physics & Mechanics calculators: Ideal Gas Law Calculator, Gravitational Potential Energy Calculator, Work and Power Calculator, Wavelength and Frequency Calculator, Projectile Motion Calculator, Free Fall Calculator.

A spring pushes back with a force in proportion to how far it is stretched, and stores energy in proportion to the square of that stretch. A spring of 200 newtons per meter pulled 0.15 meters pulls back with 30 newtons and holds 2.25 joules. Doubling the stretch doubles the force but quadruples the stored energy, which is why a wide stretch is so much harder to release safely.

Keep the stretch inside the spring's working range. Past it, the spring deforms for good and the straight-line rule no longer applies.

See the force on the force calculator, the energy on the kinetic and potential energy calculators and the oscillation on the pendulum period calculator. The work and power and uniform acceleration pages relate to motion, and the length converter changes units.

What is Hooke's law?

The force a spring exerts is proportional to how far it is stretched or compressed, F equals k times x.

How do I find a spring constant?

Hang a known weight from it, measure how far it stretches and divide the force by that stretch, in newtons per meter.

What is the energy stored in a spring?

Half the spring constant times the square of the stretch, which is 2.25 joules in the example.