Functional magnetic resonance imaging (fMRI) of the brain is often degraded by bulk head motion. Algorithms that address this by retrospective re-registration of images in an fMRI time series are all fundamentally limited by any motion that occurs through-plane. Here, a technique is described that can account for such motion by prospective correction in real time. A navigator echo is used before every image acquisition to detect superior/inferior displacements of the head. The displacement information is then used to adjust the plane of excitation of the ensuing single-shot echo-planar fMRI axial image. These correction updates can be completed in 100 mm with motion sensitivity at least as small as 0.5 mm. The efficacy of this method is documented in phantom and human studies.