Recent studies have indicated that fast magnetosonic waves (also referred to as equatorial noise) excited far outside the plasmapause cannot propagate deep into the plasmasphere because of the preferential azimuthal propagation of the waves at the source region. Since conditions in the low？density plasma trough are typically favorable for the wave excitation, one possible explanation for the magnetosonic wave origin inside the plasmapause is refraction of the waves excited in the plasma trough but close to the plasmapause. In this study, two？dimensional particle？in？cell (PIC) simulations are carried out at the dipole magnetic equator to investigate the self？consistent excitation and propagation of magnetosonic waves across the steep plasmapause density gradient. The simulations show that the magnetosonic waves grow outside the plasmapause and propagate predominantly in the azimuthal direction. However, the waves excited close to the plasmapause experience refraction toward the density gradient, allowing them to cross the plasmapause and then propagate dominantly toward the Earth. The amount of refraction is in good agreement with a theoretical prediction based on the geometric optic approximation. We find that the refraction at the plasmapause can redirect magnetosonic waves toward the Earth, but an additional mechanism is needed to account for the statistical properties of the wave electric field polarization reported in the plasmasphere.