Quick answer
Water heater replacement isn't on the 2024 International Residential Code's list of work exempt from permit, and the IRC's ordinary-repair allowance excludes "replacement or relocation of any water supply ... gas ... piping, electric wiring or mechanical or other work affecting public health or general safety" (R105.2.2). Most jurisdictions require a plumbing permit, plus a gas or electrical permit in some places. The inspection focuses on the temperature and pressure relief valve discharge pipe (P2804.6.1), venting and gas connections, a drain pan where a leak would cause damage (P2801.5), 18-inch ignition-source elevation in garages (P2801.6), and seismic strapping where required (P2801.7).
What the model code says
Is it exempt?
The International Residential Code (IRC) lists plumbing work that doesn’t need a permit (R105.2). It covers stopping leaks, clearing stoppages, and removing and reinstalling toilets, “provided such repairs do not involve or require the replacement or rearrangement of valves, pipes or fixtures.” Water heater replacement is not on the list.
The IRC also allows “ordinary repairs” without notice to the building official (R105.2.2), but says ordinary repairs do not include “addition to, alteration of, replacement or relocation of any water supply, sewer, drainage, drain leader, gas, soil, waste, vent or similar piping, electric wiring or mechanical or other work affecting public health or general safety.” Replacing a water heater almost always involves at least one of those.
So in jurisdictions that follow the model code, a water heater replacement needs a permit. Local practice differs on which permit: plumbing only, plumbing plus gas or electrical, or a single “water heater” permit.
What the inspector checks
These are the 2024 IRC sections that come up most often:
- Relief valve discharge piping (P2804.6.1). The pipe from the temperature and pressure (T&P) relief valve must:
- not connect directly to the drainage system, and discharge through an air gap in the same room as the water heater;
- be at least the size of the valve outlet, and serve only that one relief device;
- discharge to the floor, the water heater pan, a waste receptor, or the outdoors, in a way that does not cause injury or damage and is readily observable;
- not be trapped, and flow by gravity;
- end no more than 6 inches, and no less than twice the pipe diameter, above the floor or receptor rim;
- have no threaded end, valves, or tee fittings, and use approved materials.
- Drain pan (P2801.5). A storage tank-type water heater installed “in a location where water leakage from the tank will cause damage” must sit in a pan of galvanized steel, aluminum, plastic, or other approved material of the listed thickness, with a drain. Plastic pans under gas water heaters must meet flame-spread limits.
- Garage installations (P2801.6). Water heaters with an ignition source must have that source at least 18 inches above the garage floor, unless the appliance is listed as flammable vapor ignition-resistant. M1307.3 sets the same rule for other appliances and treats spaces that open into the garage as part of it.
- Seismic bracing (P2801.7, M1307.2). In Seismic Design Categories D0, D1, and D2, and in townhouses in Category C, water heaters must be anchored or strapped to resist movement in an earthquake (R301.2.2.10).
- Thermal expansion (P2903.4). “A means for controlling increased pressure caused by thermal expansion shall be installed where required,” for example where a pressure-reducing valve raises downstream pressure as water heats (P2903.4.1). Ask your inspector what your system needs.
- Lead content (P2801.8). Water heaters must comply with NSF 372.
- Gas, venting, and combustion air. Gas water heaters must meet the IRC fuel-gas chapter (Chapter 24) for connectors, shutoff valves, venting, and combustion air. Venting problems are a carbon monoxide hazard, so this part of the inspection matters most.
- Electrical. Electric and heat pump water heaters need a correctly sized circuit and disconnect under the IRC electrical chapters or the NEC.
The International Code Council’s Water Heater Safety CodeNotes (based on the 2021 IRC) walks through the relief valve rules with diagrams if you want more detail.
Efficiency standards
Water heaters sold in the U.S. must meet federal efficiency standards set by the Department of Energy. In April 2024 DOE finalized new standards for residential water heaters, with compliance “required starting in 2029.” These apply to manufacturers, not to your permit, but they affect which models are available.
Zoning, HOA rules, and setbacks
Zoning rarely affects a water heater in its existing location. Exceptions:
- Outdoor installations, including tankless units on exterior walls and heat pump units, may have setback, noise, or screening rules.
- Historic districts may review exterior vents or equipment visible from the street.
- HOAs sometimes regulate exterior vent terminations or equipment.
Permits and inspections you can expect
A typical replacement involves:
- Permit application, often online or over the counter, listing the fuel type, capacity, and location.
- Installation, with the old unit left accessible if the office wants to see the connections.
- Final inspection of the relief valve discharge, connections, venting, pan, strapping, and expansion control. Some jurisdictions let you submit photos instead.
Switching fuel types (gas to electric or heat pump) or moving the heater to a new location often requires additional electrical, gas, or mechanical permits.
What to prepare
- Fuel type and capacity of the old and new units, and whether it is tank or tankless.
- Location, such as garage, basement, closet, attic, or outdoors, and whether a leak would cause damage.
- Venting plan for gas units, especially when switching to a power-vent or condensing model.
- Electrical capacity for electric, heat pump, or power-vented units.
- Contractor license details, or confirmation that a homeowner permit is available where you live.
How permit fees are calculated
Water heater permits are usually a flat fee or a small fixture-based fee in the plumbing fee schedule, sometimes with a separate gas or electrical fee. Some jurisdictions use a valuation-based fee for all permits. The 2024 IRC’s Appendix AB “provides guidance to jurisdictions for setting appropriate permit fees,” but it applies only where adopted. Check the current fee schedule linked from your county’s profile in our directory.
Common mistakes
- Reusing an old or undersized relief valve discharge pipe, or one that ends with threads, runs uphill, or is piped into a drain.
- Skipping the pan in an attic or above finished space.
- Ignoring garage elevation for units that are not listed as flammable vapor ignition-resistant.
- Leaving out seismic straps in regions that require them.
- No thermal expansion control on a closed system, which can make the relief valve drip or fail early.
- Connecting a new gas unit to an old vent that does not match the appliance’s venting category.
- Installing without a permit, which may surface at sale or after an insurance claim.
State notes
Some states set a rule for this project statewide. These notes come from our state research; your city or county may add its own requirements.
- Colorado
- Under the Colorado Plumbing Code, emergency plumbing work such as a water heater replacement or a broken water or drain line may start before the permit is bought, provided the permit is obtained the next business day. Source
- Hawaii
- A new single-family home or ADU must include a solar water heater to get a building permit (HRS 196-6.5), unless the Hawaii State Energy Office approves a variance requested by a licensed architect or mechanical engineer. The rule does not cover duplexes, condos, or other multi-family buildings. Source
- Illinois
- Plumbing work in Illinois must be done by an IDPH-licensed plumber and must meet the Illinois Plumbing Code, which covers any remodeling that alters or replaces plumbing. The exception is an owner-occupant doing the work on their own single-family home. Local permit and inspection rules also apply. Source
- Texas
- A property owner does not need a state plumbing license to do plumbing in their own homestead (Occupations Code §1301.051). City permit and inspection requirements still apply. Source
- Utah
- Natural gas water heaters sold or installed in Utah must meet low-NOx emission limits (Utah Code 15A-6-102). Since July 1, 2026, the limits apply only in ozone or PM2.5 nonattainment areas. There is an exception when replacing a combination water and space heating unit of the same size if no compliant model is available. A replacement water heater still needs whatever permit your building department requires. Source
Common questions
Do I need a permit to replace a water heater with the same type?
Usually yes. The IRC's permit exemptions cover leak repairs and stoppages, not replacing water heaters, and its ordinary-repair allowance excludes replacing water supply, gas, and electrical work. Many jurisdictions offer a quick over-the-counter or online permit for like-for-like replacements.
Can a homeowner replace their own water heater?
It depends on state and local licensing rules. Some states let owners do plumbing work on their own home, and others require a licensed plumber. Your local permit office will tell you whether it issues homeowner plumbing permits. Our state pages summarize state licensing rules where we have researched them.
Where does the relief valve pipe have to go?
Under the 2024 IRC, the discharge pipe must not connect directly to the drainage system. It must discharge through an air gap in the same room, to the floor, the water heater pan, a waste receptor, or outdoors. It must flow by gravity, not be trapped, and end no more than 6 inches above the floor or receptor. It cannot have a threaded end, valves, or tee fittings (P2804.6.1).
Does a water heater in a garage need to be raised?
Under the 2024 IRC, a water heater with an ignition source must be installed so the ignition source is at least 18 inches above the garage floor, unless the appliance is listed as flammable vapor ignition-resistant (P2801.6). Many modern gas water heaters carry that listing. Check the label and your local code.
Is a heat pump water heater treated differently?
It still needs the plumbing work and relief valve rules, plus an electrical circuit sized for the unit and a condensate drain. ENERGY STAR notes these units work best in spaces that stay between 40° and 90°F year-round. Switching from gas to electric often adds an electrical permit.
Check your county’s rules
The rules above are the model-code starting point. Your county or city decides which edition applies, what it changed, and what it charges. Look up the permit office that serves your address.
Sources
- 2024 International Residential Code, Chapter 1 (R105.2 exemptions, R105.2.2 repairs), unamended adoption reproduced by UpCodesup.codes
- 2024 International Residential Code, Chapter 28 (water heaters: P2801, P2804)up.codes
- 2024 International Residential Code, Chapter 29 (P2903.4 thermal expansion control)up.codes
- 2024 International Residential Code, Chapter 13 (M1307 appliance installation)up.codes
- International Code Council: Water Heater Safety CodeNotes (2021 IRC)www.iccsafe.org
- U.S. Department of Energy: DOE finalizes efficiency standards for water heaters (April 30, 2024)www.energy.gov
- ENERGY STAR: Heat pump water heaterswww.energystar.gov
- 2024 International Residential Code, front matter and preface (ICC)shop.iccsafe.org
Last reviewed October 2026. Section numbers refer to the International Code Council’s model codes. We checked the wording against the published adoptions linked above, which reproduce the model text without amendment unless the source notes a state amendment. Codes take effect only when a state or local government adopts them, and many make amendments. This guide is general information, not legal or engineering advice. Suggest a correction
