iTutorzz

Free physics lab

Pendulum Simulator

A virtual simple pendulum lab: set the length, release angle, gravity and air resistance, release it, and watch the swing with a live angle-time graph and kinetic and potential energy bars. The simulator measures the period as it swings, so you can compare it with T = 2π√(L/g) and see where the small-angle formula stops working. Free, no signup.

t = 0 s · θ = 20°
Kinetic energy
Potential energy

Angle over the last 10 seconds

Dashed lines: ±20°. Without air resistance the swing never shrinks.

Period (small-angle formula)

2.006 s

Period (exact, no friction)

2.021 s

Measured in the simulation

-
Release it and wait for two swings

Top speed

1.088 m/s
at the bottom of the first swing

Step by step

  1. 1
    For small swings the period depends only on the length and gravity, not on the mass or (almost) the amplitude:
    T_0 = 2π √(frac{L}{g}) = 2π √(frac{1}{9.81}) = 2.006\ \mathrm{s}
  2. 2
    The frequency is swings per second, the reciprocal of the period.
    f = frac{1}{T_0} = 0.498\ \mathrm{Hz}
  3. 3
    The small-angle formula assumes sin θ ≈ θ. At 20° the exact period is 0.77% longer, which the simulation (solving the full equation) shows:
    T = T_0 × frac{2}{π} K(\sin frac{θ_0}{2}) = 2.021\ \mathrm{s}
  4. 4
    Energy is conserved without friction: height lost turns into speed, fastest at the bottom.
    v_{max} = √(2gL(1 - \cos θ_0)) = 1.088\ \mathrm{m/s}

Where T = 2π√(L/g) comes from

Gravity's pull along the swing is −mgsin⁡θ-mg \sin \theta, which gives the equation of motion

d2θdt2\displaystyle \frac{d^{2}\theta }{dt^{2}}
=−gLsin⁡θ\displaystyle = -\frac{g}{L} \sin \theta

For small angles sin⁡θ≈θ\sin \theta \approx \theta (in radians), and the equation becomes simple harmonic motion with angular frequency ω=gL\omega = \sqrt{\frac{g}{L}}, so T=2πω=2πLgT = \frac{2\pi }{\omega } = 2\pi \sqrt{\frac{L}{g}}. The simulator keeps the full sin⁡θ\sin \theta, which is why big swings take longer than the formula predicts.

Energy in a swing

At the ends of the swing the bob stops for an instant: all its energy is potential. At the bottom it moves fastest: all kinetic. Without friction the total stays the same, which gives the top speed v=2gL(1−cos⁡θ0)v = \sqrt{2gL(1 - \cos \theta _{0})}. Add air resistance and watch the total drain away as the swings shrink.

Experiments to try

  • Make the pendulum four times longer: the period doubles, because T depends on the square root of L.
  • Release from 10° and then 60°: the measured period goes up, while the formula stays the same.
  • Take it to the Moon: with about one sixth of the gravity, each swing takes about 2.5 times as long.
  • Release from 170°, almost upside down, and see how long it hangs near the top.

Frequently asked questions

What is the formula for the period of a pendulum?+

For small swings, T=2πLgT = 2\pi \sqrt{\frac{L}{g}}, where L is the length from the pivot to the center of the bob and g is the acceleration due to gravity. A 1 m pendulum on Earth has T=2π19.81≈2.01T = 2\pi \sqrt{\frac{1}{9.81}} \approx 2.01 s.

Does the mass of the bob change the period?+

No. A heavier bob needs more force to accelerate, but gravity pulls on it proportionally harder, so the mass cancels out of the equation of motion. Only the length and g matter (and, slightly, the amplitude).

Does the amplitude change the period?+

Only a little for small swings, which is why pendulums were used to keep time. The formula 2πLg2\pi \sqrt{\frac{L}{g}} assumes sin⁡θ≈θ\sin \theta \approx \theta; the true period grows with amplitude, about 0.2% longer at 10°, 1.7% at 30° and 18% at 90°. The simulator solves the full equation, so you can measure the difference.

How long is a pendulum that ticks once a second?+

A pendulum that takes 1 s for each swing (a full period of 2 s) is called a seconds pendulum. Rearranging the formula, L=gT24π2=9.81×224π2≈0.994L = \frac{g T^{2}}{4\pi ^{2}} = \frac{9.81 \times 2^{2}}{4\pi ^{2}} \approx 0.994 m, just under a meter.

How can I measure g with a pendulum?+

Time 10 or 20 full swings with a stopwatch and divide to get T (timing many swings shrinks the reaction-time error). Then g=4π2LT2g = \frac{4\pi ^{2} L}{T^{2}}. Measure L to the center of the bob, and keep the swings under about 15°.

Oscillations and energy confusing?

Simple harmonic motion links forces, energy and graphs. A physics tutor can connect them one-on-one, and your first trial lesson is free.

From formulas to understanding

Work 1-on-1 with a physics tutor who explains why the equations work. Your first trial lesson is free.