A motor driving apparatus which drives a motor including a plurality of windings corresponding to a plurality of phases, respectively, includes: a first inverter including a plurality of first switching elements and connected to a first end of each of the windings; a second inverter including a plurality of second switching elements and connected to a second end of each of the windings; and a controller obtaining a vector corresponding to a voltage command of the motor by combining switching vectors which cause difference between a common mode voltage of the first inverter and a common mode voltage of the second inverter to be zero and configured to control the plurality of first switching elements and the plurality of second switching elements in a pulse width modulation method based on the obtained vector.