The magnetic recording system shows the difference of the magnetic recording density according to the direction of the magnetic field. The yoke shape of the recording system affects the magnetic field direction; therefore, the recording density may be raised by changing the shape. This paper intends not only to increase the magnetic flux density of the record region but also to reduce the recording loss of a specific region through the simultaneous design of the yoke and the magnet. The recording loss can be reduced by minimizing the magnetic flux of the adjacent area to the recording region. The topology optimization method is used to obtain the optimal shape both of the yoke and the magnet. And the commercial package, Maxwell is used to verify the result.