A machine (1) for the homogenization and thermal treatment of liquid and semi-liquid food products comprises, in combination: - a tank (2) for containing the food products - electric first heating means (3), operating on the food product to heat it and so thermally treat it - a heating plant (I) with thermodynamic cycle comprising at least a first heat exchanger (5) - second heating means (4) comprising said first heat exchanger (5), operating on the food product to heat it and so thermally treat it.