Skip to content
HeaterGuides
Water Heater

What Size Gas Line Does Your Water Heater Need?

On this page 12 sections
  1. Why Gas Line Size Matters (Safety and Performance)
  2. The Two Types of Water Heaters and Their BTU Demands
  3. How Gas Line Sizing Works: BTU, Length, and Pressure Drop
  4. The Step-by-Step Sizing Calculation (With a Real Example)
  5. Branch Line vs. Main Line: What You’re Actually Sizing
  6. Quick Reference Chart: Pipe Size vs. Maximum BTU
  7. Is Your Gas Meter Big Enough?
  8. Flexible Connectors vs. Rigid Pipe: What’s Allowed?
  9. What to Do If Your Line Is Too Small
  10. When to Call a Licensed Plumber (and Why DIY is Risky)
  11. Frequently Asked Questions
  12. Final Checklist Before You Buy Pipe

You just bought a new water heater, and the installer asks what size gas line feeds the old one. You have no idea. Or maybe you’re swapping a 40-gallon tank for a tankless unit and the salesperson said something about needing a bigger gas line. This is where most people get stuck.

The answer isn’t a single number. It depends on the heater’s BTU rating, the distance from the gas meter, the pipe material, and what else is running off the same line. Get it wrong and you’ll have weak flames, long recovery times, or worse — a gas leak. This guide walks you through the math so you can figure out your exact size in about five minutes.

See this product on AmazonCheck price on Amazon

You’ll learn how to read your heater’s nameplate, how to account for pipe length and pressure drop, and when to call a pro. I’ll also show you why the branch line to your heater is different from the main trunk line, and what to do if your current line is undersized.

If you’re replacing an existing water heater, a flexible gas connector like the Alloxity 48-inch flex gas line can make the final hookup easier. It’s built with 304 stainless steel, comes with six different fittings, and is CSA-certified for indoor and outdoor use. That said, the connector is only the last foot or two — the real sizing question is about the pipe that feeds it.

What size gas line does your water heater need

Why Gas Line Size Matters (Safety and Performance)

A gas line that’s too small starves the burner. The water heater won’t reach its rated BTU output, so recovery takes longer and you run out of hot water faster. In extreme cases, you’ll get yellow flames and soot buildup, which is a carbon monoxide risk.

An oversized line isn’t dangerous, but it costs more in materials and can be harder to route through tight spaces. The goal is to match the pipe to the load with a reasonable margin.

Gas piping is sized based on three things: the total BTU load of everything on the line, the length of the pipe run, and the allowable pressure drop. Natural gas systems typically operate at 7 inches of water column (about 0.25 psi) at the appliance, and the pipe must be sized to deliver that with no more than a 0.5-inch water column drop.

The Two Types of Water Heaters and Their BTU Demands

Storage Tank Heaters (30,000–50,000 BTU)

What Size Gas Line Does Your Water Heater Need?: Storage Tank Heaters (30,000–50,000 BTU)

A standard 40-gallon gas storage tank burns somewhere between 30,000 and 50,000 BTU per hour. A 50-gallon unit might push 50,000 to 60,000 BTU. These are modest loads. A 1/2-inch black iron pipe can usually handle them if the run is under 30 feet.

Most homes built in the last few decades already have a 1/2-inch line running to the water heater closet. That’s fine for a tank. The problem shows up when you upgrade to a tankless.

Tankless Heaters (150,000–200,000 BTU)

What Size Gas Line Does Your Water Heater Need?: Tankless Heaters (150,000–200,000 BTU)

Tankless water heaters are a different animal. A whole-house tankless unit draws 150,000 to 200,000 BTU per hour. That’s three to four times the load of a storage tank. You can’t just swap the connector and hope for the best.

At those loads, you’re almost always looking at a 3/4-inch or 1-inch line. And if the run is long, or the heater is on the second floor, you might need 1-1/4 inch. The math below shows exactly how to figure it out.

How Gas Line Sizing Works: BTU, Length, and Pressure Drop

Gas flows through pipe like water flows through a straw. The longer the straw, the harder it is to suck. The smaller the diameter, the more friction. Every foot of pipe and every fitting adds resistance, which shows up as pressure drop.

The standard method uses a chart from the National Fuel Gas Code (NFPA 54). The chart lists the maximum BTU load for each pipe size at various lengths. The numbers assume a specific gravity of 0.60 for natural gas and a pressure drop of 0.5 inches water column.

Here’s the part most people skip: the length you use in the chart isn’t just the straight-line distance from the meter to the heater. It’s the total equivalent length, which includes fittings. Each 90-degree elbow adds about 2 to 3 feet of equivalent pipe length. A tee adds about 4 to 5 feet. If you have three elbows and a tee in the run, add 10 to 14 feet to the actual distance.

From HeaterGuides · our own guideWater 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

The Step-by-Step Sizing Calculation (With a Real Example)

Let’s walk through a real example. You have a 40-gallon tank with a 40,000 BTU input. The gas meter is on the outside wall, and the water heater is 25 feet away in the basement. The run includes three 90-degree elbows and one tee.

  1. Find the BTU load. Check the nameplate on the heater. It’s usually on the side or back. For this example, it’s 40,000 BTU.
  2. Add up the total length. Actual distance is 25 feet. Three elbows at 2.5 feet each adds 7.5 feet. One tee adds 4 feet. Total equivalent length is 25 + 7.5 + 4 = 36.5 feet.
  3. Round up to the nearest chart value. Use 40 feet to be safe.
  4. Look up the pipe size. On a standard natural gas sizing chart, a 1/2-inch pipe at 40 feet can handle about 50,000 BTU. That’s enough for this heater.
  5. Check the meter and other appliances. If the same line also feeds a furnace and a range, you need to add those BTU loads together. A 60,000 BTU furnace plus a 40,000 BTU water heater plus a 30,000 BTU range is 130,000 BTU total. At 40 feet, you’d need a 3/4-inch line for the whole run.

Now the same example with a tankless unit rated at 199,000 BTU. The distance is still 25 feet, but the equivalent length is still 36.5 feet. A 3/4-inch pipe at 40 feet handles about 120,000 BTU. Not enough. A 1-inch pipe at 40 feet handles about 230,000 BTU. That works.

Pro tip: always round up the length and round down the BTU capacity. Gas piping is not where you want to live on the edge.

Branch Line vs. Main Line: What You’re Actually Sizing

People mix these up all the time. The main line is the pipe that comes off the gas meter and feeds multiple appliances. The branch line is the pipe that splits off to feed a single appliance, like your water heater.

When you size the branch line, you only count the BTU load of that one appliance. When you size the main line, you count everything downstream of that point. A 1/2-inch branch line to a 40,000 BTU water heater is fine. But if that branch connects to a main line that also feeds a furnace and a range, the main line needs to be bigger.

Here’s a common scenario: you have a 3/4-inch main line running through the basement. It tees off to the furnace and then continues to the water heater. The water heater branch is 1/2 inch. That’s fine for a tank. But if you upgrade to tankless, the branch line needs to go up to 3/4 inch, and the main line might need to go up to 1 inch, depending on what else is on it.

Check the hybrid water heater sizing guide to see how electric heat pump models change the equation — they don’t need a gas line at all.

Quick Reference Chart: Pipe Size vs. Maximum BTU

This chart shows the maximum BTU load for black iron pipe with natural gas at a 0.5-inch water column pressure drop. These are standard values from the National Fuel Gas Code. Your local code might differ, so verify before you cut pipe.

Pipe Size (inches) 10 feet 20 feet 50 feet
1/2 72,000 BTU 50,000 BTU 31,000 BTU
3/4 150,000 BTU 105,000 BTU 67,000 BTU
1 275,000 BTU 195,000 BTU 125,000 BTU
1-1/4 500,000 BTU 350,000 BTU 225,000 BTU

Notice how fast the capacity drops with distance. A 1/2-inch line at 10 feet handles 72,000 BTU, but at 50 feet it’s down to 31,000. That’s why a short run can use a smaller pipe than a long one.

Propane is different. Propane has a higher BTU content per cubic foot, so the same pipe size can carry more BTU. But the pressure is often lower, and the charts are different. If you’re on propane, use a propane-specific sizing chart.

Is Your Gas Meter Big Enough?

You can have the perfect pipe size and still get weak flames if the meter is undersized. The gas meter has a rated capacity, usually printed on a tag or stamped into the casing. It’s often something like 250,000 BTU or 400,000 BTU. That number is the maximum load the meter can pass.

Add up the BTU of every gas appliance in the house: furnace, water heater, range, dryer, fireplace. If the total exceeds the meter’s rating, the meter is the bottleneck. You’ll need to call the gas utility to upgrade it. That’s usually a service call, not something you can do yourself.

One more thing: elevation matters. At higher altitudes, the air is thinner and gas appliances need more volume to produce the same BTU. Most sizing charts assume sea level. If you’re above 2,000 feet, derate the pipe capacity by about 4% per 1,000 feet of elevation.

Flexible Connectors vs. Rigid Pipe: What’s Allowed?

The last 18 to 24 inches of the gas line is usually a flexible connector. That’s the corrugated stainless steel tube you see behind water heaters. It’s allowed by code, but there are rules.

Most jurisdictions limit flexible connectors to 3 feet for water heaters. The connector must be rated for the appliance type, and it can’t be concealed inside a wall or floor. It also has to be accessible for inspection.

Rigid black iron pipe is the traditional choice. It’s cheaper per foot, but it takes more skill to install because you have to cut and thread it. It’s also less forgiving of misalignment — you have to get the lengths exactly right.

For the branch line itself, use rigid pipe. Save the flexible connector for the final hookup. The Alloxity flex gas line is a good option for that last connection, since it includes multiple adapters and is leak-tested at the factory.

What to Do If Your Line Is Too Small

You measured, you calculated, and the existing line won’t cut it. You have two options.

Option 1: Repipe the branch line. Run a new, larger pipe from the main line to the water heater. This is the right fix if you’re going tankless or if the existing line is undersized for your current tank. It costs more upfront but solves the problem permanently.

Option 2: Reduce the BTU demand. If you’re replacing a tank, consider a hybrid heat pump water heater. These use electricity for the heat pump and only fire the gas burner as backup. The gas demand drops to around 20,000 to 30,000 BTU, which a 1/2-inch line can handle easily. Check the thermostat operation basics to understand how these units cycle.

Another option is to install a smaller tankless unit that’s sized for one or two fixtures instead of the whole house. A 120,000 BTU unit might work on a 3/4-inch line where a 199,000 BTU unit needs 1 inch.

When to Call a Licensed Plumber (and Why DIY is Risky)

I’m going to be straight with you: gas piping is one of the few home tasks where I’d draw the line at DIY. The consequences of a leak are severe, and the inspection process is strict. Most jurisdictions require a permit and a pressure test for any gas line modification.

If you’re comfortable with the math and you’ve done gas work before, go ahead. But if you’re not 100% sure about the sizing, the local code, or the pressure test procedure, call a licensed plumber. The cost of a service call is nothing compared to the risk.

When you do call, have your numbers ready. Know the BTU rating of the water heater, the distance from the meter, and the size of the existing line. That will save the plumber time and you money.

Frequently Asked Questions

Can I use a 1/2-inch line for a tankless heater?

Almost never. A whole-house tankless unit draws 150,000 to 200,000 BTU. A 1/2-inch line can only handle about 50,000 BTU at 20 feet, and less at longer distances. You’ll need at least 3/4 inch, and probably 1 inch, depending on the run length and total load.

Does pipe length really matter?

Yes, and more than most people think. The capacity of a 1/2-inch line drops from 72,000 BTU at 10 feet to 31,000 BTU at 50 feet. That’s more than a 50% reduction. Always measure the actual run, add equivalent lengths for fittings, and round up.

What if my gas pressure is low?

Low pressure is a different problem than pipe size. If the meter or regulator is set below 7 inches water column, the appliance won’t get enough gas even with a correctly sized pipe. Check the pressure at the appliance with a manometer. If it’s low, call the gas utility — it’s usually their equipment.

Can I use a flexible connector for the entire run?

No. Flexible connectors are limited to 3 feet for water heaters in most jurisdictions. They’re not rated for long runs and can’t be buried in walls. Use rigid pipe for the branch line and a flexible connector only for the final connection.

Does a larger pipe waste more gas?

No. The pipe just delivers gas; the appliance uses what it needs. An oversized pipe doesn’t increase consumption. It costs more in materials and can be harder to route, but it’s not a safety or efficiency problem.

Final Checklist Before You Buy Pipe

  • Find the BTU rating on the water heater nameplate.
  • Measure the actual distance from the meter to the heater.
  • Add 2-3 feet for each elbow and 4-5 feet for each tee.
  • Use the chart to pick the smallest pipe that handles the load at your total equivalent length.
  • Add up all other gas appliances on the same main line.
  • Check the gas meter’s rated capacity against the total load.
  • Verify local code requirements and get a permit if required.

The most common mistake is skipping the equivalent length calculation. People measure the straight-line distance, look at the chart, and pick a pipe that’s too small. The second most common mistake is ignoring the other appliances on the line. The third is assuming the existing line is fine because it worked for the old heater.

Take the extra ten minutes to do the math. Your water heater will run better, your gas bill will be lower, and you won’t be calling a plumber at 9 PM on a Sunday.

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 Water Heater