
How Does a Tankless Water Heater Work? Sizing, Gas Lines, and Venting
A tankless water heater works by heating water only while it flows: when a hot fixture opens, a flow sensor signals the control board to fire high-input gas burners, and the water is heated as it passes through the heat exchanger instead of being stored in a tank. It supplies hot water continuously, limited only by its firing capacity and the temperature rise it has to deliver.
What is a tankless water heater?
A tankless water heater is a gas-fired appliance that heats potable water as it passes through, with no stored volume of hot water held in reserve. Before you size or install one, you need to understand how a tankless water heater works. Every later decision follows from the fact that it can call for its full gas input the moment a tap opens: flow, gas supply, venting and condensate. The code also limits its output. IPC Section 501.6 caps the water temperature from a tankless heater at 140°F where it serves domestic uses, and that cap does not replace the protective shower valves required by Section 412.3.
How does a tankless hot water heater work?
A tankless hot water heater works as a chain of sensor, control board, gas valve and burner, and flow starts the chain. Cold water enters at the inlet and passes a flow sensor. When a hot fixture opens and the sensor detects movement, it signals the control board. The board opens the modulating gas control valve and lights the burner assembly. The burner heats the water running through the primary heat exchanger, and a temperature sensor at the hot water outlet tells the board how hard to fire to hold the setpoint. When the fixture closes, flow stops and the burner shuts down. In a condensing model, the flue gases pass through a secondary heat exchanger before they leave through the vent, and the water that condenses there drains out through a condensate trap. Nothing is stored, so the unit keeps delivering for as long as the fixture runs, but only at a flow it can heat through the required temperature rise.
Condensing and non-condensing units compared
That secondary heat exchanger is the real difference between the two designs. For a tankless water heater, condensing vs non-condensing comes down to what happens to the flue gas after it leaves the primary heat exchanger. A non-condensing unit sends that hot gas straight to the vent, so it needs metal vent pipe rated for its appliance category. A condensing unit pulls more heat out of the gas first. The exhaust leaves much cooler, and water vapor condenses into an acidic liquid that has to be drained. Choosing a condensing or non-condensing tankless water heater therefore changes your vent material and decides whether a drain line is added to the job.
Condensing vs non-condensing tankless water heaters
| Non-condensing | Condensing | |
|---|---|---|
| Thermal efficiency | Lower: the heat left in the flue gas goes out the vent | Higher: the secondary heat exchanger recovers latent heat from the flue gas |
| Exhaust gas temperature | Hot | Much cooler |
| Venting materials | Vent rated for the appliance category. Category I vents are sized from the code tables. Category II, III and IV vents follow the manufacturer's instructions | Sized by the manufacturer's instructions. Plastic pipe only where the appliance is listed for it and the manufacturer specifies it (IFGC 503.4.1, 503.6.10.3) |
| Condensate drainage | Not designed to condense in the appliance | Acidic condensate must be collected and drained (IFGC 503.9 and 307.2) |
The difference
Condensing units recover more heat but need a manufacturer-specified vent and a corrosion-resistant condensate drain.
What size tankless water heater do I need?
You need a unit that can heat your peak simultaneous hot water flow, in gallons per minute, through the temperature rise from the incoming cold water to the outlet setpoint. Tankless water heater sizing has these two inputs, and getting either one wrong leaves the client with a lukewarm shower when the dishwasher and washer run at the same time. The rise is the outlet temperature, no higher than 140°F for domestic use, minus the cold water temperature at the site. The higher the rise, the less flow a given unit can carry.
To calculate the size of a tankless water heater, start with the flow load. For single- and multi-family dwellings with water-conserving fixtures, UPC Appendix M provides the Peak Water Demand Calculator, a method for estimating the demand load for the building water supply and principal branches. The code uses it to size that piping, not the heater. Using it as a tankless water heater sizing calculator is our own practice, not a code provision. You enter the count of each fixture in Column [B]. The calculator applies each fixture's probability of use (Column [C]) and flow rate (Column [D]) and returns a 99th percentile demand flow. For the hot water side, enter only the fixtures and appliances that use hot water and leave out water closets. Do not enter hose bibbs, because the calculator covers indoor use only. Fixtures it does not list go in the Other Fixture rows, with a comparable probability of use and their own flow rate.
Appendix M's own hot water branch example (Example 4) enters one of each of these:
- Clothes washer: 3.5 gpm, 5.5% probability of use
- Combination bath/shower: 5.5 gpm, 5.5%
- Dishwasher: 1.3 gpm, 0.5%
- Kitchen faucet: 2.2 gpm, 2.0%
- Lavatory faucet: 1.5 gpm, 2.0%
Those five fixtures total 14 gpm if every one ran at once, but the calculator returns a 99th percentile demand of 7.7 gpm, and Appendix M uses that figure to size the hot water branch at 3/4 inch. Using the 7.7 gpm figure to set the tankless water heater size is our own practice rather than a code provision: when sizing an on-demand water heater this way, choose a model whose output covers that flow at the site's temperature rise. Where a branch serves only one fixture, its demand is never taken above that fixture's flow rate.
Sizing the gas line for the full burner input
Once you know the unit's rating, the gas piping has to keep up with it. IFGC Section 402.1 requires piping large enough to meet maximum demand while delivering at least the appliance's minimum supply pressure at its inlet. Section 402.2 bases the load on the sum of the maximum inputs, as if every appliance fired at full capacity together, unless a diversity of load can be established. Take the input from the manufacturer's Btu/h rating. To work in cubic feet per hour, divide the total Btu/h by the gas's average heating value per cubic foot, which the serving gas supplier can give you. When you add a tankless unit to an existing system, check the whole run, not just the new branch: Section 401.8 requires any extension or alteration to be sized for the full number of outlets.
Appendix A, which is informative and not part of the code, shows four methods: longest length, branch length, hybrid pressure (for a 2 psi system with two pressure zones) and pressure drop per 100 feet. The longest length method sizes every segment from one table row. The branch length method sizes each branch by its own run from the point of delivery. The pressure drop per 100 feet method works in inches of water column, where 27.7 in. w.c. equals 1 psi. Where the tables do not cover a job, Section A101 points to standard engineering practice acceptable to the code official. The example below follows the longest length method step by step.
Sizing gas piping for a 199,000 Btu/h tankless heater by the longest length method
Tap Next to go through it.
Step 1
Lay out the system. A meter feeds a main (Segment A) to a tee. One branch (Segment B) runs to an existing 100,000 Btu/h furnace and the other (Segment C) to the new 199,000 Btu/h tankless heater. Where a segment has four or more fittings, add the equivalent-length allowance from Table A102.2.
Step 2
Find each demand. This example assumes natural gas in corrugated stainless steel tubing (CSST) and reads IFGC Table 402.4(15), which is for natural gas at an inlet pressure of less than 2 psi, a pressure drop of 0.5 in. w.c. and a specific gravity of 0.60. That table lists capacity in cubic feet of gas per hour, so convert each load. At a heating value of 1,000 Btu per cubic foot, the value the Appendix A examples use, the loads are 199 cfh for the heater, 100 cfh for the furnace, and 299 cfh for Segment A, which carries both at once. For undiluted propane at 11 in. w.c., use Table 402.4(32) instead and keep the loads in thousands of Btu per hour.
Step 3
Confirm the table fits the job. For gas other than undiluted LP, check the design pressure, allowable pressure drop and specific gravity, and apply any gravity factor from Table A102.4.
Step 4
Measure from the point of delivery to the most remote outlet. Here, meter to heater (A + C) is 38 ft.
Step 5
Select the row. There is no 38 ft row, so use the next longer one, 40 ft. That single row sizes every segment.
Step 6
Size Segment C (199). The 40 ft row reads 15, 21, 41, 47, 83, 97, 162, 188, 325 and on. 199 is not listed, so take the next larger figure, 325, under flow designation 37.
Step 7
Size Segment B (100). The next larger figure is 162, under flow designation 30.
Step 8
Size Segment A (299). The figure 188, under flow designation 31, falls short, so take 325, under flow designation 37.
What to take from it
Read up to the flow designation and never round a demand down.
Venting the heater by appliance category
IFGC Chapter 5 covers the design, sizing and installation of vents, the match between each appliance type and its venting system, and where vents may terminate. Every system must carry all flue and vent gases outdoors (Section 503.3). Gas vents are sized under Sections 503.6.10.1 through 503.6.10.4 together with the manufacturer's installation instructions. Under the IFGC, Category I appliances use the Section 504 tables. Where the UPC 2021 is the adopted code, its Table 510.1.2(1) onward covers single-appliance Category I vents instead. The cited sources do not say how the two tables relate. Category II, III and IV vents, including any plastic pipe, are sized by the manufacturer's instructions. Chimney systems with mechanical draft are sized by engineering methods. For a direct-vent or fan-driven tankless unit, that makes the installation manual part of your code compliance.
Where the terminal sits on the wall matters as much as the pipe behind it. Before you drill, measure from the planned direct-vent or mechanical draft terminal to every operable window and door, to soffits overhead, to inside corners and to ground level. Check each distance against IFGC Section 503.8 and Table 503.8 and the manufacturer's instructions (to an openable window or door: 6, 9 or 12 inches for a direct-vent terminal depending on input up to 150,000 Btu/h; above that, as for a 199,000 Btu/h unit, the manufacturer's figure but not less than the nondirect-vent clearance of 4 feet below or beside the opening or 1 foot above it), so flue gas cannot re-enter the building.
Draining condensate from condensing units
Condensing units add a drain line to the job. IFGC Section 503.9 requires provisions to collect and dispose of condensate from venting systems serving Category II and IV appliances and noncategorized condensing appliances, with drains installed to the appliance and vent manufacturer's instructions. Section 307.2 then sets the piping rules:
- Discharge to an approved plumbing fixture or disposal area, as the manufacturer's instructions direct.
- Use approved corrosion-resistant pipe no smaller than the appliance's drain connection.
- Slope it at least 1/8 inch per foot (1 percent) toward the point of discharge.
- Mark the end of any concealed condensate pipe to show whether it is the primary or the secondary drain.
Warning
Section 307.5 requires an auxiliary drain pan under a Category IV condensing appliance wherever a blocked condensate drain would damage the building. The only exception is an appliance that shuts itself down automatically when its condensate drain stops up.
Frequently asked questions
How can a tankless water heater pump more gpm?
It does not pump at all. Flow comes from the supply pressure, and the burner only heats what passes through. The flow it can deliver at temperature falls as the required temperature rise grows, so usable gpm goes up only with a smaller rise or more firing capacity. Size the unit for your peak demand at your worst-case rise. Using the Appendix M demand for this is our own practice, since Appendix M itself sizes pipe, not heaters.
Can I vent a new tankless heater into an existing chimney or vent?
Only if it meets IFGC Section 501.15. The existing chimney or vent must be resized as needed to control flue gas condensation and give the appliance the draft it needs, with Category I resizing done under Section 502. The flue passageway must be clear, cleaned if it served a solid or liquid fuel appliance, and its liner or inner wall continuous and free of cracks or gaps. A Category II, III or IV unit must use the vent its manufacturer specifies.
Does the gas line need a pressure test after adding a tankless branch?
Under IFGC Section 406.1.3, only the newly installed branch to the new appliance has to be pressure tested. The connections between the new piping and the existing piping are tested with a noncorrosive leak-detecting fluid or another approved leak-detecting method. The rest of the existing system does not need a new pressure test for that addition.
Does altitude change gas pipe and vent sizing?
Yes. IFGC Section 402.2 requires the gas flow rate to be adjusted for altitude where the installation is above 2,000 feet. For the multiple-appliance Category I vent Tables 504.3(1) through 504.3(7), Section 504.3.10 uses sea-level input ratings to find maximum capacity and the actual derated input to find minimum capacity.
Disclaimer: The information provided in this educational content has been prepared with care to reflect current regulatory requirements for continuing education. However, licensing rules and regulations can vary by state and are subject to change. While we strive for accuracy, ExpertCE cannot guarantee that all details are complete or up to date at the time of reading. For the most current and authoritative information, always refer directly to your state’s official licensing board or regulatory agency.


