Calculate spring force, spring constant, displacement, and stored elastic potential energy with the linear Hooke's law model.
Calculate with Hooke's law
Choose the unknown quantity, then enter the two known positive values in newtons, meters, and newtons per meter.
About Hooke's law
Hooke's law describes the approximately linear relationship between applied force and deformation for many elastic systems. For a spring, force magnitude equals spring constant multiplied by displacement from equilibrium. The spring constant measures stiffness in newtons per meter: a larger value means more force is needed for the same extension or compression. This calculator rearranges the same relationship to solve for force, stiffness, or displacement from the other two known quantities.
In vector form, restoring force points opposite displacement, which is often written with a negative sign. The calculator reports positive magnitudes because the selected mode focuses on size rather than direction. If a spring is stretched in the positive direction, its restoring force acts toward equilibrium; if compressed, the force reverses. Establish a coordinate convention when direction matters in a mechanics problem.
The linear model applies only within a material or spring's elastic working range. A real force-displacement curve may become nonlinear at large travel, when coils bind, when a tension spring loses preload, or when material approaches its elastic limit. Permanent deformation means the object no longer returns fully to its original shape and the simple constant-stiffness model is not appropriate. Manufacturer load ratings and travel limits should always take precedence in design work.
Elastic potential energy stored during gradual loading is one half times spring constant times displacement squared. It is also one half times final force times displacement for a linear spring. The energy appears because force grows from zero to its final value as the spring moves. The calculator reports this value after resolving all three Hooke's law quantities. Dynamic systems may exchange that energy with kinetic energy, while damping converts some mechanical energy into heat.
Spring constants can be measured by applying several known loads and fitting the slope of force against displacement. Multiple springs combine differently depending on arrangement: parallel stiffnesses add, while series compliances add. Temperature, fatigue, manufacturing tolerance, mounting geometry, and preload can change practical behavior. Use this calculator for ideal static estimates and classroom problems, then verify critical mechanisms with supplier data and physical tests. Wear eye protection and safely restrain loaded springs because stored elastic energy can be released suddenly if a component or fixture fails.
Hooke's law examples
Known quantities
Calculated quantity
Scenario
k = 200 N/m, x = 0.25 m
F = 50 N
Moderate spring extension.
F = 150 N, x = 0.5 m
k = 300 N/m
Determine measured stiffness.
F = 100 N, k = 500 N/m
x = 0.2 m
Predict displacement.
k = 25000 N/m, x = 0.1 m
F = 2500 N
Simplified suspension spring.
How to use Hooke's law
Choose whether to calculate force, spring constant, or displacement.
Enter the two known positive quantities using the displayed SI units.
Select Calculate Hooke's Law to solve the linear spring equation.
Review the calculated quantity and elastic potential energy, then check the spring's working limits.
Hooke's law FAQ
Why is restoring force sometimes negative?
The negative sign indicates that spring force points opposite displacement from equilibrium. This calculator reports magnitude, so its displayed force is positive.
What does spring constant represent?
Spring constant is stiffness, measured in newtons per meter. A stiffer spring requires more force for a given extension or compression.
Does Hooke's law work for every deformation?
No, it applies where force and displacement remain approximately proportional. Large travel, coil binding, nonlinear geometry, or permanent deformation require a different model.
How is elastic potential energy calculated?
For a linear spring it is one half times stiffness times displacement squared. This equals the area under the force-displacement line from equilibrium to the final position.
Can the calculator model several springs?
It accepts one equivalent spring constant. First combine parallel stiffnesses by addition or series stiffnesses through reciprocal compliance, then enter the equivalent value.