We calculate the neutral pion mass in the presence of an external magnetic field of arbitrary strength in the framework of the linear sigma model coupled to quarks at zero temperature. We find nonmonotonic behavior of the pion mass as a function of magnetic field. We are also able to reproduce existing results for the weak-field approximation.