PhysicsBeginner

Simple Pendulum

Explore the physics of simple harmonic motion with an interactive pendulum simulation. Adjust length, mass, gravity (including planet presets), damping, and initial angle. Watch real-time energy transformations and measure the period.

Loading simulation...

Loading simulation, please wait

Understanding the Simple Pendulum: A Complete Guide to Harmonic Motion

✓ Verified Content: All equations, formulas, and reference data in this simulation have been verified by the Simulations4All engineering team against authoritative sources including MIT OpenCourseWare, HyperPhysics, and peer-reviewed physics publications. See verification log

Here's something that puzzled Galileo in 1583: a chandelier swinging in the Pisa cathedral took the same time to complete each swing, whether the arc was wide or barely visible. He timed it against his pulse. Same period. Every time. That single observation launched centuries of physics and eventually gave us accurate clocks [1].

What makes this strange? Your intuition says a longer path should take longer to travel. But the pendulum doesn't care about intuition. Swing it 5 degrees or 15 degrees (keep it under about 20°), and the period stays remarkably constant. The universe is hiding a mathematical relationship here, and our simulation lets you discover it yourself.

Students often find this counterintuitive: setting up different amplitudes, expecting different periods, then staring at the data in confusion. That confusion is the beginning of understanding. The period depends on length and gravity, not amplitude. Once you see why, you'll never forget it.

How to Use This Simulation

Here's what happens when you actually try this: you set the pendulum swinging, watch the energy bars dance back and forth, and suddenly the math makes sense. The controls are designed to let you run experiments the way Galileo would have, if he'd had a computer.

Main Controls

ButtonWhat It Does
Play/PauseStarts or stops the pendulum motion. Watch it freeze mid-swing to examine the energy state.
ResetReturns the pendulum to its initial angle with zero velocity. Essential for comparing different setups.
TrailToggles a path trace showing where the bob has been. Turn this on to see how amplitude decays with damping.

Adjustable Parameters

ParameterRangeWhat to Watch For
Length (L)0.2 to 3.0 mLonger pendulum = slower swing. Try doubling it and measure the period change.
Mass (m)0.5 to 5.0 kgChange this and watch the period. Surprised? The period doesn't change at all.
Gravity (g)1 to 25 m/s²Use the planet presets or dial in custom values. Moon gravity makes everything dreamlike.
Damping (γ)0 to 2Simulates air resistance and friction. Crank it up to see exponential amplitude decay.
Initial Angle5° to 90°Start small for textbook behavior, go large to see where the simple formula breaks down.

Planet and Damping Presets

If you could slow this down enough to watch a pendulum on Jupiter, you'd see it swing nearly twice as fast as on Earth. The planet presets let you compare:

  • Earth (9.81 m/s²) - Your baseline
  • Moon (1.62 m/s²) - Slow, graceful swings
  • Mars (3.72 m/s²) - About 40% of Earth
  • Jupiter (24.79 m/s²) - Fast and energetic

The damping presets (None, Light, Medium, Heavy) let you quickly compare ideal versus real-world behavior.

Display Options

  • Energy Bars: The OUTPUT panel shows real-time kinetic energy (KE), potential energy (PE), and total energy. With zero damping, total energy stays constant. Add damping and watch it drain away.
  • Equations Panel: Click the toggle to reveal the governing equations. Useful for connecting what you see to the math.
  • Statistics: Period, frequency, current angle, and velocity update in real time.

Keyboard Shortcuts

KeyAction
SpacePlay/Pause
RReset
TToggle trail
← →Adjust length (arrow keys)

Tips for Exploration

  1. Start with the classic experiment: Set length to 1.0 m, gravity to Earth, damping to zero, and initial angle to 15°. Press Play and note the period. Now change only the mass. The elegant part is that the period stays exactly the same.

  2. Break the small-angle approximation: Set the initial angle to 45°, then 60°, then 90°. Watch how the actual period drifts longer than the formula predicts. At 90°, you're about 18% off from T = 2π√(L/g).

  3. Witness energy conservation: With zero damping, watch the energy bars. At the extremes, it's all potential. At the bottom, it's all kinetic. The total never changes. This is physics you can see.

  4. Add damping and enable the trail: Set damping to "Medium" and turn on the trail. The spiral pattern shows exponential decay. Notice how the period barely changes even as amplitude shrinks.

  5. Compare planets: Keep length at 1.0 m and cycle through the planet presets. Calculate T_Moon/T_Earth and verify it equals √(g_Earth/g_Moon). The universe follows the equations.

What is a Simple Pendulum?

Picture a weight hanging from a string, pulled to one side, then released. That's it. A simple pendulum consists of a point mass (the bob) suspended from a fixed point by a massless, inextensible string. When displaced and released, it swings back and forth in regular, periodic motion. This idealized model, while simplified, captures the essential physics that governs everything from grandfather clocks to earthquake detectors.

The Anatomy of a Pendulum

ComponentDescriptionRole in Motion
BobPoint mass at the endStores kinetic and potential energy
String/RodConnects bob to pivotConstrains motion to circular arc
PivotFixed suspension pointProvides the axis of rotation
Rest PositionVertical equilibriumReference for displacement

The Physics of Pendulum Motion

Forces Acting on the Pendulum

What actually makes a pendulum swing back? Two forces are fighting for control of that bob:

  1. Gravity pulls straight down with force mg. Always. Unrelenting.

  2. Tension in the string pulls toward the pivot, constantly adjusting to keep the bob on its circular arc.

Here's the elegant part: gravity's component along the arc (the tangential component) provides the restoring force:

F = -mg sin(θ)

That negative sign is doing all the work. When the bob swings right, the force pushes left. Swing left, force pushes right. Always toward equilibrium. Always proportional to how far you've strayed. This is the heartbeat of oscillation.

Small Angle Approximation

Now for a mathematical trick that makes everything simpler. For small angles (θ < 15°), sin(θ) ≈ θ when measured in radians. Try it on your calculator: sin(0.1) ≈ 0.0998. Close enough.

This transforms our pendulum equation into:

F ≈ -mg θ = -mg(s/L)

where s is arc length and L is pendulum length. Look at that form carefully. It's identical to Hooke's Law (F = -kx) for a spring. The pendulum is a spring, mathematically speaking. And that's why, for small oscillations, a pendulum exhibits Simple Harmonic Motion (SHM), the same physics that governs vibrating guitar strings, bouncing cars, and oscillating molecules.

Key Equations and Formulas

Period of Oscillation

The most important equation for a simple pendulum is the period formula:

T = 2π√(L/g)

where:

  • T = period (time for one complete oscillation)
  • L = length of pendulum (meters)
  • g = gravitational acceleration (m/s²)

Frequency and Angular Frequency

QuantityFormulaUnits
PeriodT = 2π√(L/g)seconds (s)
Frequencyf = 1/T = (1/2π)√(g/L)hertz (Hz)
Angular Frequencyω = 2πf = √(g/L)rad/s

Angular Position Over Time

θ(t) = θ₀ cos(ωt + φ)

where θ₀ is the initial amplitude and φ is the phase constant.

Angular Velocity

ω(t) = -θ₀ω sin(ωt + φ)

Maximum angular velocity occurs at equilibrium (θ = 0).

Energy in a Pendulum System

Watch the energy bars in our simulation as the pendulum swings. You're witnessing one of nature's most fundamental principles in action: energy conservation. Nothing is created or destroyed, just transformed.

E_total = KE + PE = constant

At the top of each swing: all potential energy, zero velocity, the bob hangs motionless for an instant. At the bottom: all kinetic energy, maximum velocity, the bob racing through equilibrium. The total never changes (assuming no friction). This is physics you can see.

Kinetic Energy

KE = ½mv² = ½m(Lω̇)²

Maximum at the lowest point where the bob is moving fastest. Zero at the extremes where it momentarily stops.

Potential Energy

PE = mgh = mgL(1 - cos θ)

Maximum at the swing's extremes where the bob is highest. Zero at equilibrium (if we set that as our reference).

Energy Exchange

PositionKinetic EnergyPotential EnergyTotal Energy
Extreme (θ = θ_max)0MaximumE_total
Equilibrium (θ = 0)Maximum0E_total
IntermediatePartialPartialE_total

Exploration Activities

Activity 1: Investigating Length and Period

Objective: Verify that period depends on the square root of length.

Steps:

  1. Set gravity to Earth (9.81 m/s²) and damping to 0%
  2. Set the initial angle to 15°
  3. Measure the period for L = 0.5m, 1.0m, 2.0m, and 3.0m
  4. Plot T vs. √L and verify the linear relationship
  5. Calculate g from your data using T = 2π√(L/g)

Activity 2: Exploring Gravity on Different Planets

Objective: Understand how gravitational acceleration affects pendulum motion.

Steps:

  1. Set L = 1.0m and initial angle = 30°
  2. Use the planet presets to observe pendulum behavior on Earth, Moon, Mars, and Jupiter
  3. Record the period for each planet
  4. Verify that T_Moon/T_Earth = √(g_Earth/g_Moon)

Activity 3: Energy Conservation Demonstration

Objective: Observe the exchange between kinetic and potential energy.

Steps:

  1. Set damping to 0% for ideal conditions
  2. Start with a 45° initial angle
  3. Watch the energy bars as the pendulum swings
  4. Note where KE is maximum (at equilibrium) and where PE is maximum (at extremes)
  5. Verify that total energy remains constant

Activity 4: Effect of Damping

Objective: Study how friction affects oscillatory motion.

Steps:

  1. Enable the trail to visualize amplitude decay
  2. Start with 0% damping and observe steady oscillation
  3. Gradually increase damping to 5%, then 10%
  4. Observe how quickly the amplitude decreases
  5. Note that period remains nearly constant even with damping

Real-World Applications

Timekeeping

The pendulum clock, invented by Christiaan Huygens in 1656, revolutionized timekeeping. A one-meter pendulum has a period of almost exactly 2 seconds (1 second per swing), making it ideal for clock mechanisms.

Seismology

Sensitive pendulums in seismometers detect ground motion during earthquakes. The inertia of the pendulum bob keeps it relatively stationary while the Earth moves beneath it.

Construction and Surveying

Plumb bobs (vertical pendulums) have been used for millennia to establish vertical lines in construction and surveying.

Physics Education

The pendulum remains a cornerstone of physics education, demonstrating oscillation, energy conservation, and the relationship between period and physical parameters.

Metrology

Historically, the pendulum was used to measure gravitational acceleration with high precision. Variations in g across Earth's surface provided early evidence for Earth's non-spherical shape.

Gravitational Acceleration Reference

Locationg (m/s²)Notes
Earth (equator)9.78Slightly lower due to rotation
Earth (poles)9.83Higher due to closer proximity to center
Earth (standard)9.81Average value used in calculations
Moon1.62About 1/6 of Earth
Mars3.72About 38% of Earth
Jupiter24.79About 2.5× Earth
Venus8.87Similar to Earth
Mercury3.70Similar to Mars

Challenge Questions

Level 1: Basic Understanding

  1. If you double the length of a pendulum, by what factor does the period change?
  2. Does the mass of the bob affect the period of a simple pendulum?

Level 2: Intermediate

  1. A pendulum has a period of 2.0 seconds on Earth. What would its period be on the Moon (g = 1.62 m/s²)?
  2. What length pendulum would you need for a period of exactly 1.0 second on Earth?

Level 3: Advanced

  1. At what angle does the small-angle approximation begin to introduce more than 1% error in the period calculation?
  2. A pendulum loses 5% of its amplitude per swing due to damping. How many swings until the amplitude is less than half the original?
  3. Design a pendulum that would have the same period on Mars as a 1-meter pendulum has on Earth.

Common Misconceptions

MythReality
"Heavier pendulums swing slower"The period is independent of mass. Mass doesn't appear in T = 2π√(L/g). Both heavy and light bobs swing at the same rate [2].
"Larger swings take longer"For small angles (< 15°), period is nearly independent of amplitude. This is called isochronism, Galileo's crucial discovery [1].
"The pendulum equation works for all angles"The formula T = 2π√(L/g) is only accurate for small angles. For larger angles, the period increases nonlinearly [3].
"Friction affects the period"Damping primarily affects amplitude, not period. A damped pendulum swings with decreasing amplitude but nearly the same frequency [4].

Beyond the Simple Pendulum

Physical Pendulum

Real pendulums have distributed mass, requiring a more complex analysis using moment of inertia: T = 2π√(I/mgd)

Double Pendulum

Attaching a second pendulum to the bob creates a chaotic system where tiny changes in initial conditions lead to wildly different outcomes.

Coupled Pendulums

Two pendulums connected by a spring exhibit fascinating behavior including energy transfer and beating patterns.

Foucault Pendulum

A long pendulum that appears to rotate due to Earth's rotation, providing visual proof that Earth spins on its axis [5].

Frequently Asked Questions

Why doesn't mass affect the period of a pendulum?

The gravitational force on the bob is proportional to mass (F = mg), but so is the inertia resisting acceleration (F = ma). These factors cancel out in the equation of motion, leaving period dependent only on length and gravity [2]. This is analogous to why all objects fall at the same rate in a vacuum.

What length pendulum gives a period of exactly 1 second?

Rearranging T = 2π√(L/g) gives L = gT²/4π². For T = 1 second and g = 9.81 m/s², L ≈ 0.248 meters (about 24.8 cm). A "seconds pendulum" with T = 2 seconds requires L ≈ 0.994 meters [1].

Why do grandfather clocks use such long pendulums?

Longer pendulums have longer periods, which means fewer swings per minute, reducing wear on the mechanism. A 1-meter pendulum swings about once per second (T ≈ 2s), making it ideal for driving clock gears [6].

How accurate is the small angle approximation?

For θ < 15°, the error in period is less than 1%. At 30°, the error grows to about 4%. At 90°, the actual period is about 18% longer than the small-angle formula predicts [3].

Can a pendulum swing in a complete circle?

Yes, but it requires sufficient initial energy. The bob must have enough kinetic energy at the bottom to reach the top with some velocity remaining. This is no longer simple harmonic motion; it's circular motion.

References

  1. MIT OpenCourseWare — 8.01 Physics I: Classical Mechanics, Lecture Notes on Oscillations. Available at: https://ocw.mit.edu/courses/8-01sc-classical-mechanics-fall-2016/Creative Commons BY-NC-SA

  2. HyperPhysics — Simple Pendulum. Georgia State University. Available at: http://hyperphysics.gsu.edu/hbase/pend.htmlEducational use

  3. The Physics Classroom — Pendulum Motion. Available at: https://www.physicsclassroom.com/class/waves/Lesson-0/Pendulum-MotionFree educational resource

  4. Khan Academy — Simple Harmonic Motion and Pendulums. Available at: https://www.khanacademy.org/science/physics/mechanical-waves-and-sound/harmonic-motionFree educational resource

  5. Wikipedia — Foucault Pendulum. Available at: https://en.wikipedia.org/wiki/Foucault_pendulumCC BY-SA 3.0

  6. Britannica — Pendulum. Available at: https://www.britannica.com/technology/pendulumEducational reference

  7. NIST — Fundamental Physical Constants: Standard Acceleration of Gravity. Available at: https://physics.nist.gov/cgi-bin/cuu/Value?gnPublic domain

  8. OpenStax — University Physics Volume 1, Chapter 15: Oscillations. Available at: https://openstax.org/books/university-physics-volume-1/pages/15-4-pendulumsCreative Commons BY 4.0

About the Data

Gravitational acceleration values for different planets are based on NASA planetary fact sheets and represent surface gravity at mean radius. The standard Earth gravity value of 9.81 m/s² is the conventional standard gravity defined by the 3rd CGPM (1901), though actual surface gravity varies from about 9.78 m/s² at the equator to 9.83 m/s² at the poles due to Earth's rotation and oblateness [7].

The simulation uses the exact pendulum equation θ'' = -(g/L)sin(θ) - γθ' solved numerically, not the small-angle approximation, providing accurate results even for large amplitude swings.

How to Cite

Simulations4All. (2025). Simple Pendulum Simulator: Interactive Harmonic Motion Analysis Tool. Retrieved from https://simulations4all.com/simulations/simple-pendulum

For academic use:

@misc{simulations4all_pendulum_2025,
  title={Simple Pendulum Simulator},
  author={Simulations4All},
  year={2025},
  url={https://simulations4all.com/simulations/simple-pendulum}
}

Verification Log {#verification-log}

Claim/DataSourceStatusDate
T = 2π√(L/g) for small anglesMIT OCW 8.01, HyperPhysics✓ VerifiedDec 2025
Period independent of massHyperPhysics, Khan Academy✓ VerifiedDec 2025
Small angle approximation valid < 15°Physics Classroom✓ VerifiedDec 2025
Earth g = 9.81 m/s² (standard)NIST CODATA✓ VerifiedDec 2025
Moon g = 1.62 m/s²NASA Planetary Fact Sheet✓ VerifiedDec 2025
Mars g = 3.72 m/s²NASA Planetary Fact Sheet✓ VerifiedDec 2025
Jupiter g = 24.79 m/s²NASA Planetary Fact Sheet✓ VerifiedDec 2025
Isochronism discovered by GalileoMIT OCW, Britannica✓ VerifiedDec 2025

Written by Simulations4All Team

Related Simulations

Projectile Motion
Physics
beginner
1,251

Projectile Motion

Launch projectiles at different angles and velocities. Explore how gravity and launch parameters affect trajectory, range, and height. Compare with and without air resistance, and test on different planets.

View Simulation
Electric Field Visualization
Physics
intermediate
894

Electric Field Visualization

Visualize electric field lines, vectors, and equipotential surfaces around point charges. Add, drag, and remove charges to explore how fields interact. Launch test charges to see their motion through the field.

View Simulation
Double Pendulum Chaos
Physics
advanced
791

Double Pendulum Chaos

Experience chaos theory with a double pendulum. Witness the butterfly effect as tiny changes in initial conditions lead to wildly different trajectories. Compare multiple pendulums, adjust parameters, and visualize chaotic motion in real-time.

View Simulation

Stay Updated

Get notified about new simulations and educational content. We send 1-2 emails per month.