Gravity from a Pendulum Calculator – Measure g = 4π²L/T²
Use this free Gravity from a Pendulum Calculator to measure the acceleration due to gravity the classic way. Time the swings of a pendulum, enter its length and period, and the calculator works out g from your measurements — plus the percentage error against the accepted value 9.81 m/s².
Formula
The period of a simple pendulum is T = 2π√(L/g). Rearranged:
g = 4π²L / T²
% error = |g − 9.81| / 9.81 × 100 (against the accepted Earth value)
How to use
- Measure the string length from the pivot to the centre of the bob, in metres.
- Time 10 or 20 complete swings and divide by the number of swings to get one period T — this cuts timing error.
- Enter L and T and click "Calculate g" to see your measured gravity and how far it is from 9.81 m/s².
Worked example
A pendulum of length L = 1.00 m is timed at T = 2.05 s per swing. Then g = 4π² × 1.00 / 2.05² = 39.478 / 4.2025 = 9.39 m/s². Percentage error = |9.39 − 9.81| / 9.81 × 100 = 4.24% — a typical school-lab result; the period was probably measured slightly long.
FAQ
Why time many swings instead of one?
Your reaction time when starting and stopping a stopwatch is roughly 0.1–0.2 s. Spread over 20 swings that error shrinks to about 0.01 s per period, which is why the multi-swing method gives a much better g.
Does the mass of the bob change the period?
No. The period depends only on length and g (for small swing angles). A heavier bob does not swing faster — it just keeps swinging longer against air resistance.
Why keep the swing angle small?
The formula T = 2π√(L/g) is exact only for small angles. Below about 10° the error is under 0.2%; at 30° the true period is already about 1.7% longer, which would make your g come out too small.