PHYSICSLAB
PENDULUM SIMULATION v2.0Configuration
Environment
Community Feedback0 Comments
Share Your Experience
Pendulum Lab — Multi-Pendulum Simulator with RK4
This pendulum lab simulates up to four coupled pendulums simultaneously using Runge-Kutta 4 integration for high accuracy. Each pendulum's length, mass, initial angle, and damping coefficient can be set independently, and an optional coupling strength slider creates a coupled-pendulum system. A bottom graph panel shows time-domain angle, phase space (θ vs ω), or kinetic/potential energy over time. Switch gravity between Earth, Moon, Mars, Jupiter, or zero-g to see how period changes.
What you can do in this simulation
- Add up to 4 pendulums with independent length, mass, angle, and damping
- Choose gravity for Earth, Moon, Mars, Jupiter, or Zero-G
- Adjust coupling strength (0–2) to create a coupled-pendulum system
- Toggle force vectors, trail arcs, and time-domain/phase-space/energy graphs
- Use 8 presets including Simple Pendulum, Pendulum Wave, and Damped Motion
Concepts covered
simple pendulum · damped oscillation · coupled pendulums · RK4 integration · phase space · period and frequency
How a pendulum works
A simple pendulum is a mass — the bob — swinging from a fixed pivot. Gravity pulls the bob straight down, but the string constrains it to an arc, so only the component of gravity along that arc acts to restore the bob toward the lowest point. That restoring force is what makes the pendulum oscillate back and forth.
For small swings (below about 15°), the restoring force is very nearly proportional to the displacement, which is the defining condition for simple harmonic motion — and why a small-angle pendulum keeps almost perfect time. As you increase the starting angle the motion stays periodic but is no longer perfectly simple-harmonic, and the period grows slightly. This simulator captures that effect because it integrates the full equation of motion with RK4, rather than assuming the small-angle approximation.
Experiments to try in this simulation
1. Length versus period: run a single pendulum and time ten full swings at 1 m, then at 4 m. The longer pendulum is slower — but quadrupling the length only doubles the period, because the period depends on the square root of length.
2. Mass makes no difference: change the bob's mass while holding length and angle fixed. The period does not change. Gravity accelerates every mass equally, so a heavy bob and a light bob keep the same time.
3. Gravity across the solar system: switch gravity from Earth to Moon to Jupiter. On the Moon the same pendulum swings far more slowly; on Jupiter, faster — a direct look at the inverse-square-root relationship with g.
4. Coupled energy transfer: add a second pendulum, raise the coupling slider, and start only one of them moving. Watch the energy flow back and forth between them — the hallmark of coupled oscillators and resonance.
Key equations
For small angles, the period of a simple pendulum is T = 2π√(L/g), where L is the length and g is the gravitational acceleration. Notice what is absent from that formula: the mass of the bob, and (to first approximation) the amplitude. The angular frequency is ω = √(g/L) = 2π/T.
The bob's energy trades between gravitational potential energy, U = mgL(1 − cos θ), at the top of each swing and kinetic energy at the bottom. In the ideal frictionless case that total energy is conserved; adding damping removes a little energy each cycle, shrinking the amplitude over time — which you can watch directly on the energy graph.
Real-world applications
Pendulums were the heart of accurate timekeeping for nearly 300 years, from Huygens's pendulum clock in 1656 until the quartz era. The same physics drives a metronome and once powered the seismometers that recorded earthquakes. A Foucault pendulum slowly rotates its plane of swing, giving direct visible proof that the Earth turns. Coupled and damped pendulums model resonance and vibration control — the 660-tonne tuned mass damper that steadies the Taipei 101 skyscraper in high winds is, in essence, an enormous pendulum.
Related simulations
- Simple Harmonic Motion Lab — Mass-Spring Simulator
- Chaos Theory Simulator — Lorenz & Double Pendulum
- Acoustics & Sound Waves — Interactive Simulator
- Angular Momentum Simulator: The Spinning Skater Effect
- Black Hole Simulator — Gravity & Spacetime
- Brachistochrone Curve Simulator - Fastest Ramp
Browse all Physics simulations →
Related reading
- Pendulum Simulator Online: See Simple Harmonic Motion Instead of Only Memorizing It
- Simple Harmonic Motion Simulation: Five Labs That Build Real Intuition
Free to use in your browser — no signup required. Found a bug or have an idea to make it better? Tell us.
Finished experimenting?
Save one completion to this browser's signed guest ledger, or directly to your account when signed in.