Physics: Mechanics, Waves & Thermodynamics Oscillations, Springs & Pendulums Small-angle simple pendulum, T = 2π√(L/g)

Simple Pendulum Period Calculator

This calculator handles the three questions a pendulum actually raises: how long does a given pendulum take to swing, how long must a pendulum be to keep a chosen beat, and what is the local acceleration due to gravity given a measured period. It works in the small-angle approximation T = 2π√(L/g) and then applies the amplitude correction, so you can see exactly how much a wide swing slows the clock. Enter the length in centimetres, metres, inches or feet.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Solve forChoose the unknown; the inputs below adjust to match.Period and frequency
Pendulum length LPivot to the centre of mass of the bob, measured along the suspension.100 cm
Period T (one full swing)Time for a complete there-and-back swing; time 50 swings and divide by 50 for accuracy.2 s
Local acceleration due to gravity gStandard gravity is 9.80665 m/s²; real values run from about 9.78 at the equator to 9.83 at the poles.9.80665 m/s²
Swing amplitude θ₀ (half-angle)Maximum angle from vertical on each side; leave near 5° unless you are modelling a wide swing.5 °

It returns

  • Period (small-angle) — Time for one complete swing, there and back.
  • Frequency
  • Pendulum length
  • Acceleration due to gravity
  • Period with amplitude correction
  • Amplitude slowing

The formula

T=2πLg
L=gT24π2
TT0(1+θ0216+11θ043072)

In plain text: T = 2π · √(L / g)

  • TPeriod — time for one complete there-and-back swing (s)
  • LLength from the pivot to the centre of mass of the bob (m)
  • gLocal acceleration due to gravity (m/s²)
  • θ₀Amplitude — maximum angular displacement from vertical (rad)

Valid for a point mass on a massless, inextensible string in the small-angle limit. Mass does not appear: a heavy bob and a light bob of the same length keep the same time.

Updated Category Oscillations, Springs & Pendulums Verified against published test cases Reading time 11 min

Why length and gravity set the period, and mass does not

A pendulum keeps time because gravity supplies a restoring torque that grows with displacement. Pull the bob aside by an angle θ and the component of weight along the arc is mg·sinθ. For small angles sinθ ≈ θ, so the restoring force is proportional to the displacement — the same condition that makes a spring oscillate — and the motion is simple harmonic.

Write the equation of motion and the mass cancels. The restoring torque is proportional to m, and so is the inertia resisting it, so m divides out and never reappears. A lead bob and a cork bob on strings of equal length keep identical time in a vacuum. That cancellation is the same one behind the equivalence principle, and it is why a pendulum is a gravimeter rather than a scale.

What remains is ω = √(g/L) and therefore T = 2π√(L/g). The square root matters: to double the period you must quadruple the length. A 1 m pendulum beats about 2.006 s; a 4 m pendulum beats about 4.013 s, not 8. That is why long-case clocks are tall but not absurdly so, and why halving a pendulum only speeds it by a factor of 1.414.

The most-quoted case is the seconds pendulum, which takes one second for each one-way swing and therefore has a period of two seconds. Its length is L = gT²/4π² = g/π², which at standard gravity is 0.993621 m — famously just under a metre, and the near-coincidence that led the French Academy in 1791 to consider defining the metre as the seconds-pendulum length before choosing the meridian instead.

The small-angle approximation and what it costs you

The clean formula depends on replacing sinθ by θ, and that substitution is only exact at zero. The true period of a pendulum depends on amplitude, and it always comes out longer than the small-angle value, because sinθ < θ for every positive angle, so the real restoring torque is weaker than the linear model assumes.

The exact period involves a complete elliptic integral of the first kind, but the series expansion is more useful: T = T₀(1 + θ₀²/16 + 11θ₀⁴/3072 + …), with the amplitude in radians. This calculator uses those two correction terms. Compare the truncated series with the exact elliptic-integral value T/T₀ = (2/π)K(sin(θ₀/2)) and it is good to better than one part in ten thousand out to about 50° (1.049673 against 1.049781), and to roughly three parts in ten thousand at 60° (1.072845 against 1.073182). Past 90° you need the elliptic integral itself.

Put numbers on it. At 1° the correction is 0.0019% — about 1.6 seconds a day, which a precision clock cares about. At 5° it is 0.0476%, roughly 41 seconds a day. At 20° it is 0.767%, more than eleven minutes a day. At 45° the series gives 3.99%. Christiaan Huygens solved this in 1656–1673 by hanging the pendulum between cycloidal cheeks, which makes the path isochronous at any amplitude; modern clocks instead keep the amplitude small and constant, which is easier.

Two other departures from the ideal matter in practice. A real pendulum is a rigid body, not a point mass, so you should use the equivalent length L_eq = I/(m·d), where I is the moment of inertia about the pivot and d is the pivot-to-centre-of-mass distance. And a real bob loses energy to air drag and pivot friction, which decays the amplitude — helpful for timekeeping since the amplitude error falls with it, unhelpful because an escapement must then keep feeding energy in.

Worked example: measuring g in a school laboratory

You hang a brass bob on a thread. From the clamp to the centre of the bob measures 0.9500 m. You start a stopwatch as the bob passes the lowest point, count 50 complete swings, and stop at 97.72 s. The amplitude at the start is about 6°.

  1. Get the period. T = 97.72 s ÷ 50 = 1.9544 s. Timing many swings rather than one divides your reaction-time error by 50.
  2. Square it. T² = 1.9544² = 3.8197 s².
  3. Apply the formula. g = 4π²L / T² = 4 × 9.8696044 × 0.9500 ÷ 3.8197 = 37.5045 ÷ 3.8197 = 9.8187 m/s².
  4. Correct for amplitude. At 6° = 0.10472 rad, the factor is 1 + 0.10472²/16 = 1.000685. Your measured period is 0.0685% too long, so the small-angle period is 1.9544 ÷ 1.000685 = 1.95306 s, giving T² = 3.81444 and g = 37.5045 ÷ 3.81444 = 9.8322 m/s².
  5. Judge the result. That is within 0.3% of standard gravity, which is a good undergraduate result. Note that ignoring the amplitude correction pushed the answer down by 0.013 m/s², because a slow pendulum masquerades as weak gravity.

The dominant uncertainty here is the length, not the time. A 1 mm error in L out of 950 mm is 0.105%, which propagates directly into g. Locating the centre of mass of the bob to better than a millimetre is the hard part of the experiment.

Reading the result, and what counts as a sensible value

If you are solving for period, the answer should scale as the square root of length: check that quadrupling L doubles T. If it does not, you have mixed units somewhere — entering the length in centimetres while the formula expects metres inflates the period by a factor of 10.

If you are solving for local gravity, the plausible band is narrow. Earth-surface values run from about 9.764 m/s² on high equatorial mountains to about 9.834 m/s² at the poles, with sea-level values near 9.780 at the equator and 9.832 at the pole. Standard gravity, 9.80665 m/s², is a defined constant rather than a measurement, fixed by the CGPM in 1901 and roughly matching sea level at 45° latitude. Anything outside 9.70–9.90 points to a measurement fault rather than a geophysical discovery.

If you are solving for length, remember that the answer is the equivalent length to the centre of oscillation. For a light thread and a compact bob it is close enough to the pivot-to-bob-centre distance, but for a clock pendulum with a heavy rod you must account for the rod's own inertia, which typically makes the equivalent length a little shorter than the geometric one.

Pendulum length against period at standard gravity

Computed from T = 2π√(L/9.80665) in the small-angle limit. Beats are one-way swings, two per period.
LengthPeriod (s)Frequency (Hz)Beats per minute
0.0621 m0.50002.0000240.0
0.100 m0.63451.5761189.1
0.2484 m1.00001.0000120.0
0.500 m1.41870.704984.6
0.9936 m2.00000.500060.0
1.000 m2.00640.498459.8
2.000 m2.83750.352442.3
3.9745 m4.00000.250030.0

The 0.9936 m row is the seconds pendulum used in longcase clocks; the 0.2484 m row is the quarter-seconds pendulum found in mantel clocks.

Pitfalls that spoil a pendulum measurement

  • Counting half-swings as periods. A period is one complete there-and-back cycle. Counting each pass through the bottom doubles your count and halves your period, which quadruples the apparent gravity.
  • Measuring to the top or bottom of the bob. The length runs from the pivot to the bob's centre of mass. On a 25 mm sphere that is a 12.5 mm error, worth 1.3% in g on a 1 m pendulum.
  • Swinging too wide. Amplitudes above about 10° make the small-angle formula measurably wrong; use the corrected period this calculator reports, or start the swing smaller.
  • Letting the bob swing in a cone. A conical or elliptical path is a different problem with a different period. Release the bob from rest in a plane and check that it stays there.
  • Timing a single swing. Human reaction time is roughly 0.2 s. Over one 2 s period that is 10%; over fifty periods it is 0.2%.
  • Treating a rigid rod as a simple pendulum. A uniform rod pivoted at one end has an equivalent length of two-thirds its physical length, so it swings faster than a bob on a string of the same size.

The pendulum is one of two canonical simple harmonic oscillators, and the other is the mass on a spring. Their formulas are the same shape: T = 2π√(m/k) for a spring, T = 2π√(L/g) for a pendulum. In both cases the period is two pi times the square root of an inertia divided by a restoring stiffness — a pattern you can reuse in spring problems without rederiving anything.

Because the period depends on g alone once the length is fixed, pendulums were the primary instrument of geodesy for two centuries. Kater's reversible pendulum, introduced in 1817, measured absolute gravity to a few parts per million by exploiting the fact that a rigid body has two pivot points with the same period; modern absolute gravimeters drop a corner-cube in a vacuum instead, but the pendulum method is still the one you can build on a bench.

The pendulum also shows how a linear approximation behaves as it fails. Push the amplitude towards 180° and the period diverges logarithmically — a pendulum balanced exactly at the top never comes down. That is the same class of behaviour that separates a nearly-linear system from a chaotic one, and a driven double pendulum is one of the standard demonstrations of deterministic chaos.

If you are working through an oscillation problem set, the energy bookkeeping usually comes next: at the extremes the bob holds only potential energy mgL(1 − cosθ₀), and at the bottom only kinetic energy. Timing questions then feed into wave frequency and wavelength work, while the acoustic version of a resonating system appears in sound level and Doppler problems, where the same frequency you compute here becomes the source frequency.

Key terms

Period
The time for one complete oscillation — out to one side, across to the other, and back. A pendulum described as beating seconds has a period of two seconds.
Amplitude
The maximum angular displacement from vertical, measured on one side. Because the correction depends on the square of the amplitude, halving the swing quarters the timing error.
Equivalent length
For a rigid pendulum, the length of a simple pendulum with the same period: I divided by the product of mass and pivot-to-centre-of-mass distance.
Isochronism
The property of keeping the same period regardless of amplitude. A circular-arc pendulum is only approximately isochronous; a cycloidal one is exactly so.

Frequently asked questions

Does the mass of the bob change the period?

No. Mass appears in both the restoring force and the inertia, so it cancels exactly and never enters the formula. A heavy bob and a light bob on equal-length strings keep the same time. Mass does matter indirectly: a heavier bob has more momentum relative to air drag, so it keeps a steadier amplitude for longer, which is why clock bobs are dense.

How long is a pendulum that beats seconds?

0.9936 m at standard gravity — that is g/π². A seconds pendulum takes one second for each one-way swing, so its full period is two seconds. Because the required length is proportional to local g, a seconds pendulum must be shortened at the equator relative to the poles by the same fractional amount that g falls: (9.8322 − 9.7803) ÷ 9.8066 = 0.53%, which on 993.6 mm is about 5.3 mm. Jean Richer discovered exactly this effect in Cayenne in 1672, when his Paris-rated clock lost time near the equator.

Why does a wider swing run slow?

Because the restoring force is proportional to sinθ, which is always smaller than θ itself. The linear model overestimates the restoring force at large angles, so the real pendulum accelerates less and takes longer. The effect grows with the square of amplitude: 0.05% at 5°, 0.77% at 20°.

Can I really measure g with a piece of string?

Yes, to about 0.1–0.5% with care. Use a length near 1 m, keep the amplitude under 5°, time at least 50 complete swings, and measure to the centre of mass of the bob. Length dominates the error budget, so a vernier measurement of the bob's diameter improves the result more than a better stopwatch does.

What is the difference between period and frequency here?

Frequency is the reciprocal of period: a 2 s period is 0.5 Hz. Horologists complicate this by counting beats, which are one-way swings, so a seconds pendulum makes 60 beats per minute while completing only 30 full periods. Check which convention a clock specification is using before matching a pendulum to it.

Does temperature affect a pendulum clock?

Yes, through thermal expansion of the rod. A steel rod expands about 11 parts per million per kelvin, and since the period goes as the square root of length, a 10 K rise lengthens the period by roughly 55 parts per million — about 4.8 seconds a day. Gridiron and mercury-jar pendulums were invented to cancel this by combining materials with different expansion coefficients.

Does this work on the Moon?

Yes — enter the local gravity. Lunar surface gravity is about 1.62 m/s², so a 1 m pendulum has a period of 2π√(1/1.62) = 4.94 s, roughly 2.46 times its Earth period. A pendulum clock carried to the Moon without shortening would run slow by that factor.

What if my pendulum is a rigid rod rather than a bob on a string?

Use the equivalent length. For a uniform rod of length pivoted at one end, the moment of inertia is mℓ²/3 and the centre of mass sits at ℓ/2, giving an equivalent length of 2ℓ/3. A 1.5 m rod therefore swings like a 1.0 m simple pendulum. Enter that equivalent length here rather than the physical one.

References