DWV Pipe Size Calculator
This free DWV (drain-waste-vent) pipe size calculator answers the question that comes before "what slope do I need": what diameter pipe does this branch actually require? Every fixture in a house — a toilet, a lavatory, a kitchen sink — carries a Drainage Fixture Unit (DFU) value under the International Plumbing Code, a weighted measure of how much load it puts on the drain. Add up the fixtures on one branch, and IPC Table 710.1(2) sets the minimum branch diameter; the same total against Table 710.1(1) sets the building drain or sewer size. A water closet on the branch floors both at 3 inches, regardless of what the DFU math alone would allow.
Enter your fixture counts and the calculator returns the branch size, the building drain size at code-minimum slope, and — using IPC Section 906.2's half-the-drain-diameter rule — the minimum vent size for that branch. If your vent run is long, it flags the one-size upsize required past 40 feet of developed length. Optionally enter your actual trap-arm distance for a pass/fail against IPC Table 909.1, the code table that limits how far a fixture's trap can sit from its vent before the trap seal risks siphoning dry.
This calculator is scoped to the IPC and to a single horizontal branch and the building drain it feeds — not a multi-story vent stack, which uses a separate table and generally needs a licensed designer. It also does not cover the Uniform Plumbing Code (UPC), which diverges on several fixture values (a clothes washer, for instance, counts differently under each code). DWV rough-in is permitted work nearly everywhere; your inspector and adopted code edition govern the final answer. Free, no signup.
DWV Pipe Size Calculator
Enter your fixtures and get the minimum branch, building drain, and vent pipe sizes straight from IPC Table 709.1 and 710.1 — plus the trap-arm distance check most sizing charts skip. Free, no signup.
Fixtures on this branch
Enter the quantity of each fixture draining into one horizontal branch (e.g. one bathroom, or a kitchen + adjacent powder room).
Vent + trap arm (optional)
Leave blank to size for a typical run — fill these in for a precise check on a long layout.
Vent length over 40 ft requires one nominal pipe size larger (IPC 906.2). Trap arm run is checked against IPC Table 909.1 for your largest trap on this branch.
Calculation Formulas
Drainage Fixture Units (IPC Table 709.1) weight each fixture by its relative discharge load, not just flow rate — a water closet counts more than its gpm alone would suggest because of how fast it discharges.
Example:
A 1.6-gpf toilet + lavatory + bathtub = 3 + 1 + 2 = 6 DFU.
Floored at 3" whenever a water closet is on the branch, regardless of what the DFU table alone would allow — a toilet's integral trap is never smaller than 3".
Example:
6 DFU with a toilet present → 3" branch (20 DFU capacity), not the 2" the DFU count alone would pass.
Same DFU total, different table — 710.1(1) governs the drain after branches combine. Capacity increases with slope, so the code-minimum slope for that diameter sets the number.
Example:
A 3" drain carries 36 DFU at 1/8"/ft but 42 at 1/4"/ft — the calculator uses the code-minimum slope for the chosen diameter.
IPC 906.2 — the vent never needs to be as large as the drain, but it has a floor, and long vent runs need more capacity to carry air, not water.
Example:
A 3" branch needs at least a 1-1/2" vent; run it over 40 ft and it bumps to 2".
Too long a run between the trap and its vent lets negative pressure siphon the trap seal dry, letting sewer gas back into the room. The table's slope is baked in — no separate slope math needed.
Example:
A 1-1/2" lavatory trap tops out at 6 ft to its vent; a 3" trap gets 12 ft.
Standard Constants
| Constant | Value | Description |
|---|---|---|
| Water closet, 1.6 gpf | 3 DFU, 3" trap | IPC Table 709.1 — the most common residential fixture. |
| Bathroom group (1.6 gpf WC) | 5 DFU shortcut | IPC Table 709.1 lets a full bathroom group (WC + lavatory + tub/shower) be counted as 5 DFU instead of summing each fixture. |
| Kitchen sink w/ disposer + dishwasher | 2 DFU (no increase) | Adding a disposer or dishwasher to a kitchen sink drain does not raise its DFU load under the IPC. |
| Any drain carrying a water closet | 3" minimum | Footnote to Table 710.1(1) — overrides the DFU-table math on both the branch and the building drain. |
| Vent floor | 1-1/4" minimum, ½ the drain diameter | IPC 906.2 — applies to individual, branch, and circuit vents (not multi-story vent stacks, which use Table 906.1 instead). |
Note: All calculations include appropriate waste factors based on project complexity and material type. Results are estimates and should be verified by professionals before purchasing materials.
International Plumbing Code — Drainage Fixture Units(IPC Table 709.1)
View StandardThe load each fixture contributes to a drain, and its minimum trap size.
Key Requirements:
- •1.6 gpf WC = 3 DFU
- •Lavatory = 1 DFU
- •Kitchen sink = 2 DFU
International Plumbing Code — Drainage Sizing(IPC Table 710.1(1) & 710.1(2))
View StandardMaximum DFU load for a given pipe diameter — 710.1(1) for building drains/sewers (slope-dependent), 710.1(2) for horizontal branches (not slope-dependent).
Key Requirements:
- •3" carries 42 DFU at 1/4"/ft (building drain)
- •3" carries 20 DFU (horizontal branch)
International Plumbing Code — Vent Sizing(IPC Section 906.2)
View StandardMinimum vent diameter for individual, branch, and circuit vents — half the drain diameter served, 1-1/4" floor.
Key Requirements:
- •≥1/2 drain diameter
- •≥1-1/4" always
- •+1 size beyond 40 ft developed length
International Plumbing Code — Trap-to-Vent Distance(IPC Table 909.1)
View StandardMaximum developed length from a fixture trap to its vent, by trap size.
Key Requirements:
- •1-1/2" trap = 6 ft max
- •2" trap = 8 ft max
- •3" trap = 12 ft max
Standards Disclaimer: Standards and codes are subject to periodic updates. Always verify current requirements with local building authorities and professional engineers before beginning construction. Links provided are for reference only.
IPC vs UPC states
Real fixture-value differences, not just slope
The UPC counts a residential clothes washer as 3 DFU (IPC: 2) and a flushometer-tank water closet as 3 DFU in a dwelling (IPC: 4) — in the opposite direction from each other. Its drain-capacity table (703.2) is also structured differently, folding slope into a single table instead of separate branch/building-drain tables.
Regional Examples:
Local amendments
The model code is a floor, not the final word
Cities and counties frequently amend drainage fixture unit values, minimum trap arm distances, and vent sizing rules — sometimes more conservative than the model code, occasionally less.
Regional Examples:
Multi-story stacks
Out of scope by design
This calculator sizes one horizontal branch and the building drain it feeds. A vertical stack serving multiple floors uses a separate table (IPC Table 906.1 for the vent, Table 710.1(2)'s stack columns for the drain) and, past 5 branch intervals, code-required relief venting.
Regional Examples:
Before You Build
- •Contact your local building department for specific requirements
- •Verify frost line depths, wind zones, and seismic requirements for your area
- •Check if permits are required and schedule required inspections
- •Consult with a local contractor familiar with local codes
Plan disposal before you start
Smaller jobs still produce more debris than a few trash bags can hold. Check what's allowed in a dumpster and which disposal option fits the scope.
See disposal options →
Related Calculators
Drain Slope Calculator
Free drain slope calculator — minimum fall per foot by pipe size under IPC 704.1 and UPC 708.0, total drop over your run, and DFU capacity checks.
Water Supply Pipe Size Calculator
Free water supply pipe sizing calculator — total water supply fixture units and minimum main size, with the real IPC-vs-UPC fixture-unit difference.
Septic Tank Size Calculator
Free septic tank size calculator — minimum tank capacity by state and bedroom count from state code, with garbage-disposal adders and formula-state rules.
Bathroom Remodel Calculator
Combine drywall, paint, flooring, and wall-tile estimates into one bathroom materials list. Tile-vs-paint overlaps handled automatically. Free.
How to Use This Calculator
- Enter the quantity of each fixture that drains into a single horizontal branch — typically one bathroom, or a kitchen plus an adjacent powder room.
- The calculator sums the Drainage Fixture Unit (DFU) load per IPC Table 709.1 and finds the smallest branch pipe that can carry it, per Table 710.1(2).
- It sizes the building drain or sewer the same way against Table 710.1(1), and the vent using the half-the-drain-diameter rule (IPC 906.2).
- Optionally enter your vent's developed length (it upsizes one nominal size past 40 ft) and your longest trap-arm run for a pass/fail against IPC Table 909.1.
- Click Calculate for the branch, building drain, vent, and trap-arm results, plus a fixture-by-fixture DFU breakdown.
When your load is close to a pipe's capacity ceiling
If your total DFU load lands near the top of what a diameter can carry, size up rather than run at the edge — especially if you expect to add fixtures later (a future bathroom, a wet bar). Going one size larger costs little at rough-in and is expensive to fix after the walls close.
Frequently Asked Questions
What is a Drainage Fixture Unit (DFU)?
A weighted load value the IPC assigns each fixture (Table 709.1) so drains can be sized by combined load, not just fixture count. A lavatory is 1 DFU, a kitchen sink 2, a 1.6-gpf toilet 3 — the weighting reflects how much and how fast each fixture discharges, not its flow rate alone. Add up the DFUs on a branch and match that total against the code's capacity tables to find the minimum pipe size.
What size drain pipe do I need for a bathroom?
A standard full bathroom (1.6-gpf toilet + lavatory + tub/shower) totals 6 DFU, but the toilet alone floors the branch and building drain at 3 inches — well under the 20-DFU capacity a 3-inch horizontal branch carries (IPC Table 710.1(2)). Without a toilet on the branch, a 2-inch pipe (6 DFU capacity) usually covers a lavatory plus tub or shower.
How do I size a vent pipe?
IPC Section 906.2: a vent must be at least half the diameter of the drain it serves, and never smaller than 1-1/4 inch. A 3-inch branch needs at least a 1-1/2-inch vent; a 4-inch branch needs 2 inches. If the vent's developed length exceeds 40 feet, code requires bumping up one full nominal pipe size for the entire run — undersized long vents are a common rough-in failure.
Why does my toilet need a 3 inch drain even with a low DFU count?
Because a water closet's integral trap is never smaller than 3 inches, and any drain carrying it inherits that minimum — a rule that overrides what the DFU capacity table alone would allow (a footnote to IPC Table 710.1(1)). A single toilet only totals 3 or 4 DFU, which a 2-inch pipe's 6-DFU capacity could technically carry, but code still requires 3 inches because of the fixture itself, not the math.
What is a trap arm and why does its length matter?
The trap arm is the horizontal drain section between a fixture's trap and its vent connection. Run it too far and negative pressure in the drain system can siphon the water seal out of the trap, letting sewer gas into the room. IPC Table 909.1 caps this distance by trap size — 6 feet for a 1-1/2-inch trap, 8 feet for 2 inches, 12 feet for 3 inches — with the required slope baked into the table. Water closets are exempt (self-siphoning fixtures).
Does this calculator work for a multi-story bathroom stack?
No — it sizes one horizontal branch and the building drain it feeds, which covers the overwhelming majority of remodel and addition rough-ins. A vertical stack serving fixtures on more than one floor uses a different table (IPC Table 906.1 for the vent) and, past five branch intervals, requires relief venting under Section 908 — that's licensed-designer territory, not a single-branch calculator.
Does this calculator cover the Uniform Plumbing Code (UPC)?
No, by design — the UPC assigns different DFU values to several common fixtures (a residential clothes washer is 3 DFU under the UPC vs. 2 under the IPC, for instance) and uses its own drain-capacity table. Rather than blend unverified UPC numbers into IPC-sourced tables, this calculator sizes strictly to the IPC. In UPC-lineage states (including California, as the CPC), treat these results as a rough estimate and confirm with your inspector.