Plumbing DWV Pipe Sizing Calculator

Code Version
Building Type
Drain Slope

Fixtures

Total DFU14
Building Drain Size2"

Fixture DFU Tally

FixtureCountDFU EachTotal DFU
Toilet248
Lavatory212
Shower122
Kitchen Sink122

Pipe Sizing

ComponentSizeNotes
Building Drain2"14 DFU total, 1/4" per ft slope
Branch — Toilet2.5"8 DFU
Branch — Lavatory1.5"2 DFU
Branch — Shower1.5"2 DFU
Branch — Kitchen Sink1.5"2 DFU
Vent Stack2"14 DFU connected

Trap Arm Distances

FixtureTrap SizeMax Trap Arm Distance
Toilet3"6 ft
Lavatory1.25"5 ft
Shower2"8 ft
Kitchen Sink1.5"6 ft

Drain, waste, and vent (DWV) piping is sized by drainage fixture units (DFU), a weighting system that rates each plumbing fixture by how much flow it discharges. This calculator tallies the DFU load from the fixtures you list, then looks up the building drain size for your chosen slope, the branch drain size for each fixture group, the vent stack size, and the trap arm size and maximum length per fixture, following simplified IPC and UPC sizing tables.

Formula

Total DFU = Σ (fixture count × DFU per fixture) → pipe sizes from DFU/slope lookup tables

fixture count
Number of each fixture type installed
DFU per fixture
Drainage fixture units assigned to that fixture (e.g. toilet 4, lavatory 1, shower 2)
Total DFU
Summed drainage load used to look up building drain and vent sizes
slope
Drain pitch (1/8 in or 1/4 in per foot) that adjusts the allowable building-drain DFU

How it works

  1. Choose the code basis (IPC or UPC), the building type, number of stories, and drain slope (1/8 in or 1/4 in per foot), then list each fixture type and its count.
  2. Each fixture is multiplied by its DFU value (for example a toilet is 4 DFU, a lavatory 1, a shower 2) and summed into a total drainage fixture unit load.
  3. The total DFU and slope set the building drain size from the sizing table, each fixture group gets a branch drain size, the connected DFU sets the vent stack, and every fixture is assigned its trap size and maximum trap arm distance.

Worked example

A small home with 2 toilets, 2 lavatories, 1 shower, and 1 kitchen sink at 1/4 in per foot slope (IPC).

  1. DFU tally: toilets 2×4 = 8, lavatories 2×1 = 2, shower 1×2 = 2, kitchen sink 1×2 = 2.
  2. Total DFU = 8 + 2 + 2 + 2 = 14.
  3. At 1/4 in slope a 2 in building drain handles up to 21 DFU, so 14 DFU fits a 2 in drain; the vent stack at 14 DFU is also 2 in.

Building drain 2", vent stack 2"; the toilet branch (8 DFU) needs 2.5", and each smaller branch is 1.5". Trap arms: toilet 3"/6 ft, shower 2"/8 ft, lavatory 1.25"/5 ft, kitchen sink 1.5"/6 ft.

Frequently asked questions

What is a drainage fixture unit (DFU)?
A DFU is a relative measure of the discharge load a fixture puts on the drainage system. Rather than computing actual gallons per minute, codes assign each fixture a DFU value (a toilet is 4, a lavatory is 1) so loads can be summed and matched to pipe sizes.
Why does drain slope change the pipe size?
Steeper slope moves waste faster, so a pipe at 1/4 in per foot can carry more DFU than the same pipe at 1/8 in per foot. The calculator uses separate DFU limits for each slope when sizing the building drain.
Does this replace a licensed plumber or code official?
No. These are simplified tables for planning and learning. Real installations must follow the adopted local code, account for stack offsets, developed length, and venting rules, and should be reviewed by a licensed plumber and your inspector.
What is a trap arm and why does its length matter?
The trap arm is the horizontal pipe between a fixture trap and its vent. If it runs too long the trap can siphon dry and let sewer gas in, so codes cap the distance by trap size — for example 5 ft for a 1.25 in lavatory trap and 8 ft for a 2 in shower trap.