A magnetic resonance imaging apparatus according to an embodiment includes a static field magnet, a gradient coil and a shim housing box. The static field magnet generates a static magnetic field in a space within a substantially cylindrical hollow. The gradient coil is provided inside the static field magnet and generates a gradient magnetic field. The shim housing box is capable of housing a metallic shim, the shim housing box being formed into a shape such that an attractive force of the static magnetic field applied to the shim housing box under magnetic excitation becomes smaller than a predetermined threshold.