How to Install a Tankless Water Heater in 2027
Most homeowners can install a tankless water heater in a day if a pro handles the gas line and the venting. The plumbing half is straightforward, but the gas and venting half is where mistakes turn dangerous. This guide walks through sizing, permits, tools, each step, the 2026 costs, and the point where you should stop and call a pro.
The old tank died on a Saturday. Dan found a puddle spreading across the garage floor at 7 in the morning, and by 8 the tank was cold and the house had no hot water.
A neighbour had swapped to tankless the year before and kept talking about endless showers. Dan liked the sound of that. So he decided to install a tankless water heater the next weekend.
He started by reading the manual, which is where most people should start and almost nobody does. This guide follows the same order Dan did: sizing and permits, then the old tank, then the new unit, then the gas line, the venting and the tests.
Two jobs inside one box
Think of the work as two jobs when you install a tankless water heater. The first job is plumbing. You mount a box on the wall, connect a cold line in and a hot line out, and fit valves you can reach later.
A confident homeowner with solid plumbing skills can do this half. The second job is fuel and air. A gas unit needs a gas line that can feed a burner up to 199,000 BTU, plus a vent that carries exhaust outside and brings fresh air in.
An electric unit needs a circuit that can carry a heavy load without tripping. That half is where the danger lives, and it is also the half most local codes want a licensed pro to sign off.
A tankless unit heats water only as it flows through, so it never runs out but it can only heat so many gallons a minute. That is how a tankless water heater works, and it is why sizing comes first.
I have read a dozen install guides that treat the whole job as one easy weekend project. Split it in your head before you split it on the wall, and the decisions get much easier.
A simple electric swap takes 4 to 6 hours to install a tankless water heater in the same spot. A gas install takes most of a day, and sometimes two days if a new gas line or a long vent run is needed.
What size unit your house actually needs
Size the unit before you install a tankless water heater, not after. A unit that is too small gives you lukewarm showers the first time two taps run together. A unit that is too big costs more and gains you nothing.
Sizing comes down to two numbers. The first is flow rate, measured in gallons per minute. The second is temperature rise, which is the gap between your cold incoming water and the hot water you want at the tap.
| Fixture | Flow rate |
|---|---|
| Shower | 1.5 to 2.5 gallons a minute |
| Kitchen faucet | 1.0 to 1.5 gallons a minute |
| Bathroom faucet | 0.5 to 1.0 gallons a minute |
| Dishwasher | 1.0 to 1.5 gallons a minute |
| Washing machine | 1.5 to 2.0 gallons a minute |
Add up the fixtures that might run at the same time. Two showers at 2 gallons a minute each plus a kitchen tap at 1.5 gives you 5.5 gallons a minute at peak. That is the number your unit must beat.
Then check the rise. The U.S. Department of Energy uses 120 degrees Fahrenheit as the target tap temperature. If your winter water comes in at 50 degrees, the unit must lift it 70 degrees.
The Department of Energy says gas units typically deliver 2 to 5 gallons a minute. Electric units manage less at a steep rise, so a cold climate home usually needs gas or a larger electric unit.
Here is the test Dan ran. His house has two showers and a dishwasher that often run together, about 5.5 gallons a minute at peak.
With 50 degree winter water, he needed a gas unit rated near 199,000 BTU. An electric unit would have needed a panel upgrade his house could not give it cheaply.
The Department of Energy also notes the payoff for sizing right. Tankless units run 24 to 34 percent more efficiently than a storage tank in homes that use 41 gallons of hot water a day or less. In homes using about 86 gallons a day, the edge is 8 to 14 percent.
A wrong size wipes out that edge. A unit that cannot keep up gets replaced, not repaired.
Tools and parts to have ready
Gather everything before you install a tankless water heater. A mid job trip to the store with the water off is the fastest way to turn a one day job into a two day job.

- Pipe wrenches and an adjustable wrench
- Tube cutter and deburring tool
- Drill, level, stud finder, lag screws and mounting bracket
- 3/4 inch copper pipe and fittings, or the pipe your manual calls for
- Full port isolation valves with hose bibs on both lines
- Temperature and pressure relief valve and discharge pipe
- Gas rated thread sealant and leak detection fluid
- Vent pipe and fittings to match the manual
- Condensate neutralizer and drain line for a condensing unit
- Bucket, garden hose, towels and a wet vac
The valves matter most. Fit full port isolation valves with hose bibs on the cold inlet and the hot outlet. They let you flush the unit later without cutting pipes.
They are the difference between a 30 minute descale and a plumber visit. Our guide to how to flush tankless water heater units shows why those valves pay for themselves.
Permits, codes and the inspection
Most towns want a permit before you install a tankless water heater. The work touches water, gas and power, so most building departments want to see it and inspect it. Call yours before you buy anything.
A permit usually costs $50 to $200, according to HomeGuide 2026 figures. The inspector checks the relief valve and its discharge pipe, the vent clearances and the gas connections.
A job that fails inspection stays shut off until it passes, so budget a day for the visit. One more paper point: the federal energy efficiency tax credit ended for equipment placed in service after December 31, 2025, according to the IRS.
Do not count on a federal credit for a 2026 install. Check your utility and your state for rebates, since amounts vary by place and program.
Take the old tank out first

The morning you install a tankless water heater starts with the old tank. Shut off its water supply, then kill its fuel. For a gas tank, close the gas valve.
For an electric tank, switch off the breaker and test that the power is really off. Then open a hot tap to release pressure, and close it again.
- Hook a garden hose to the drain valve and run it to a floor drain or outside, then open the valve and let the tank empty. A 50 gallon tank takes a while, so start this first.
- Disconnect the water lines and the gas line or the wiring. Cap the gas line at once if the new unit will not connect the same day.
- Unbolt the seismic straps if your area uses them, then lift the tank out with a helper. A 50 gallon tank weighs over 400 pounds when it still holds sediment and water, so do not rush this part.
Hauling the old unit away costs $75 to $500, according to HomeGuide, and many scrap yards take tanks free.
If you are switching from a tank, read how to drain a water heater first. The same steps apply, and the guide covers the sediment and the stuck drain valve that slow most people down.
Mount the new unit on the wall
Where you install a tankless water heater matters as much as how. Pick an inside wall near the gas meter, the water lines and an outside wall for the vent. Short pipe runs mean hotter water faster and less heat lost on the way.
Most units need space above for the vent, space below for the pipes and valves, and room in front to open the cover and service the heat exchanger.
Never mount one in a bedroom closet, or in a room where a leak would ruin a finished floor with no drain.
- Find the studs with a stud finder and mark them. The unit hangs on a bracket, and the bracket must bite into solid wood, not drywall alone.
- Fix the mounting bracket level. A tilted unit can trap air and give you flow errors, so check it with a level twice.
- Hang the unit on the bracket and lock it in place. Leave the front cover off until the pipes are done, so you can see every joint.
Water lines and the valves that save you later

Isolation valves are the part people skip when they install a tankless water heater, and they are the part they miss most a year later. Fit them now, while the pipes are open.
- Connect the cold supply to the inlet, marked blue on most units, and the hot line to the outlet, marked red. Use 3/4 inch pipe unless your manual calls for a different size.
- Fit a full port isolation valve with a hose bib on each line, with the bibs pointing where a hose can reach a bucket.
- Fit the temperature and pressure relief valve on the hot side and run its discharge pipe down to within 6 inches of the floor or to a safe drain. Never cap it and never plug it.
Pressurise the water side slowly and watch every joint. A drip now is a five minute fix, while the same drip behind drywall is a weekend of repair.
The gas line is where most installs go wrong
The gas line is the reason many people hire a pro to install a tankless water heater. A tank heater sips gas. A tankless burner gulps it, up to 199,000 BTU at full fire, and a line that fed a tank for 20 years often cannot feed a tankless unit at all.
Most old tanks run on a 1/2 inch gas line. Most tankless units need a 3/4 inch line. This Old House notes that some units can work on a 1/2 inch line only if the run is not longer than 24 feet.
Measure your run before you order parts. Get a pro to size the line if the run is long or the meter feeds other big appliances too. Gas work has no room for guessing.
If you smell gas at any point, stop work, open windows, leave the house and call your gas company from outside. Never hunt for a gas leak with a lighter. Torque specs are in the manual for a reason.
Test every gas joint with leak detection fluid or soapy water after the line is live. Bubbles mean a leak. No bubbles, no smell and a steady meter reading mean the joint is sound.
Venting and the condensate drain

Venting is the second reason to hire a pro when you install a tankless water heater. A gas unit burns fuel, and the exhaust has to leave the house through a sealed vent. Get this wrong and carbon monoxide can build up inside.
Condensing units can use PVC, CPVC or polypropylene vent pipe. Non condensing units need stainless steel, because their exhaust runs far hotter.
The manual for your model names the material, the size and the maximum run length. Follow it exactly, and keep the vent clear of windows, doors and air intakes by the distances the manual gives.
Condensing units also make acidic condensate, which is water that forms as exhaust cools. Run a drain line from the unit to a floor drain or a condensate pump, and fit a neutralizer if your code or the manual calls for one.
Power it up and test every joint
- Open the cold supply and let the unit fill. Open a hot tap and let the air purge until the water runs steady.
- Check every water joint for drips, then check every gas joint with leak detection fluid.
- Turn on the gas and the power, then set the temperature. The U.S. Department of Energy suggests 120 degrees Fahrenheit, which is hot enough for showers and low enough to cut scald risk.
- Run two showers and a tap together for five minutes. The water should stay hot and steady. If it goes lukewarm, the unit is undersized for that load or the gas supply is starved.
Test every joint after you install a tankless water heater, even the ones you are sure about. The best installers find their own leaks at this stage, because finding them now costs nothing and finding them later costs a ceiling.
Write the install date and the model number on a card near the unit. A tankless unit that gets flushed once a year lasts more than 20 years, according to the Department of Energy, while a storage tank lasts 10 to 15 years.
That gap is the reward for the maintenance, and it starts with the valves you fitted earlier. The full comparison is in our guide on how long a water heater lasts.
What a pro install costs in 2026
| Item | Typical range |
|---|---|
| Gas tankless unit, installed | $2,100 to $5,600 |
| Electric tankless unit, installed | $1,400 to $3,000 |
| Gas line upsizing | $350 to $2,000 |
| Vent replacement | $100 to $600 |
| Dedicated circuit | $250 to $900 |
| Permit | $50 to $200 |
| Old tank removal | $75 to $500 |
The full bill to install a tankless water heater lands where the adders land. A like for like swap in the same spot with a short vent run sits near the low end. A first time conversion with a new gas line, a long vent run and a panel upgrade sits near the high end.
The adders can cost more than the unit itself, so get three written quotes before you commit. Ask each installer to list the unit, the gas line work, the venting, the permit and the haul away as separate lines.
Two quotes that look $1,000 apart often differ by one missing line, not by one better price. That comparison is also how you check whether a tankless water heater is better than a tank for your house. Our earlier guide works through it with real payback math.
Mistakes that cost real money
- Skipping the sizing math and buying the unit on price alone.
- Reusing a 1/2 inch gas line that cannot feed the burner.
- Venting a condensing unit with the wrong pipe, or a non condensing unit with PVC.
- Leaving out the isolation valves, then paying a plumber to cut pipes for the first flush.
- Setting the temperature above 140 degrees and living with scald risk and scale.
- Skipping the permit, then failing a home inspection at sale time.
When to stop and call a licensed pro
Call a licensed pro if any of these apply:
- A new gas line is needed.
- The vent run is long or has no clear path outside.
- The electrical panel needs a new circuit or an upgrade.
- Your town will not let a homeowner pull the permit.
- You smell gas at any point.
None of these is a failure. They are the lines the job draws for you.
A pro install also protects the warranty, since some makers void it when an unlicensed install goes wrong. The cheapest install is the one you only pay for once.
Safety note: gas, electricity and water under pressure can each hurt you, and together they demand respect. If you smell gas, get out of the house and call your gas company from outside.
If you are unsure about any gas, venting or wiring step, stop and hire a licensed pro. This guide explains the process. It does not replace your manual, your local code or a licensed installer.
Related guides
- How Does a Tankless Water Heater Work in 2027
- How Much Is a Tankless Water Heater in 2027
- Is Tankless Water Heater Better Than a Tank in 2027
- How to Flush Tankless Water Heater Units in 2027
- What Is the Best Tankless Water Heater in 2027
- What Is a Heat Pump Water Heater in 2027
- How Does a Heat Pump Water Heater Work in 2027
Frequently Asked Questions
Can I do this job myself?
Yes, for a straight electric swap in the same spot, if you have solid plumbing and wiring skills and your town allows it. Gas installs usually need a licensed pro for the gas line, venting and permit.
How long does it take to install a tankless water heater?
A simple electric swap takes 4 to 6 hours. A gas install takes most of a day, and sometimes two days if a new gas line or a long vent run is needed. Add a day for the inspection visit.
Do I need a permit for this job?
In most towns, yes, because the work touches water, gas and power and most building departments want to inspect it. A permit usually costs $50 to $200, so call your building department before you buy the unit.
What size gas line does a tankless water heater need?
Most units need a 3/4 inch line, because the burner can draw up to 199,000 BTU. Some units work on a 1/2 inch line if the run is not longer than 24 feet, according to This Old House. Get a pro to size the line for your run.
What temperature should I set a tankless water heater to?
The U.S. Department of Energy suggests 120 degrees Fahrenheit. That is hot enough for showers and low enough to cut scald risk and slow scale buildup.
How often does a tankless water heater need flushing?
Once a year in most homes, and twice a year if your water is hard. The isolation valves you fit at install time make the flush a 30 minute job.
Sources for the figures in this guide: the U.S. Department of Energy Energy Saver page on tankless water heaters, and the HomeGuide 2026 tankless installation cost guide.
Install steps and gas line guidance come from This Old House and Fine Homebuilding. The tax credit end date comes from an IRS FAQ from 2025. Flow rates and efficiency figures come from the U.S. Department of Energy.




