SciencePhysics

Pendulum
calculator.

Find a pendulum's period, its length or local gravity, even at a wide swing angle.

How it's worked out

A simple pendulum is a small heavy bob on a light string. For small swings its period, the time for one full swing out and back, depends only on the length LL and gravity gg. Measure LL from the pivot to the center of the bob.

T0\displaystyle T_0=2πLg\displaystyle {}= 2\pi\sqrt{\frac{L}{g}}

Rearranging gives the other two forms. These are what you use when you know a period and want the length, or when you time a swing to measure gravity.

L\displaystyle L=g(T02π)2\displaystyle {}= g\left(\frac{T_0}{2\pi}\right)^2
g\displaystyle g=4π2LT02\displaystyle {}= \frac{4\pi^2 L}{T_0^2}

That formula rests on an approximation that holds only for small angles. OpenStax puts the limit at about 15°, where the sine of an angle and the angle in radians differ by less than 1%. For wider swings the tool multiplies by an exact factor. The true period is four times the complete elliptic integral KK of the sine of half the angle θ0\theta_0, and NIST's maths library shows KK comes from the arithmetic-geometric mean (AGM), which a computer reaches in a few steps.

T\displaystyle T=T0AGM(1, cos⁡θ02)\displaystyle {}= \frac{T_0}{\mathrm{AGM}\left(1,\ \cos\frac{\theta_0}{2}\right)}

The factor is small until the swing gets large: +0.19% at 10°, +1.7% at 30° and +18% at 90°.

Worked examples

Mia measures gravity with a string in the school hall

Mia hangs a small steel ball from a 1.2 m string, pulls it to 5° and times 20 full swings at 44.0 s. One swing takes 2.2 s, and she puts both numbers in. The tool returns 9.797 m/s², which is close to the standard value of 9.80665 m/s².

Now suppose the 1.2 m stopped at the top of the ball, and the 2 cm radius was left out. The true length is 1.22 m and the answer rises to 9.961 m/s². A small length error moves the result by the same percent, so length deserves as much care as the stopwatch.

Open this example in the tool

Rob restores a clock with a two-second pendulum

Rob wants one tick each second, which means a full period of 2 s. Clocks like this are known as seconds pendulums. With a 3° swing he needs an effective length of 99.328 cm. A swing too small to matter would give 99.362 cm, so the swing itself accounts for a small fraction of a millimeter.

If the rod ends up 0.1% too long, the clock loses 43.2 seconds a day. Rob sets the rate with the nut under the bob. Raising the bob shortens the pendulum, and the clock gains time.

Open this example in the tool

Dev wonders why a high swing feels slower

Dev's playground swing hangs on 2.5 m chains and he pushes his daughter to 45°. The simple formula gives 3.17 s, while the full answer is 3.3 s, 4% longer. Treating a child and a seat as one small bob is rough, so read this as a good estimate rather than a measurement.

Open this example in the tool

Reading your result

Length matters only through its square root. Going from 1 m to 4 m takes the period from 2.01 s to 4.01 s, only twice as long. A clock with a period of 1 s needs a rod of just 24.8 cm.

Gravity sets the pace. The same 1 m pendulum takes 4.94 s on the Moon and 3.25 s on Mars, using surface gravity of 1.62 and 3.73 m/s² from NASA's fact sheets. On Earth, NASA lists a mean of 9.82 m/s² and NIST fixes standard gravity at 9.80665 m/s², which moves the 1 m period only from 2.0064 s to 2.005 s.

A real bob is not a point. A rod or a large bob is called a physical pendulum, and its period depends on how the mass is spread along it. Use this tool for a heavy bob on a light string, or treat the length you enter as an effective length.

Clocks fight heat. A warmer rod is a longer rod. Since the first pendulum clock in 1656, makers have used mercury bobs and gridiron rods of two metals to hold the effective length still.

Common mistakes

  • Timing one way only. One period is out and back. Timing a single pass across gives half the period, and gravity comes out four times too large.
  • Measuring to the bottom of the bob. The length runs to the bob's center. That error is why a fit across several lengths helps: with lengths all 2 cm short, the mean of the rows gives 9.375 m/s², while the straight line of T2T^2 against LL still gives 9.807 m/s².
  • Timing a single swing. Your reaction time is the same whether you time 1 swing or 20, so 20 swings cut that error to one twentieth. OpenStax's sample reading of 75.000 cm and 1.7357 s, which gives 9.8281 m/s², shows the precision careful timing can reach.
  • Using the wide-swing factor on a real swing. The exact factor assumes no air drag and a fixed peak angle. A real swing dies away, so its angle and its period both shrink as it runs.

Questions people ask

No. Gravity pulls harder on a heavier bob, but that bob also needs more force to speed up, and the two effects cancel. A 1 m pendulum takes 2.01 s with a light or a heavy bob. The catch is the string, which must stay light compared with the bob.

Sources