Simple Harmonic Motion Calculator
- Frequency = 1 / 2.00 = 0.50 Hz, so the angular frequency is 2pi x 0.50 = 3.1416 rad/s.
- Maximum speed = 0.25 x 3.1416 = 0.79 m/s.
- Maximum acceleration = 0.25 x 3.1416^2 = 2.47 m/s^2.
This simple harmonic motion calculator takes the amplitude and period of an oscillator and returns its frequency, peak speed, and peak acceleration. In simple harmonic motion the displacement follows x(t) = A cos(w t) with w = 2pi/T. Peak speed is A x w at the centre of the swing and peak acceleration is A x w^2 at the extremes, where the restoring force is strongest. Because frequency and period are reciprocals (f = 1/T), entering a period of 2 s with an amplitude of 0.25 m gives a frequency of 0.50 Hz, a peak speed of 0.79 m/s, and a peak acceleration of 2.47 m/s^2. A small, fast oscillator (0.1 m, 0.5 s) reaches a peak speed of 1.26 m/s and a peak acceleration of 15.79 m/s^2 — about 1.6 g — despite moving only 10 cm each way, while a large, slow oscillator (1.5 m, 4 s) peaks at 2.36 m/s with an acceleration of only 3.70 m/s^2.
This method is the accepted standard because simple harmonic motion has a defining convenience: the motion's period does not depend on amplitude, true for pendulums only at small angles. Peak speed and peak acceleration happen a quarter-cycle apart: the oscillator is fastest exactly where its acceleration is zero. This page shows the formula, step-by-step workings, worked examples, and sources.
Worked examples
A gentle swing
Primary result: 0.79 m/s — peak speed at the centre of a 0.25 m, 2-second oscillation. (0.25 m · 2 s)
| Maximum speed | 0.79 m/s |
| Frequency | 0.50 Hz |
| Angular frequency | 3.1416 rad/s |
| Maximum acceleration | 2.47 m/s^2 |
Fast and small
Primary result: 1.26 m/s — a 0.5 s period drives peak acceleration to 15.79 m/s^2 despite the small amplitude. (0.1 m · 0.5 s)
| Maximum speed | 1.26 m/s |
| Frequency | 2.00 Hz |
| Angular frequency | 12.5664 rad/s |
| Maximum acceleration | 15.79 m/s^2 |
Large and slow
Primary result: 2.36 m/s — a 1.5 m amplitude at a 4 s period. (1.5 m · 4 s)
| Maximum speed | 2.36 m/s |
| Frequency | 0.25 Hz |
| Angular frequency | 1.5708 rad/s |
| Maximum acceleration | 3.70 m/s^2 |
What simple harmonic motion is
Simple harmonic motion is movement under a restoring force that is proportional to displacement from equilibrium. The classic examples are a mass on a spring, a small-angle pendulum, and vibrating strings. In each case, the restoring force always points back toward the center and grows stronger the farther the object moves away, which keeps the oscillation regular and repeatable.
The displacement follows x(t) = A cos(w t), where A is the amplitude and w = 2pi/T. Frequency and period are reciprocals (f = 1/T), and the motion's period does not depend on amplitude — the defining convenience of SHM, true for pendulums only at small angles. This is why a playground swing with a small push and one with a larger push still completes each cycle in the same amount of time, as long as the angle stays small enough.
Peak speed is A x w at the center of the swing, and peak acceleration is A x w^2 at the extremes, where the restoring force is strongest. These two maxima happen a quarter-cycle apart: the oscillator is fastest exactly where its acceleration is zero. A simple harmonic motion calculator uses these relationships to turn amplitude and period into speed, acceleration, and frequency without requiring you to work through the trigonometry by hand.
The numbers show how amplitude and period trade off. An amplitude of 0.25 m with a period of 2 s gives a frequency of 0.50 Hz, a peak speed of 0.79 m/s, and a peak acceleration of 2.47 m/s^2. A large, slow oscillator (1.5 m, 4 s) peaks at 2.36 m/s with an acceleration of only 3.70 m/s^2, because its long period keeps the angular frequency low. A small, fast oscillator (0.1 m, 0.5 s) reaches a peak speed of 1.26 m/s and a peak acceleration of 15.79 m/s^2 — about 1.6 g — despite moving only 10 cm each way.
From period to peak speed and acceleration
In simple harmonic motion the displacement follows x(t) = A cos(w t), where A is the amplitude and w is the angular frequency. The angular frequency links to the period T through w = 2pi/T, which means once you know how long one full cycle takes, you know how quickly the oscillator moves through every phase of that cycle. Frequency and period are reciprocals (f = 1/T), and the motion's period does not depend on amplitude — the defining convenience of SHM, true for pendulums only at small angles.
From that single angular frequency you can find the two extremes that matter most in practice. Peak speed is A x w, reached at the center of the swing where the restoring force is zero. Peak acceleration is A x w^2, reached at the extremes where the restoring force is strongest. These peaks happen a quarter-cycle apart: the oscillator is fastest exactly where its acceleration is zero, and it slows to a halt exactly where the force on it is greatest.
A verified example shows how the numbers work. An amplitude of 0.25 m with a period of 2 s gives a frequency of 0.50 Hz, a peak speed of 0.79 m/s, and a peak acceleration of 2.47 m/s^2. That is a gentle, readable oscillation — a quarter-meter swing taking two seconds per cycle. A small, fast oscillator (0.1 m, 0.5 s) reaches a peak speed of 1.26 m/s and a peak acceleration of 15.79 m/s^2 — about 1.6 g — despite moving only 10 cm each way. A large, slow oscillator (1.5 m, 4 s) peaks at 2.36 m/s with an acceleration of only 3.70 m/s^2. The short-period case hits harder; the long-period case glides.
These relationships are exactly what a simple harmonic motion calculator evaluates. Enter amplitude and period, and the tool returns frequency, peak speed, and peak acceleration without requiring you to handle the trigonometry or unit conversions by hand. Because the period is independent of amplitude, the same calculator works for any oscillator that follows SHM — from a small lab spring to a large, slow pendulum — provided the small-angle condition holds where it applies.
Worked examples
These three verified cases show how the same simple harmonic motion calculator handles very different oscillators, from a gentle playground-style swing to a fast small oscillator at 15.79 m/s² peak acceleration. In every case the displacement follows x(t) = A cos(w t) with w = 2pi/T. Peak speed is A × w at the centre of the swing, and peak acceleration is A × w² at the extremes, where the restoring force is strongest. Because frequency and period are reciprocals (f = 1/T), you only need the period to find the frequency.
The gentle swing has an amplitude of 0.25 m with a period of 2 s, giving a frequency of 0.50 Hz, a peak speed of 0.79 m/s and a peak acceleration of 2.47 m/s². The large, slow oscillator (1.5 m, 4 s) peaks at 2.36 m/s with an acceleration of only 3.70 m/s² — slower cycles mean much lower peak acceleration despite the larger amplitude. The small, fast oscillator (0.1 m, 0.5 s) reaches a peak speed of 1.26 m/s and a peak acceleration of 15.79 m/s², about 1.6 g, despite moving only 10 cm each way. Short periods dominate the acceleration because peak acceleration scales with the square of angular frequency.
Notice that peak speed and peak acceleration happen a quarter-cycle apart: the oscillator is fastest exactly where its acceleration is zero, and acceleration peaks at the extremes where speed is zero. Also remember that the motion's period does not depend on amplitude — the defining convenience of SHM, true for pendulums only at small angles. Doubling the amplitude of the gentle swing would still give a period of 2 s, though both peak speed and peak acceleration would double.
| Case | Amplitude (m) | Period (s) | Frequency (Hz) | Peak speed (m/s) | Peak acceleration (m/s²) |
|---|---|---|---|---|---|
| Gentle swing | 0.25 | 2 | 0.50 | 0.79 | 2.47 |
| Small, fast oscillator | 0.1 | 0.5 | 2.00 | 1.26 | 15.79 |
| Large, slow oscillator | 1.5 | 4 | 0.25 | 2.36 | 3.70 |
Where the peaks happen
In simple harmonic motion the displacement follows x(t) = A cos(w t) with w = 2pi/T. Speed and acceleration do not peak at the same place. Speed peaks at the centre of the swing, where the restoring force is zero, while acceleration peaks at the extremes, where the restoring force is strongest. The two maxima sit a quarter-cycle apart: the oscillator is fastest exactly where its acceleration is zero.
The peak speed is A x w at the centre, and the peak acceleration is A x w^2 at the extremes. Frequency and period are reciprocals (f = 1/T), and the motion's period does not depend on amplitude — the defining convenience of SHM, true for pendulums only at small angles. A simple harmonic motion calculator uses these relationships to locate the two peaks without requiring you to track the motion frame by frame.
The verified examples show how amplitude and period shift the peaks. An amplitude of 0.25 m with a period of 2 s gives a frequency of 0.50 Hz, a peak speed of 0.79 m/s and a peak acceleration of 2.47 m/s^2. A large, slow oscillator (1.5 m, 4 s) peaks at 2.36 m/s with an acceleration of only 3.70 m/s^2. A small, fast oscillator (0.1 m, 0.5 s) reaches a peak speed of 1.26 m/s and a peak acceleration of 15.79 m/s^2 — about 1.6 g — despite moving only 10 cm each way.
The quarter-cycle offset means that when the oscillator passes through the centre, speed is at its maximum and acceleration is zero. At the turning points, speed drops to zero and acceleration reaches its maximum. This phase relationship holds regardless of amplitude or period, so the peaks always occur at predictable points in the cycle.
Frequency, period and angular frequency
Frequency, period and angular frequency describe the rhythm of any oscillator, and a simple harmonic motion calculator lets you move between them without doing the algebra by hand. Frequency (f) and period (T) are reciprocals, so f = 1/T. If an oscillator completes one full swing every 2 s, its frequency is 0.50 Hz. Angular frequency, written as ω, converts that ordinary frequency into radians per second through ω = 2πf, which is the same as ω = 2π/T. Physicists prefer ω because the displacement in simple harmonic motion follows x(t) = A cos(ωt), making the math cleaner when you also need peak speed (A × ω) and peak acceleration (A × ω²). Working in radians per second keeps the cosine, its derivative, and its second derivative all in the same units.
The relationship between frequency and period means that cutting the period in half doubles the frequency. A verified example shows this clearly: an amplitude of 0.25 m with a period of 2 s gives a frequency of 0.50 Hz, a peak speed of 0.79 m/s, and a peak acceleration of 2.47 m/s². Compare that with a small, fast oscillator of 0.1 m amplitude and 0.5 s period. Its frequency is 2.00 Hz, and it reaches a peak speed of 1.26 m/s with a peak acceleration of 15.79 m/s² — about 1.6 g — despite moving only 10 cm each way. The shorter period drives angular frequency up, and because acceleration depends on ω², that increase shows up dramatically in the results.
At the other extreme, a large, slow oscillator with 1.5 m amplitude and a 4 s period has a frequency of 0.25 Hz. It peaks at 2.36 m/s with an acceleration of only 3.70 m/s². The amplitude is large, but the low angular frequency keeps both peak speed and peak acceleration modest. This is one reason ω matters: it captures how quickly the phase of the motion advances, which matters more for the dynamics than the raw distance traveled.
A key feature of simple harmonic motion is that the period does not depend on amplitude — the defining convenience of SHM, true for pendulums only at small angles. Whether the swing is wide or narrow, a given oscillator completes each cycle in the same time. Peak speed and peak acceleration, however, happen a quarter-cycle apart. The oscillator is fastest exactly at the center of the swing, where its acceleration is zero, and reaches peak acceleration at the extremes, where the restoring force is strongest. Entering any two of amplitude, period, or frequency into a simple harmonic motion calculator returns the remaining values along with peak speed and peak acceleration, so you can see how these quantities interact without working through each formula separately.
When motion is not simple harmonic
A simple harmonic motion calculator relies on a strict idealisation: the displacement follows x(t) = A cos(ωt), with ω = 2π/T, and the period does not depend on amplitude. That last convenience — the defining convenience of SHM — holds for pendulums only at small angles. Once the swing grows large enough that the restoring force is no longer directly proportional to displacement, the motion stops being simple harmonic. A pendulum pulled to 45° or 60° from vertical does not obey the clean cosine curve the calculator assumes, because gravity's component along the arc changes in a non-linear way.
Damping and driving forces also break the idealisation. Real oscillators lose energy to friction and air resistance, so the amplitude shrinks over time and the peak speed of A × ω at the centre of the swing decays along with it. Add an external driving force and the system may settle into a steady oscillation at the driver's frequency rather than its own natural frequency. In either case the displacement, velocity, and acceleration no longer follow the simple relationships — peak speed A × ω at the centre, peak acceleration A × ω² at the extremes, occurring a quarter-cycle apart — that define ideal SHM.
Despite these limitations, simple harmonic motion remains the small-oscillation approximation of almost any stable system. A mass in a stable potential well, a floating buoy bobbing near its equilibrium level, a molecule vibrating about its bond length — each behaves like a simple harmonic oscillator when the displacement from equilibrium is small enough that the restoring force is nearly linear. The verified examples show how widely the numbers vary while staying within the model: a small, fast oscillator of 0.1 m amplitude and 0.5 s period reaches a peak speed of 1.26 m/s and a peak acceleration of 15.79 m/s², about 1.6 g, despite moving only 10 cm each way. A large, slow oscillator of 1.5 m amplitude and 4 s period peaks at 2.36 m/s with an acceleration of only 3.70 m/s².
The lesson is to check whether your physical situation stays within the model's bounds before trusting the output. A pendulum at a few degrees from vertical, a spring stretched modestly from rest, a bridge cable vibrating gently in the wind — these are all fair game. A pendulum released from a horizontal position, a spring driven beyond its elastic limit, or an oscillator losing a noticeable fraction of its energy each cycle is not. The calculator's formulas remain exact for the ideal case and a strong approximation for everything close to it.
FAQs
How do you calculate the maximum speed in SHM?
Use the formula vmax = A x 2pi/T. For example, with amplitude A = 0.25 m and period T = 2 s, the verified peak speed is 0.79 m/s. This maximum speed is reached at the centre of the swing, where displacement is zero and all energy is kinetic.
How do you calculate maximum acceleration in SHM?
Use the formula amax = A x (2pi/T)^2. For a fast oscillator with amplitude 0.1 m and period 0.5 s, the verified peak acceleration is 15.79 m/s^2. This maximum occurs at the extremes of the swing, where displacement is greatest and restoring force is strongest.
Does amplitude affect the period?
No. In ideal SHM the period depends on the system, such as spring and mass or pendulum length, not on amplitude. All three verified examples pair freely chosen amplitudes with their periods, confirming that changing amplitude alone does not change the period of oscillation.
What is the frequency of a 2-second period?
Using f = 1/T, a period of 2 s gives a frequency of 0.50 Hz. The angular frequency is w = 3.14 rad/s. This is the first verified example, showing how frequency and angular frequency are derived directly from the period in simple harmonic motion calculations.
Where is acceleration zero in SHM?
Acceleration is zero at the centre of the swing, exactly where speed is maximal. Since acceleration is proportional to displacement, and displacement at the centre is zero, the restoring force vanishes there. The oscillator moves fastest at this point but experiences no net acceleration.
Is a pendulum simple harmonic motion?
Only approximately, for small swing angles under about 10 degrees. At larger angles the period lengthens and the motion is no longer a pure sinusoid. The small-angle approximation keeps the restoring force linear with displacement, which is what makes the pendulum behave as simple harmonic motion.