An electric power steering apparatus that calculates a first motor current command value (Itref) on a basis of a steering torque (Th) and a vehicle velocity (Vel), performs an assist control of a steering system by driving a motor on the basis of said first motor current command value (Itref), and has a function for switching between an automatic steering control and a manual steering control, characterized in that said electric power steering apparatus comprising: a steering angle control section that calculates a second motor current command value (Imref) in said automatic steering control so as to bring an actual steering angle (θr) close to a target steering angle (θt); and a switching section that inputs said first motor current command value (Itref) and said second motor current command value (Imref) and switches between said first motor current command value (Itref) and said second motor current command value (Imref) depending on a switching signal, wherein said steering angle control section comprises: a rate limiter that performs smoothing with respect to said target steering angle (θt); a position control section that inputs a first deviation (θb) between an output of said rate limiter and said actual steering angle (θr); and a velocity control section that inputs a first motor velocity command value (ωm) from said position control section, obtains a second deviation (Df) between said first motor velocity command value (ωm) and a motor angular velocity (ω), comprises an integral section for inputting said second deviation (Df) and a proportional section for inputting said motor angular velocity (ω), subtracts an output of said proportional section from an output of said integral section, and outputs said second motor current command value (Imref). a steering angle control section that calculates a second motor current command value (Imref) in said automatic steering control so as to bring an actual steering angle (θr) close to a target steering angle (θt); and a switching section that inputs said first motor current command value (Itref) and said second motor current command value (Imref) and switches between said first motor current command value (Itref) and said second motor current command value (Imref) depending on a switching signal, wherein said steering angle control section comprises: a rate limiter that performs smoothing with respect to said target steering angle (θt); a position control section that inputs a first deviation (θb) between an output of said rate limiter and said actual steering angle (θr); and a velocity control section that inputs a first motor velocity command value (ωm) from said position control section, obtains a second deviation (Df) between said first motor velocity command value (ωm) and a motor angular velocity (ω), comprises an integral section for inputting said second deviation (Df) and a proportional section for inputting said motor angular velocity (ω), subtracts an output of said proportional section from an output of said integral section, and outputs said second motor current command value (Imref). a rate limiter that performs smoothing with respect to said target steering angle (θt); a position control section that inputs a first deviation (θb) between an output of said rate limiter and said actual steering angle (θr); and a velocity control section that inputs a first motor velocity command value (ωm) from said position control section, obtains a second deviation (Df) between said first motor velocity command value (ωm) and a motor angular velocity (ω), comprises an integral section for inputting said second deviation (Df) and a proportional section for inputting said motor angular velocity (ω), subtracts an output of said proportional section from an output of said integral section, and outputs said second motor current command value (Imref).