When a large number of distributed photovoltaic (PV) systems are integrated into the distribution network, power flow becomes bidirectionally fluctuating, resulting in variable line losses. In the scenario of reverse flow, the increase in line loss is particularly significant. The bidirectional reactive power regulation of photovoltaic inverters is an effective approach to reduce losses in the distribution network. However, despite the benefits of reducing losses, reactive power regulation by photovoltaic inverters also incurs additional costs. Therefore, there is a need for research into a comprehensive benefit optimization method for inverters participation in reducing reactive power losses in distribution networks. Firstly, the cost quantification models for the investment, transformation, operation, and lifespan loss of the photovoltaic inverters involved in reactive power loss reduction are established. Secondly, the benefit quantification models for loss reduction and power factor improvement are developed. Thirdly, considering various operational scenarios of both photovoltaic systems and loads, a comprehensive benefit optimization method for photovoltaic inverters participating in reactive power loss reduction in distribution networks is proposed. Finally, through example analysis, the cost and benefit are calculated and fitted in different scenarios, and the optimization calculation is carried out. Compared to the scenario where the photovoltaic inverter operates at the maximum reactive power regulation capacity, the optimized comprehensive benefit is increased by 21.20%. The proposed method is validated to effectively enhance the comprehensive benefits of inverters participation in reactive power loss reduction.