Hooke's Law Spring Calculator

This calculator uses Hooke's Law, F = kx, to solve for spring force, spring constant, or displacement, whichever value you need. Physics students, hobbyists and anyone working with springs use it to check homework or size a spring for a project. Choose what you want to solve for from the dropdown: spring force (F), spring constant (k), or displacement (x). Enter the other two known values and the calculator fills in the missing one instantly, along with the elastic potential energy stored in the spring. If you do not know a spring's constant, use the preset list of common spring types, from a soft slinky at around 10 N/m to a stiff automotive coil spring at around 25,000 N/m, for a realistic starting figure. The results panel shows your main answer alongside the spring constant, displacement and elastic potential energy in joules, and a calculation breakdown shows exactly how each figure was derived using F = kx and E = 0.5kx^2. A worked example using the default values, a 200 N/m spring stretched 0.05 m, shows the maths in action before you try your own numbers. Remember that Hooke's Law only holds within a spring's elastic limit; stretch or compress it beyond that point and the force-displacement relationship stops being linear, so treat results for extreme displacements as indicative only.

Calculate.co.nz is proud to be partnered with Health Based Building, a leader in sustainable and health-conscious building innovation. With over a century of experience, they develop high-performance systems like Foreverbreathe Specification, Magnum Board, and Foreverbreathe Paints to support energy-efficient, non-toxic living environments. Their commitment to healthier homes aligns with our belief that informed choices lead to better outcomes for Kiwi households.
Calculate.co.nz partner: Health Based Building
Standard Physics  Hooke's Law (1678). Valid within the elastic limit of the spring.
F = k × x

1. What to Solve For

Enter spring constant (k) and displacement (x) to calculate force.
N/m
m
Please enter valid positive numbers for both known values.

2. Common Spring Constants

Select a preset to populate the spring constant field.

Note: spring constants vary widely by design. These are illustrative values for reference.

Results

Spring Force
10.00 N
newtons (N)
Spring Constant
200.00 N/m
N/m
Displacement
0.05 m
metres (m)
Elastic PE
0.25 J
joules (J)

Calculation Breakdown

Solve forSpring Force
Spring constant (k)200.00 N/m
Displacement (x)0.05 m (5.00 cm)
Spring force (F)10.00 N
Formula appliedF = k × x = 200.00 × 0.05 = 10.00 N
Elastic potential energy0.25 J

Worked Example (Default Values)

Spring constant (k)200 N/m
Displacement (x)0.05 m (5 cm)
Formula: F = k x x200 x 0.05
Spring force (F)10.00 N
Elastic PE: 0.5 x k x x²0.5 x 200 x 0.05²
Elastic potential energy0.25 J

What is Hooke's Law?

Hooke's Law, named after the English scientist Robert Hooke who published it in 1678, describes the behaviour of elastic materials under deformation. It states that the force a spring exerts is directly proportional to the distance it is displaced from its natural (rest) position. The relationship is written as:

F = k × x

Where:

The force F is the restoring force that acts in the opposite direction to the displacement. When you stretch a spring, it pulls back; when you compress it, it pushes back. This is why Hooke's Law is sometimes written as F = -kx, with the negative sign indicating the opposing direction. For magnitude calculations (how strong is the spring force?), you use F = kx.

The Spring Constant (k)

The spring constant k describes how stiff a spring is. A high k value means the spring is stiff and requires a large force to stretch it a small amount. A low k value means the spring is soft and stretches easily with a small force.

Spring TypeTypical k ValueNotes
Slinky toy~1 to 10 N/mVery soft, long extension
Pen click spring~150 N/mSmall, stiff for its size
Typical physics lab spring100 to 400 N/mGeneral demonstration use
Trampoline springs~2,500 N/mStiff, high load capacity
Automotive coil spring15,000 to 30,000 N/mMust support vehicle weight

Elastic Potential Energy

When a spring is stretched or compressed, it stores energy. This stored energy is called elastic potential energy (also called spring potential energy) and is given by:

E = 0.5 × k × x²

The energy is in joules (J). Notice that energy depends on the square of displacement, so doubling the stretch quadruples the stored energy. This is why compressed springs can release energy quickly and powerfully, as in spring-loaded mechanisms, toys, and shock absorbers.

The Elastic Limit

Hooke's Law holds only within the elastic limit of a spring. If you stretch a spring beyond this point, the spring deforms permanently and no longer returns to its original length. The relationship between force and displacement becomes non-linear. In practical applications, springs are always designed to operate well within their elastic limit to ensure reliable, repeatable behaviour.

Rearranging Hooke's Law

You can rearrange the formula to solve for any of the three variables:

This calculator handles all three arrangements. Select what you want to solve for, enter the other two values, and the result updates instantly.

Related Calculators

Sources and method: Hooke, R. (1678). De Potentia Restitutiva. The formula F = kx and elastic potential energy E = 0.5kx² are standard results from classical mechanics. Spring constant examples are illustrative only; actual values depend on spring geometry and material.

This calculator provides results based on ideal Hooke's Law behaviour within the elastic limit. Real springs may deviate from this model when subjected to high loads, temperature extremes, or fatigue. For engineering applications, consult manufacturer specifications and appropriate standards.