There has been a growing concern over energy consumption since the past decade mainly because of the soaring cost of energy and tight environmental laws and regulations. In this thesis a model based efficiency optimization for speed control of interior permanent magnet synchronous motor (IPMSM) is proposed to improve the efficiency of the motor drive which usually operates at different load and speed conditions. Recently, the IPMSM has been becoming popular due to some of its advantages such as high efficiency, high power density, low noise and robustness as compared to the conventional induction and other ac motors. Thus, the IPMSM is considered in this work. The proposed energy optimization algorithm is developed based on motor model. In order to minimize the controllable losses, the air gap flux level should be optimized. In an IPMSM the flux level can only be optimized by controlling the d-axis armature current as the field flux is supplied by the rotor permanent magnet. For the proposed work the vector control technique is used in order to achieve fast and accurate speed response, quick recovery of speed from any disturbance and insensitivity to parameter variations etc.