Calculator
Physics

Simple Harmonic Motion (Spring–Mass) Calculator

Calculates period, frequency and the x–v–a time table of simple harmonic motion from spring constant, mass and amplitude.

Tutorial / How it works →

Info

Simple harmonic motion (SHM) occurs when the restoring force acting on an object displaced from equilibrium is proportional to the displacement. The spring–mass system is the most classic example of this motion. Key relationships: - Hooke's Law: F = −k·x - Equation of motion: m·x'' + k·x = 0 - Angular frequency: ω = √(k/m) - Period: T = 2π / ω - Frequency: f = 1 / T - Displacement: x(t) = A·cos(ωt + φ) - Velocity: v(t) = −A·ω·sin(ωt + φ) - Acceleration: a(t) = −A·ω²·cos(ωt + φ) For given m, k and A this tool: - Finds the period, frequency and angular frequency, - Calculates maximum velocity and acceleration, - Generates an x(t), v(t), a(t) table at the selected time step.

Where Does Simple Harmonic Motion Appear?
  • Spring–mass systems at small amplitudes are good models of simple harmonic motion.
  • Under the small-angle assumption, pendulum motion can also be treated as approximately SHM.
  • In SHM energy continuously exchanges between potential and kinetic forms; total mechanical energy is constant.
This model is valid under frictionless and linear spring assumptions. In real systems, damping and nonlinear effects can change the result.
Use advanced settings for more accurate results.