Spring-Mass System

Oscillations
⬅ Home Learn the physics ➡

A mass on a spring demonstrating Hooke's law and simple harmonic motion — adjust spring constant, mass, and damping to explore oscillation.

How this simulation works

Use the Spring Constant slider to set the spring's stiffness (in N/m), the Mass slider to set the object attached to it (in kg), the Damping slider to control energy loss (in N·s/m), and the Amplitude slider to choose how far the spring is initially stretched (in metres). Press Start to release the mass, Pause to freeze it, and Reset to restart from the initial displacement. Stiffer springs and lighter masses oscillate faster; damping causes the amplitude to decay over time until the mass settles at equilibrium.