Simple Pendulum Calculator
Period and frequency from length and gravity — or solve for length or g.
The formula behind it
T = 2π √(L ÷ g)- T
- period — one full back-and-forth swing, in seconds
- L
- pivot-to-bob length (string or rod), in meters
- g
- local gravity — 9.81 m/s² on Earth, 1.62 on the Moon, 3.71 on Mars
For small swings, a pendulum's period depends only on its length and local gravity — famously NOT on the mass or (within limits) the size of the swing. That simplicity made it the timekeeper of the 17th–20th centuries and still makes it the classic g-measurement lab.
How to use this calculator
- 1
Pick what to solve for: period (default), length, or local gravity.
- 2
For the period: enter length and gravity (defaults to 9.81).
- 3
For length: enter the measured period and gravity — useful when designing a clock pendulum.
- 4
For gravity: enter both L and a carefully timed period — the classroom experiment.
- 5
Keep swings small (≤ ~15°) for the formula's assumptions to hold.
Worked examples
1-meter pendulum on Earth
T = 2π√(1/9.81) = 2π × 0.3193 ≈ 2.006 s — almost exactly 2 seconds, which is why a 1 m pendulum makes a good metronome (≈ 29.9 swings/min).
Measure g in the lab
Time 20 swings of an L = 0.995 m pendulum: 40.2 s total → T = 2.010 s. g = 4π²L/T² = 4π² × 0.995 ÷ 4.0401 ≈ 9.72 m/s² — within ~1% of standard despite amateur timing.