Since the times of Galileo, it is well-known that a simple pendulum oscillates harmonically for any sufficiently small angular amplitude. Beyond this regime and in absence of dissipative forces, the pendulum period increases with amplitude and then it becomes a nonlinear system. Here in this work, we make use of Fourier series to investigate the transition from linear to nonlinear oscillations, which is done by comparing the Fourier coefficient of the fundamental mode (i.e., that for the small-angle regime) to those corresponding to higher frequencies, for angular amplitudes up to 90 •. Contrarily to some previous works, our results reveal that the pendulum oscillations are not highly anharmonic for all angular amplitudes. This kind of analysis for the pendulum motion is of great pedagogical interest for both theoretical and experimental classes on this theme.