B1 distribution is calculated in a short time with a high degree of precision, and a high quality image is obtained. In the RF shimming for irradiating electromagnetic waves using an RF coil having multiple channels, the absolute values of subtraction images between multiple reconstructed images are used to calculate a transmitting sensitivity distribution which is necessary for calculating inter-channel phase difference and amplitude ratio of RF pulses provided to the respective channels. Those multiple reconstructed images are obtained by executing the imaging sequence after applying a prepulse at different flip angles respectively. Assuming an image obtained with a minimum flip angle as a reference image, for instance, the subtraction images are created between the reference image and the other respective images. It is also possible that multiple subtraction images being obtained are divided by one another, and the transmitting sensitivity distribution is created on the basis of the division result.