The invention relates to an electric car motor controller. The controller comprises a direct current bus capacitor, an IGBT module, a metal support, a driving board, a current sensor, an AC busbar, a DC busbar assembly and a Y capacitor which are arranged in a main box body. An upper box body is also included. An internal portion of the upper box body is provided with a wire connection seat assembly, a shielding board, a control board, a cathode change over busbar, an anode change over busbar, an air conditioning connector, a microswitch, an air conditioning insurance and a direct-current high-voltage interlock connector. A direct current connector, an alternating current connector, an air conditioning connector, a low voltage connector, a control board cover and a junction box cover are fixed to an external portion of the upper box body. When the motor controller provided in the invention works, an IGBT and the direct current bus capacitor are vertically placed so that the controller can flexibly adapt to whole car arrangement. And simultaneously the controller possesses advantages that the structure is compact; power density is high; a heat dissipation effect is good; electromagnetic compatibility is good; operation safety is high and so on.