Hooke's Law Calculator
Last updated: 27 June 2026
Reviewed by Gavin Meiring, Lead research and primary author ยท Doctoral Candidate (Corporate Governance) ยท Research and drafting assisted by AI
Hooke's Law: '+t('spring_force_calculator.label_f_k_x')+' ย |ย Elastic PE: '+t('spring_force_calculator.label_e_kx')+'
- Robert Hooke announced his law in 1678 as the anagram 'ceiiinosssttuv', which he later revealed as 'Ut tensio, sic vis' โ 'as the extension, so the force'.
- The minus sign in F = โkx shows that a spring's force always opposes the displacement, which is what makes springs oscillate instead of just stretching.
- Hooke's law holds only within the elastic limit: stretch a spring too far and it deforms permanently and never returns to its original shape.
Spring Force Calculator
A spring force calculator applies Hooke's Law to find the force exerted by a spring, the spring constant, or the extension or compression distance when the other values are known. It is used by physics students, mechanical engineers, and product designers working with springs in suspension systems, mechanisms, and elastic materials.
How to Use the Spring Force Calculator
- Select which variable to calculate: force (F), spring constant (k), or displacement (x).
- Enter the known values. For example, to find force, enter the spring constant in N/m and the displacement in metres.
- Click "Calculate" to see the result with full unit labelling.
- Use the elastic potential energy section to also calculate the energy stored in the spring at the given displacement.
- Toggle between compression and extension to see the direction of the resulting force.
The Formula
Hooke's Law describes the relationship between spring force and displacement:
F = -k x x
Where:
- F = restoring force exerted by the spring (newtons, N)
- k = spring constant or stiffness (newtons per metre, N/m)
- x = displacement from the natural (rest) length (metres, m)
The negative sign indicates that the spring force always acts in the direction opposite to the displacement. If the spring is stretched (positive x), the force pulls back toward equilibrium. If compressed (negative x), the force pushes back toward equilibrium. For practical calculations, the magnitude is often used:
|F| = k x |x|
Rearranged forms:
- Spring constant: k = F / x
- Displacement: x = F / k
Elastic potential energy stored in a spring: PE = 0.5 x k x xยฒ
This is the work done against the restoring force as the spring is displaced from its natural length.
Real-World Example
A compression spring in a car suspension has a spring constant of 25,000 N/m (25 kN/m). The suspension compresses by 8 cm (0.08 m) when a passenger sits in the seat. What force does the spring exert, and how much energy is stored?
Step 1: Calculate the spring force. F = k x x = 25,000 x 0.08 = 2,000 N
This is the upward restoring force supporting the passenger's weight. A force of 2,000 N corresponds to a mass of approximately 204 kg, suggesting this is one spring among several supporting the vehicle.
Step 2: Calculate the stored elastic potential energy. PE = 0.5 x k x xยฒ = 0.5 x 25,000 x (0.08)ยฒ = 0.5 x 25,000 x 0.0064 = 80 J
When the car hits a bump, this stored energy is released and converted to kinetic energy (bouncing), which the damper (shock absorber) then dissipates as heat.
The Limits of Hooke's Law
Hooke's Law is a linear approximation that holds only within the elastic limit of the spring material. Beyond the elastic limit, the spring undergoes permanent (plastic) deformation and will not return to its original length. The proportional limit is the maximum stress at which Hooke's Law applies exactly. The elastic limit is slightly beyond this. The yield point is where plastic deformation begins. The ultimate tensile strength is the maximum load before failure. In engineering, springs are always specified with a maximum safe working load well below the elastic limit, and a safety factor (typically 1.5 to 3 times the maximum expected load) is applied to account for fatigue, overload, and material variability.
Frequently Asked Questions
What is a spring constant and what affects it? The spring constant k (also called stiffness) measures how resistant a spring is to deformation. A high spring constant means the spring is stiff and requires a large force for a small displacement. It depends on the spring material (shear modulus), wire diameter, coil diameter, and number of active coils. Engineers adjust these parameters to achieve the desired stiffness for a given application.
Does Hooke's Law apply to other elastic materials? Yes. Hooke's Law applies to any elastic material within its elastic limit, including rubber bands, bungee cords, steel beams, and biological tissue. The concept extends beyond springs to describe the elastic behaviour of solids generally, expressed through Young's modulus (for tensile and compressive stress) and the shear modulus (for shear stress). These are material-specific versions of the spring constant.
What is the difference between a stiff spring and a soft spring? A stiff spring has a high spring constant (k). It requires a large force to produce a small displacement and stores more energy for a given extension. A soft spring has a low spring constant; it deflects significantly under small loads. Suspension springs balance stiffness (for handling and stability) against softness (for ride comfort). Racing cars use very stiff springs for responsiveness; family saloons use softer springs for comfort.
How is elastic potential energy released? When a spring is released from displacement, the stored elastic potential energy converts to kinetic energy of the spring and the object attached to it. In a mass-spring system with no damping, this energy oscillates back and forth between elastic potential energy (maximum at the extremes of displacement) and kinetic energy (maximum at the equilibrium position). This is simple harmonic motion, with a frequency determined by f = (1 / 2Pi) x sqrt(k / m).
Working a spring rate from the wire geometry
Hooke's law takes the spring constant as given. The constant itself comes from the shape of the spring, and the standard form for a helical compression spring uses four measurements.
The rate equals the shear modulus of the wire material multiplied by the wire diameter raised to the fourth power, divided by eight times the mean coil diameter cubed times the number of active coils.
| Wire diameter | Mean coil diameter | Active coils | Spring rate |
|---|---|---|---|
| 2 mm | 20 mm | 10 | 1.98 kN/m |
| 3 mm | 20 mm | 10 | 10.04 kN/m |
| 4 mm | 20 mm | 10 | 31.72 kN/m |
| 4 mm | 20 mm | 12.7 | 25.00 kN/m |
| 4 mm | 25 mm | 10 | 16.24 kN/m |
| 5 mm | 20 mm | 10 | 77.44 kN/m |
The shear modulus used here is 79.3 gigapascals, which is the nominal value for music wire spring steel. The last two columns show why wire diameter dominates. Doubling the wire from 2 mm to 4 mm multiplies the rate by 16, because the diameter enters the formula raised to the fourth power. Doubling the number of active coils halves the rate.
That column also cross-checks the worked example above. A 2 mm wire on a 20 mm mean diameter with 10 active coils gives 1.98 kN/m. To reach the 25 kN/m used in the suspension example, a 2 mm wire would need 0.79 active coils, which is less than one turn and not a spring. The example implies a heavier wire. A 4 mm wire reaches 25 kN/m at about 12.7 active coils, which is an ordinary compression spring.
Two springs together: series and parallel
Springs combine like electrical components, and the arrangement changes the rate in the opposite direction to the intuition of most first-time readers. Two springs side by side, each carrying part of the load, make the pair stiffer, because the total deflection for a given load falls.
| Arrangement | Combined rate | Deflection under 2,000 N | Energy stored |
|---|---|---|---|
| One spring at 25 kN/m | 25,000 N/m | 0.08 m | 80 J |
| Two at 25 kN/m in parallel | 50,000 N/m | 0.04 m | 40 J |
| Two at 25 kN/m in series | 12,500 N/m | 0.16 m | 160 J |
Parallel springs add: 25,000 plus 25,000 gives 50,000 N/m. Springs in series add as reciprocals, so the pair gives 12,500 N/m.
All three rows carry the same 2,000 newton load, so the deflection is what changes. The energy stored follows the deflection, because the elastic potential energy is half the rate times the square of the displacement. The series pair stores twice the energy of the single spring for the same force, and the parallel pair stores half. That is the trade a designer makes between a soft long-travel suspension and a stiff short-travel one.
What stiffness does to the bounce frequency
A spring carrying a mass is an oscillator, and its natural frequency comes from the square root of the rate divided by the mass, all divided by two pi. The 2,000 newton load from the example corresponds to a mass of 203.94 kilograms at standard gravity.
| Rate | Natural frequency | Period |
|---|---|---|
| 12.5 kN/m | 1.2460 Hz | 0.8026 s |
| 25 kN/m | 1.7621 Hz | 0.5675 s |
| 50 kN/m | 2.4920 Hz | 0.4013 s |
| 100 kN/m | 3.5242 Hz | 0.2837 s |
The frequency moves with the square root of the rate, so doubling the rate multiplies the frequency by 1.4142. The table shows exactly that: 1.7621 Hz becomes 2.4920 Hz, a factor of 1.4142. A designer who wants a quarter of the period needs sixteen times the rate, which is why very stiff springs are also very heavy.
The calculation assumes no damping. A real suspension has a damper that removes energy, so the motion decays over a few cycles and the undamped frequency above is the upper bound rather than the observed value.
A plausibility check before you trust a deflection
The arithmetic above holds inside the elastic range. It also assumes the spring has somewhere to travel to, and that second condition fails more often than the first.
A compression spring reaches solid when its coils touch. For a spring with plain or closed ends, the total number of coils is about two more than the number of active coils, and the solid length is roughly the total coil count multiplied by the wire diameter. On the 4 mm wire with 12.7 active coils from the table, the total is about 14.7 coils and the solid length is about 59 mm.
That number is the check. The worked example above uses an 80 mm deflection, which exceeds 59 mm, so a spring with that geometry would be fully compressed before it deflected that far. The example still computes correctly as a statement of Hooke's law. It needs a taller spring, or a smaller wire on a larger coil diameter, before the same deflection is physically available.
The rule that follows is worth applying to any spring calculation. Work out the solid length first, compare it with the deflection the calculation produces, and only then trust the force figure.
Assumptions this calculation rests on
The formula assumes a linear elastic material, which means staying below the proportional limit. It assumes the coils stay clear of each other, which is the solid-length check above. It assumes the shear modulus is constant, which it is not: the modulus of spring steel falls by roughly 0.03 percent for each kelvin of temperature rise, so a spring in a hot engine bay is softer than the same spring on a bench.
It also assumes the force acts along the coil axis, that the ends are square to that axis, and that the spring's own mass is small next to the mass it carries. The mass assumption matters at high frequencies, where the spring's inertia starts to absorb part of the load. Finally, the figure applies to the load added beyond the spring's preload. A suspension spring also carries the vehicle's static weight, so the rate above describes the extra force from an extra load rather than the total force at ride height.
Also try these free tools: