Simple Harmonic Motion Calculator
Computes the instantaneous displacement, velocity, or acceleration of an oscillating object undergoing simple harmonic motion. Ideal for physics students, engineers analysing springs, pendulums, or any periodic system.
Last updated: October 2026
Motion Value
0.294 m
Formula below · 2 sources (openstax.org, hyperphysics.gsu.edu) · Updated Oct 2026
Compare with similar
About this calculator
In simple harmonic motion (SHM) the restoring force is proportional to the displacement, F = −kx, so the object oscillates in a sine wave. With amplitude A, frequency f, time t and phase angle φ, and angular frequency ω = 2πf:
Displacement: x(t) = A sin(ωt + φ). Velocity: v(t) = Aω cos(ωt + φ). Acceleration: a(t) = −Aω² sin(ωt + φ) = −ω²x. Period: T = 1 ÷ f.
What the signs mean
Displacement is measured from the equilibrium position. Velocity is greatest (Aω) as the object passes through equilibrium and zero at the turning points; acceleration is greatest (Aω²) at the turning points and always points back toward equilibrium, which is why it carries the minus sign.
Choosing the phase
With φ = 0 the object starts at equilibrium moving in the positive direction. With φ = π/2 (about 1.5708 rad) it starts at maximum displacement, which is the same as writing x = A cos ωt. Use the phase that matches your starting condition; textbooks that write the motion with cosine use a phase that differs by π/2.
Limits
This is ideal, undamped motion: the amplitude never decays. Real springs and pendulums lose energy to friction and air resistance, and a pendulum is only close to simple harmonic for small swings.
How to use
Enter the amplitude in meters, the frequency in hertz, the time in seconds and the phase in radians, then choose displacement, velocity, acceleration or period. The default 0.5 m at 1 Hz, 0.1 s after starting from equilibrium, is at x = 0.5 × sin(0.2π) ≈ 0.294 m, moving at 0.5 × 2π × cos(0.2π) ≈ 2.54 m/s, with acceleration ≈ -11.60 m/s². The period is 1 ÷ 1 = 1 s; at 2 Hz it would be 0.5 s.
Frequently asked questions
What is the phase angle in simple harmonic motion and how does it affect the result?
The phase angle φ shifts the wave in time. With φ = 0 the motion starts at equilibrium moving in the positive direction; with φ = π/2 (about 1.5708 rad) it starts at maximum positive displacement. It is set by the starting position and velocity and does not change the amplitude, frequency or energy.
How is simple harmonic motion different from damped harmonic motion?
In ideal simple harmonic motion, the amplitude remains constant forever because there is no energy loss. In damped harmonic motion, friction or resistance removes energy from the system, causing the amplitude to decrease over time, typically following an exponential decay envelope. Lightly damped systems (like a pendulum in air) oscillate many times before stopping, while critically damped systems return to equilibrium as fast as possible without oscillating at all. This calculator models ideal SHM only; it does not account for damping effects.
Why is the acceleration in simple harmonic motion always directed toward the equilibrium position?
The defining characteristic of SHM is that the net force (and therefore acceleration) is always proportional to displacement and directed opposite to it: F = −kx, which gives a = −ω²x. When the object is displaced to the right (positive x), the force pulls it left (negative a). This restoring behaviour is what creates the oscillation. The negative sign in the acceleration formula a(t) = −Aω²sin(ωt + φ) mathematically encodes this relationship, ensuring that acceleration and displacement are always 180° out of phase.
Related calculators
Sources & references
Think a result is wrong? Report a problem with this calculator.