Skip to content
HeaterGuides
Tankless Water Heaters

Gas Tankless Water Heater Installation in About 1 Day

On this page 8 sections
  1. How To Install A Gas Tankless Water Heater
  2. Check Permits, Gas Supply, And Venting First
  3. Gather The Right Tools And Service Parts
  4. Mount The Unit And Connect Water Safely
  5. Avoid The Mistakes That Cause Leaks Or Damage
  6. Know When A Licensed Pro Is Required
  7. Run A Final Buy-Or-Call Checklist
  8. Questions People Ask
At a glance
Installing a gas tankless water heater usually takes most of a day for a straightforward replacement, and it is not a simple DIY job because gas, venting, combustion air, and water connections all have to land exactly right. Get one part wrong and you can buy leaks, no-hot-water complaints, or a carbon monoxide problem nobody wants.

A clean install starts before the old heater comes out. You need the right clearance, the right gas supply, the right vent parts, and a model that fits the job instead of fighting it.

If the unit is replacing a tank, the hardest part is often the hidden one: gas sizing and venting. That is where the money goes and where most of the trouble starts.

How To Install A Gas Tankless Water Heater

boiler installation: How To Install A Gas Tankless Water Heater

Installing a gas tankless water heater starts with a permit check and the manufacturer’s manual, then moves through turning off utilities, mounting the unit at listed clearances, connecting water lines with service valves, running gas and venting to spec, and finishing with startup and leak checks. Most homeowners can handle site prep and mounting, but gas piping, venting, and final startup are jobs for a licensed plumber or HVAC technician unless local code and your skills clearly allow more.

Gas work carries real risk. Get the venting wrong and carbon monoxide can back-draft into the house. Undersize the gas line and the burner won’t hit rated capacity. Skip the expansion tank or backflow preventer and you can buy a callback or a code violation the day an inspector shows up. The steps below walk through what happens in order, with warnings where mistakes turn expensive or dangerous.

1
Check permits and read the manual
Pull the manufacturer’s installation manual for your specific model and check whether your city or county requires a permit for gas work, venting changes, or water heater replacement. Some jurisdictions allow homeowner permits for gas appliances; others require a licensed contractor to pull the permit and sign off on the work. The manual lists required clearances, venting materials, gas pipe sizing, and whether the unit needs an expansion tank or a drain pan.
2
Turn off gas, water, and power
Shut the gas valve on the supply line to the old heater, then turn off the cold water inlet valve and the circuit breaker or switch feeding the heater’s controls. Open a hot tap somewhere in the house to relieve pressure, then attach a garden hose to the drain valve on the old tank and run it to a floor drain or outside. Drain the tank completely before disconnecting anything.
3
Disconnect and remove the old heater
Once the tank is empty and cool, disconnect the gas line at the union or flare fitting, then disconnect the cold inlet and hot outlet water lines. If it’s a tank heater, disconnect the vent pipe at the draft hood. Lift or dolly the old unit out of the space, and inspect the gas pipe, water lines, and vent collar for corrosion or damage that needs fixing before the new unit goes in.
4
Mount the new tankless unit
Mark the wall at the height and location the manual specifies, checking clearances to combustibles, the ceiling, and any doors or windows. Most gas tankless units need at least six inches from sidewalls and twelve inches below the ceiling; check your model’s listing. Drive lag bolts or toggle anchors into studs or solid backing, hang the mounting bracket, and lift the unit onto it. The case should sit level and plumb.
5
Connect the water lines with service valves
Run a cold inlet line and a hot outlet line to the threaded connections on the unit, installing isolation valves on both sides so you can service the heater later without draining the whole house. Add a pressure relief valve on the hot side if the manual requires one, and pipe its discharge line to a safe termination point—never capped or plugged.
6
Run the gas line and install the vent
Size the gas pipe to the BTU rating in the manual and the length of the run, using black iron or CSST approved for the fuel type. Connect at the unit’s gas inlet with a union or flare fitting, and install a shutoff valve and a sediment trap within six inches of the heater. Vent the unit with the materials and configuration the listing requires—usually Schedule 40 PVC, CPVC, or stainless steel, with joints sealed and pitched correctly for condensate drainage if it’s a condensing model. Terminate the vent and combustion air intake per code, keeping them clear of windows, doors, and property line
7
Perform startup, leak checks, and temperature setting
Open the gas shutoff and water isolation valves, then check every gas joint with soapy water or leak detector solution while the line is pressurized. Open a hot tap to purge air from the water lines, then power on the unit and follow the manual’s startup sequence. Set the output temperature—120°F is standard for scald safety—and let the heater run through a full cycle while you watch for leaks, error codes, or flame rollout. Flush the unit per the manual to clear any debris from installation, then close up and label the shutoff valves.
Xiny Tool 3/4-Inch IPS Isolator Tankless Water Heater Service Valve K…
For service valves on 3/4-inch water lin
Xiny Tool 3/4-Inch IPS Isolator Tankless Water Heater Service Valve K…
The Xiny Tool service valve kit gives you color-coded isolation valves, integrated drain ports, and a pressure relief valve in one package, all rated for 500 WOG and made from lead-free brass. It won’t solve undersized gas piping or venting problems.
See current price
Gas and venting mistakes create hazards
Undersized gas pipe starves the burner and trips error codes. Improper venting can spill combustion gases into the room, and a missing or wrongly terminated pressure relief valve can turn a closed system into a bomb. If you aren’t confident sizing gas pipe to pressure drop tables and running vent per the listing, hire a licensed pro. The callback costs more than the visit.
Why service valves matter
Isolation valves on both the cold inlet and hot outlet let you shut off water to the heater for descaling, filter changes, or repairs without shutting down the whole house. The drain ports built into most service valve kits make flushing simple—attach a hose, open the port, and run vinegar or descaler through the heat exchanger once a year.
Myth
A tankless unit installs in the same footprint as a tank heater
Fact
Tankless units mount on the wall and need clearances to combustibles, plus dedicated venting and sometimes a larger gas line. The footprint is smaller, but the install touches more systems and almost always requires new vent pipe, relocated gas connections, and an electrical outlet for the controls.

The license question comes down to local code and your own skill with gas pipe, venting, and pressure testing. In many jurisdictions a homeowner can do the work with a permit, but the permit office or the gas utility may require a pressure test and inspection before they’ll turn the meter back on. If the manual calls for venting materials or combustion air calculations you haven’t done before, or if the gas line needs upsizing from half-inch to three-quarter-inch over a long run, the math and the liability both favor calling a licensed plumber or HVAC contractor who carries the insurance and knows the local inspector.

Check Permits, Gas Supply, And Venting First

boiler installation: Check Permits, Gas Supply, And Venting First

Gas line sizing, vent type, combustion air, and clearances decide whether the install is possible. A gas tankless water heater can’t drop into place like a space heater; it needs a gas supply big enough to feed its BTU rating, a vent path to the outside, and enough air to burn cleanly. Get one of those wrong and the unit won’t fire, won’t stay lit, or won’t pass inspection.

Indoor gas tankless models need venting to the outside and can’t be treated like a plug-in appliance. They pull combustion air from the room or from a dedicated intake, then exhaust combustion gases through a vent pipe—usually two-pipe PVC or concentric stainless, depending on the manual. Tankless water heater installation guidelines spell out minimum vent diameter, maximum run length, and the number of elbows allowed. Vent-free gas heaters are a different category, often restricted by state or local code, and this page covers vented gas tankless water heaters only.

Permits are commonly required for gas, venting, and plumbing changes, and a utility or code inspection may follow. Call your local building department before you buy; some jurisdictions want a licensed plumber or gas fitter to pull the permit, which means they’re doing the work. Others allow a homeowner permit but still require inspection of the gas piping, vent routing, and combustion setup.

Who installs tankless water heaters
Gas piping, vent routing, and combustion setup are licensed-pro work in many places. Hot water and gas codes vary by jurisdiction, so check with your local building department before ordering parts or starting the job.
What to checkWhy it mattersWhere to look
Gas supply line sizeUndersized pipe can’t deliver the BTU loadHeater manual lists minimum pipe diameter and length
Vent path to outsideNo outdoor termination means no installManual shows maximum run, rise, and elbow count
Combustion air sourceStarved combustion produces COManual specifies room size or dedicated intake
Wall and ceiling clearancesToo close to combustibles is a fire riskInstallation sheet lists minimum inches
Four pre-purchase checks that decide whether the location works.
Carbon monoxide risk
Never install an outdoor, patio, or construction heater indoors. Only indoor-rated tankless units with proper venting and a working CO alarm belong inside a home.

Gather The Right Tools And Service Parts

You’ll need shutoff valves, vent parts, pipe fittings, sealants approved for the job, and basic hand tools. The heater manual lists required fittings and vent components by part number; buy those first so you’re not improvising halfway through. Fittings and sealants must match the heater manual and local code—yellow CSST flex line needs different fittings than black iron pipe, and not every thread sealant is rated for gas or potable water.

boiler installation: Gather The Right Tools And Service PartsTools and parts checklist
Adjustable wrench and pipe wrench
Tubing cutter or hacksaw
Drill and masonry bit for wall anchors
Level and tape measure
Gas-rated pipe thread sealant or tape
Isolation valves for hot and cold water lines
Pressure relief valve if not included with the unit
Vent pipe, elbows, and termination cap per the manual
Gas flex line or black iron fittings as required
Leak-test solution or soapy water

A service valve kit makes maintenance and isolation straightforward, since it supports flushing and future service. Most residential gas tankless installs use 3/4-inch IPS connections, and color-coded hot and cold valves keep things clear when you’re descaling the heat exchanger a year from now.

Xiny Tool 3/4-Inch IPS Isolator Tankless Water Heater Service Valve K…
For 3/4-inch residential installs
Xiny Tool 3/4-Inch IPS Isolator Tankless Water Heater Service Valve K…
The kit includes hot and cold isolation valves, a pressure relief valve, and drain ports with brass caps. It fits standard residential water lines and simplifies annual flushing, but you’ll still need separate gas shutoff and vent components.
See current price

Installation cost depends on whether you’re replacing a tank heater or starting from scratch. A straightforward swap—same gas line size, same vent path—runs less than a job that needs new gas piping, a longer vent run, or a dedicated air intake. Labor runs several hundred dollars in most markets, and parts add another hundred or two. If the gas line is undersized or the vent path blocked, expect more.

Match the manual
Every gas tankless model specifies vent material, pipe sealant, and minimum clearances. Generic parts that work on one brand may void the warranty or fail inspection on another.
From HeaterGuides · our own guideTankless? Page 8 is the descaling routine, page 15 checks the size.Water Heater Owner's Toolkit: the printable guide and its Excel calculatorWater Heater Owner's ToolkitFix the common faults yourself, keep it running for years, and know when a repair is money wasted.No-hot-water flowcharts, gas and electricFlush, anode, relief valve and descaling stepsRepair-or-replace calculator (Excel)$14.99 $9.99Get it for $9.99See what's inside and watch the 2-minute video →18-page printable PDF + Excel calculator · instant download · 30-day refund

Mount The Unit And Connect Water Safely

boiler installation: Mount The Unit And Connect Water Safely

Installing tankless water heater inside requires a wall that can carry the unit’s weight and stay flat enough for the bracket to seat properly. Most gas tankless units weigh between 40 and 80 pounds dry, and the bracket must land on studs or solid backing. Mark the holes, check level in both directions, and drive lag bolts through the bracket into framing. If the wall bows or the bracket tips, water and gas fittings will strain and leak.

1
Mount the bracket
Fasten the bracket to wall studs or a plywood backer using lag bolts, checking level in both planes. Hang the unit and confirm it sits flush.
2
Install isolation valves
Thread ball valves onto the hot and cold inlets so you can shut off water for future service without draining the whole house. Use two wrenches to avoid twisting the unit’s ports.
3
Connect water lines
Run copper, PEX or CSST from the supply to the isolation valves, using fittings rated for potable water and the pressure in your system. Keep runs short and support them every few feet.
4
Flush the lines
Open the cold valve and let water run through the unit and out the hot side into a bucket until it runs clear. Debris left in the pipes will clog the inlet screen and slow flow.
Drain pans
Tankless water heater drain pans are not always required because most units vent condensate through a dedicated line, but check local amendments and the manufacturer’s listing. If code or the install manual calls for one, slope it toward a drain and pipe the outlet to a floor drain or outside.
Pressure test before closing walls
Water connections can weep for days before you notice. Pressurize the system, close the isolation valves, and check every joint for droplets or damp spots before you cover anything or move to gas work.
Worked example
Say you’re replacing a 40-gallon tank in a garage with a condensing tankless unit. Mounting the bracket and making water connections usually takes 90 minutes to two hours if the studs line up and the supply valves are close. Flushing the lines adds another fifteen minutes. Budget three hours total for the water side before gas, venting and startup.
Wall prep and bracket30 min
Isolation valves and connectio60 min
Flush and pressure test30 min

Avoid The Mistakes That Cause Leaks Or Damage

Over-tightened fittings crack brass ports and compression ferrules, leaving slow leaks that show up weeks later. Snug the fitting until it stops, then a quarter to half turn more. Forcing it another full turn deforms the threads.

  • Wrong vent material: using schedule 40 PVC on a non-condensing unit melts the pipe when flue gas hits 300°F or more. Tankless water heater installation instructions specify stainless steel or aluminum for standard-efficiency models and schedule 40 or 80 PVC, CPVC or polypropylene for condensing units.
  • Undersized gas supply: a ½-inch line that fed a tank heater won’t keep up with a tankless unit pulling 180,000 to 199,000 BTU. Flow drops, the burner cycles, and you get cold water mid-shower. Size the line to the input rating and the length of the run.
  • Skipped condensate management: condensing models make acidic water that must drain to a floor drain, utility sink or neutralizer. Letting it puddle on the floor eats concrete and corrodes metal.
  • Poor vent support: a ten-foot horizontal run needs hangers every three to four feet or it sags, traps condensate, and blocks airflow. Follow the spacing in the manual.
  • Wrong sealant or mixed fitting types: pipe dope rated for natural gas only will leak with propane. Mixing compression and flare fittings leaves gaps. Match the sealant to the fuel and use one fitting standard throughout.
Temperature and scaling
Setting outlet temperature above 125°F raises scald risk at every faucet and accelerates mineral scaling inside the heat exchanger, especially in hard-water areas. Most households run 120°F; anything higher needs tempering valves at fixtures used by children or elderly residents.
Myth
You can skip flushing the lines because new pipe is clean
Fact
New copper and PEX shed flux, filings and plastic dust that clogs the inlet screen and the heat exchanger’s narrow passages. Flushing before first ignition takes five minutes and prevents a service call in the first month.

Know When A Licensed Pro Is Required

Gas piping, venting, and combustion air calculations are natural gas heater installation work that most jurisdictions require a licensed plumber or HVAC contractor to perform. Electrical work for 120 V controls or ignition circuits often falls under the same rule. You can prep walls, shut off water, and stage parts, but connecting the gas line, running the vent, and firing the unit for the first time is where your permit, your insurance, and code enforcement expect a professional with a license number on file.

Nearly every city and county requires a permit and inspection when you replace a gas-fired appliance. The inspector checks clearances, vent termination, gas line sizing, leak testing, and combustion air. Skipping the permit leaves you with an unpermitted appliance that can stall a home sale and void both the manufacturer’s warranty and your homeowner’s insurance if something goes wrong.

Electric units
Electric tankless heaters still need a permit in most places, especially when the install adds a new 240 V circuit or upgrades the panel. Check with your local building department before assuming electric means permit-free.

Upsizing the gas line, cutting a new vent path through the roof or sidewall, or figuring out whether combustion air is adequate all push the job firmly into professional territory. Here’s a simple rule: if you have to ask whether the gas line is big enough, stop and get it checked. Guessing wrong starves the burner, triggers nuisance shutdowns, and can produce incomplete combustion that sends carbon monoxide into the house.

Carbon monoxide risk
Gas appliances that vent improperly or draw combustion air from confined spaces can produce dangerous levels of CO. Licensed pros size vents and air supply to the appliance input rating and test for spillage. DIY installs that skip those checks put everyone in the building at risk.

Run A Final Buy-Or-Call Checklist

Buy the heater only after you’ve confirmed vent type, gas supply, clearances, and permit requirements. Ordering first and discovering later that the vent won’t fit or the gas line needs upsizing leaves you with a unit you can’t install and a return shipping charge you don’t want.

Before you buy or start work
Sized the unit to peak simultaneous flow, not just one fixture
Confirmed gas type (natural or propane) and line pressure
Checked vent type (concentric, separate intake and exhaust, or power vent) against the house
Measured clearances to combustibles and verified they meet the manual
Called the building department and know whether a permit is required
Located shutoff valves for gas and water, or have a plan to install them
Confirmed at least 18 inches of service clearance in front of the unit
Have the name and number of a licensed plumber or contractor if any answer is uncertain

Service valves belong in every tankless install because they let you flush the heat exchanger, isolate the unit for repairs, and drain the lines without shutting off water to the whole house.

Xiny Tool 3/4-Inch IPS Isolator Tankless Water Heater Service Valve K…
For installs moving ahead
Xiny Tool 3/4-Inch IPS Isolator Tankless Water Heater Service Valve K…
Brass isolation valves with integral drain ports and a pressure relief valve rated for potable water. Color-coded handles keep hot and cold clear during maintenance, and the drain caps let you flush descaling solution without disconnecting pipes.
See current price

Uncertainty on gas work is never a bargain. Call a licensed pro if you’re unsure about line sizing, vent termination, or combustion air, and let the permit and inspection close the loop. You’ll sleep better, and so will your insurance adjuster.

Questions People Ask

How long does it take to install a gas tankless water heater?
A straightforward swap of an existing gas unit runs six to eight hours for a licensed plumber with the vent transition and gas line already sized right. Adding new vent pipe, upsizing the gas line from the meter, or moving the unit to a different wall can push the job into two days. Permit inspections add waiting time but no extra work hours.
Can I install a gas tankless water heater myself?
Most jurisdictions require a licensed plumber or HVAC contractor to run gas pipe, size combustion air openings, and connect the vent, even if you own the house. Electric connections at 120 V for the control board fall into a gray area in some places, but 240 V work and anything that vents combustion gases are not DIY jobs. Pull the permit and hire the trade; the inspector checks their work, not yours.
Do you need a permit to install a gas tankless water heater?
Yes in nearly every city and county, because gas piping, venting, and water heater replacements trigger mechanical and plumbing permit requirements. The permit covers plan review for vent routing and combustion air, a rough-in inspection before you close walls, and a final inspection before the gas stays on. Skipping it voids the warranty and can complicate insurance claims after a leak or fire.
Where are tankless water heaters installed indoors?
Utility rooms, basements, and garages are common spots because vent routing is shorter and combustion air is easier to supply. Some manufacturers list closet-mount models that pull combustion air through a sealed vent, keeping room air out of the burn chamber. Wall clearances to combustibles and vent termination rules decide which wall works; the manual’s installation drawings show the limits.
What size gas line do I need for a tankless water heater?
A 199,000 BTU unit typically needs ¾-inch black iron pipe if the run from the meter is under 40 feet, and 1-inch pipe beyond that or for higher-BTU models. Sizing charts in the National Fuel Gas Code account for pipe length, fitting count, and pressure drop; most inspectors want to see the calculations on the permit application. Copper CSST is an alternative where code allows it, sized by the manufacturer’s tables.
What venting does a gas tankless water heater need?
Condensing units use PVC or CPVC vent pipe because exhaust temperature stays below 140°F; non-condensing models need stainless steel or Category III vent rated for 300°F-plus gases. Vent diameter, maximum length, elbow count, and termination clearances all come from the installation manual, and the inspector checks every dimension. Direct-vent and power-vent configurations are both common; the first pulls combustion air through a sealed intake, the second uses a fan to push exhaust out.
What mistakes cause leaks during tankless water heater installation?
Over-tightening compression fittings and threaded brass ports cracks the metal and leaves slow drips that appear days later when thermal cycling loosens the joint. Forgetting to wrap threads with the right sealant—Teflon tape for water, pipe dope rated for gas—lets leaks start at first pressure. Mixing dissimilar metals without a dielectric union sets up galvanic corrosion that eats through copper-to-steel joints in a year or two.

Joye Editor

HeaterGuides covers home heating, water heating and HVAC: how the equipment works, what it costs to run, and how to use it safely.

More in Tankless Water Heaters