How does a spring work?
A spring pushes back in proportion to how far you stretch it (Hooke's law) — which is why a mass on a spring oscillates. The physics, with a simulation.
How does a spring work?
A spring resists being stretched or compressed with a force that grows in proportion to how far it is pushed from its natural length. Stretch it twice as far and it pulls back twice as hard. That simple rule — Hooke's law, — is why a mass hanging from a spring does not just fall to a new position and stop: it overshoots, gets pulled back, overshoots the other way, and keeps oscillating.
Hooke's law: force proportional to stretch
Take a spring at its natural length and pull the attached mass a distance away. The spring pulls back with a force
where is the spring constant (or stiffness), measured in newtons per metre. A large means a stiff spring that fights hard against small stretches; a small means a floppy one. The minus sign is the important part: the force points opposite to the displacement, so it always tries to return the mass to .
Why the mass oscillates: simple harmonic motion
Combine Hooke's law with Newton's second law, , and you get the equation of motion for the mass:
This says the acceleration is always proportional to the displacement and points the other way. The solution is a sine wave: the mass moves as , oscillating forever between and . This pattern — a linear restoring force producing sinusoidal motion — is called simple harmonic motion (SHM), and it turns up everywhere from pendulums to sound waves to the vibrations of atoms.
The angular frequency sets how fast the oscillation goes. Converting to a period:
Notice what is not in that formula: the amplitude. Pull the mass 2 cm or 10 cm from rest and it still takes exactly the same time to complete one bounce. Notice also what changes it — a heavier mass slows the oscillation down, a stiffer spring speeds it up. Try your own numbers in the calculator on the Period of a mass on a spring card.
Energy: kinetic and elastic potential trade off
A stretched or compressed spring stores elastic potential energy . As the mass moves, energy shuttles between this and kinetic energy :
- At the extremes () the mass is momentarily still: all the energy is elastic potential.
- At the centre () the spring is relaxed: all the energy is kinetic and the mass is moving fastest.
- Everywhere in between, the total stays constant — as long as nothing removes energy.
Damping: why real springs stop
Friction in the spring and drag from the air take a small bite of energy on every swing, so the amplitude decays and the mass eventually settles at equilibrium. The simulation models this with a damping coefficient that adds a force opposing the motion:
- Light damping — the mass oscillates many times, each swing a little smaller (underdamped).
- Heavy damping — the mass creeps back to rest without a single full oscillation (overdamped).
- Critical damping — the fastest possible return to rest with no overshoot; this is what car suspensions and door closers aim for.
Frequently asked questions
What is the spring constant k?
Why doesn't the amplitude affect the period?
What makes a mass-spring system oscillate faster?
Where does the energy go when the oscillation dies out?
Keep exploring
- Change the mass, stiffness and damping in the Spring–Mass simulation, or the frictionless Horizontal Spring.
- The other classic simple-harmonic system: The physics of the pendulum.
- How a constant force (not a restoring one) curves motion: How projectile motion works.