Home Project Resources
Home › Guides

Water Heater Installation: Steps, Code and Permits

Updated September 2026 · Home Project Resources

Water Heater Installation: Steps, Code and Permits
Want your number first? Open the free Square Footage Calculator, or read on for how it works.

Water heater installation means the labor and the parts that set the unit and connect it, separate from the price of the heater itself. What it takes is decided by one question above all others: is the new unit going exactly where the old one was, connected to exactly what the old one used? A straight swap is a half day with a short parts list. Anything else means moving water, moving fuel or power, and moving venting, and each of those is its own scope with its own trade.

That is why two plumbers can look at the same closet and quote very different jobs. One is replacing an appliance. The other is running new services to a new location and closing up the old one.

Updated September 2026

A note on numbers. This page covers the scenarios, the step sequence, the code items and the questions that make quotes comparable, not dollar figures. Plumbing and electrical rates, permit fees and parts availability all vary by region and change constantly, and we do not set any of them. Take the checklists below to three licensed pros instead.

If you are pricing the whole project with the unit included, our water heater replacement cost guide covers the selection side by fuel and tank size.

Trying to work out whether the unit fits where you want it? Run the closet, alcove or utility corner through our free Square Footage Calculator before you order anything. Heat pump models and modern high efficiency tanks are taller and fatter than what they replace, and clearance is the number one reason a delivery goes back on the truck.

What Drives Water Heater Installation Cost

Every scenario below is priced by labor hours plus the parts each one demands. The hours are what change.

Installation scenario Labor hours What drives it
Electric tank, same location, existing circuit 2 to 3.5 The simplest job on the list
Gas tank, same location, existing flue 2.5 to 4 Vent connector, gas flex, sediment trap
Gas tank, same location, new power vent 4 to 6 Side wall penetration plus a 120V outlet
Heat pump tank, same location 4 to 7 Condensate drain, sometimes ducting, clearance and air volume
Tankless gas, replacing a tank 8 to 12 Gas line upsize, all new venting, condensate management
Tankless electric, replacing a tank 5 to 9 Panel and circuit capacity is the wild card
First time install where none existed 8 to 16 New supply, drain, vent, plus gas or a new circuit
Relocating an existing heater 6 to 14 The length of every new run, and closing up the old space
Fuel conversion, electric to gas or the reverse 8 to 16 A whole new gas branch or a whole new 240V circuit
Point of use mini tank under a sink 1 to 2 Needs an outlet within reach

Three things move those hours regardless of scenario. Dense metros carry higher trade rates than rural markets, but rural markets carry trip charges that can erase the difference. An emergency call outside business hours carries a labor multiplier that is worth avoiding by replacing on your schedule rather than the tank's. And access matters more than people expect: a heater at the bottom of a narrow basement stair is a two person carry in both directions.

What Installation Actually Involves, Step by Step

Here is the real sequence a plumber follows on a standard tank job. Knowing it helps you read a quote, spot the steps a cheap bid is skipping, and understand why the plumber who quoted three hours is not padding.

  1. Shut down and isolate. Gas off at the appliance valve, or breaker off and locked out for electric. Cold water supply closed. About ten minutes.
  2. Drain the old tank. Hose to a floor drain or outside, temperature and pressure valve opened to break the vacuum. A fifty gallon tank full of sediment can take thirty to forty five minutes to empty, and this is the step that quietly turns a quick swap into a half day job.
  3. Disconnect and remove. Cut or unthread the water lines, disconnect the gas flex and vent connector or the electrical whip. Then the physical part: an empty fifty gallon gas tank weighs well over a hundred pounds and it has to come up the stairs.
  4. Prep the space. Set the drip pan, level the pad, run the pan drain. In a garage, check the elevation and ignition source rules that apply locally.
  5. Set the new unit. Position it so the relief valve port, the drain valve, the anode rod and the control panel are all reachable. This is where a good installer earns their fee. Anode access needs vertical clearance above the tank, and if ductwork sits six inches over the top, the next owner cannot service it.
  6. Plumb the water connections. New flexible connectors or hard copper, dielectric unions where dissimilar metals meet, and a fresh shutoff valve if the old one is a seized gate valve, which it usually is.
  7. Install the relief discharge line. Full size pipe, sloping down, terminating no more than six inches above the floor, unthreaded at the end, with no valve in the line. Inspectors check this every single time.
  8. Add expansion control. On a closed system, meaning any house with a pressure reducing valve or backflow preventer at the meter, a thermal expansion tank goes on the cold line.
  9. Connect the fuel. Gas: new flex connector, a sediment trap ahead of the control valve, then a leak test with solution or a manometer. Electric: whip into the junction box, correct wire gauge for the element wattage.
  10. Vent it. Atmospheric units get a properly sized and sloped connector into the flue with correct clearance to combustibles. Power vent and condensing units get their own dedicated run out a side wall.
  11. Fill, purge and light. Open the cold supply, run a hot tap until the air stops sputtering, then energize. Never power an electric element in a dry tank. You will burn it out in seconds.
  12. Test and check. Draft test on an atmospheric gas unit, a carbon monoxide check at the draft hood, temperature set to 120 degrees F, then a walk around for leaks after the first full heat cycle.
  13. Haul away and inspect. Old unit to the scrap yard, permit closed out with the local inspector, usually within a week or two.

That is roughly two and a half to five hours for a like for like tank, and you have hot water again that afternoon. The steps most often skipped on a discount install are 4, 8 and the sediment trap in 9. All three are cheap to do now and expensive to add later, which makes them the first thing to look for on a bid that came in noticeably under the others.

How Long Does Installation Take?

Job Time on site Hot water back
Electric tank swap 2.5 to 4 hrs Same day
Gas tank swap, existing flue 2.5 to 5 hrs Same day
Power vent gas tank 4 to 7 hrs Same day
Heat pump water heater 4 to 8 hrs Same day, slow first heat
Tankless gas conversion 8 to 14 hrs Same day or next
Relocation to a new room 1 to 2 days Day one or day two
First time install, new construction 1 to 3 days After rough in and inspection

Two things stretch these. Parts runs, because a plumber who discovers a fitting size he does not carry loses the better part of an hour. And inspection scheduling on jobs where a wall has to stay open until someone signs off.

First Time Installs and Relocations

This is the part that separates installation scope from replacement scope. Moving a heater, or putting one where none existed, means every service travels with it.

Water lines. Extending hot and cold in copper or PEX is straightforward in an open basement or attic and several times the work through finished walls with drywall repair afterward. The same twenty five foot move can be a modest line or a major one depending purely on access, so ask which path the bidder is assuming.

Drain for the pan and relief valve. The new spot needs somewhere for water to go safely. If there is no floor drain or gravity path, you are adding a condensate pump or running a drain line to the outside.

Gas piping. Extending a gas branch is priced by the foot including fittings and testing. If the total connected load on your meter is now too high, you may need the utility to upsize the meter, which is often free but takes weeks, so raise it early.

Electrical. A new dedicated 240V circuit for an electric tank is priced by distance and panel space. If the panel is full, a subpanel or a service upgrade gets added, and that alone can end an otherwise sensible relocation.

Venting. This is the big one on gas. An atmospheric unit has to be near a suitable flue, full stop. Moving it away from the chimney usually means switching to a power vent or direct vent model and cutting a new exterior penetration, which is both a vent materials and labor line and a higher unit price.

Structure and space. Attics need a platform rated for a full tank, which for a fifty gallon unit is several hundred pounds of water alone. Garages in many jurisdictions need the ignition source raised eighteen inches off the floor, or a listed flammable vapor ignition resistant unit. Closets need combustion air and a door that opens the right way.

Before you commit to a new location, measure the footprint plus clearances. Most tanks want six inches on the service side minimum, twenty four inches of working space in front, and enough headroom to pull the anode rod, which can be forty inches long. The Square Footage Calculator handles the floor area, and if the new home for the heater is a basement you are planning to build out, the cost to finish a basement page covers the framing and drywall side of the same project.

Rather run your own numbers? Open the free Square Footage Calculator.

Venting, Gas and Electrical: The Requirements That Set the Scope

Atmospheric vent. The unit uses natural draft up a chimney or B-vent. Cheapest to install, but it needs adequate combustion air in the room and a flue in decent condition. If the heater was the last appliance on an oversized masonry chimney and you replace the furnace with a high efficiency model at the same time, the flue may now be too big to draft properly. That is a real and commonly missed problem, so mention it if you are doing both jobs.

Power vent. A blower pushes exhaust through PVC out a side wall. This frees you from the chimney entirely, which is what makes most relocations possible. It needs a 120V outlet within reach and a legal termination point: typically twelve inches above grade, four feet from any window or door, and clear of the neighbor's property line.

Direct vent and sealed combustion. Pulls combustion air from outside through a concentric pipe. The right choice for a tight, well insulated house where an atmospheric unit could backdraft.

Electric. Standard forty and fifty gallon resistance tanks need a dedicated 240V circuit on wire sized for the element wattage. Heat pump models draw less on the compressor but usually keep the same circuit for backup elements. Tankless electric is the outlier: a whole house unit can need a very large dedicated capacity spread across multiple circuits, which is why so many tankless electric quotes come back with a panel upgrade attached.

Permits, Inspection and Licensed Work

A permit is required for water heater installation in most US jurisdictions, gas and electric alike, and the inspection is short. Some cities allow a homeowner permit for work on your own primary residence. Most require a licensed plumber for anything on gas.

What the inspector actually looks at:

Get a licensed plumber for anything touching gas piping or combustion venting, and a licensed electrician for any new circuit or panel work. Those two categories are where mistakes are silent and dangerous rather than merely wet. Everything else on a like for like electric swap is within reach of a careful DIYer with a helper for the stairs, though you still owe the permit fee.

Call for help immediately, not tomorrow, if you smell gas, see soot around the burner, get a yellow lazy flame instead of a crisp blue one, or your carbon monoxide alarm sounds.

Worked Example: Relocating a Gas Water Heater to the Garage

A 1960s ranch. The forty gallon atmospheric gas heater sits in a hall closet the owners want back as a pantry. The plan is to move it to the attached garage, twenty two feet away, and switch to a power vent model so it no longer needs the old chimney.

Here is the scope that job actually carries, and it is worth seeing written out because a single quoted number hides all of it.

That is three separate scopes stacked together: plumbing, gas and electrical. Compare it against the alternative, which is leaving the heater in the closet and doing a like for like swap: a few hours of one trade, no new runs, no patching, no second permit.

The useful move is to price the two separately, so you can see exactly what the pantry costs as its own decision rather than buried inside a water heater quote. That is a fair trade if the family genuinely wants the closet back. It is a poor one if the closet was fine.

Getting a Quote You Can Compare

Ask every bidder for the same five things in writing.

  1. The exact model number of the heater, with its first hour rating or its flow rate.
  2. Labor hours and the hourly rate, not just a bundled total.
  3. Every code item as its own line: expansion tank, drip pan and drain, relief discharge pipe, sediment trap, seismic straps, new shutoff valve.
  4. Who pulls the permit, and whether the fee is inside the quote.
  5. The labor warranty length. One year is standard and some shops offer more. Also ask whether they warranty labor on a heater you supply yourself, because plenty will not.

A bid that lands well under the others is usually missing a permit, an expansion tank or a pan. Ask which. If the answer is vague, that is your answer. Our contractor red flags page covers how to verify a license and insurance before you sign.

Once the new unit is in, the small maintenance jobs are yours: flush it yearly, check the anode at year three to five, and keep the temperature at 120 degrees F. If something goes wrong later, our water heater repair cost guide covers diagnosing by symptom and will tell you when repair stops being the right call.

FAQ

What does water heater installation include, without the unit?

The labor and parts to drain and remove the old heater, prepare the space, set and level the new one, plumb the water connections, run the relief discharge, add expansion control, connect fuel or power, vent it, fill and test it, and haul the old unit away. A relocation adds new water, fuel and vent runs plus closing up the old space, which is why it is a different job rather than a bigger version of the same one.

Can I install a water heater myself?

A like for like electric tank swap with an existing correct circuit is realistic for a confident DIYer. Plan three to five hours plus a helper for the stairs. Do not take on gas piping, combustion venting or a new electrical circuit yourself. Most jurisdictions still require a permit for homeowner work, and the inspection is genuinely useful.

Do I need a permit to install a water heater?

Almost always, yes, and the inspection itself takes only a few minutes. Unpermitted gas appliance work can complicate a homeowners insurance claim after a fire or a carbon monoxide incident, and it surfaces during a home sale. The permit is the cheapest part of the job in almost every jurisdiction.

How long does a plumber take to install a water heater?

Two and a half to five hours for a standard tank in the same spot, four to eight for a heat pump model, and eight to fourteen for a tankless conversion. Relocations usually span two days because inspection has to happen before walls close.

What is the difference between installation and replacement pricing?

Installation is the labor and parts to set and connect the unit. Replacement is that same work plus the heater itself. Contractors usually quote replacement as one number, so ask for the split if you want to compare labor across bids, and ask again if a bidder resists, because a bundled number is the easiest place to hide a thin scope.

Does a new water heater need an expansion tank?

If your house has a pressure reducing valve or a backflow preventer at the meter, yes, and it is code in most of the country. Heated water expands, and on a closed system that pressure has nowhere to go, which shortens tank life and pops the relief valve. It is a small line item and one of the highest value ones on the list.

Can a water heater go in a garage or attic?

Yes to both, with conditions. Garages usually require the ignition source raised eighteen inches off the floor, or a listed vapor ignition resistant unit, plus physical protection from vehicles. Attics need a platform rated for the full weight, which for a fifty gallon tank is several hundred pounds, plus a pan piped to a safe drain. Check your local amendments, because these vary more than most code items.

Should I install a bigger water heater than the old one?

Only if your household actually grew. Oversizing costs money forever in standby losses and can create clearance problems, since today's tanks are physically larger than the same nominal size from fifteen years ago. Size by first hour rating rather than gallons, and measure the space before you order.


Related: Pricing the whole job with the unit included? See water heater replacement cost. Already have a heater acting up? Start with water heater repair cost before you buy anything. For space planning use the Square Footage Calculator, and for other plumbing work in the same room, how to install a toilet and how to fix a leaky faucet cover the DIY friendly end.

Get the exact figure for your project with the free Square Footage Calculator.

More guides

See all