Skip to content
Skills / Pipe Fitting (PEX/Copper/PVC) / Advanced Pipe Fitting and Layout / Plumbing Code Sizing and Layout Rules (IPC/UPC)
Pipe Fitting (PEX/Copper/PVC)

Plumbing Code Sizing and Layout Rules (IPC/UPC)

15 min read Training Guide

Use fixture units, slope, trap arm, vent and cleanout rules from the IPC and UPC to lay out a job that passes inspection.

Table of contents

Inspectors do not check every word of the code on every job. They check the same handful of things again and again: fixture units, pipe size, slope, traps, vents, and cleanouts. If you can work those out from the tables, you can lay out most houses and small buildings with confidence. Here you will use the numbers. The two big model codes, the International Plumbing Code (IPC) and the Uniform Plumbing Code (UPC), are compared side by side wherever they differ, because the differences are the ones that fail jobs.

Every number here is a model-code value for study. Table numbers shift between editions, and your state and city may change the rules. The adopted code on your job always wins. If a local amendment says something different from the model code, the amendment governs.

What You Will Be Able to Do

  • Tell water supply fixture units from drainage fixture units and use each one
  • Total the load on a run and take it to the correct table
  • Set slope, trap arm length, and vent size for the code on your job
  • Place cleanouts in every required location
  • Recognize common local amendments before you start

Two Kinds of Fixture Units

Fixture units are not gallons. They are a weighted number for how heavily and how often a fixture is likely to be used. You total them, then look up a pipe size. Two separate systems exist, and they are never mixed.

Water supply fixture units (WSFU) Drainage fixture units (DFU)
Sizes Water piping Drain, waste, and vent piping
Based on Likely demand, from the Hunter's curve method Likely discharge into the drain
Where to look IPC Appendix E, UPC Table 610.3 IPC Table 709.1, UPC Table 702.1

Each fixture has a value in both systems.

Drainage Fixture Units

Fixture Typical DFU (IPC)
Lavatory 1
Shower or bathtub 2
Kitchen sink 2
Clothes washer standpipe 2 (UPC uses 3)
Water closet, private, 1.6 gpf 3
Bathroom group, 1.6 gpf water closet 5

A bathroom group is a water closet, lavatory, and tub or shower on the same floor. Its value is less than the sum of its parts, because the fixtures rarely all drain at once.

Water Supply Fixture Units

IPC Appendix E lists separate cold, hot, and total values for many fixtures. Here are typical values for a private home. The UPC assigns one value to each fixture, and the numbers are different, so never mix them.

Fixture (private) Cold Hot Total
Lavatory 0.5 0.5 0.7
Shower or bathtub 1.0 1.0 1.4
Kitchen sink 1.0 1.0 1.4
Water closet, flush tank 2.2 None 2.2
Clothes washer 1.0 1.0 1.4
Dishwasher None 1.4 1.4
Bathroom group, flush tank 2.7 1.5 3.6

The total is less than cold plus hot, because a person mixing water does not run both at full flow.

From WSFU to a Pipe Size

To size a water service or a main:

  1. Total the WSFU for every fixture the pipe serves.
  2. Convert to demand, or read directly from your code's table.
  3. Find your available pressure. Start with static pressure at the meter, then subtract losses for height, the meter, and any backflow device.
  4. Find your developed length, which is the real path along the pipe, including an allowance for fittings if your method calls for it.
  5. Read the minimum pipe size from the table.

The UPC gives a direct lookup in Table 610.4, based on pressure range and length. The IPC method is in Appendix E, and your state may use a different one. Water velocity also matters. A common design limit is 8 feet per second in water supply pipe, because faster water is noisy and can wear out fittings.

Worked example. A small house under the IPC has two bathroom groups, a kitchen sink, a dishwasher, and a clothes washer. Using total values: 3.6 + 3.6 + 1.4 + 1.4 + 1.4 gives 11.4 WSFU. Adding a hose connection adds more. You then take that total, your pressure, and your pipe length to the table for your code, and read the size.

Slope

Pipe size IPC Table 704.1 minimum
2-1/2 inches and under 1/4 inch per foot (about 2 percent)
3 to 6 inches 1/8 inch per foot (about 1 percent)
8 inches and larger 1/16 inch per foot

The UPC has long set 1/4 inch per foot as the normal rule, with flatter slope for larger pipe where allowed. Depending on the edition and local rules, that allowance may begin at 3 inches or at 4 inches. Many jurisdictions and contractors simply hold 3-inch residential drains at 1/4 inch per foot. Know what is required where you are.

Check your numbers on paper. A 40-foot, 4-inch building drain at 1/8 inch per foot falls 5 inches. If your sewer connection leaves only 4 inches of fall, you have a problem to solve before you pour the slab.

Traps

  • Every fixture needs a trap. One trap per fixture.
  • Seal depth is at least 2 inches and no more than 4 inches.
  • Double trapping is not allowed. Air gets locked between the traps and the fixture drains poorly.
  • S-traps are not allowed on new work. The falling water siphons the seal out. A vented P-trap is the fix.
  • Traps that rarely get water, such as floor drains, can dry out. Codes may require a trap primer or another way to keep the seal.

Trap Arm Limits

Trap arm size IPC maximum (Table 909.1) UPC maximum (Table 1002.2)
1-1/4 inch 5 feet 2-1/2 feet
1-1/2 inch 6 feet 3-1/2 feet
2 inch 8 feet 5 feet
3 inch 12 feet 6 feet
4 inch 16 feet 10 feet

Small trap arms are limited to a slope of 1/4 inch per foot under both codes. The IPC adds that the total fall in the arm must not exceed one pipe diameter, so the vent connection never ends up below the trap's weir. Water closets and other self-siphoning fixtures with built-in traps are treated differently.

Vents

Vent sizing depends on the drain's load and the vent's developed length. Start with a simple rule and then confirm in the table. A vent must be at least half the diameter of the drain it serves, and never smaller than 1-1/4 inches.

Vent type Plain description Watch for
Individual One vent, one fixture Simple but uses the most pipe
Common Two fixtures share one vent Connected at the same level, or as the code allows
Wet vent A single pipe drains one fixture and vents another Strict rules on which fixtures and pipe sizes
Circuit vent One vent serves a row of fixtures on a branch Used in commercial restrooms
Air admittance valve (AAV) A one-way mechanical air inlet Allowed in many cases by the IPC, often restricted under the UPC unless locally amended

Roof terminations also have rules. Vents must extend above the roof. Under the IPC, they must rise at least 6 inches, and much more if the roof is used for something other than weather protection. They must also be kept away from windows, doors, and air intakes. In cold regions, a vent through the roof is often required to be at least 3 inches so frost does not close it.

Cleanouts

Location IPC UPC
Base of each stack Required Required, with local variation
Horizontal change of direction More than 45 degrees Cumulative change of more than 135 degrees
Long runs Every 100 feet Every 100 feet of developed length
Building drain to sewer Required near the junction Required at or near the junction
Upper end of a horizontal run Check your code Generally required

Where a series of turns happens in one run, the IPC limits how many cleanouts you need based on distance. Cleanouts must stay accessible and have enough clear room to work a cable. Cleanouts must match the pipe up to 4 inches, and a 4-inch one is usually accepted on larger pipe.

Backwater Valves

If a fixture sits on a floor lower than the top of the next upstream manhole in the public sewer, a sewer surge could come up through it. A backwater valve allows flow out but closes against flow in. Most codes apply it only to the fixtures below that level, and the valve must stay reachable for service.

Amendments to Check First

These are the items that most often change from one place to another:

  • Whether AAVs are allowed, and where
  • Thermal expansion tanks on all water heaters
  • Backwater valves in flood-prone basements
  • Pipe materials, such as bans on some plastics or limits on PEX in the service line
  • Minimum water service size
  • Seismic strapping on water heaters
  • Rules on where push-fit fittings can be used

Suppose a state adopts the IPC, but a city writes an amendment requiring an expansion tank on every water heater. On that job the tank is required, even if the model code does not demand it. Read the amendments before you bid or buy.

Working Through a Layout

Here is a one-story house under the IPC with one bath, a kitchen sink, and a clothes washer. Water closet is 1.6 gpf.

  1. DFU total: Bathroom group 5, kitchen sink 2, clothes washer 2. Total: 9 DFU.
  2. Drain sizes: Take each branch to the table. The toilet needs a 3-inch drain regardless of load. The washer takes a 2-inch standpipe.
  3. Slope: The 3-inch building drain may fall 1/8 inch per foot under the IPC. The 2-inch branches need 1/4 inch per foot.
  4. Trap arms: The kitchen sink has a 2-inch arm, so the vent must be within 8 feet.
  5. Vents: Size at half the drain, and at least 1-1/4 inches. Check the table.
  6. Cleanouts: Base of the stack, junction with the sewer, and any turn over 45 degrees.
  7. Local check: Read the amendments for AAVs and tanks.

If the same house were under the UPC, your kitchen arm would be limited to 5 feet and the washer would count as 3 DFU. The same plan may need a different vent location.

Common Mistakes

Mistake What it costs
Mixing WSFU and DFU tables A wrong pipe size throughout the job
Using the IPC trap arm limit on a UPC job Failed inspection and a moved vent
Quoting a table from the wrong edition Numbers that do not match the inspector's book
Ignoring local amendments Rework after inspection
Not checking fall before setting the sewer Not enough slope to reach the connection
Installing an AAV where it is not allowed Removing it and running a real vent

Check Your Understanding

1. You have a 2-inch trap on a kitchen sink on an IPC job. How far can the vent be?

8 feet under Table 909.1, within the allowed slope. The same arm under the UPC is limited to 5 feet.

2. Your drain serves a bathroom group with a 1.6 gpf toilet and a lavatory in a separate room. How do you count it?

The bathroom group is 5 DFU. Add the separate lavatory at 1, for a total of 6 DFU.

3. A drain serves a 3-inch stack. What is the smallest vent the half-diameter rule allows, and what is the limit on the low end?

Half of 3 inches is 1-1/2 inches. The rule also sets 1-1/4 inches as the minimum for any vent. The table has the final word.

4. A basement bathroom floor is 3 feet lower than the manhole rim up the street. What should you consider?

A backwater valve protecting the basement fixtures, so a sewer surge cannot back up into the building.

Key Takeaways

  • WSFU size water pipe, and DFU size drains and vents. Never mix them.
  • Small drains need at least 1/4 inch per foot. Larger pipe rules depend on your code.
  • Trap arm limits differ widely between IPC and UPC.
  • A vent is at least half the drain size, and never under 1-1/4 inches.
  • Know the cleanout rule for your code, and keep cleanouts reachable.
  • Local amendments override the model code, so read them first.