The invention provides an electric heater and a control method thereof. The electric heater comprises a distance detection module for detecting the distance between a user and the electric heater, a temperature detection module for detecting the temperature of the environment, a motor, a heating module and an electronic control module, wherein the electronic control module is connected with the distance detection module, the temperature detection module, the motor and the heating module respectively; the electronic control module controls the rotation speed of the motor according to the distance between the user and the electric heater and the temperature of the environment, to adjust the air blowing speed of the electric heater and adjust the power of the heating module. Therefore, the electric heater can automatically adjust the rotation speed of the motor and the power of the heating module according to changes of the distance between a person and the electric heater and the temperature of the environment, so as to implement intelligent switching, so that the air blowing speed and the heating power can change with the changes of the distance between the person and the electric heater and the temperature of the environment, the user can feel most comfortable temperature, the comfortable sense of the user can be improved, the needs of users can be met fully, and the electric energy can be saved effectively.