Home Water Heaters

Can I Replace Water Heater Myself? Permits, Code, Risks

Copper hot and cold water lines with a ball shutoff valve and a corrugated flexible connector on the piping above a home water heater
Photo: Tony Webster, CC BY 2.0

Whether you can legally swap your own water heater in 2026, what the permit and code rules say, what DIY really saves, and which jobs belong to a licensed pro.

Typical cost, professional tank swap · same location · 2026

$900–$1,800what a plumber charges

$600 LowTypical range $900–$1,800High $2,500

Enter the total installed price from your quote.

Labor a DIY tank swap saves
$150–$650
Pro 50-gallon electric tank, installed
$700–$1,900
Pro 50-gallon gas tank, installed
$900–$2,500

In this guide

Yes, in many parts of the U.S. you can legally replace your own water heater in 2026, but you will usually need a permit and an inspection, and some states do not allow it at all. So the honest answer to "can I replace water heater myself" depends on where you live, whether the heater burns gas, and whether you are swapping like for like. Texas law lets owners do plumbing in their own homestead without a license, and cities such as Geneva, Illinois, and San Diego issue water heater permits to homeowners. Massachusetts issues plumbing and gas permits only to licensed individuals.

What a DIY install saves is the labor. A professional tank swap typically costs $900 to $1,800, and Fixr's January 2026 data puts the average near $1,400. Labor on a straightforward tank replacement runs about $150 to $650, per Bob Vila and Fixr, so that is roughly what you keep. On a heat pump water heater, Rheem puts the labor you avoid at $500 to $1,000. You still buy the tank, the permit, and the parts, and our water heater replacement cost guide breaks those down by type.

Key points

  • A plumber typically charges $900 to $1,800 for a tank swap. Doing it yourself saves the labor, about $150 to $650.
  • There is no national rule. State licensing law and your local building department decide whether an owner can do the work.
  • Where owners may do it, it is usually limited to a home they own and live in, with a permit and final inspection.
  • Inspectors check the relief valve piping, expansion tank, drain pan, strapping, venting, gas shutoff, and electrical circuit.
  • Gas piping, venting, new 240-volt circuits, tankless units, and fuel switches are work for a licensed plumber, gas fitter, or electrician.
  • Manufacturers write manuals for licensed-level installers, so a faulty DIY install can cost you the warranty.

DIY vs. professional cost at a glance

ItemTypical cost
Professional tank swap, 40–50 gallons, installed$900–$1,800
Professional 50-gallon electric tank, installed$700–$1,900
Professional 50-gallon gas tank, installed$900–$2,500
Tank alone, 40–50 gallons (what you buy for DIY)$450–$1,500
Labor a DIY tank swap saves$150–$650
Labor a DIY heat pump install saves$500–$1,000
Plumber hourly rate$75–$150
Permit, simple like-for-like swap$25–$300
Expansion tank (part / installed)$40–$350 / $249–$455
Old tank haul-away by the installer$50–$150

The typical range matches Energy Trust of Oregon's 2026 figures, about $900 to $1,800 for a gas tank and $800 to $1,500 for electric; the 50-gallon rows are Fixr's. Tank prices come from ENERGY STAR and Bob Vila, rates from Housecall Pro.

Count your hours honestly: Family Handyman budgets a full day for a homeowner, and an empty tank weighs about 150 pounds.

No federal law covers who installs a water heater. Two layers decide it: your state's plumbing and gas licensing law, and the local building department that issues permits. In its heat pump installation guide, Rheem says DIY installation is allowed in most places as long as you get a permit and pass an inspection, but some areas require a licensed plumber or electrician. These examples show how much the rules differ.

WhereCan the owner do the work?What applies
Texas (state law)Yes, in your homesteadNo plumbing license needed for the owner (Occupations Code 1301.051); local permit rules still apply
Geneva, IllinoisYes, if you own and live in the home$55 permit, final inspection, $50 fee for each failed inspection (May 2026 handout)
San Diego, CaliforniaYes, homeowners can get the permitSimple no-plan permit covers tank swaps, not tankless units
Kirkland, WashingtonYesA homeowner who installs schedules the inspection within 48 hours
Collier County, FloridaYes, as an owner-builderOwner-builder jobs skip the self-issued permit and go to standard review
MassachusettsNoPlumbing and gas permits go only to licensed individuals (248 CMR 3.05)

Owner permits are personal. Geneva allows owner plumbing only when the owner lives in the home; anyone else, or any commercial property, needs an Illinois licensed plumber. Collier County requires owner-builders to supervise, on site, all work not done by licensed contractors. Skipping the permit is the expensive shortcut: Rheem warns it can lead to fines, trouble when you sell, and denied insurance claims.

Call your building department before you buy the heater. Ask whether an owner-occupant can pull the permit, whether gas connections need a licensed fitter, and which inspection checklist they use.

What the inspector will check

Model codes only apply once your state or city adopts them, often with amendments, so your edition may differ. Most section numbers below come from the 2021 International Residential Code (IRC) and International Plumbing Code (IPC) and the 2020 National Electrical Code (NEC), as compiled in a 2024 inspection checklist funded by the U.S. Department of Energy; the others name their own source.

  • Relief valve piping: the temperature and pressure (T&P) relief valve needs a full-size discharge pipe that drains by gravity and ends no more than 6 inches above the floor or a drain (2018 IPC 504.6 and 2018 IRC P2804.6.1, per ICC).
  • Expansion tank: where a check valve, pressure-reducing valve, or backflow preventer closes the system, a thermal expansion tank is required, including on replacements, under North Carolina's 2018 plumbing code (Section 607.3, based on the IPC). Ask whether your jurisdiction applies the same rule.
  • Drain pan: required where a leak would cause damage (2021 IPC 504.7), though a replacement does not need a new pan drain where none existed before.
  • Earthquake strapping: anchored in the upper and lower thirds in Seismic Design Categories D0 to D2 (2021 IRC P2801.8). California requires it on every new and replacement heater under state law.
  • Garage installs: the ignition source sits at least 18 inches above the floor unless the heater is flammable-vapor-ignition resistant, plus impact protection where a car could hit it (IRC M1307.3, as cited in a 2019 Manheim Township, Pennsylvania, checklist).
  • Gas: Geneva's 2026 handout requires a shutoff valve within 6 feet in the same room, a union, a sediment trap, a listed vent installed to the manufacturer's instructions, and combustion air per the 2021 International Mechanical Code.
  • Electric: the branch circuit must be rated at least 125% of the heater's marked rating, with a disconnect in sight or lockable (2020 NEC 422.10(A), 422.13, and 422.31). Kirkland reminds installers to reconnect the bonding wires.

Like for like is the easy permit. Dixon, California, limits its instant water heater permit to same-fuel, same-size swaps in the same spot; going to tankless or a heat pump, or touching gas piping or wiring, needs a regular permit.

The real risks of doing it yourself

Gas and carbon monoxide. A loose gas fitting or a vent that does not draft can fill a house with gas or carbon monoxide. The CPSC says more than 200 people in the U.S. die each year from non-fire CO poisoning tied to consumer products, and it recommends CO alarms on every level of the home and outside sleeping areas. If you smell gas, the Kansas Corporation Commission's advice is the standard one: leave right away, do not touch switches, and call the utility or 911 from outside.

Pressure and scalding. Family Handyman warns that a badly installed relief valve or vent can let pressure build to the point of tank rupture, and A. O. Smith's manual marks the relief valve discharge pipe "do not cap or plug." Once the new heater runs, set it to 120°F. The CPSC says water at 140°F can cause third-degree burns in six seconds, and 150°F in two.

Electric shock. Most electric and heat pump heaters run on 240 volts. Rheem says that work should go to a pro if you are not experienced, and that running a new breaker may require a licensed electrician. Keep the breaker off and test the wires dead before anyone touches them. Do not restore power until the tank is full; manuals warn that dry elements burn out.

Warranty and insurance. A. O. Smith's residential gas manual asks for an installer with ability equivalent to a licensed tradesman and tells anyone not qualified and licensed as required locally not to attempt the work. It also excludes tank leaks caused by thermal expansion. Rheem says many of its warranties require certified installation and a permit, and Fixr notes that insurance may not cover water damage from a heater that was not professionally installed.

Read the warranty and installation manual for the exact model before you buy. If either requires a licensed installer, the $150 to $650 you save can cost you a tank warranty that often runs 8 to 12 years.

What you can do yourself, and what to leave to a licensed pro

The best DIY candidate is an electric tank replaced with the same size, in the same spot, on an existing circuit that matches the new heater's rating, in a home you own and live in where owner permits are allowed. Even if you hire out the install, Bob Vila notes that the homeowner can pull the permit.

Leave these to a licensed plumber, gas fitter, or electrician:

  • Any change to gas piping or venting, including a new vent type on a power-vent or direct-vent heater.
  • Switching fuel, gas to electric or the reverse. Kirkland requires plumbing and electrical permits, plus a mechanical permit if the gas line is capped.
  • Tankless units, where Fixr puts labor at about half the total bill, $800 to $2,000. See our tankless installation cost guide.
  • A new 240-volt circuit or a panel at capacity. Our electrical panel upgrade cost guide covers that project.
  • Heat pump water heaters that need a new circuit, a condensate drain, or a room of at least 700 cubic feet for Rheem's 240-volt models. Some rebates require a licensed contractor too; our heat pump water heater cost guide explains the incentives.

A gas tank swap on existing piping and vent sits in between, and it is where DIY mistakes turn dangerous. Unless your permit office allows owner gas work and you have leak-tested gas joints and checked a vent for draft before, hire a licensed plumber or gas fitter.

Extra costs either way

  • Expansion tank: $40 to $350 for the part (Bob Vila), or $249 to $455 installed (Housecall Pro), if your system is closed.
  • Venting on a gas heater: about $500 for direct vent and $1,100 for power vent, per Fixr.
  • Code upgrades: Fixr says bringing an old installation up to current code can add several hundred dollars, whoever does the work.
  • High water pressure: a pressure-reducing valve runs $450 to $991, per Housecall Pro.
  • Failed inspection: Geneva charges $50 for each re-inspection, and other cities set their own fees.
  • Disposal: installers charge $50 to $150 to haul the old tank away (Fixr). Doing it yourself, Family Handyman puts disposal at about $25.

Check whether your home has a check valve or pressure-reducing valve on the main line before you shop. If it does, budget for the expansion tank from day one.

Example quote: DIY vs. a plumber, 50-gallon electric tank

This illustrative comparison is for a like-for-like 50-gallon electric tank in a basement, on a circuit that already matches it, in a city that issues owner permits. Assumptions: the same $700 tank either way, a closed system that needs an expansion tank, a $55 permit like Geneva's, and $450 of plumber labor. The $90 for connectors, fittings, discharge pipe, and pan is our estimate.

Line itemDIYPlumber
50-gallon electric tank$700$700
Expansion tank (part / installed)$60$300
Connectors, fittings, discharge pipe, pan$90Included
Permit$55$55
Old tank disposal$25$100
LaborYour day$450
Total$930$1,605

The DIY route saves $675 here, about 42% of the plumber's total. A failed inspection, a second trip for parts, or one leaking fitting eats into it fast, and the plumber's quote usually carries a labor warranty yours does not.

How to decide

  1. Confirm owners may do the work where you live, and that you qualify: owner, occupant, permit in your name.
  2. Read the model's manual and warranty for installer requirements before you buy.
  3. Keep it like for like. Same fuel, size, and location keep the permit simple and the code list short.
  4. Hire out anything involving gas lines, venting, or new wiring, and book the final inspection either way.

Replacing a heater that is still working? Check its age first; our water heater lifespan guide shows how long each type usually lasts.

Frequently asked questions

Do I need a permit to replace my own water heater?

In most places, yes; Rheem says most municipalities require one. Geneva, Illinois, and Kirkland, Washington, for example, require a permit and an inspection for a replacement, even like for like. Simple swap permits often cost $25 to $300; Geneva's is $55.

Will installing a water heater myself void the warranty?

It can. A. O. Smith's manuals call for an installer with licensed-tradesman ability, and Rheem says many of its warranties require certified installation and a permit. Read your model's warranty before you start.

Can a homeowner install a gas water heater?

Only where local rules allow owner gas work, and only with a permit. Massachusetts issues gas permits only to licensed individuals. Even where it is legal, a mistake in gas piping or venting can cause a leak or carbon monoxide poisoning, so many homeowners hire a licensed plumber for gas units.

How long does it take to replace a water heater yourself?

Plan on a full day. Fixr says a professional finishes a standard swap in 2 to 4 hours, and Family Handyman estimates four to six hours for a homeowner with every part on hand and no surprises.


Last reviewed: November 13, 2026. Costs are estimated ranges compiled from published cost guides, manufacturer manuals and warranties, and state, city, CPSC, and Department of Energy pages. Licensing and permit rules change and vary by jurisdiction; confirm them with your building department. Your quote will depend on your home, your location, and the contractor you hire. Photo: Tony Webster, CC BY 2.0. Read our editorial policy and disclaimer.