In heating systems, friction losses in the pipes are calculated based on the fluid's temperature difference, average temperature, and heat flow rate.