Hooke's Law Calculator - F = kx Spring Force
Science & Engineering
Solve Hooke's Law F = kx for force, spring constant, or extension. Also calculates elastic potential energy stored in the spring (U = ½kx²).
Presets choose common units and convert entered values to preserve their physical quantities.
Force magnitude F (lbf)
Spring constant k (lbf/in)
Extension x (in)
Elastic potential energy (ft·lbf)
Spring constant references
Examples are listed in N/m. Applying one converts it into the selected spring-rate unit and solves for force.
| Spring type | Approximate k | Use example |
|---|---|---|
| Watch hairspring | ~10 N/m | |
| Bungee cord | ~100 N/m | |
| Stiff mattress spring | ~500 N/m | |
| Mechanical keyboard switch (lighter) | ~500 N/m | |
| Mechanical keyboard switch (firmer) | ~1,500 N/m | |
| Car suspension spring (softer) | ~15,000 N/m | |
| Car suspension spring (firmer) | ~40,000 N/m |
How to use this tool
- Select which variable to solve for (force, spring constant, or extension).
- Enter the two known values.
- View the result and the elastic potential energy stored in the spring.
Hooke's Law Formula
For the magnitude of the spring force, F = k × x, where k is the spring constant and x is the positive distance from equilibrium. This calculator solves for that magnitude from any two of force, spring constant, and extension. It converts force, spring-rate, and length inputs to SI units before calculating, so units such as lbf/in and mm can be mixed safely.
The signed restoring force is Frestore = −k × x. Its minus sign means the spring force points back toward equilibrium, opposite the displacement. The numeric solver reports force magnitude; its extension value is a distance magnitude and does not encode a direction. To apply the magnitude, select whether the spring is stretched or compressed when reasoning about the direction in a physical setup.
Spring constant references
The interactive reference table above the article includes approximate examples: a watch hairspring is about 10 N/m, a bungee cord about 100 N/m, a mattress spring about 500 N/m, keyboard switches about 500–1,500 N/m, and car suspension springs about 15,000–40,000 N/m. Choose an example to apply its k value; the calculator converts it to your current spring-rate unit and combines it with the entered extension. Actual springs vary by design, load, and how far they are displaced, so use manufacturer data for a specific component.
Elastic potential energy
A compressed or stretched spring stores energy. The elastic potential energy is:
PE = ½kx²
For example, a spring with k = 500 N/m compressed by 0.1 m stores PE = ½ × 500 × 0.01 = 2.5 joules. This energy is released when the spring returns to equilibrium - the basis of mechanical watches, spring-loaded toys, and retractable pens.
The energy result is shown in joules with the metric preset and foot-pounds force (ft·lbf) with the imperial preset. The per-field selectors may use mixed units; their values are normalized before solving, while the energy tile follows the selected preset.
Elastic limit
Hooke's Law only holds within the elastic region of a material. Beyond the elastic limit (the yield point), the material deforms plastically and will not return to its original shape when the force is removed. On a stress-strain curve, the elastic region is the initial linear portion; the yield point marks where the curve begins to bend.
Real-world applications
- Shock absorbers: springs and dampers absorb road impacts in vehicles
- Seismic isolators: large springs decouple buildings from ground motion
- Mechanical keyboard switches: spring force determines actuation feel
- Vehicle suspension: spring constant is tuned for ride comfort vs. handling
- Medical devices: surgical retractors and stents use calibrated spring forces
Frequently asked questions
What is Hooke's Law?
Hooke's Law says spring-force magnitude is proportional to displacement: F = k × x. The signed restoring force is F_restore = −k × x; its minus sign indicates a direction back toward equilibrium. This calculator reports magnitude, not direction.
What is elastic potential energy?
The energy stored in a compressed or stretched spring is U = ½kx². The result uses joules with the metric preset and ft·lbf with the imperial preset.
Why does the restoring-force formula have a minus sign?
The minus sign in F_restore = −kx describes direction: a spring pulls or pushes toward equilibrium, opposite its displacement. The calculator uses F = kx for the non-negative force magnitude.
When does Hooke's Law stop being accurate?
Hooke's Law is a linear approximation that works while the spring stays within its elastic, approximately linear range. Near or beyond the elastic limit, the force may no longer be proportional to displacement and the spring may deform permanently.
Related tools
- Force ConverterConvert applied spring force to newtons before solving F = kx.
- Length ConverterPrepare displacement in meters or convert the solved extension.
- Kinetic EnergyCompare spring motion with kinetic and gravitational energy.
- Physics ConstantsReference common physical constants when extending the mechanics analysis.