An electric power steering apparatus that calculates a first motor current command value based on a steering torque and a vehicle velocity, performs an assist control of a steering system by driving a motor based on said first motor current command value, and has a function for switching between an automatic steering control and a manual steering control, characterized in that said electric power steering apparatus comprises: a target steering angle correcting section that outputs a target steering angle correction value according to said steering torque; a correction output section that corrects a target steering angle with said target steering angle correction value to output a corrected target steering angle; a steering angle control section that calculates a second motor current command value based on said corrected target steering angle from said correction output section, an actual steering angle and a motor angular velocity of said motor; and a switching section that inputs said first motor current command value and said second motor current command value to switch, wherein said steering angle control section comprises: a rate limiter that smoothes said corrected target steering angle; a first proportional gain section that multiplies an angle deviation between an output of said rate limiter and said actual steering angle by a proportional gain; an integral gain section that integrates a velocity deviation between a motor velocity command value from said first proportional gain section and said motor angular velocity and multiplies said integrated velocity deviation by an integral gain; a second proportional gain section that multiplies said velocity deviation by a proportional gain; and a subtraction section that obtains a deviation between an output of said integral gain section and an output of said second proportional gain section, wherein said subtraction section outputs said second motor current command value, wherein said switching section is switched depending on a switching command of said automatic steering control and said manual steering control, and said motor is drive-controlled based on said second motor current command value in said automatic steering control. a target steering angle correcting section that outputs a target steering angle correction value according to said steering torque; a correction output section that corrects a target steering angle with said target steering angle correction value to output a corrected target steering angle; a steering angle control section that calculates a second motor current command value based on said corrected target steering angle from said correction output section, an actual steering angle and a motor angular velocity of said motor; and a switching section that inputs said first motor current command value and said second motor current command value to switch, wherein said steering angle control section comprises: a rate limiter that smoothes said corrected target steering angle; a first proportional gain section that multiplies an angle deviation between an output of said rate limiter and said actual steering angle by a proportional gain; an integral gain section that integrates a velocity deviation between a motor velocity command value from said first proportional gain section and said motor angular velocity and multiplies said integrated velocity deviation by an integral gain; a second proportional gain section that multiplies said velocity deviation by a proportional gain; and a subtraction section that obtains a deviation between an output of said integral gain section and an output of said second proportional gain section, wherein said subtraction section outputs said second motor current command value, wherein said switching section is switched depending on a switching command of said automatic steering control and said manual steering control, and said motor is drive-controlled based on said second motor current command value in said automatic steering control. a rate limiter that smoothes said corrected target steering angle; a first proportional gain section that multiplies an angle deviation between an output of said rate limiter and said actual steering angle by a proportional gain; an integral gain section that integrates a velocity deviation between a motor velocity command value from said first proportional gain section and said motor angular velocity and multiplies said integrated velocity deviation by an integral gain; a second proportional gain section that multiplies said velocity deviation by a proportional gain; and a subtraction section that obtains a deviation between an output of said integral gain section and an output of said second proportional gain section, wherein said subtraction section outputs said second motor current command value, wherein said switching section is switched depending on a switching command of said automatic steering control and said manual steering control, and said motor is drive-controlled based on said second motor current command value in said automatic steering control.