An electric power steering apparatus that calculates a motor current command value 1 based on a steering torque (Th) and a vehicle speed (Vel), performs an assist control of a steering system by driving a motor on a basis of said motor current command value 1, and has a function for switching between an automatic steering mode and a manual steering mode, characterized in that said electric power steering apparatus comprising: a steering angle control section that calculates a motor current command value 2 so as to bring an actual steering angle (θr) close to a target steering angle (θt); a torque integral judging section to output a steering torque judging signal by integrating said steering torque and comparing with a predetermined threshold; and a switching section that inputs said motor current command value 1 and said motor current command value 2, and is switched by a switching signal or said steering torque judging signal, wherein said torque integral judging section comprises: a torque value comparing section to output a predetermined signal by comparing an absolute value of said steering torque (Th) with a torque threshold (Tth); a torque-sensitive type gain section to input said predetermined signal and output an integral input value corresponding to said steering torque (Th); an integral calculating section to integrate said integral input value from said torque-sensitive type gain section; and a switch judging section to output said steering torque judging signal by comparing an integrated value from said integral calculating section with an integral threshold (Sth), wherein said switching section is switched in correspondence with a switching command of said automatic steering mode and said manual steering mode, or said steering torque judging signal. a steering angle control section that calculates a motor current command value 2 so as to bring an actual steering angle (θr) close to a target steering angle (θt); a torque integral judging section to output a steering torque judging signal by integrating said steering torque and comparing with a predetermined threshold; and a switching section that inputs said motor current command value 1 and said motor current command value 2, and is switched by a switching signal or said steering torque judging signal, wherein said torque integral judging section comprises: a torque value comparing section to output a predetermined signal by comparing an absolute value of said steering torque (Th) with a torque threshold (Tth); a torque-sensitive type gain section to input said predetermined signal and output an integral input value corresponding to said steering torque (Th); an integral calculating section to integrate said integral input value from said torque-sensitive type gain section; and a switch judging section to output said steering torque judging signal by comparing an integrated value from said integral calculating section with an integral threshold (Sth), a torque value comparing section to output a predetermined signal by comparing an absolute value of said steering torque (Th) with a torque threshold (Tth); a torque-sensitive type gain section to input said predetermined signal and output an integral input value corresponding to said steering torque (Th); an integral calculating section to integrate said integral input value from said torque-sensitive type gain section; and a switch judging section to output said steering torque judging signal by comparing an integrated value from said integral calculating section with an integral threshold (Sth),