Beginner

Spring Calculator — Hooke's Law, Energy & Oscillation

Enter the spring constant and displacement to find the restoring force and stored elastic energy. Add an attached mass to also get the oscillation period, frequency and angular frequency for simple harmonic motion.

N/m

Stiffness of the spring — higher k means a stiffer spring

m

Distance the spring is stretched or compressed from its natural length; can be negative for compression

kg

Mass on the spring — used to calculate oscillation period (leave at 0 to skip)
Spring force
10N

Restoring force — the spring pulls/pushes back with this force (F = k × x)

Spring constant (k)
200 N/m
Displacement (x)
0.05 m (5 cm)
Elastic potential energy
0.25 J
Oscillation period (T)
0.4443 s
Frequency (f)
2.2508 Hz
Angular frequency (ω)
14.1421 rad/s
Spring oscillation — amplitude represents displacement x
Step by step
  1. 1

    Displacement magnitude |x|

    |0.05| = 0.05
  2. 2

    Restoring force F = k × |x|

    200 × 0.05 = 10
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

Enter spring constant k (N/m) and displacement x (m) to get restoring force F = kx and elastic potential energy E = ½kx². Add mass m to compute oscillation period T = 2π√(m/k), frequency f = 1/T and angular frequency ω = √(k/m). All formulas assume an ideal massless spring with no damping.

Formula
F = k × x • E = ½ k x² • T = 2π √(m/k) • ω = √(k/m)
How this is calculated

Hooke's Law states that the restoring force of an ideal spring is proportional to its displacement from the natural length: F = k × x, where k is the spring constant in N/m (stiffness) and x is the displacement in metres. The negative sign in the full form (F = −kx) signals that the force always acts back toward equilibrium; the calculator shows the magnitude of that force.

The elastic potential energy stored in a compressed or stretched spring is E = ½ k x². This energy converts entirely to kinetic energy at the equilibrium point and back to potential energy at maximum displacement during oscillation — there is no energy loss in an ideal spring.

If a mass m (kg) is attached to the spring in a frictionless system, the mass oscillates with period T = 2π √(m/k), frequency f = 1/T, and angular frequency ω = √(k/m). Notice that the period depends on mass and spring constant but NOT on displacement amplitude — this is the hallmark of simple harmonic motion (SHM). The model assumes an ideal, massless spring with no damping, air resistance or friction.

Frequently asked questions

The spring constant k (in N/m) measures how stiff a spring is — higher k means more force is needed for the same displacement. A soft slinky might have k ≈ 1 N/m; a car suspension spring ≈ 15,000–30,000 N/m; a stiff industrial spring can exceed 1,000,000 N/m.

In simple harmonic motion, the restoring force is proportional to displacement. A larger displacement produces a proportionally larger force that accelerates the mass faster by exactly the right amount, keeping the period constant. This isochronous property is why springs (and pendulums in the small-angle limit) are used as timekeeping mechanisms.

Hooke's Law is only valid within the elastic limit of the spring material. If the spring is stretched or compressed beyond this limit (its elastic or yield limit), it deforms permanently and no longer returns to its original length. The proportional relationship between force and displacement breaks down before this point for many real springs.

Also known as

hookes law calculator
spring force calculator
elastic potential energy calculator
simple harmonic motion calculator
spring oscillation period
spring constant and displacement
shm spring calculator

APA

TG we-Calculate Editorial Team. (2026). Spring Calculator — Hooke's Law, Energy & Oscillation [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/spring-calculator

Chicago

TG we-Calculate Editorial Team. "Spring Calculator — Hooke's Law, Energy & Oscillation." TG we-Calculate. 2026. https://we-calculate.com/calculator/spring-calculator.

IEEE

TG we-Calculate Editorial Team, "Spring Calculator — Hooke's Law, Energy & Oscillation," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/spring-calculator

BibTeX

@misc{wecalculate_spring_calculator, title = {Spring Calculator — Hooke's Law, Energy & Oscillation}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/spring-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?