Simple harmonic motion (SHM) is a type of repetitive, back-and-forth movement where the force pulling an object back toward its resting position is directly proportional to how far it has been displaced. A mass bouncing on a spring and a pendulum swinging through a small angle are the two classic examples. It’s one of the most fundamental concepts in physics because the same math describes everything from vibrating guitar strings to the way atoms oscillate inside molecules.
The Core Idea: A Restoring Force
Every case of simple harmonic motion comes down to one rule: the farther an object moves from its equilibrium (resting) position, the stronger the force pushing it back. That force always points opposite to the displacement. Pull a spring to the right, and the spring pulls left. Push it to the left, and the spring pushes right. This relationship is described by Hooke’s law: F = −kx, where x is the displacement, k is a constant describing stiffness, and the negative sign means the force opposes the displacement.
Because the restoring force grows in perfect proportion to the displacement, the resulting motion follows a smooth, predictable wave pattern. The object speeds up as it approaches equilibrium, overshoots, slows down as the restoring force builds in the opposite direction, stops momentarily at its maximum displacement, and reverses. This cycle repeats identically over and over, producing the sinusoidal (wave-shaped) curves you see in physics textbooks.
Position, Velocity, and Acceleration Over Time
If you track an object in SHM, its position at any moment follows a cosine function: x(t) = A cos(ωt + φ). Here, A is the amplitude (the maximum displacement from equilibrium), ω is the angular frequency (how rapidly the oscillation cycles, in radians per second), and φ is the phase constant, which accounts for where in the cycle the object starts.
Velocity and acceleration follow from that position equation. Velocity is v = −Aω sin(ωt + φ), and acceleration is a = −Aω² cos(ωt + φ). The practical takeaway: velocity is zero at the endpoints of the motion (where the object briefly stops before reversing), and it reaches its maximum as the object passes through equilibrium. Acceleration does the opposite. It’s greatest at the endpoints, where the restoring force is strongest, and zero at equilibrium, where the displacement is zero.
These three quantities are always out of step with each other. When displacement is at its peak, acceleration is also at its peak (pointing the other way), and velocity is zero. When the object crosses through the center, displacement and acceleration are both zero, and velocity is at its maximum. This staggered relationship is a signature of SHM.
A Mass on a Spring
The most straightforward example of SHM is a mass attached to a spring on a frictionless surface. The angular frequency of this system depends on only two things: the spring constant k (how stiff the spring is) and the mass m. The relationship is ω = √(k/m). A stiffer spring oscillates faster; a heavier mass oscillates slower.
From the angular frequency, you can find the period (the time for one complete cycle) and the ordinary frequency (how many cycles happen per second). The period T is measured in seconds, and the frequency f is measured in hertz (Hz), where 1 Hz equals one cycle per second. These are connected by the relationship ω = 2πf, and f = 1/T. So a system with a period of 0.5 seconds completes 2 full oscillations every second, giving it a frequency of 2 Hz.
One important detail: neither the period nor the frequency depends on the amplitude. Whether you pull the spring a little or a lot, the oscillation takes the same amount of time to complete one cycle. A bigger pull means the object travels farther, but it also moves faster, so the timing stays the same.
The Simple Pendulum
A pendulum swinging through a small angle also exhibits simple harmonic motion. “Small” typically means initial displacements of about 20 degrees or less. Within that range, the restoring force (a component of gravity) is approximately proportional to the displacement, satisfying the requirement for SHM. The period of a simple pendulum depends on its length and the strength of gravity: T = 2π√(L/g), where L is the length of the pendulum and g is gravitational acceleration.
Notice that mass doesn’t appear in the pendulum formula. A heavy pendulum bob and a light one, hung from the same length of string, swing with the same period. This is why pendulums were historically so useful for keeping time. The key variable is length, which is easy to control precisely.
Beyond about 20 degrees, the small-angle approximation breaks down. The restoring force is no longer proportional to displacement, the motion is no longer truly sinusoidal, and the period starts to depend on amplitude. The motion is still periodic, but it’s no longer simple harmonic.
Energy in Simple Harmonic Motion
In an ideal system with no friction, the total mechanical energy stays constant throughout the oscillation. Energy just converts back and forth between two forms: kinetic energy (energy of motion) and potential energy (energy stored in the spring or in gravity).
At the endpoints of the motion, where the object momentarily stops, all the energy is potential: E = ½kA². At the equilibrium position, where the object moves fastest, all the energy is kinetic: E = ½mv²max. At every point in between, the energy is a mix of both. The total always adds up to the same value: ½mv² + ½kx² = ½kA². This means if you know the amplitude and the spring constant, you know the total energy of the system, and you can calculate the speed at any position.
The Connection to Circular Motion
There’s an elegant geometric relationship between SHM and circular motion. Imagine a point moving at constant speed around a circle. If you project that point’s position onto a straight line (say, by shining a light from the side and watching the shadow), the shadow moves back and forth in perfect simple harmonic motion. The radius of the circle corresponds to the amplitude, and the constant angular speed of the circular motion corresponds to the angular frequency ω.
This isn’t just a visual trick. It’s mathematically exact, and it’s the reason the position equation uses a cosine function. Cosine is the x-coordinate of a point on a unit circle, so SHM is literally the one-dimensional projection of uniform circular motion.
Where SHM Appears in the Real World
Simple harmonic motion shows up far beyond springs and pendulums. At the molecular level, atoms in a molecule vibrate around their bond positions in a way that closely resembles SHM. The bonds between atoms act like tiny springs: stretching and compressing with a restoring force roughly proportional to displacement. This approximation works well at low energies and is foundational to how chemists and physicists model molecular behavior, including how molecules absorb infrared light. A hydrogen chloride molecule, for example, vibrates at a characteristic frequency that can be modeled as a harmonic oscillator.
Musical instruments rely on SHM as well. A vibrating guitar string, a column of air in a flute, and the membrane of a drum all oscillate in ways that are built from simple harmonic components. Quartz crystals in watches vibrate at precise frequencies (typically 32,768 Hz) to keep time, exploiting the same principle that made pendulum clocks reliable centuries earlier.
What Happens With Damping
True simple harmonic motion continues forever at constant amplitude, but real-world systems always lose energy to friction, air resistance, or internal deformation. This energy loss is called damping, and it changes the behavior in important ways.
In an underdamped system, the object still oscillates, but each swing is slightly smaller than the last. The amplitude decays exponentially over time, like a playground swing gradually coming to rest. This is the most common real-world scenario. The oscillation frequency is slightly lower than the ideal SHM frequency because the damping force slows things down a bit.
If the damping is strong enough, the system becomes overdamped. In this case, the drag force overwhelms the restoring force so completely that no oscillation occurs at all. The object just slowly creeps back toward equilibrium without ever overshooting. A door closer on a heavy fire door is a good example: it returns the door to its closed position without bouncing.
Right at the boundary between these two behaviors is critical damping, where the system returns to equilibrium as fast as possible without oscillating. Car suspension systems are designed to operate near critical damping, absorbing bumps quickly without bouncing the vehicle up and down repeatedly.
In all three cases, the total mechanical energy is not conserved. It dissipates as heat or other forms of energy, and the motion eventually stops. The idealized SHM equations only apply exactly when damping is absent, but they remain an excellent approximation for systems where damping is small over the timescale you care about.

