
A tankless water heater installation involves more than mounting a new unit where the tank stood. The new heater needs its own gas or electrical capacity, a venting path, and a relief valve discharge pipe that meets local code. Most jurisdictions also require a plumbing permit.
What changes when you move from a tank to tankless
A tank stores hot water and reheats it, so its key rating is the First-Hour Rating, the estimate of how much hot water it can supply within an hour starting fully heated. A tankless unit heats water only when a fixture opens, so its key rating is the Maximum GPM, the maximum gallons per minute of hot water it can supply. Those two numbers are not interchangeable, so do not size a tankless unit by comparing it with your old tank's capacity.
According to the U.S. Department of Energy, most storage water heaters last 10 to 15 years, while tankless water heaters can last more than 20 years. Efficiency is measured by the Uniform Energy Factor (UEF), so compare UEF figures when you weigh models. The DOE also notes that water heating is about 18% of a home's energy use, which makes efficiency worth checking.
Sizing checklist
- List every shower, faucet, dishwasher and washer that might run at the same time.
- Estimate each fixture's flow. Federal maximum flow rates for showerheads are 2.5 gallons per minute at 80 psi, and for lavatory and kitchen faucets 2.2 gallons per minute at 60 psi, so use these as a baseline for new fixtures.
- Add the peak flow and compare it with the unit's Maximum GPM at your cold water temperature.
- Decide whether the unit will run on gas or electricity, since that choice drives most of the utility work.
Venting and condensate for a tankless water heater installation
Gas tankless units burn fuel and must exhaust combustion gases outdoors. Most models are direct vent, which draws combustion air through one pipe and exhausts through another, or they use a power vent with a fan. Each type has its own vent material, length limits and termination rules set by the manufacturer's instructions and your local code, so do not mix parts from different systems.
Condensing models cool the exhaust enough that water vapor condenses into liquid. That condensate must drain to an approved point, often a floor drain or a dedicated condensate line, and some local codes require a neutralizer before it leaves the house. Check the drain route before you buy the unit, because a long or awkward route can dictate where the unit can go.
Old chimneys are a common trap. A chimney sized for a tank heater's draft and exhaust is not automatically right for a tankless unit. Do not reuse a chimney or liner without an evaluation that follows the manufacturer's instructions and local code. According to the CPSC, carbon monoxide alarms should be installed on every level of the home and outside sleeping areas.
Gas line and electrical upgrades
Gas line
Tankless units often have a higher gas input than a tank heater in the same capacity class, so the existing line may need upsizing. The right pipe size depends on the unit's input rating, the length of the pipe run, and every other gas appliance on the same line. Ask the installer to calculate the load and check the meter and regulator, then confirm the plan with your local building department.
Plan for an accessible gas shutoff near the unit and for a sediment trap, sometimes called a drip leg, where your local code requires one. Keep the gas connection serviceable, since you will need to reach it for maintenance and future repairs.
Safety first: If you smell gas, leave the home right away, avoid operating light switches or appliances, and call the gas utility or 911 from outside.
Electrical
Electric tankless units draw a large current, so they often need a dedicated circuit sized for the unit and sometimes a service upgrade. Gas models still need a standard power connection for controls, ignition and, on many designs, an exhaust fan. Before you touch any wiring, turn off the breaker, confirm the circuit is dead with a voltage tester, and only then start the work.
Isolation valves, relief valve and water connections
Install isolation valves on both the cold supply and the hot outlet so you can service the unit without shutting off water to the whole house. A drain valve or service connection makes annual flushing practical, which removes mineral scale in hard-water areas and keeps the heat exchanger working well.
The temperature and pressure (T&P) relief valve protects the unit from excess pressure and temperature. Its discharge pipe must follow International Plumbing Code 504.6 and International Residential Code P2804.6.1 (2021 editions, as summarized by the International Code Council):
- no direct connection to the drainage system
- ends in an air gap in the same room
- not smaller than the valve outlet
- not trapped, and drains by gravity
- ends no more than 6 inches above the floor or a waste receptor
- no threaded end, and no valves or tees
- the pipe is rated for 100 psi at 180°F
A temperature and pressure relief valve must never be capped or plugged.
Set the water temperature to 120°F. According to the U.S. Department of Energy, 120°F is considered safe for most of the population, while people with a compromised immune system or chronic respiratory disease may want to keep it at 140°F. According to the CPSC, third-degree burns can occur after about 2 seconds at 150°F, about 6 seconds at 140°F, about 30 seconds at 130°F, and after about 5 minutes at 120°F.
Location, clearances and earthquake bracing
Choose a spot with a nearby drain, a reachable service area, and a wall or framing that can carry the unit's weight. Leave room for the vent to terminate correctly and for the condensate line to run downhill. Outdoor installs need weather and freeze protection that matches the manufacturer's instructions.
In a garage, the International Residential Code (P2801.7 and M1307.3) requires the ignition source of appliances to be at least 18 inches above the floor, as cited by the North Carolina State Fire Marshal. Some states have exceptions, and North Carolina has exempted electric water heaters since 2024. According to the CPSC, gas water heaters made after July 1, 2003 with FVIR (flammable vapor ignition resistant) design resist igniting flammable vapors.
- In California, Health and Safety Code section 19211 requires water heaters to be anchored or strapped to resist falling or moving in an earthquake.
- Sellers must certify to buyers that the water heater is braced, according to Cal OES.
Permits and inspections
Many jurisdictions require a plumbing permit to install or replace a water heater. The City of San Diego, for example, states that a plumbing permit is required for the installation of a water heater, including replacements. Permit rules, required inspections, and whether gas or electrical work needs separate permits vary by state and city, so check with your local building department before you order equipment.
Ask who will pull the permit, since some installers handle it and some leave it to the homeowner. Ask which inspections will be scheduled and whether the final inspection record will be given to you, because you may want that paperwork when you sell the home.
Choosing who does the work
Get at least two written quotes and compare the scope of work, not just the total. Check the contractor's license with your state licensing board where licensing applies, and ask about permits and who pulls them. Then ask what is included:
- Are gas or electrical upgrades, venting, the condensate drain, isolation valves and relief valve piping part of the price?
- Is haul-away of the old tank included?
- Are code upgrades included, and who registers the warranty?
Common mistakes to avoid
- Sizing the unit by the old tank's capacity instead of peak flow demand.
- Reusing an old chimney or vent pipe without evaluation.
- Capping the relief valve or running its discharge pipe into a dead end.
- Skipping the gas line load check and assuming the existing pipe is large enough.
- Skipping the annual flush in hard-water areas, which leads to scale buildup and reduced performance.
Frequently asked questions
Can I handle a tankless water heater installation myself, or do I need a pro?
Some homeowners do the prep work, such as clearing the space and confirming where the gas meter and electrical panel are. Gas, venting, condensate and relief valve work all carry code rules, and many jurisdictions require a permit and inspection. Check with your local building department about who may pull the permit, then get at least two written quotes from installers whose licenses you have verified with your state board.
Does a tankless unit usually need a bigger gas line than my tank heater?
Often, yes. Tankless units commonly have a higher gas input than a tank heater, so the existing line, meter and regulator may need to be checked and upsized. The right size depends on the unit's input rating, the length of the pipe run, and every other gas appliance on the same line. Ask the installer to calculate the load and confirm the work meets your local code.
Where does the relief valve discharge pipe have to end?
The discharge pipe must drain by gravity and end in an air gap in the same room, no more than 6 inches above the floor or a waste receptor. It cannot connect directly to the drainage system, cannot be trapped, and cannot be smaller than the valve outlet. Do not thread the end, add valves or tees, or cap the relief valve. These rules come from International Plumbing Code 504.6 and International Residential Code P2804.6.1, and your local code may add requirements.
Do I need a permit to replace a tank with a tankless unit?
Usually, yes. Many jurisdictions require a plumbing permit to install or replace a water heater, and the City of San Diego states that a permit is required for water heater installations, including replacements. Whether gas or electrical work needs its own permit varies, so check with your local building department before the work starts.
Can a gas tankless water heater go in the garage?
It can, but the location rules matter. The International Residential Code requires the ignition source of garage appliances to be at least 18 inches above the floor, as cited by the North Carolina State Fire Marshal. Some states have exceptions. According to the CPSC, gas units made after July 1, 2003 with FVIR design resist igniting flammable vapors. Confirm your local rules before you choose a spot.
How long does a tankless water heater last compared with a tank?
According to the U.S. Department of Energy, most storage tank water heaters last 10 to 15 years, while tankless water heaters can last more than 20 years. Actual life depends on water quality, maintenance and the quality of the installation itself. Correct venting and drainage, plus an annual flush in hard-water areas, help a tankless unit reach its design life.