A magnetic resonance imaging apparatus includes a data acquisition unit, a
frequency offset acquisition unit, a frequency modulation unit and a
phase shift correction unit. The data acquisition unit acquires pieces of
echo data due to nuclear magnetic resonance after applying an excitation
pulse. The frequency offset acquisition unit acquires a frequency offset.
The frequency modulation unit frequency-modulates the excitation pulse
according to the frequency offset. The phase shift correction unit
cancels a phase shift occurring on each of the pieces of the echo data
due to a frequency modulation according to the frequency offset during a
readout of the pieces of the echo data.