Installing a tankless water heater in California means pulling a building permit and meeting the tankless water heater installation codes in California set out in the California Plumbing Code (CPC) and the California Mechanical Code (CMC). As of January 1, 2026, the 2025 editions of both codes apply to any permit application filed on or after that date.1DGS (ca.gov). Codes The CPC governs plumbing connections, gas piping, and safety devices. The CMC covers venting and combustion air. Together they dictate where the unit can be installed, how it connects to fuel and water, and how combustion byproducts leave the building.
Permit and Inspection
No water heater can be installed or replaced without a permit from the local building department.2IAPMO. 2025 California Plumbing Code – Section 502.1 The application generally requires the manufacturer’s technical specifications and a diagram of the planned gas piping layout. Fees are set locally.
Once the work is done, a final inspection is mandatory. The inspector verifies gas line sizing, vent termination clearances, seismic bracing, and safety device installation against the approved plans and the current code cycle. Passing creates an official record that the installation meets code.
Skipping the permit is where homeowners get into real trouble. If an unpermitted unit later causes a water leak or gas issue, insurers routinely deny the claim on the grounds that the missing permit constitutes negligence. Beyond claim denials, an insurer can raise the premium or cancel the policy once unpermitted work is discovered. And when you sell, California law requires sellers to certify seismic compliance on water heaters, which makes unpermitted installations a disclosure problem that can delay or kill a transaction.3Justia. California Health and Safety Code 19210-19217 – Water Heater Strapping and Installation
Where the Unit Can Be Installed
Placement matters as much as connection quality. Gas-fired tankless units are restricted from bedrooms, bathrooms, and closets that open into those rooms, with two exceptions. The first is a direct-vent model that draws combustion air from outside and exhausts back outside, never mixing with room air. The second is a closet within the bedroom or bathroom that uses a listed, gasketed door assembly with a self-closing device.4City of Cupertino. Cupertino Building Division – Water Heater Installation and Replacement Guidelines – Section: Location Most installers default to direct-vent because the specialty closet is more trouble than it’s worth.
Garage installations raise a different concern: flammable vapor ignition. Burners or ignition devices must sit at least 18 inches above the garage floor unless the unit is specifically listed as flammable vapor ignition resistant.4City of Cupertino. Cupertino Building Division – Water Heater Installation and Replacement Guidelines – Section: Location Most wall-mounted tankless models with sealed combustion satisfy this by design; confirm the listing before assuming.
Attic installations require a watertight, corrosion-resistant drain pan under the unit, at least 1.5 inches deep, with a drain line of at least three-quarter-inch diameter routed to an approved location.4City of Cupertino. Cupertino Building Division – Water Heater Installation and Replacement Guidelines – Section: Location Outdoor installations are allowed only when the unit is manufacturer-rated for outdoor use and meets local setback rules from property lines and openings.
In every location, the unit must remain accessible for service, with clear working space around controls and connections. Tucking the unit into a tight spot will fail inspection.
Gas Line Sizing, Shut-Off, and Pressure Test
Tankless water heaters burn gas at rates well above tank models. A standard storage tank might draw 40,000 BTU per hour; a whole-house tankless unit can demand 150,000 to 200,000 BTU per hour. That difference usually forces an upgrade from the existing half-inch gas line to three-quarter-inch or one-inch pipe to hold adequate pressure at the appliance. Undersized piping is probably the most common reason tankless conversions blow past their budget, because the upgrade can run from the meter all the way to the unit.
A manual shut-off valve must be installed upstream of the unit, readily accessible without tools or ladders. A sediment trap (or drip leg) is also required downstream of the shut-off and as close to the unit’s inlet as practical. The trap is a tee fitting with a capped nipple that catches debris and moisture before they reach the burner.5City of Cupertino. Cupertino Building Division – Water Heater Installation and Replacement Guidelines – Section: Sediment Trap
Any new or altered gas piping must pass a pressure test before the appliance is connected. The standard test pressurizes the system with air or nitrogen to at least 10 psi and holds for a minimum of 15 minutes with no detectable drop. The inspector witnesses the test; the installer provides the gauges. Leaks mean repair and retest before the gas is turned on.
Water Lines and Thermal Expansion
Isolation valves are required on both the cold inlet and the hot outlet. These valves let you shut down and service the unit without cutting water to the house, and they’re essential for the periodic descaling tankless units need to keep efficiency up.6City of Cupertino. Cupertino Building Division – Water Heater Installation and Replacement Guidelines
Thermal expansion catches homeowners off guard. When the plumbing system includes a check valve, backflow preventer, or pressure-reducing valve, heating water creates a pressure spike with nowhere to go. That spike damages valves, fittings, and the water heater itself over time. In a closed system, the CPC requires an expansion tank or equivalent device on the building side of the check valve, sized to the manufacturer’s instructions. If the home has a backflow preventer at the meter (increasingly common in California), the expansion tank is not optional, and the inspector will look for it.
Venting and Combustion Air
Vent rules exist to keep combustion byproducts out of the living space, and getting them wrong is the most dangerous installation error possible. The CMC requires vent materials to match the appliance category. Non-condensing units produce high-temperature exhaust and need Category III stainless steel venting rated for positive pressure. High-efficiency condensing models produce acidic condensate along with cooler exhaust, requiring Category IV plastic piping (typically PVC or CPVC) listed for the specific appliance.7California Mechanical Code. 2022 California Mechanical Code – Section 802.4 Type B vent pipe, the double-wall aluminum material used for standard furnaces, is not acceptable for either.
Vent pipe must be pitched to the manufacturer’s instructions so condensate cannot pool inside the unit. Condensing models also need a dedicated condensate drain line to an approved receptor. Some jurisdictions require a neutralization kit on the drain line to reduce the acidity of the discharge before it enters the sewer, so check locally.
Where the vent exits the building is heavily regulated. For a power-vented (non-direct-vent) unit, the termination must be at least four feet below, four feet horizontally from, or one foot above any door, operable window, or gravity air intake. The bottom of the terminal must sit at least 12 inches above finished ground. Category IV appliances venting through a wall must maintain at least 10 feet of horizontal clearance from any operable opening in an adjacent building.8California Mechanical Code. 2022 California Mechanical Code – Section 802.8.5 These distances exist because combustion gases re-entering through a nearby window can cause carbon monoxide buildup indoors. On a tight lot, clearance alone can dictate where the unit gets mounted.
Seismic Bracing
California Health and Safety Code Section 19211 requires all new and replacement water heaters to be braced, anchored, or strapped to resist falling or horizontal displacement during an earthquake.3Justia. California Health and Safety Code 19210-19217 – Water Heater Strapping and Installation Bracing must meet CPC standards at a minimum; local jurisdictions can go stricter.
Tankless units are wall-mounted, so they don’t need the flexible strap kits designed for freestanding tanks. But “bolted to the wall” doesn’t automatically satisfy the seismic requirement. The mounting must use approved hardware and attach to structural framing (not just drywall) rated to hold the unit under lateral shaking. The goal is preventing the unit from ripping free and rupturing gas or water lines. Inspectors check that fasteners are rated for the unit’s weight and that they land in studs or a properly secured mounting bracket.
Section 19211 also creates a seller’s disclosure obligation. Sellers must certify in writing that the water heater complies, and that certification can be included in the transfer disclosure statement or the Homeowner’s Guide to Earthquake Safety.3Justia. California Health and Safety Code 19210-19217 – Water Heater Strapping and Installation
Temperature and Pressure Relief Valve
Every water heater, tankless included, requires a temperature and pressure relief (T&P) valve. It’s the last line of defense if the unit’s controls fail and temperature or pressure climbs to dangerous levels. Discharge piping must be at least as large as the valve outlet (typically three-quarter inch), must have no valves, obstructions, or other means of isolation anywhere along its length, and must discharge full-size to its termination.9City of Cupertino. Cupertino Building Division – Water Heater Installation and Replacement Guidelines – Section: Pressure/Temperature Valve
The discharge pipe must terminate either outside the building or into the drainage system through an air gap. Routed outside, it must end between 6 inches and 24 inches above grade, pointing downward. The terminal end cannot be threaded, which prevents anyone from capping it off and defeating the safety device.9City of Cupertino. Cupertino Building Division – Water Heater Installation and Replacement Guidelines – Section: Pressure/Temperature Valve Inspectors look closely at T&P installations. A blocked or improperly routed relief valve turns a water heater into a pressure vessel with no safety outlet.
Electric Tankless Units in California
Electric models sidestep the gas piping, venting, and combustion air rules above, but they bring their own California problem. Under Title 24’s energy standards, electric tankless water heaters are not permitted through the standard prescriptive compliance path. They can only be installed using the performance approach, meaning the home’s overall energy budget must still come in under the allowed threshold even with the less-efficient electric resistance heating.10California Energy Commission. Chapter 5 – Water Heating In practice, that limits electric tankless installations mostly to replacements and retrofits where a performance-based calculation can justify the choice.
The electrical demand is also significant. A whole-house electric tankless unit typically requires 100 to 150 amps of dedicated circuit capacity at 240 volts, which often exceeds what an older California panel can provide. A panel upgrade to accommodate the unit can add several thousand dollars to the project. The permit, isolation valves, seismic bracing, T&P valve, and thermal expansion provisions all still apply.
Federal Tax Credit for Qualifying Units
The federal Energy Efficient Home Improvement Credit under IRC Section 25C covers 30 percent of the cost of a qualifying gas tankless water heater, up to a maximum credit of $600 per unit per year.11Office of the Law Revision Counsel. 26 USC 25C – Energy Efficient Home Improvement Credit The credit is available for installations through December 31, 2032 and falls within an overall annual cap of $1,200 for most energy property improvements. Heat pump water heaters qualify for a separate, higher cap of $2,000, worth considering if the home’s electrical capacity supports one.12IRS. Energy Efficient Home Improvement Credit – Qualifying Expenditures and Credit Amount
To qualify, a gas tankless unit must meet or exceed the highest efficiency tier established by the Consortium for Energy Efficiency as of the year of installation. In practice, that means an ENERGY STAR certified model with a Uniform Energy Factor of 0.95 or higher.13ENERGY STAR. Water Heaters (Natural Gas) Tax Credit Most condensing tankless units already clear that bar. Keep the manufacturer’s certification statement, the receipt, and the permit records; you’ll need them to file the credit on IRS Form 5695.