Why does pushing a swing in rhythm make it go higher?

Driven resonance

A periodic push near the swing’s natural frequency can keep adding energy efficiently. Damping dissipates energy, so the amplitude settles rather than growing without limit.

Keep the push strength and damping fixed. Change only the drive frequency, play both swings and compare their steady-state peak angles.

Model readings with the default settings
A/BPush frequencySteady-state peakPhase lag
A0.30 Hz7.1°13°
B0.50 Hz19.4°90°

Natural frequency is 0.50 Hz and the damping ratio is 0.12. The animation shows the linear steady-state solution, not a swing starting from rest or a person pushing it.

OpenStax · Forced Oscillations