Share this free calculator
Send this tool to someone who needs the calculation.
How to use
Hooke’s law models an ideal spring within its elastic range using a linear force-displacement relationship. Solve F, k or x and compute elastic potential energy.
- Choose the unknown.
- Enter the two known values.
- Calculate force magnitude, k, displacement and energy.
How it is calculated
Example
Example: k=250 N/m and x=0.2 m gives 50 N and 5 J of elastic potential energy.
Important notes
A real spring can leave the linear elastic range or deform permanently. The calculator uses magnitudes and does not encode the restoring-force sign −kx.
Worked examples and interpreting results
A spring of stiffness 200 N/m displaced 0.05 m from its natural length has force magnitude 10 N and stored energy 0.25 J. Force increases linearly, but energy grows with displacement squared.
| Case | Calculation | Result |
|---|---|---|
| Spring force magnitude | 200 × |0.05| | 10 N |
| Elastic energy | 0.5 × 200 × 0.05² | 0.25 J |
How to check the result
Displacement is measured from natural length, not from a geometric origin or the total spring length. Restoring force opposes displacement. The relation assumes a linear elastic range, which a real spring can exceed at large displacement.
Frequently asked questions
Why is Hooke’s law sometimes F=−kx?
The minus sign shows the restoring force opposes displacement; this calculator reports magnitude.
Unit of k?
N/m.
Valid for any stretch?
No, only within the spring’s suitable linear elastic range.