In the context of stellar bow shock, the magnetopause is the point where the magnetic field is strong enough to brake the incident wind. The condition is that the magnetic pressure at that point is equal to the ram pressure of the wind
If the planet can be considered as a magnetic dipole, then
where subscript s corresponds to the surface of the planet, and subscript m to the magnetopause. Putting it all together yields
where is earth's radius.