A motor control apparatus for carrying out feedback control over a quantity of state of a motor or load , comprising: a first notch filter disposed in a feedback control system and a notch center frequency (ωn1) and a notch depth of the first notch filter being changeable; an oscillation extracting filter for extracting an oscillation component caused by machine resonance and outputting the oscillation component as an extracting oscillation signal (x1); a second notch filter for inputting the extracting oscillation signal (x1) and a notch center frequency (ωn2) of the second notch filter being changeable; a notch control portion for operating to change the notch center frequency (ωn1) of the first notch filter and the notch center frequency (ωn2) of the second notch filter to decrease an amplitude of a second notch filter output signal (x2) based on the extracting oscillation signal (x1) and the second notch filter output signal; a notch depth control portion for operating to change the notch depth of the first notch filter based on the extracting oscillation signal (x1); characterized in that the motor control apparatus further comprises a control determining portion for determining whether the notch control portion is to be operated or the notch depth control portion is to be operated, based on the extracting oscillation signal (x1) and the second notch filter output signal (x2); and a switching portion for suppling the extracting oscillation signal (x1) to either the notch control portion or the notch depth control portion , in accordance with a determination of the control determining portion , wherein the control determining portion carries out control to operate either the notch control portion or the notch depth control portion by switching a supply of the extracting oscillation signal (x1) via the switching portion to the notch control portion or to the notch depth control portion . a first notch filter disposed in a feedback control system and a notch center frequency (ωn1) and a notch depth of the first notch filter being changeable; an oscillation extracting filter for extracting an oscillation component caused by machine resonance and outputting the oscillation component as an extracting oscillation signal (x1); a second notch filter for inputting the extracting oscillation signal (x1) and a notch center frequency (ωn2) of the second notch filter being changeable; a notch control portion for operating to change the notch center frequency (ωn1) of the first notch filter and the notch center frequency (ωn2) of the second notch filter to decrease an amplitude of a second notch filter output signal (x2) based on the extracting oscillation signal (x1) and the second notch filter output signal; a notch depth control portion for operating to change the notch depth of the first notch filter based on the extracting oscillation signal (x1); characterized in that the motor control apparatus further comprises a control determining portion for determining whether the notch control portion is to be operated or the notch depth control portion is to be operated, based on the extracting oscillation signal (x1) and the second notch filter output signal (x2); and a switching portion for suppling the extracting oscillation signal (x1) to either the notch control portion or the notch depth control portion , in accordance with a determination of the control determining portion , wherein the control determining portion carries out control to operate either the notch control portion or the notch depth control portion by switching a supply of the extracting oscillation signal (x1) via the switching portion to the notch control portion or to the notch depth control portion . <EOS>