About Spring Constant Calculator
A spring constant describes how stiff a spring is: the force needed per unit of extension. Hooke's law gives k = F ÷ x for a static stretch or compression, while the same spring oscillating with a mass on its end has a period T = 2π√(m ÷ k). Measuring the period is often the more practical route in a lab, because timing many oscillations can be more precise than reading a small extension.
This calculator offers both directions. Solve k from a known force and extension, solve k from a mass and period, or solve the period from a mass and an already known spring constant. Extension can be entered in metres or centimetres, and the ideal-spring assumption, the use of the effective oscillating mass and the sign of Hooke's law are stated where they matter.
What this tool does
Three calculation modes
Find k from force and extension, find k from mass and period, or find the period from mass and k.
Metres or centimetres
Enter the extension in metres or centimetres; the value is converted to metres before k is calculated, so the result is always in N/m.
Hooke's law shown
The k = F ÷ x expression, with the force and extension substituted, is printed for every static-spring calculation.
SHM period formula
Period calculations use T = 2π√(m ÷ k), with the substituted values shown so the square root step is visible.
Positive-value validation
Extension, mass, period and spring constant must be positive where the formulas require it, and violations are explained rather than divided through.
Copy the result
Copy the spring constant or period as a plain number for a lab notebook or spreadsheet.
How to use Spring Constant Calculator
- 01
Choose a mode
Select Hooke's law, spring constant from period, or period from mass and spring constant.
- 02
Enter the known values
For Hooke's law enter force in newtons and extension in metres or centimetres; for the period modes enter mass in kilograms and the other known quantity.
- 03
Read the solved value
The headline shows the spring constant in N/m or the period in seconds, with the summary cards giving the related quantities.
- 04
Check the substitution
The formula panel prints the active equation and your substituted numbers, including the conversion to metres when needed.
- 05
Copy or reset
Copy the result or reset the form to test another spring.
How this tool works
- Works with
- Spring
- Processing
- Client-side, in your browser. Nothing is uploaded.
- Requirements
- Chrome, Edge, Firefox or Safari · JavaScript enabled
Limitations worth knowing
- Assumes an ideal linear spring within its elastic limit; real springs can be non-linear or permanently deform.
- The oscillation period ignores damping and uses the mass value you supply, without automatically adding the spring's effective mass.
- Hooke's law mode treats force and extension as magnitudes and does not model the vector direction of the restoring force.
- Only one spring is considered; combinations of springs in series or parallel are not calculated.
Privacy and file handling
Every calculation runs in your browser with plain JavaScript. The values you enter are never uploaded, stored or logged, and no request is made to a server while you use the calculator.
Read the full privacy policy
