Pendulum Harmonic Motion Oscillator: Simulate Period, Velocity, and Energy
Adjust string length, bob mass, release angle, and gravity to see live pendulum animation and instant physics calculations. No data is sent anywhere - everything runs in your browser.
At release (top of arc), all energy is Potential Energy (PE = mgh). As the bob swings down, PE converts into Kinetic Energy (KE = 1/2 mv2). At the very bottom, all PE has become KE and velocity is at its peak. The total energy stays constant (Emax) throughout the swing - it just shifts form continuously.
The Complete Guide to Pendulum Harmonic Motion
A pendulum is one of the most elegant demonstrations in all of classical physics. From Galileo's legendary observations in Pisa Cathedral to the precision timekeeping of mechanical clocks, pendulums have shaped our understanding of oscillatory motion, gravity, and energy conservation. This simulator lets you explore all of it interactively in real time.
How to Use This Simulator
Start by setting the String Length and watch how the Period changes immediately - longer strings swing more slowly. Try the Gravity Preset dropdown to move your pendulum to the Moon or Jupiter. Notice that changing the Bob Mass has zero effect on the Period (T) but directly scales the Maximum Energy (Emax). Set a large Release Angle and watch the animation swing wider while the energy bars shift more dramatically at each extreme.
The Physics Behind the Period Formula
The period of a simple pendulum is given by:
This formula tells you three important things at a glance. First, period scales with the square root of length - double the string length and the period increases by a factor of sqrt(2), roughly 1.41. Second, period is inversely proportional to the square root of gravity - move to a weaker gravitational field and the pendulum slows down. Third, mass is entirely absent from the formula, confirming that the pendulum's swing time is independent of the weight of its bob.
Velocity, Energy, and the Role of Mass
While mass does not affect the period, it absolutely affects the energy stored in the pendulum system. The maximum energy (all potential at the top of the arc, all kinetic at the bottom) is:
And the maximum speed the bob reaches at the bottom of its arc is:
Note that v_max does not contain mass either - just like in free fall, all objects (light or heavy) reach the same speed at the bottom of an identical swing. But a heavier bob carries far more kinetic energy at that speed, because KE = 1/2 mv2.
Conservation of Energy in the Pendulum
The live energy bars above illustrate one of the most fundamental principles in physics: conservation of mechanical energy. At the moment of release (top of the arc), the bob has maximum height h = L(1 - cos(theta)) above its rest position and is momentarily stationary. All energy is potential (PE = mgh). As it swings downward, gravity does positive work, converting PE into KE. At the very bottom, height is zero, PE is zero, and all energy has become kinetic. On the upswing, the process reverses. Ignoring air resistance and string mass, this exchange continues indefinitely with the total energy Emax remaining constant.
Limits of the Simple Pendulum Model
The period formula is exact only in two limiting cases: zero amplitude (a pendulum at rest) and truly massless, inextensible strings. In practice, the formula is accurate to better than 1% for angles below about 15 degrees, to within 2% at 23 degrees, and to within 5% at 33 degrees. At 90 degrees the true period is about 18% longer than the formula predicts. For large-angle pendulums, the exact period requires an elliptic integral and is commonly approximated using additional correction terms.