How to Install a Gas Water Heater in 2027
How to install a gas water heater is about order, not strength. Shut off the gas and water, drain the old tank, set the new tank, then connect the water and gas lines with a new connector and sediment trap. Test every gas joint with soapy water, light the pilot, check the draft, and get the permit and inspection done.
The tank is the easy part of this job. The gas line, the vent and the permit are the parts that decide whether the morning goes well or turns into a second trip to the home center.
Picture a Saturday with no hot water and a pilot light that will not stay lit. The tank is twelve years old, the burner rattles, and the shower ran cold twice this week.
That is the moment most people start pricing a new tank. It is also the moment to ask three questions before buying anything.
Can the gas line feed the new tank? Will the vent carry the exhaust out? Does the town want a permit?
This guide answers those three questions first, then walks through every step of the swap for a standard tank. My rule is simple.
I will swap a tank, but I will not cut into a gas pipe. If your job needs a new gas line, a moved vent or a bigger meter, the pro section below tells you exactly where the line sits.
Start with the gas, not the tank
A gas tank needs three things the old tank already had: enough gas, a clear path for exhaust, and permission from the town. Get those three right and the rest is plumbing. Miss one and the job stops halfway, with a new tank sitting on the floor and no hot water.
First, look at the gas line. A standard 50 gallon gas tank carries a 40,000 BTU burner, the figure Lowe’s lists for its standard 50 gallon model.
The pipe feeding it must carry that load plus every other gas appliance in the house. The right size depends on the total load and the length of the run.
The sizing tables sit in the fuel gas code, and a plumber sizes the line from them. If the new tank is bigger than the old one, or if the house is adding a tankless unit later, the line may need upsizing, and that is pro work.
Second, look at the vent. The vent carries carbon monoxide out of the house, so it is the most safety critical part of the whole job.
A vent that is rusted, loose, undersized or blocked will spill exhaust into the room instead of up the flue. If the old vent is damaged, the job now includes vent work, and vent work belongs to a licensed plumber.
Third, check the permit. Most cities require a plumbing permit to install or replace a gas water heater, followed by an inspection. Angi puts permit fees at $25 to $300 in most places.
The inspector checks the gas connection, the venting, the straps, the relief valve discharge and the clearances. A permit also protects you at sale time, since buyers and insurers ask for the record.
Before you install a gas water heater, run through the stop list below. One yes means the job needs a licensed pro for that part, even if you do the rest yourself.
| Stop and call a pro if | Why it is pro work |
|---|---|
| The gas line needs moving, extending or upsizing | Gas pipe sizing and pressure testing need a licensed plumber |
| The vent is rusted, loose, blocked or the wrong size | Bad venting lets carbon monoxide into the house |
| You are switching fuels, gas to electric or the other way | A fuel change means a new gas line or a new circuit, plus new venting |
| The tank is larger than the old one and the space is tight | Tanks made after 2015 are bigger, and clearances still have to be met |
| The town requires a licensed contractor on the permit | Some cities will not issue a water heater permit to a homeowner |
| You smell gas at any point | Leave the house and call the gas company from outside |
Natural gas and propane are not interchangeable. Propane carries more energy in each cubic foot, so the burner and gas valve are built for one fuel or the other. A heater must be made for the fuel it burns, or converted to it by the maker.
Check the label on the old tank and buy the same fuel. Our guide to how long a gas water heater lasts helps you judge whether the old tank is truly done or just needs a part.
What the job costs when a pro does it
Angi reports a standard tank replacement at $881 to $1,827 installed, with an average of $1,349, based on about 31,000 projects by its pros and updated in October 2026. HomeAdvisor puts a gas tank at $700 to $2,700 installed. Labor for a straight tank swap runs $150 to $450, and a new gas line runs $260 to $820 when one is needed.
The range is wide because the job is rarely just the tank. A like for like swap in an open basement sits at the low end.
A swap that needs a new gas line, a vent liner, an expansion tank, a drain pan and a permit sits at the high end. Get the quote in writing and ask it to list the tank, the labor, the permit and each code part on its own line.
| Cost item | Typical range | Source |
|---|---|---|
| Gas tank, installed | $700 to $2,700 | HomeAdvisor, 2026 |
| Standard tank replacement, average | $1,349 | Angi, October 2026 |
| Labor, like for like tank swap | $150 to $450 | Angi, 2026 |
| Permit | $25 to $300 | Angi, 2026 |
| New gas line | $260 to $820 | Angi, 2026 |
| Tankless gas unit, installed | $1,400 to $3,900 | Angi, 2026 |
Two houses show how the same tank can cost two different amounts. House A is a 3 bedroom home with a family of four, a 50 gallon tank in an open basement, a sound gas line and a sound vent.
The swap is like for like, so the bill lands near the Angi average of $1,349. House B has the same tank and the same family, but the gas line is undersized for the new burner and the vent needs a liner.
The gas line adds $260 to $820 and the vent work adds hundreds more, so House B pays $1,900 to $2,700 for the same tank. The difference is never the tank. It is the gas and the vent.
To install a gas water heater on a budget, price the gas and vent checks before you buy the tank. A free estimate from a plumber that lists each line is worth more than a low headline price that hides the extras.
If the quote comes in above $2,700 for a plain tank swap, ask which line is driving it, and get a second quote. If you are still deciding between repair and replacement, see what a new water heater costs before you commit to either.
Most homeowners who install a gas water heater pay near the Angi average, not the top of the range.
Pick a tank that fits your house and your gas line
Size by people first, then by the first hour rating on the yellow EnergyGuide label. The rating says how many gallons of hot water the tank can deliver in its busiest hour, starting with a full tank. It is a better test than tank size alone.
A 40 gallon tank suits two to three people, and a 50 gallon tank suits three to four, according to CPI Service. A family of four that runs a shower and the laundry at the same time wants a higher recovery rate. That rate is how fast the tank reheats water after a draw.
Measure the space before you buy. Water heaters made after 2015 carry more insulation to meet the newer energy code, so a new tank of the same capacity is bigger than the one it replaces.
Measure the height, the width and the doorway it must pass through, and compare all three with the spec sheet. A tank that will not fit through the basement door is a return trip you do not need.
Measure the doorway before you install a gas water heater, or the new tank may not fit through it.
Match the fuel, the vent type and the gas line to the tank you pick. An atmospheric vent tank needs a chimney or a B vent. A power vent tank needs an outlet nearby for the blower and a side wall it can vent through.
A direct vent tank takes combustion air from outside, so it is the only type allowed in a bedroom or bathroom in many cities. Buy the vent type the house already has unless you are ready to pay for vent work.
| Household | Tank size |
|---|---|
| 1 to 2 people | 30 to 40 gallons |
| 2 to 3 people | 40 gallons |
| 3 to 4 people | 50 gallons |
| 5 or more people | 65 to 75 gallons |
Read the first hour rating on the yellow label before you buy, and pick a rating that meets or beats the hot water your house uses in its busiest hour. The rating is the better test, since two tanks of the same size can deliver very different amounts of hot water in an hour.
When you install a gas water heater, the label on the old tank is your shopping list. It gives the capacity, the BTU input, the fuel and the vent type. Take a photo of it and bring the photo to the store, or send it to the plumber with the quote request.
A tank usually lasts 8 to 12 years, Home Depot reports, so this is a once a decade purchase. The right size matters more than the brand on the box.

Three ways to vent a gas tank
Venting decides how you install a gas water heater more than any other choice, because the vent type fixes where the tank can sit and what the job costs. Three systems exist, and each one suits a different house. The table below compares them, and the sections after it explain each one in plain words.
The vent type is fixed before you install a gas water heater, not after.
| Vent type | How it works | Best for | Watch out for |
|---|---|---|---|
| Atmospheric vent | Hot exhaust rises on its own up a metal flue | Homes with a chimney or B vent already in place | Needs a constant upward slope and a sound flue |
| Direct vent | Sealed pipes bring air in and send exhaust out | Bedrooms, bathrooms and tight spaces | Needs an outside wall and maker specified clearances |
| Power vent | A fan pushes exhaust out through a side wall | Homes with no vertical flue | Needs power nearby and PVC venting to spec |
Atmospheric vent
Most older tanks use this system. A draft hood sits on top of the tank, and the vent connector fastens to it with screws, then rises steadily to a chimney or B vent with no dips. The horizontal run is limited to 75 percent of the vertical rise for single wall pipe, and 100 percent for B vent, per the San Jose rules CPI Service cites.
Done right, the rising heat pulls exhaust out of the house and keeps it from spilling back into the room. Tanks of 55 gallons and larger cannot vent into a chimney at all, Home Depot notes, and must vent straight outside through plastic pipe made for the job.
Direct vent
A direct vent tank is sealed from the room. It draws combustion air from outside and sends exhaust back outside through its own pipes. Because no room air feeds the burner, these are the only gas tanks many cities allow in a bedroom or bathroom.
The intake and exhaust pipes run to an approved outside termination, with the slope, length and clearances from windows, doors and air intakes that the maker specifies. Follow the maker sheet exactly, since the distances change by model.
Power vent
A power vent tank uses a fan to push exhaust out, so it can vent sideways through a wall where no vertical flue exists. The vent pipe, often PVC as the maker specifies, attaches to the blower and runs to an approved termination, fully supported and sealed.
The blower needs power, usually an outlet near the tank. A power vent tank costs more than an atmospheric tank, and the blower adds a part that can fail. It still opens up spots in the house where a chimney will never reach.
If the vent has to change type, the job changes with it. A switch from atmospheric to power vent means a new vent run, a power outlet and a different tank. Get a pro quote before buying anything in that case.
Our guide to what a tankless water heater is covers the venting question for the tankless route, which needs a bigger gas line and a new vent in most homes.
Tools and parts to have on hand
You need fewer tools to install a gas water heater than most people expect, and the parts list is short. Buy the flexible gas connector new, and never reuse the old one. A connector that has been bent, kinked or heated is done, and a new one costs little next to the tank.
A second pair of hands helps more than any tool when you install a gas water heater.
| Tools | What each one does |
|---|---|
| Two pipe wrenches | Hold one fitting while you turn the other, so the pipe does not twist |
| Adjustable wrenches | Tighten flexible connectors and water fittings |
| Pipe cutter and tubing cutter | Cut copper water lines clean for soldering |
| Drill and bits | Fix straps, vent supports and brackets |
| Carpenter level and plastic shims | Level the tank so the burner and vent sit right |
| Screwdrivers and nut driver | Vent screws and burner access panels |
| Hand truck and a helper | Move a tank full of sediment, which weighs far more than a new one |
| Safety glasses and gloves | Protect eyes and hands from hot water, sharp pipe and sediment |
| Parts | Notes |
|---|---|
| New gas water heater | Same fuel, same vent type, right size for the household |
| Approved flexible gas connector, new | Never reuse the old connector |
| Gas rated thread sealant or yellow gas tape | Ordinary white tape is not rated for gas |
| Sediment trap fittings | Also called a drip leg, it catches dirt before the burner |
| Water connectors and dielectric unions | Dielectric fittings stop corrosion where copper meets steel |
| Heat trap fittings | Blue for cold in, red for hot out, arrows show direction |
| T and P relief valve and discharge pipe | Discharge pipe in an approved material, never PVC |
| Drain pan | Required where a leak would damage the floor below |
| Expansion tank | Needed when the house has a pressure regulator or check valve |
| Leak detection solution | Or mix liquid dish soap and water in equal parts |
| Earthquake straps | Two straps for tanks up to 52 gallons, anchored to wall framing |
Shut it all off and drain the old tank
The first physical step to install a gas water heater is shutting down the old one in the right order. Gas off first, then water, then drain.
A tank holds a lot of hot water, and a 50 gallon tank holds about 417 pounds of it, since each gallon weighs 8.34 pounds. Plan the drain path before you open the valve, and keep kids and pets out of the room while the water runs.

- Turn the gas control knob on the heater to off, then close the shutoff valve on the gas line feeding the heater.
- Close the cold water supply valve at the top of the heater, turning it clockwise.
- Turn on the hot tap nearest the tank and let it run until the water turns cool. Leave it open so air can enter the tank while it drains.
- Hook a garden hose to the drain valve low on the tank, and lead it to a floor drain, a basement sink or outside.
- Open the drain valve and let the tank empty fully. Hot water can scald, so use a hose rated for heat and keep hands clear of the stream.
- While the tank drains, undo the gas connector at the shutoff valve with two pipe wrenches, without twisting the gas pipe itself.
- Disconnect the hot and cold water lines above the tank. If the lines are soldered, cut them with a tubing cutter and clean the ends with a sanding cloth for the new joints.
- Remove the screws that hold the vent pipe to the draft hood, and lift the vent connector clear. Leave the old venting in place and check it for rust or damage.
- Tip the old tank onto a hand truck with a helper and move it out. Old tanks fill with sediment, so expect it to be far heavier than the new one.
- Clean the floor where the old tank stood, and check the gas line, the shutoff valve and the old connector for corrosion or worn threads. Replace any part that looks tired.
Our guide to how to drain a gas water heater covers the draining step on its own, including what to do when the drain valve clogs with sediment. If the water will not drain, the valve is likely blocked, and a short blast of air or a gentle poke with a wire often clears it. Never force a stuck valve with a long wrench, since a snapped valve floods the room.
Set the new tank and strap it down
Set the new tank where the old one stood, with at least 6 inches of clearance on all sides for ventilation, Home Depot advises. Line it up so the burner and the controls face out where you can reach them. The water and gas pipes should meet the top and side connections without a stretch.
A tank that sits crooked strains the vent and the burner, so check it with a level and slip plastic shims under the base until it sits true.
Stand the tank in a drain pan if a leak could damage the floor below. Run the pan drain line to a nearby floor drain or another approved spot where you will see it. In an attic or over a finished room, the pan is not optional, and the inspector will look for it.
Fit the earthquake straps around the upper and lower third of the tank, anchored to the wall framing. Tanks up to 52 gallons need two straps, per the rules CPI Service cites.
In a garage, the burner and pilot must sit at least 18 inches above the floor. The tank also needs protection from vehicles, so a bollard or a curb in front of it is money well spent.
Level matters when you install a gas water heater, because a tilted tank throws off the draft hood and the burner. Take thirty seconds with the level now, and the vent test later will go the way it should. A level tank drafts better, so check it twice when you install a gas water heater.
Hook up the water lines
Start with the heat trap fittings on top of the tank. Wrap the threads with thread seal tape, and mind the arrows, since most heat traps only flow one way.
The blue fitting belongs on the cold inlet, with its arrow aimed into the tank. The red fitting belongs on the hot outlet, arrow pointing away from the tank. Fit them the wrong way round and water will not flow, or will flow badly.
Water leaks show at once, so watch every joint as you install a gas water heater.

Connect the cold line to the inlet with a shutoff valve within reach, so the tank can be isolated without turning off the whole house. Connect the hot line to the outlet the same way, with dielectric unions where copper meets the steel tank.
Support the piping so its weight does not hang on the tank. If the house has a pressure regulator or a check valve, fit an expansion tank on the cold line, since a closed system has nowhere for heated water to expand.
Fit the T and P relief valve next. Most tanks ship with it installed, but check that it is tight and that the threads carry seal tape.
The discharge pipe must run at least the same size as the valve outlet. It runs downhill all the way with no traps and no valves, to the outside, ending 6 to 24 inches above the ground and pointing down. A discharge pipe that runs uphill, is capped or is undersized will fail inspection, and a valve that cannot open is a serious hazard.
The valve is set to open at 150 psi and 210 degrees F, the standard rating for residential tanks.
If the water lines need soldering, dry fit everything first, then sweat the threaded copper fittings before they go on the heat traps, and let them cool before fitting. Clean the inside of each joint and the end of each pipe with a sanding cloth or a fitting brush, apply flux, assemble and solder with a propane torch.
If soldering is outside your comfort zone, flexible supply lines with push to connect or compression fittings are a sound alternative. A pro can make the soldered joints in minutes.
Connect the gas line
The gas connection is the step that makes people nervous when they install a gas water heater, and that nervousness is useful. Work slowly, keep flames and sparks away, and test everything twice.
If any part of this section feels beyond you, stop and call a licensed plumber. A gas leak is not a learning opportunity.

Clean all threads with a wire brush and a rag before you start. Apply gas rated thread sealant or yellow gas rated tape to the threads of the black iron pipes as you connect them. Tighten each fitting with two pipe wrenches, one to turn and one to hold.
Ordinary white thread tape is not rated for gas, so do not use it here.
Fit a sediment trap in the gas line just after the shutoff valve and before the heater control. The trap is a short vertical leg with a cap at the bottom that catches dirt and moisture before they reach the burner. It is a small part, it costs little, and inspectors look for it, so do not skip it.
Run a new approved flexible connector from the shutoff valve to the heater gas control. Fit the union last, since it joins the new line to the old one. Apply gas rated pipe joint compound to the union flare connection.
Support the line so no weight hangs on the connections. A connector that is kinked, stretched or reused from the old tank must be replaced, not straightened out and hoped for the best.
Turn on the water supply now, before the gas. Open the cold valve at the tank and fill the tank with the hot faucets open, so air bleeds out of the system.
Watch the water joints as the tank fills, and tighten any fitting that weeps. Never light a heater with an empty tank.
Test every gas joint for leaks
Every job to install a gas water heater ends with a leak test, and this is the step you never skip or rush. Open the gas supply valve with the tank full of water and the burner still off.
Mix liquid dish soap and water in equal parts in a spray bottle or a sponge. Paint the solution over every new gas joint: the shutoff valve, the sediment trap, the connector and the inlet at the gas control.
A calm leak test is the difference between a safe job and a callback when you install a gas water heater.
Watch each joint for a full minute. Bubbles that grow or keep forming mean gas is escaping, and that joint must be tightened or refitted and tested again. A joint that stays dry and bubble free passes.
Test all of them, not just the ones that were hard to reach. Test again after the first heating cycle, since heat can loosen a joint that passed cold.
If a joint keeps leaking after a refit, shut the gas off and call a plumber. Do not use a flame to find a leak, and do not light the heater until every joint passes.
A gas leak you can smell is already a serious problem. Leave the house and call the gas company from outside if the smell is strong or you feel unsure.

Light the pilot and check the draft
To light the pilot after you install a gas water heater, follow the lighting instructions printed on the heater label, since the steps change slightly by model. Most new tanks have a built in igniter, so turn the knob to pilot, press the igniter and hold the knob until the pilot stays lit on its own. Home Depot says to press and hold the reset button for 60 seconds after the pilot ignites, then turn the knob to on and listen for the burner.

On a tank with a standing pilot and no igniter, remove the burner access panel. Turn the knob to pilot and hold a lit fireplace match or a barbecue lighter to the pilot opening. Press and hold the reset button for 60 seconds after the flame catches.
Turn the knob to on, and the burner should ignite. If the pilot will not stay lit, wait five minutes and try once more, then call a technician if it still will not hold.
Set the temperature to 120 degrees F. The Consumer Product Safety Commission recommends 120 degrees F to cut the scald risk, and Home Depot gives a range of 118 to 123 degrees.
At 140 degrees F, skin burns in about six seconds. At 120 degrees F, it takes about five minutes. The setting is worth getting right.
After you install a gas water heater, the draft test proves the vent works. Close the windows and doors, turn on the nearest hot water faucet, and wait for the burner to ignite. After a minute, hold a smoking match near the edge of the draft hood.
If the smoke draws up the vent pipe, the vent is drafting. If the smoke spills into the room or hangs still, the fumes are not venting right. Open the windows and doors at once and call a professional to inspect the vent before you use the heater again.
The inspection and the first day
The inspection after you install a gas water heater covers the gas connection, the venting, the straps, the relief valve discharge and the clearances. The inspector wants the maker instructions on site.
Keep the permit record afterwards, since it matters for insurance and for the day you sell the house. If the inspector flags a fix, do it and book the recheck before you call the job done. Keep the maker manual on site for the inspector when you install a gas water heater.
On the first day after you install a gas water heater, listen and look. The burner should fire with a steady blue flame, the tank should heat a full tank without rumbling, and every joint should stay dry.
Check the relief valve discharge pipe for drips, check the floor around the base, and check the water temperature at a tap. If the water runs cold after a full heating cycle, the thermostat setting, the dip tube or the tank size is the likely cause. A pro can sort it in one visit.
Flush the tank every 6 to 12 months to clear sediment, and test the relief valve once a year by lifting its lever briefly. If your town is phasing out new gas tanks, price a heat pump water heater before the next swap, since it may qualify for a rebate where you live. A switch to a tankless unit is a different job again, and our guide to install a tankless water heater explains the gas line and vent work it needs.
Fit a carbon monoxide alarm near the heater if the house does not have one, and test it monthly.
| First day check | What good looks like |
|---|---|
| Burner flame | Steady and blue, no yellow tipping or lifting |
| Water temperature | 120 degrees F at the tap after a full cycle |
| Gas joints | Dry, no smell of gas, soap test clear |
| Water joints | Dry, no weeping at the inlet, outlet or relief valve |
| Vent draft | Smoke match draws up the vent, no spill at the hood |
| Relief valve discharge | Dry pipe, routed outside and pointing down |
| Carbon monoxide alarm | Fitted near the heater, tested and working |
Seven gas mistakes that fail inspections
Most of the mistakes people make when they install a gas water heater come from the gas side, not the water side. The list below is the set of errors inspectors find most often, and each one is cheap to avoid and costly to fix after the fact.
- Reusing the old flexible gas connector. A connector that has been bent or heated is done. Fit a new approved connector every time.
- Using ordinary white thread tape on gas joints. Gas threads need gas rated sealant or yellow gas rated tape, and white tape is not rated for the job.
- Skipping the sediment trap. The trap catches dirt before the burner, and inspectors look for it just past the shutoff valve.
- Venting into a damaged or undersized flue. A rusted vent, a loose joint or a horizontal run with no upward slope will spill exhaust into the room.
- Capping the relief valve discharge or running it uphill. The discharge must run downhill to the outside with no valve and no trap in the line.
- Forgetting the permit. Unpermitted work can be flagged at a home sale, and insurers may deny a claim tied to it.
- Lighting the heater before the tank is full. A burner fired on an empty tank can damage the tank, so fill it and bleed the air first.
That is how to install a gas water heater the way an inspector wants to see it. The gas line is sized right, the vent is drafting, every joint is tested, and the permit is signed off.
The tank itself is the simple part. The care goes into the gas.
Related guides
- How to Install a Water Heater in 2027
- How Much Is a New Water Heater in 2027
- How to Flush a Gas Water Heater in 2027
- How Long Does a Gas Water Heater Last in 2027
Frequently Asked Questions
Can I install a gas water heater myself?
Yes, when the new tank matches the old one and you know basic plumbing. To install a gas water heater safely, let a licensed pro handle any gas line change, any vent work or any permit the town says needs a license.
Do I need a permit to install a gas water heater?
Yes, in most towns. Gas work always needs one. Most cities charge $25 to $300 for the permit, Angi reports, and the inspection checks the gas connection, the venting, the straps and the relief valve discharge.
How much does it cost to install a gas water heater?
Angi puts a standard tank replacement at $881 to $1,827 installed, with an average of $1,349, based on about 31,000 projects. A new gas line adds $260 to $820, and vent work adds more, so get the quote in writing with each line listed.
How long does it take to install a gas water heater?
A crew of pros normally needs 2 to 4 hours for a straight swap. Keep a full morning free, 4 to 6 hours, for your first one. Keep the day free in case a fitting fights back.
What size gas water heater do I need?
A 40 gallon tank suits two to three people, and a 50 gallon tank suits three to four. Check the first hour rating on the yellow EnergyGuide label. It tells you how much hot water the tank can give you in its busiest hour.
How do I know if the vent is working?
Hold a smoking match near the edge of the draft hood a minute after the burner ignites. If the smoke draws up the vent pipe, the vent is drafting. If it spills into the room, open the windows and call a professional before you use the heater again.
Sources: Angi water heater replacement cost data, updated October 2026. HomeAdvisor water heater installation cost guide, 2026.
Home Depot guide to installing a gas water heater, updated April 2025. CPI Service guide to gas water heater installation, updated October 2026. US Consumer Product Safety Commission guide 5098, on scalds from tap water.
Safety note: gas work can cause fire, explosion or carbon monoxide poisoning. If gas is in the air, get out of the house and phone the gas company from outside. Never use a flame to find a gas leak, and never light a heater until every gas joint has passed the soap test.




