The commutation errors undermine the control performance of brushless direct current (BLDC) drive especially at high speed operation. In this Project, a novel commutation error compensation strategy for BLDC drive which eliminates the phase deviation between the current and the back-electromotive force is proposed. The d-axis current is introduced and used as the criterion to determine the commutation errors. Since the phase currents of BLDC drive contain large amounts of harmonics, which makes the d-axis current hard to detect, a least mean square algorithm based adaptive linear neuron (Adaline) filter is proposed. The optimal phase advance angle is adaptively generated by reducing the filtered d-axis current to zero. The proposed method does not need the motor parameter information or additional hardware, and can be implemented in general inverter controllers.