The invention relates to a machine for preparing a cooled food product, comprising: - a receiving seat (1), for accommodating an essentially cup-shaped container, comprising a heat exchange element (1a) having a heat exchange contact surface (21) arranged to be in contact with an outer surface of a side wall (8d) of the container when the container is placed in the machine, - a cooling unit (4) arranged for cooling the heat exchange element (1a) and, - a stirring unit (5) connectable to a stirring member (9) and arranged for driving the stirring member (9) in at least one rotational movement; wherein it comprises - means for measuring the temperature of the product while being prepared, - a control unit for automatically setting output parameters according to input parameters received by the control unit and compared to threshold values stored in the unit; - wherein the output parameters comprises: at least one rotational velocity of the stirring member and the cooling power of the cooling unit, and -wherein the input parameters comprises any one or more of: the measured product temperature, the stirring time.