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.
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.
| Amplitude | Period 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
- The bob is treated as a point on a weightless string. For a swinging rod or a large bob (a physical pendulum), use the distance to the centre of oscillation, which for a uniform rod swinging from one end is two-thirds of its length.
- Air drag and friction slowly shrink the swing but barely change the period.
- The string is assumed not to stretch. A springy rope gives a slightly longer period.
Real pendulums
| Pendulum | Length | Period |
|---|---|---|
| Seconds pendulum (ticks once a second) | 0.994 m | 2.00 s |
| Mantel clock | about 25 cm | about 1.0 s |
| Playground swing | 2.5 m | 3.2 s |
| Great Clock of Westminster (Big Ben) | about 4 m | 4.0 s |
| Foucault’s pendulum, Panthéon, Paris (1851) | 67 m | 16.4 s |
Everyday uses
- Measuring gravity: turn the formula round to g = 4π²L/T². Time 20 swings of a 1 m string to cut the reaction-time error, and you can measure g to within 1% with a stopwatch.
- Tuning a clock: a clock that runs slow has a pendulum that is too long. Shortening a seconds pendulum by 1 mm speeds it up by about 43 seconds a day.
- Music: a metronome is an upside-down pendulum; sliding the weight up lengthens the effective pendulum and slows the beat.
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 ° |
| Gravity | 9.81 m/s² |
| Period at this amplitude | 3.196 s |
| Period (small-swing formula) | 3.172 s |
| Frequency | 0.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
- Pendulum (mechanics), Wikipedia
- Simple pendulum, HyperPhysics
- Seconds pendulum, Wikipedia
- Foucault pendulum, Wikipedia
Related calculators
- Free Fall Calculator: How long does something take to fall, and how fast is it going when it lands? Enter a height and get the answer, ignoring air resistance.
- Centripetal Force Calculator: What force keeps something moving in a circle? Enter its mass, speed and the radius of the turn to get the centripetal force, the acceleration in g and the time per lap.
- Hooke’s Law Calculator: How hard does a spring pull back when you stretch it? Enter the spring constant and the extension to get the force and the stored energy, and add a mass to see how it bounces.
- Musical Interval Calculator: How far apart are two notes? Enter two frequencies to get the interval in cents and semitones, its name, and how it compares with a piano’s equal temperament.
Checked against the sources above. Last reviewed 2026-11-11. Calculators give estimates from standard formulas; see our disclaimer.

