The Indicated Mean Effective Pressure (IMEP) is a very important engine parameter, giving significant information about the quality of the cycle that transforms heat into mechanical work. For this reason, modern data acquisition systems display, on line, the cylinder pressure variation together with the corresponding IMEP.The paper presents a very simple algorithm for the calculation of IMEP, based on the correlation between IMEP and the gas pressure torque. It was found that that the IMEP may be calculated by a very simple formula involving only two harmonic components of the cylinder pressure variation. The computation of the two harmonic components is very easily performed because it does not involve the calculation of an average pressure and the cylinder volume variation. The method was experimentally validated showing differences less than 0.2% with respect to the IMEP calculated by the traditional method. The implementation of the new algorithm in the software of data acquisition systems reduces the computing time and allows the calculation, on line, of other engine parameters for more cylinders and at higher speed.