A motor control device comprising: an input unit for rectifying AC power input from the outside into DC power; a smoothing unit for smoothing the DC power, wherein the smoothing unit is a film capacitor; an inverter unit for converting the smoothed DC power into AC power and outputting the converted AC power to a motor; and a controller for controlling a switching operation of the inverter unit, wherein the motor control device is a DC reactor-less device, and wherein the controller is configured to adjust an output of the inverter unit by controlling a switching operation of the inverter unit on the basis of a result of detecting a voltage of the smoothing unit and an output current of the inverter unit, to calculate a compensation value for compensating for a harmonic component in an output of the inverter unit on the basis of the voltage of the smoothing unit and the output current, and to reduce harmonics of an input current input to the input unit, wherein the controller is configured to extract a harmonic component from the voltage of the smoothing unit, to determine a waveform of the compensation value, so that the waveform of the compensation value corresponds to the harmonic component, to calculate an output magnitude of the inverter unit on the basis of the output current, the output magnitude being a magnitude of the output power supplied to the motor, to determine magnitude of the compensation value, so that the magnitude of the compensation value corresponds to the output magnitude, and to adjust an output of the inverter unit on the basis of the harmonic component and the output magnitude, wherein the motor control device is configured to detect the input current with reduced harmonics as a waveform in which maximum and minimum peak values are reduced to below a preset reference value, from a waveform of the input current before the harmonics is reduced, and wherein the controller is configured to control the switching operation of the inverter unit such that the compensation value is reflected in the output of the inverter unit to adjust an output of the inverter unit according to the compensation value. an input unit for rectifying AC power input from the outside into DC power; a smoothing unit for smoothing the DC power, wherein the smoothing unit is a film capacitor; an inverter unit for converting the smoothed DC power into AC power and outputting the converted AC power to a motor; and a controller for controlling a switching operation of the inverter unit, wherein the motor control device is a DC reactor-less device, and wherein the controller is configured to adjust an output of the inverter unit by controlling a switching operation of the inverter unit on the basis of a result of detecting a voltage of the smoothing unit and an output current of the inverter unit, to calculate a compensation value for compensating for a harmonic component in an output of the inverter unit on the basis of the voltage of the smoothing unit and the output current, and to reduce harmonics of an input current input to the input unit, wherein the controller is configured to extract a harmonic component from the voltage of the smoothing unit, to determine a waveform of the compensation value, so that the waveform of the compensation value corresponds to the harmonic component, to calculate an output magnitude of the inverter unit on the basis of the output current, the output magnitude being a magnitude of the output power supplied to the motor, to determine magnitude of the compensation value, so that the magnitude of the compensation value corresponds to the output magnitude, and to adjust an output of the inverter unit on the basis of the harmonic component and the output magnitude, wherein the motor control device is configured to detect the input current with reduced harmonics as a waveform in which maximum and minimum peak values are reduced to below a preset reference value, from a waveform of the input current before the harmonics is reduced, and wherein the controller is configured to control the switching operation of the inverter unit such that the compensation value is reflected in the output of the inverter unit to adjust an output of the inverter unit according to the compensation value.