A machine for producing products such as ice cream, frozen beverages or granita. An example of the machine comprises a tank with a tap for dispensing a product. A cylinder with a substantially horizontal axis projects from a rear wall inside the tank. The cylinder forms the evaporator of a refrigerating circuit. A mixer element around the cylinder rotates coaxially with the cylinder axis. A motor unit is connected to the mixer element via a drive shaft passing along the axis of the cylinder. The drive shaft connects to the mixer element at one end of the cylinder opposite the rear wall. The motor unit comprises a final reduction stage in alignment with the cylinder axis, a motor arranged at an angle with respect to the cylinder axis and substantially parallel to the rear wall, and an angular drive between the final reduction stage and the motor.