Skip to content
The Calculatorz
Forces

Hooke’s Law and Spring Calculator

Calculate spring force, elastic potential energy and oscillation period from the spring constant, extension and attached mass.

This calculator applies an idealised textbook model with SI units. Real systems can differ because of friction, air resistance, temperature, material properties and measurement uncertainty.

Spring and mass

Spring

How to use this calculator

Enter the spring constant and how far the spring is stretched or compressed from its natural length. The calculator gives the restoring force and the energy stored. Add a mass to see how fast it would bounce: the period and frequency of a mass on the spring.

Formula

Spring force F = kx (Hooke's law; the force acts opposite to the displacement). Elastic potential energy U = ½kx². Mass–spring period T = 2π√(m ÷ k), frequency f = 1 ÷ T.

Calculator credits

Calculator developmentJulia Edwards

Editorial supervision

Expert reviewHiraMPhil Physics, Computational Physicist

Published byThe Calculatorz

Last updated

Read how we research, test, review and correct our calculators in our editorial policy.

Frequently asked questions

What is the spring constant?

It measures stiffness: the force needed per metre of extension. A stiff car spring might have k of tens of thousands of N/m; a soft toy spring a few N/m.

How do I find k for my spring?

Hang known weights, measure the extension, and divide force by extension: k = mg ÷ x. Repeat for several masses and take the average.

Does Hooke's law always apply?

Only up to the elastic limit. Stretched too far, a spring deforms permanently and the force is no longer proportional to extension.

Is the energy the same for compression and extension?

Yes. U = ½kx² depends on x², so the same distance in either direction stores the same energy.

What about springs in series and parallel?

Springs in parallel add: k = k₁ + k₂. In series, 1/k = 1/k₁ + 1/k₂, so the combination is softer.

Why is there a minus sign in F = −kx?

It shows the force acts opposite to the displacement, pulling the spring back towards its natural length. The calculator reports the size of the force.

References & methodology sources

These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.

  1. Ling, S. J., Moebs, W., & Sanny, J. (2016). University physics volume 1. OpenStax. View source
  2. Urone, P. P., & Hinrichs, R. (2022). College physics 2e. OpenStax. View source
  3. Bureau International des Poids et Mesures. (2019). The International System of Units (SI) (9th ed.). View source
  4. Thompson, A., & Taylor, B. N. (2008). Guide for the use of the International System of Units (SI) (NIST Special Publication 811). National Institute of Standards and Technology. View source