Pendulum period
T = 2π√(L/g) is only true for small swings. Swing wider and a real pendulum slows down; at 90° it takes 18% longer.
The formula
Exact: T = 4√(L/g) · K(sin(θ₀/2)), where K is the complete elliptic integral of the first kind, computed here with the arithmetic–geometric mean. Small-angle: T₀ = 2π√(L/g). Point mass, light rod, no friction, g = 9.81 m/s².
Tested: K matches its power series, and the exact period matches a direct simulation of the swing at 30°, 90° and 150° to 0.2 ms (packages/mechanics/test/classics.test.ts). The orange pendulum is simulated from the equation of motion; the grey one follows the small-angle formula.
Example
With length 100 cm, swing 60°: exact period: 2.153 s; small-angle formula: 2.006 s; difference: +7.3%. Open this setup, then change one thing at a time.
Related: Double pendulum · Spring–mass–damper · Anchor escapement