The physics of steady oscillation

Simple Harmonic Motion

Simple harmonic motion is a repeating back-and-forth motion in which the restoring force always points toward the middle position and grows in direct proportion to the distance from it. A mass bouncing on a spring is the classic case. Its period stays the same whatever the size of the swing, and its position traces a smooth sine curve over time.

Brass weight bobbing on a steel coil spring hanging from a stand, the classic example of simple harmonic motion
A weight on a spring bobs in nearly perfect simple harmonic motion.

At a Glance

Simple harmonic motion (SHM) is oscillation caused by a restoring force that obeys F = -kx, so the acceleration is always proportional to displacement and directed toward equilibrium. Position follows x(t) = A cos(ωt + φ), and for a mass on a spring the period is T = 2π sqrt(m/k), which does not depend on the amplitude.

Defining condition
Restoring force F = −kx (acceleration ∝ −x)
Position
x(t) = A cos(ωt + φ)
Period (mass on spring)
T = 2π√(m/k), in seconds (s)
Angular frequency
ω = √(k/m) = 2πf, in rad/s
Total energy
E = ½kA², in joules (J)
Depends on
Mass and stiffness, not amplitude
On this page
  1. What Is Simple Harmonic Motion?
  2. Simple Harmonic Motion Explained Simply
  3. What Are the Conditions for Simple Harmonic Motion?
  4. What Are the Equations of Simple Harmonic Motion?
  5. What Does the Period of SHM Depend On?
  6. How Do Velocity and Acceleration Change in SHM?
  7. How Is Energy Stored and Exchanged in SHM?
  8. What Are Examples of Simple Harmonic Motion?
  9. Going Deeper: How Is SHM Related to Circular Motion?
  10. Who Discovered the Physics of Simple Harmonic Motion?
  11. Practice Simple Harmonic Motion Problems
  12. Common Misconceptions
  13. Key Facts
  14. Quiz
  15. FAQ

What Is Simple Harmonic Motion?

Simple harmonic motion, often shortened to SHM, is the smoothest kind of oscillation there is. An object moves back and forth through a middle point called the equilibrium position, slows to a stop at each end, turns around and repeats the trip in exactly the same time, over and over.

What makes the motion "simple harmonic" is the force behind it. The force always pulls the object back toward equilibrium, and its size is proportional to how far the object has been displaced. Pull twice as far and the pull back is twice as strong. This kind of force is called a restoring force.

SHM sits at the heart of the oscillations branch of physics. It describes springs and pendulums, but it also models vibrating guitar strings, swaying skyscrapers and atoms jiggling in a crystal. Once you understand it, much of the physics of waves and sound becomes easier.

Simple Harmonic Motion Explained Simply

Hang a small weight from a rubber band or a spring and pull it down. When you let go, the spring yanks it upward. It overshoots the middle, the spring squeezes and pushes it back down, and it keeps bobbing up and down. That steady bobbing is simple harmonic motion.

The farther the weight is from the middle, the harder the spring pulls it back. So the weight is fastest as it zips through the middle and slowest at the ends, where it stops for an instant before turning around.

The surprising part is the timing. A big bounce and a small bounce take the same time. The big one covers more distance, but it also moves faster, and the two effects cancel exactly.

What Are the Conditions for Simple Harmonic Motion?

A motion is simple harmonic when one condition holds: the acceleration is proportional to the displacement and points the opposite way. In symbols, a=−ω2x. For a spring this comes straight from Hooke's law, F=−kx, combined with Newton's second law.

Three practical requirements follow from that condition:

  • A stable equilibrium. There must be a position where the net force is zero and nearby positions push the object back toward it.
  • A linear restoring force. The force must grow in a straight line with displacement. Real springs do this only within their elastic limit.
  • No damping and no driving force. Ideal SHM has no friction. Real systems slowly lose energy, which is covered on our page on damped oscillations.

Many motions are only approximately simple harmonic. A pendulum qualifies for small swings, under about 15 degrees, but drifts away from SHM as the angle grows.

What Are the Equations of Simple Harmonic Motion?

The position of an object in SHM follows x(t)=Acos⁡(ωt+ϕ). Here A is the amplitude, the largest distance from equilibrium, in meters. The angular frequency ω in radians per second sets how fast the cycle repeats, and the phase constant ϕ just says where in the cycle the clock started.

Angular frequency links to the ordinary frequency and period through ω=2πf=2π/T. For a mass m on a spring of stiffness k, the physics fixes ω=k/m, which gives the period formula T=2πm/k. Our page on period and frequency covers the general link between T and f.

Notice what is missing from the period: the amplitude. This is the signature of SHM and the reason springs and pendulums make good timekeepers.

The most used SHM result is the period of a mass on a spring. Here it is with each variable and its SI unit, plus the forms solved for mass and spring constant.

T=2πmk
What each symbol means
SymbolQuantitySI unit
Tperiodsecond (s)
moscillating masskilogram (kg)
kspring constantnewton per meter (N/m)

Rearranged to find another variable:

m=kT24π2k=4π2mT2

Valid for: ideal (massless) spring obeying Hooke's law; independent of amplitude.

Example 1 Period of a toy on a spring

A 0.25 kg toy hangs from a spring with a spring constant of 40 N/m. It is pulled down a little and released. What is the period of its oscillation?

  1. Given:
    • oscillating mass: m=0.25 kg
    • spring constant: k=40 N/m
  2. Formula: T=2πmk
  3. Substitute: m=0.25 kg,k=40 N/m
  4. Answer: T=0.4967 s

The toy makes about two full bounces every second, and pulling it farther before release would not change that.

What Does the Period of SHM Depend On?

For a mass on a spring, only two things matter: the mass and the spring constant. A heavier mass has more inertia, so it responds more slowly and the period gets longer. A stiffer spring pulls harder for the same stretch, so the period gets shorter.

Because both sit under a square root, the effects are gentler than you might expect. Making the mass four times larger only doubles the period. The table shows our computed periods for several masses on the same 40 N/m spring, a stiffness similar to a soft spring in a school lab kit.

Gravity does not appear in the formula either. A vertical spring stretches to a new equilibrium under the weight, but it then oscillates about that point with exactly the same period it would have lying flat on a frictionless table.

Period and frequency of different masses on the same 40 N/m spring
Mass (kg)Period T (s)Frequency f (Hz)Period compared with 0.1 kg
0.10.3143.1831×
0.250.4972.0131.58×
0.40.6281.5922×
1.00.9931.0073.16×
1.61.2570.7964×
4.01.9870.5036.32×
Source: Computed with T = 2π√(m/k) and f = 1/T for k = 40 N/m · Retrieved October 2026

How Do Velocity and Acceleration Change in SHM?

Position, velocity and acceleration all follow sine-shaped curves, but they peak at different moments. At the turning points, displacement is largest, velocity is zero and acceleration is at its maximum, pointing back toward the middle. At equilibrium, displacement and acceleration are zero while velocity is at its peak.

The maximum speed is vmax=Aω, and the maximum acceleration is amax=Aω2. Both grow with amplitude, which is how a bigger swing manages to finish in the same time as a small one.

The graph shows the displacement of an oscillator with a 4 cm amplitude and a 2 s period. The curve is steepest, meaning the speed is greatest, where it crosses zero, and flat at the peaks and troughs where the object turns around.

Example 2 Top speed of the bouncing toy

The same 0.25 kg toy on the 40 N/m spring is released from 6.0 cm below its equilibrium position. What is its maximum speed?

  1. Given:
    • amplitude: A=0.06 m
    • spring constant: k=40 N/m
    • mass: m=0.25 kg
  2. Formula: vmax=Aω=Akm
  3. Substitute: A=0.06 m,k=40 N/m,m=0.25 kg
  4. Answer: vmax=0.7589 m/s (2.732 km/h, 1.698 mph)

The toy reaches this speed each time it passes through the equilibrium position, where the spring force is momentarily zero.

Displacement against time graph for simple harmonic motion, a cosine curve with 4 cm amplitude and a 2 s period
Displacement of an oscillator with a 4 cm amplitude and a 2 s period follows a cosine curve.

How Is Energy Stored and Exchanged in SHM?

A spring oscillator constantly swaps energy between two forms. At the turning points, all of it is elastic potential energy stored in the stretched or squeezed spring, 12kx2. At equilibrium, all of it is kinetic energy, 12mv2. In between, it is a mix.

Without friction the total never changes. It equals E=12kA2, so it depends on the spring and the amplitude but not on the mass. The energy bars below follow a 200 N/m spring with a 4 cm amplitude, which holds 0.16 J in total.

A useful detail: at half the amplitude, the spring holds only one quarter of the energy, because energy depends on the square of displacement. The other three quarters are already kinetic. For a side-by-side look at the two forms, see kinetic vs potential energy.

Example 3 Energy stored in a door spring

A spring with a spring constant of 120 N/m oscillates with an amplitude of 5.0 cm and no damping. What is the total mechanical energy of the oscillation?

  1. Given:
    • spring constant: k=120 N/m
    • amplitude: A=0.05 m
  2. Formula: E=12kA2
  3. Substitute: k=120 N/m,A=0.05 m
  4. Answer: E=0.15 J

Doubling the amplitude would make this energy four times larger, because amplitude appears squared.

Energy bar chart for a 200 N/m spring with 4 cm amplitude, elastic energy turning into kinetic energy while the total stays 0.16 J
A 200 N/m spring oscillating with a 4 cm amplitude: energy moves between the spring and the motion, and the total stays 0.16 J.

What Are Examples of Simple Harmonic Motion?

Perfect SHM exists only on paper, but many real systems come very close:

  • A mass on a spring, the standard lab example, as long as the spring stays within its elastic range.
  • A simple pendulum swinging through a small angle, with period T=2πL/g.
  • A tuning fork, whose prongs vibrate in nearly pure SHM and produce an almost pure tone.
  • A vibrating guitar string, where each small piece of string moves up and down harmonically.
  • A car on its springs after hitting a bump, although shock absorbers quickly damp the motion.
  • Atoms in a solid, which jiggle around fixed positions like tiny masses joined by springs. Quantum physics refines this picture in the quantum harmonic oscillator.

A bouncing ball is a common example that does not qualify. Its restoring force, gravity, stays constant instead of growing with distance, so its motion is periodic but not harmonic.

Hand holding a vibrating steel tuning fork with blurred prongs, an everyday example of simple harmonic motion
The prongs of a struck tuning fork vibrate in almost pure simple harmonic motion, giving a clean tone.

Going Deeper: How Is SHM Related to Circular Motion?

Imagine a peg on the rim of a turntable spinning at a steady rate, lit from the side so it casts a shadow on a wall. The peg moves in a circle, but its shadow slides back and forth in a straight line. That shadow moves in perfect simple harmonic motion.

This picture explains where the cosine and the angular frequency come from. The angle the peg has turned is ωt, and the shadow's position is the radius times the cosine of that angle. Our page on SHM and uniform circular motion builds the full connection, including why the maximum speed is Aω.

Who Discovered the Physics of Simple Harmonic Motion?

The story begins with timekeeping. Galileo noticed that a swinging pendulum keeps nearly the same rhythm whether its swing is wide or narrow. Christiaan Huygens turned that idea into the first accurate pendulum clock in the 1650s and worked out its mathematics.

About two decades later, Robert Hooke published his finding that the force of a spring grows in proportion to its stretch. That rule is exactly the condition SHM needs, and it opened the way to balance-spring watches.

Practice Simple Harmonic Motion Problems

Work through a few problems on your own to lock in the formulas. Our Hooke's law worksheets and waves worksheets include printable sets with answer keys. Check spring problems with the Hooke's law calculator and pendulum problems with the pendulum calculator, and keep the waves and oscillations formula sheet handy. Then try the quiz below.

Common Misconceptions

Myth: A bigger swing takes longer to complete.

Physics: In true SHM the period is independent of amplitude. A larger swing covers more distance but moves faster, so it finishes in the same time.

Myth: The object moves fastest at the ends of its swing.

Physics: The object stops for an instant at each end. It moves fastest as it passes through the equilibrium position.

Myth: Any repeating motion is simple harmonic motion.

Physics: Repeating motion is periodic, but SHM needs a restoring force proportional to displacement. A bouncing ball or a person walking repeats, yet neither is simple harmonic.

Myth: A heavier mass on the same spring stores more energy at the same amplitude.

Physics: The total energy is ½kA², which has no mass in it. A heavier mass moves more slowly, so its kinetic energy at equilibrium is the same.

Key Facts

  • Simple harmonic motion is oscillation driven by a restoring force proportional to displacement, F = −kx.
  • Position in SHM follows x(t) = A cos(ωt + φ), a smooth sine-shaped curve.
  • The period of a mass on a spring is T = 2π√(m/k), and it does not depend on amplitude.
  • Speed is greatest at the equilibrium position, and acceleration is greatest at the turning points.
  • The total energy of an undamped oscillator is E = ½kA² and stays constant as it trades between kinetic and elastic potential energy.
  • A pendulum is close to simple harmonic only for small swings, roughly under 15 degrees.
  • Quadrupling the mass on a spring doubles the period, because the period depends on the square root of mass.
Did you know? The balance wheel in a mechanical watch is a tiny rotating oscillator held by a hair-thin spiral spring, and it runs in near-perfect simple harmonic motion several times every second.

Quick Quiz: How Well Do You Know Simple Harmonic Motion?

6 questions. Tap an answer to check it.

  1. Which force produces simple harmonic motion?

  2. The mass on a spring is made four times larger. What happens to the period?

  3. Where does an object in SHM move fastest?

  4. What happens to the total energy if the amplitude doubles?

  5. Which motion is NOT simple harmonic?

  6. At a turning point of SHM, which statement is true?

Frequently Asked Questions

What is simple harmonic motion in simple terms?

Simple harmonic motion is a smooth, repeating back-and-forth movement around a middle point. Something pulls the object back toward the middle, and that pull grows the farther it moves away. A weight bouncing on a spring is the standard example. The motion repeats in the same amount of time on every cycle, whether the swing is large or small.

What is the formula for simple harmonic motion?

The position formula is x(t) = A cos(ωt + φ), where A is amplitude, ω is angular frequency and φ is the phase constant. For a mass on a spring, ω = sqrt(k/m) and the period is T = 2π sqrt(m/k). Other useful results are the maximum speed, v_max = Aω, and the total energy, E = ½kA².

What are the conditions for simple harmonic motion?

The acceleration of the object must be proportional to its displacement from equilibrium and directed opposite to it, a = −ω²x. That requires a stable equilibrium position and a restoring force that grows in a straight line with displacement, like a spring obeying Hooke's law. Ideal SHM also assumes no friction or driving force acting on the system.

Does amplitude affect the period of simple harmonic motion?

No. In ideal SHM the period depends only on the properties of the system, such as mass and spring constant, and not on how far it swings. A larger amplitude means a longer path but also a higher top speed, so the time per cycle stays the same. Real pendulums break this rule slightly at large angles, which is why they are kept to small swings.

Where is velocity maximum in simple harmonic motion?

Velocity is greatest at the equilibrium position, the middle of the motion. There the restoring force is zero, so the object has stopped speeding up and has not yet started slowing down. Its speed at that point is v_max = Aω. At the two turning points the velocity drops to zero for an instant while the object reverses direction.

Where is acceleration maximum in SHM?

Acceleration is greatest at the turning points, where displacement is largest. The restoring force is strongest there, so the acceleration has its maximum size, a_max = Aω², and points back toward equilibrium. At the equilibrium position the force and the acceleration are both zero, even though the object is moving at its fastest.

Is a pendulum simple harmonic motion?

A pendulum is very close to simple harmonic motion when it swings through a small angle, roughly 15 degrees or less. In that range the restoring force is almost exactly proportional to displacement, and the period is T = 2π sqrt(L/g). At larger angles the force grows more slowly than the displacement, the period gets slightly longer and the motion is no longer strictly simple harmonic.

What is the difference between periodic motion and simple harmonic motion?

Periodic motion is any motion that repeats at regular intervals, such as Earth orbiting the Sun or a ball bouncing on the floor. SHM is one narrow type of repeating motion, the type in which the restoring force grows in step with displacement, giving a pure sine-shaped graph. Every SHM is periodic, but most periodic motions are not simple harmonic.

What is angular frequency in SHM?

Angular frequency, ω, tells you how quickly an oscillation goes through its cycle, measured in radians per second. It is related to ordinary frequency by ω = 2πf and to the period by ω = 2π/T. For a mass on a spring it is set by ω = sqrt(k/m). It appears inside the cosine of the position equation and in the formulas for maximum speed and acceleration.

Sources

Constants come from NIST CODATA 2022 (public domain) and unit definitions from the BIPM SI Brochure (CC BY 4.0). Text, diagrams and illustrations are original work by Physics Tribune.

Physics Tribune Editorial Team
Written by our editors and checked against NIST and BIPM reference data. Every worked example is recomputed in code. Read our editorial policy. Last updated October 2026.