According to one embodiment, a magnetic disk device includes a disk having a first region in which a plurality of tracks is written and a second region that is positioned with a gap in a first direction of the radial direction of the first region, and in which a plurality of tracks is overwritten in the first direction, a head, and a controller that offsets part of a plurality of tracks which is overwritten in the second region in a second direction opposite the first direction to perform rewriting.