In recent years, the energy crisis has prompted widespread attention to electric vehicles (EVs). As a core component of electric drive system in EV, motor controller has a significant impact on vehicle energy consumption. In such situation, this paper proposes a minimum loss modulation method for all power factors and reduces current THD by dead-band compensation. Firstly, the mechanism model of the controller is established for loss calculation, and the relationship between the clamping region and the current peak is analyzed based on the traditional modulation methods. Secondly, a discontinuous pulse width modulation considering power factor angle method (CPFA-DPWM) is proposed to ensure that clamping region always falls at the peak current at all power factors. Furthermore, the adoption of current vector method instead of direct sampling for current polarity determination effectively reduces judgment error and avoids false dead-band compensation. The effectiveness of the proposed method is verified by simulation and thermal measurement experiment. Under China Light-duty Vehicle Test Cycle (CLTC), the controller loss of CPFA-DPWM is reduced by 18.61 % compared to SVPWM.