A gradient coil or shield coil includes a first gradient coil part and a second gradient coil part having at least one different characteristic of (a) intensity of gradient magnetic field, (b) slew rate, (c) linearity and/or (d) changing rate of the magnetic field (as compared to characteristics of the first gradient coil part. In another aspect, a gradient coil includes a first portion close to a center of the gradient coil, a second portion which is outside of the first portion and which has a lower winding density than the first portion and a third portion which is outside of the second portion and which has a higher winding density than the second portion.