Maths

Pendulum Calculator

Find a pendulum’s period from its length and gravity, exactly at any amplitude, not just small swings.

By Nitin Raturi · Last reviewed

Your worksheet

How to use the Pendulum Calculator

Find how long a pendulum takes to swing, exactly, at any amplitude.

  1. Enter the length from pivot to mass.
  2. Keep gravity at 9.8 m/s² for Earth, or change it.
  3. Enter how far it is pulled back.
  4. Read the exact period and compare it with the small-angle value.

Good to know

  • The mass does not change the period of an ideal pendulum.

Small swings: T = 2π√(L/g). Wider swings take longer, and the exact period is shown.

Length (m)

From the pivot to the centre of the swinging mass.

How to fill it in

  • Enter 0.001 to 10,000 m.

Example

A 1 m pendulum swings in 2.0109 s; a 0.25 m one in 1.0040 s.

Gravity (m/s²)

The local gravitational acceleration: about 9.8 on Earth.

How to fill it in

  • Enter 0.1 to 300 m/s².

Example

On the Moon (1.62 m/s²) the 1 m pendulum takes 4.9460 s.

Amplitude (°)

How far it is pulled back from vertical before release.

How to fill it in

  • Enter 0.01° to 170°.

Example

At 45° the 1 m swing takes 2.0873 s, and at 90° 2.3690 s.

Tip: Below about 10° the simple formula is within 0.19%.

Period of one full swing

2.0109 s

A 1 m pendulum swinging 10° each way takes 2.0109 s for a full swing there and back. The small-angle formula gives 2.0071 s, 0.191% shorter.

Small-angle period
2.0071 s
Frequency
0.4973 Hz
Longer than small-angle by
0.191%
Length for a 2 s period
0.9929 m

Ideal pendulum: point mass, light rigid rod, no friction or air drag, gravity 9.8 m/s². The exact period uses the elliptic-integral formula.

How this calculator works

  1. Step 1Small angle2π√(L/g)The textbook period.
  2. Step 2AmplitudeAGM(1, cos θ₀/2)Corrects for wide swings.
  3. Step 3ExactT₀ ÷ AGMThe true period of an ideal pendulum.

For small swings a pendulum’s period depends only on its length and gravity. Wider swings take a little longer, and the simple formula stops being accurate.

The calculator gives the exact period using the arithmetic–geometric mean, a fast way to evaluate the elliptic integral behind the full equation.

Worked example: a 1 m pendulum at 10°

Period on Earth (g = 9.8 m/s²)
T₀
2π √(L ÷ g)
T
T₀ ÷ AGM(1, cos(θ₀ ÷ 2))
  1. Small-angle period2π √(1 ÷ 9.8)2.0071 s
  2. Amplitude correctionAGM(1, cos 5°)+0.19%
  3. Exact period2.0109 s

Read the result

  • 10°2.0109 s
  • 45°2.0873 s
  • 90°2.3690 s
Period of a 1 m pendulum by amplitude

Released from horizontal (90°), the swing takes 18.03% longer than the small-angle formula says.

  • A quarter of the length1.0040 sHalf the period: it goes with √L.
  • On the Moon4.9460 sWeaker gravity, slower swing.

Assumptions and limits

  • Point massAll mass at the end of a light rod.
  • No frictionAir drag and pivot friction are ignored.
  • Mass-freeThe mass does not change the period.
  • Real bobsA large bob behaves as a physical pendulum.

A pendulum's period depends on its length and on gravity, not on its mass.

To see how gravity differs between planets, use the weight calculator. The gravitational force calculator applies Newton’s law to any two masses.

Common mistakes

  • Mistake: Measuring length to the top of the bob.

    Instead: Measure to the centre of the bob.

  • Mistake: Using 2π√(L/g) for wide swings.

    Instead: Above about 15°, use the exact period.

  • Mistake: Timing half a swing as the period.

    Instead: The period is there and back.

Checking the method

A separate script simulates the full pendulum equation step by step and matches every exact period, and the known 90° ratio of 1.18034.

Read how we test our calculators, or browse more maths calculators.

Frequently asked questions

What is the period of a 1 m pendulum?

About 2.0071 s for small swings on Earth; 2.0109 s at 10°.

Does a bigger swing take longer?

Yes. Released from 90°, a 1 m pendulum takes 2.3690 s, 18.03% longer than the small-angle value.

How does length change the period?

Period grows with the square root of length: a 0.25 m pendulum swings in 1.0040 s.

Does the mass matter?

Not for an ideal pendulum; only length, gravity and amplitude do.

What would it be on the Moon?

With g = 1.62 m/s², the 1 m pendulum takes 4.9460 s.

Sources and methodology

The formulas are standard time-value-of-money results. We check every figure against golden values worked out independently, by closed form and by month-by-month simulation; see the methodology.

Written and maintained by Nitin Raturi, a software engineer (about the author). Last reviewed 4 Nov 2026; next review due by . Found an error? Tell us.

Changelog

  • : Initial release.