A magnetic-resonance imaging apparatus of an embodiment includes acquiring circuitry and processing circuitry. The acquiring circuitry acquires a magnetic resonance signal that is generated from a subject. The processing circuitry creates a phase image based on the magnetic resonance signal. The processing circuitry sets a combination of a plurality of filters that are used to remove a phase variation derived from a background magnetic field according to a region in the phase image. The processing circuitry removes a phase variation derived from the background magnetic field from the phase image by using the combination of the filters.