Pendulum period calculator

How long does a pendulum take to swing there and back? Enter its length, and its swing angle if it swings wide, to get the period and frequency.

°
Below about 15° the simple formula is within 0.5%
Earth 9.81, Moon 1.62, Mars 3.71
Period at this amplitude–
Period (small-swing formula)–
Frequency–

See it for real: play Swing Across or play The Harmonograph.

The formula

A simple pendulum is a small heavy bob on a light string or rod. For small swings its period, the time for one complete swing out and back, is

T = 2π √(L / g)  and  f = 1 / T

L is the length from the pivot to the centre of the bob in metres, g the acceleration of gravity (9.81 m/s² on Earth) and f the frequency in swings per second (hertz). Two things are missing from the formula: the mass of the bob and, for small swings, the size of the swing. Galileo described the second in letters around 1602; the story goes that he first noticed it as a student, timing a swinging lamp in Pisa cathedral against his pulse.

Why length is all that matters

When the bob is pulled aside, gravity pulls it back with a force proportional to its mass and, for small angles, proportional to how far it is from the bottom. A heavier bob is pulled harder but is also harder to speed up, so mass cancels exactly. A wider swing has further to go but is pulled back harder, so it moves faster and the two effects cancel too. That leaves length and gravity. Because L sits under a square root, you need four times the length to double the period: a 1 m pendulum ticks every 2.0 s, a 25 cm one every 1.0 s, a 4 m one every 4.0 s.

Wide swings take longer

The cancellation is only exact for small angles. At wider swings the restoring force grows more slowly than the distance, and the pendulum takes longer. This calculator uses the exact result, T = T0 / AGM(1, cos(θ0/2)), where AGM is the arithmetic–geometric mean, so the first output is correct at any amplitude for an ideal pendulum.

AmplitudePeriod compared with small swings
5°+0.05%
10°+0.19%
20°+0.77%
30°+1.74%
60°+7.3%
90°+18.0%

This is why pendulum clocks swing only a few degrees: if the swing slowly shrinks as the clock winds down, the timing hardly changes. A 0.2% error, though, is still about three minutes a day, so clockmakers keep the amplitude as steady as they can.

Assumptions and limits

Real pendulums

PendulumLengthPeriod
Seconds pendulum (ticks once a second)0.994 m2.00 s
Mantel clockabout 25 cmabout 1.0 s
Playground swing2.5 m3.2 s
Great Clock of Westminster (Big Ben)about 4 m4.0 s
Foucault’s pendulum, Panthéon, Paris (1851)67 m16.4 s

Everyday uses

Swing a pendulum yourself in Swing Across, where short ropes feel quick and long ones slow and heavy, or in The Harmonograph, where two pendulums with lengths in simple ratios draw musical figures.

Worked example

A playground swing hangs on 2.5 m chains (measured to the middle of the seat, roughly where your centre of mass sits). A child swings out to 20° each side. How long is each there-and-back swing?

Length (pivot to centre of the bob)2.5 m
Amplitude (largest angle from vertical)20 °
Gravity9.81 m/s²
Period at this amplitude3.196 s
Period (small-swing formula)3.172 s
Frequency0.3129 Hz

Just over 3 seconds, and the wide swing adds less than a tenth of a second. That slow, steady rhythm is why you pump a swing about 19 times a minute whatever your size: the period depends on the chain length, not on how heavy you are.

Frequently asked questions

What is the formula for the period of a pendulum?
T = 2π√(L/g), where L is the length in metres and g is 9.81 m/s². A 50 cm pendulum: 2π√(0.5/9.81) = 1.42 seconds for one full swing there and back.
Does the mass of a pendulum affect its period?
No. A heavier bob feels more gravity but is equally harder to accelerate, so the two cancel. A 100 g and a 1 kg bob on the same length of string swing in step, apart from tiny differences from air drag.
How long is a pendulum with a period of 1 second?
Rearranging gives L = g T² / 4π² = 9.81 / 39.48 = 0.248 m, about 25 cm. A pendulum that takes 1 second for each one-way swing (period 2 s) is 0.994 m long.
Does a bigger swing take longer?
Slightly. At 10° the period is 0.19% longer than the small-swing formula, at 30° about 1.7% longer and at 90° about 18% longer.
How do you lengthen the period of a pendulum?
Make it longer, or take it somewhere with weaker gravity. Doubling the length multiplies the period by √2 = 1.41. On the Moon, where g = 1.62 m/s², the same pendulum swings 2.46 times more slowly.
Why does a pendulum clock run slow in summer?
Heat expands a metal rod: steel grows about 12 millionths of its length per °C. A 10 °C rise lengthens a seconds pendulum by 0.012%, slowing it by about 5 seconds a day, which is why precision clocks used temperature-compensated pendulums.

Sources

Related calculators

Play it