Simple Harmonic Motion (SHM) Calculator
Calculate displacement, velocity, acceleration, and energy for simple harmonic motion at any time.
Reading Position, Velocity, and Acceleration in SHM
Simple harmonic motion occurs when acceleration is proportional to displacement and always points back toward equilibrium. The defining relationship is a=−ω2x. The minus sign matters: if the object is displaced in the positive direction, its acceleration is negative, and vice versa. This restoring behavior produces a repeating sinusoidal motion rather than motion at constant speed.
For the common zero-phase form x=A cos(ωt), the object starts at maximum positive displacement at t=0. Its speed is zero there, then increases as it moves toward equilibrium. At x=0 the speed is greatest and acceleration is zero. At either turning point x=±A, the speed returns to zero and acceleration has its greatest magnitude.
| Symbol | Meaning | Why it appears / units |
|---|---|---|
| A | Amplitude | Maximum displacement from equilibrium, in meters. |
| ω | Angular frequency | Radians per second; ω=2πf. |
| T | Period | T=2π/ω, the time for one complete cycle. |
| x, v, a | Instantaneous motion variables | Position (m), velocity (m/s), acceleration (m/s2). |
Energy provides a second way to interpret SHM. In an ideal oscillator, kinetic and potential energy trade back and forth while total mechanical energy stays constant. Increasing amplitude increases total energy as A2, but for an ideal spring-mass oscillator it does not change the period. Real systems eventually lose energy through damping, so their amplitudes shrink with time.
Worked Examples
Common Mistakes
They are related by ω=2πf. Putting hertz directly into a formula that expects rad/s introduces a factor of 2π error.
The relation a=−ω2x encodes the restoring direction. Without the minus sign, the motion would accelerate away from equilibrium rather than oscillate.
At x=±A the object turns around, so v=0. Speed is greatest at x=0, where the oscillator passes through equilibrium.
Frequently Asked Questions
Formula Explorer connections
Interpretation: This relationship connects motion, force, momentum, work or energy in a mechanical system. Assumption: Choose a consistent reference direction and unit system. The model may assume constant acceleration, rigid bodies, negligible losses or an isolated system.