A simple pendulum is a small ball of mass m hanging on a light, inextensible string of length l. When the ball is moved away from its equilibrium position and released, it oscillates – it moves back and forth around the lowest point. We ignore the mass of the string and air resistance, and treat the ball as a point (that is why it is also called the “mathematical” pendulum). The pendulum is one of the most important examples of oscillatory motion in physics.
Set the length of the string, the initial angle, the mass of the ball and the planet, then click Start. You can also drag the ball with the mouse or your finger. The simulation calculates the motion exactly (without the small-angle approximation) and measures the period – compare it with the period from the formula.
Two forces act on the ball: the force of gravity m · g (vertically downwards) and the tension in the string (along the string, towards the pivot). We split the force of gravity into two components: one along the string, which is balanced by the tension, and one tangential (perpendicular to the string), which pulls the ball back towards the equilibrium position:
F = − m · g · sin θ
The minus sign means that the force always acts opposite to the displacement: when the ball is on the right, the force pulls it to the left, and the other way round. Such a force is called a restoring force. At the equilibrium position (θ = 0) it is zero, but there the ball has its highest speed, so it “overshoots”.
The period T is the time the pendulum takes to make one full oscillation (there and back). The frequency f = 1 / T is the number of oscillations per second. For small angles (up to about 10–15°) sin θ ≈ θ (angle in radians), so the motion is simple harmonic and the period is:
T = 2π · √(l / g)
The formula tells us three important things:
For larger angles the period is a little longer than the formula says. The simulation shows this: at 20° the difference is about 0.8%, at 60° about 7%, and at 80° about 14%.
A pendulum of length l = 1 m on Earth (g = 9.81 m/s²) has a period of
T = 2π · √(1 / 9.81) ≈ 2.01 s
A pendulum whose period is exactly 2 s (each swing through the equilibrium takes 1 s) is called a seconds pendulum. Its length is l = g · T² / (4π²) ≈ 0.994 m. The same pendulum on other planets:
| place | g (m/s²) | T for l = 1 m |
|---|---|---|
| Earth | 9.81 | 2.01 s |
| Mars | 3.71 | 3.26 s |
| Moon | 1.62 | 4.94 s |
Check the table in the simulation: choose a planet and wait for the measured period to appear.
When the ball is pulled aside by an angle θ0, it rises to a height h = l · (1 − cos θ0) and has potential energy Ep = m · g · h. As it swings down, the potential energy turns into kinetic energy Ek = m · v² / 2. At the lowest point all the energy is kinetic and the speed is the highest:
vmax = √(2 · g · h) = √(2 · g · l · (1 − cos θ₀))
At the end positions the ball stops for a moment – then all the energy is potential. The bars in the simulation show how the energy flows from one form into the other. When you turn on air resistance, the total energy slowly decreases and the amplitude gets smaller – this is damped oscillation.
Use g = 9.81 m/s² and π ≈ 3.14, and assume the angles are small. Solve the problem, then check the solution (and in the simulation).
T = 2π · √(0.25 / 9.81) ≈ 6.28 · 0.160 ≈ 1.00 s.
4 times, because the period is proportional to the square root of the length: √4 = 2.
T = 40.2 s / 20 = 2.01 s. From T = 2π · √(l / g) we get l = g · T² / (4π²) = 9.81 · 2.01² / 39.48 ≈ 1.00 m. Timing many oscillations reduces the error of measuring with a stopwatch.
h = l · (1 − cos 60°) = 1 · 0.5 = 0.5 m; Ep = m · g · h = 0.2 · 9.81 · 0.5 ≈ 0.98 J. At the lowest point Ek = Ep, so v = √(2 · g · h) = √9.81 ≈ 3.13 m/s. (Here the angle is not small, but conservation of energy always holds.)
T = 2π · √(1 / 1.62) ≈ 4.94 s. Gravity on the Moon is weaker, so the restoring force is smaller – the ball speeds up more slowly and an oscillation lasts longer.
1. A 1 m pendulum has a period of about 2 s. If we hang a ball twice as heavy on the same string, the period will be:
2. How many times shorter must the string be for the period to be halved?
3. Where does the ball of a pendulum have its highest speed?
4. We take the same pendulum from Earth to the Moon, where g is about 6 times smaller. The period will be:
5. When does the formula T = 2π · √(l / g) hold?
Next: mass and spring – another oscillator, whose period depends on the mass. How to program the pendulum in Java: simple pendulum in OSP.
🛠 Build this kind of simulation yourself: Simple pendulum in Java (OSP) – oscillation in code
Simple pendulum – for teachers – lesson plan
Level: Age 13–14 (oscillations); second year of secondary school
In groups, students use the simulation to measure the period for 4 lengths (0.25 m, 0.5 m, 1 m and 2 m), enter it in a table and check the rule “four times longer – twice as slow”. Then, with l = 1 m, they change the initial angle from 10° to 80° and record how much longer the measured period is than the formula gives. Finally they build a real pendulum from a string and a nut, time 10 oscillations with a stopwatch and calculate g.