# Pendulum period calculator > How long does a pendulum take to swing? The exact period of a pendulum at any amplitude, compared with the small-angle formula, with the swing drawn live. Calculate a pendulum's period from its length and release angle, exactly and with T = 2π√(L/g), on Earth or other worlds, and drag the swing to see the change. - Page: https://how.box/pendulum/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/pendulum/?l={l}&lu={lu}&a={a}&w={w} - `l` (number 0 to 100000): Length to the centre of the bob in lu. Example: `1`. - `lu` (m, cm, ft or in): m, cm, ft or in. Example: `m`. - `a` (number 0 to 179): Release angle from the vertical, degrees. Example: `30`. - `w` (mercury, venus, earth, moon, mars, jupiter, saturn, uranus, neptune or pluto): World for gravity: mercury, venus, earth, moon, mars, jupiter, saturn, uranus, neptune, pluto. Example: `earth`. Example answer: https://how.box/pendulum/?l=1&lu=m&a=30&w=earth A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `pendulum_calculate`: Period of a simple pendulum, exact for any amplitude and by the small-angle formula T₀ = 2π√(L/g). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"pendulum_calculate","arguments":{"length":1,"length_unit":"m","amplitude_deg":30,"world":"earth"}}}` - GET: https://how.box/mcp/run/pendulum_calculate?length=1&length_unit=m&litude_deg=30&world=earth ## How it works A pendulum swings because gravity pulls the weight back towards the lowest point, and it overshoots each time. For small swings the time of one swing there and back, the period, depends only on the length and gravity: not on the weight, and hardly on how far it swings. That is why pendulums kept time in clocks for 300 years. The small-angle formula is T₀ = 2π·√(L ÷ g), with L the length in metres and g the gravity (9.81 m/s² on Earth). A 1 m pendulum has T₀ = 2π × √(1 ÷ 9.81) ≈ 2.01 s; a 25 cm one swings twice as fast. Wider swings take longer: the exact period is T₀ ÷ AGM(1, cos(θ₀ ÷ 2)), where θ₀ is the release angle and AGM the arithmetic–geometric mean. At 30° that is 1.7 % longer, at 90° 18 % longer, and near 180° the pendulum almost balances upside down, so the period grows without limit. The calculator assumes an ideal pendulum: a small weight on a light, stiff string or rod, no friction and no air drag, so a real pendulum slowly loses amplitude. Sources: OpenStax University Physics, volume 1, section 15.4 (openstax.org) for the small-angle formula, and NIST's Digital Library of Mathematical Functions §19.8 (dlmf.nist.gov) for the exact period. ## FAQ **Where should I measure the release angle from?** Measure from the vertical resting position, not from the horizontal. The angle is the farthest point of the swing on one side, not the angle between both turning points. **How long is a pendulum that beats seconds?** A pendulum with a 2 s period, one second each way, is about 99.4 cm long on Earth. Grandfather clocks use this length. **When is the small-angle formula good enough?** Below about 10° it is within 0.2 % of the exact period, and at 20° within 0.8 %. For wider swings use the exact period. **Why doesn't my measured period match?** Usually the timing or the length. Time 10 full swings and divide by 10: a 0.2 s slip is 10 % of one 2 s swing but only 1 % of 20 s. Measure the length to the centre of the weight, not to its bottom, and count a period as there and back, not one way. **How would a pendulum swing on the Moon?** About 2.5 times slower, because the Moon's gravity is about one sixth of Earth's and the period grows with 1 ÷ √g. Choose the Moon. **Can I use this for a swinging rod?** Not directly. A rod’s mass is spread along its length, while this model treats the bob as a point at the end. A physical-pendulum calculation needs the rod’s moment of inertia. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)