Abstract: A system (1) for heating liquids includes an hydrosonic pump (2) for the heating of the mentioned liquid; a primary circuit (3) in turn comprising, at least: a storage (30) of the above-mentioned liquid or a heat exchanger (45); a plurality of pipes (31, 32), in order to get a mutual connection with the mentioned storage (30) or heat exchanger (45) with the said hydrosonic pump (20), at least one solenoid valve (34), to open and/or close the liquid circulation within the mentioned primary circuit (3), at least one sectioning valve (8), in order to adjust the flow rate of the mentioned liquid output from the said hydrosonic pump (2). The system (1) further comprises an optimizer (5) connected to and placed downstream of said hydrosonic pump (2), the optimizer cooperating with at least said primary circuit (3) to which it gives and transfers the thermal energy produced by said hydrosonic pump (2), said optimizer (5) comprising a low-capacity storage tank (52), operating at high pressure and thermally insulated.