A motor control system , comprising: a motor ; a DC power source ; an inverter connected to the DC power source and configured to transmit a phase current to the motor ; a duty cycle calculation controller configured to generate a duty cycle for driving the inverter ; at least one differential amplifier configured to monitor the phase current applied to the motor ; a current compensation controller in communication with the at least one differential amplifier , the current compensation controller configured to: periodically determine a common-mode voltage of the at least one differential amplifier ; and determine a corrected phase current value based on the common mode voltage, characterized in that the common mode voltage is determined based on a gain common-mode value; the gain common-mode value is calculated by the current compensation controller during an end-of-line calibration of the motor control system , and is stored in a memory of the compensation current controller ; the common-mode voltage is determined by: V CM _ Voltage = G CM ∗ V ecu ∗ D i − V ecu , calTime ∗ duty 10 % + V CM 10 % DutyCycle where V CM_Voltage represents the common-mode voltage, G CM is the gain common-mode value, V ecu is an instantaneous bridge voltage monitored across DC input lines connecting the DC power source and the inverter , D i is an instantaneous duty cycle, V ecu,calTime is a bridge voltage during the end-of-line calibration, duty 10% represents a 10% duty cycle during the end-of-line calibration, and V CM(10%DutyCycle) represents the common-mode voltage during the end-of-line calibration at 10% duty cycle. a motor ; a DC power source ; an inverter connected to the DC power source and configured to transmit a phase current to the motor ; a duty cycle calculation controller configured to generate a duty cycle for driving the inverter ; at least one differential amplifier configured to monitor the phase current applied to the motor ; a current compensation controller in communication with the at least one differential amplifier , the current compensation controller configured to: periodically determine a common-mode voltage of the at least one differential amplifier ; and determine a corrected phase current value based on the common mode voltage, periodically determine a common-mode voltage of the at least one differential amplifier ; and determine a corrected phase current value based on the common mode voltage, the common mode voltage is determined based on a gain common-mode value; the gain common-mode value is calculated by the current compensation controller during an end-of-line calibration of the motor control system , and is stored in a memory of the compensation current controller ; the common-mode voltage is determined by: V CM _ Voltage = G CM ∗ V ecu ∗ D i − V ecu , calTime ∗ duty 10 % + V CM 10 % DutyCycle where V CM_Voltage represents the common-mode voltage, G CM is the gain common-mode value, V ecu is an instantaneous bridge voltage monitored across DC input lines connecting the DC power source and the inverter , D i is an instantaneous duty cycle, V ecu,calTime is a bridge voltage during the end-of-line calibration, duty 10% represents a 10% duty cycle during the end-of-line calibration, and V CM(10%DutyCycle) represents the common-mode voltage during the end-of-line calibration at 10% duty cycle. <EOS>