Title 24 of the California Code of Regulations now mandates hot-water recirculation in California building codes if the distance from the heat source to the tap is 50 feet or more. Other states have their own building codes that often vary by counties.