SettingsSettings for this calculationUS
Each toilet sits on a closet flange and has its trap built into the bowl.
Count wall-hung and floor-mounted toilets alike; a wall-hung bowl's carrier is a separate item.
Bathroom sinks, each with its own trap.
A double vanity with two bowls on two traps is two lavatories.
Each tub or shower drain takes a trap below the floor.
A tub with a shower over it is one fixture.
A two-bowl sink that drains through one trap counts once.
A dishwasher and a disposer usually drain through the sink's trap and add no branch of their own.
A washer's standpipe or a laundry tub, each with a trap.
A washer box in the wall still has a trap below it.
Basement, garage or utility floor drains, each trapped.
A shower's drain is counted under tubs and showers, not here.
Fixtures whose branch drops into a stack take a sanitary tee; the rest join a horizontal drain by a wye.
Read it off the drawing: upstairs fixtures often enter the stack, while a basement or slab-on-grade layout joins horizontal drains.
Each stack takes a cleanout at its base.
Count every vertical soil or waste stack that turns into the building drain.
The horizontal main from the farthest stack to where it leaves the building.
Measure along the pipe on the plan, bends included.
The IPC spaces cleanouts on a horizontal drain at not more than 100 ft (30.5 m).
Enter your adopted code's figure if it differs; the drain is divided by it and rounded up.
Horizontal turns sharper than 45° on the building drain each take a cleanout.
Two eighth bends set close together to make a 90° turn count as one change.
Drain fittings
20 fittings
One branch fitting per fixture, a trap for every fixture but a toilet, a flange under each toilet, and cleanouts at stack bases, sharp bends and along the drain.
- Sanitary tees
- 4 pieces
- Wyes with eighth bends
- 4 pieces
- P-traps
- 6 pieces
- Closet flanges
- 2 pieces
- Cleanouts
- 4 pieces
Formula with your numbers
- Split the branch fittingsfixtures × % = 4 pieces; the rest = 4 pieces
- Add the traps and flangesfixtures other than = 6 pieces; = 2 pieces
- Count the cleanouts + + ( ÷ , rounded up) = 4 pieces
- Total the fittings4 pieces + 4 pieces + 6 pieces + 2 pieces + 4 pieces = 20 fittings
They open the calculator with your figures already in it
Drain Fitting Count Calculator (Wyes, Sanitary Tees, Cleanouts, Traps and Closet Flanges by Fixture): 20 fittings — shown in imperial, US market. The link sets both, so the result they see is the one on your screen.
Show calculation logicHide calculation logic
How this was calculated
Formula source(s)
- ICC, Plumbing Code Essentials: Based on the 2018 International Plumbing Code, pp. 68-69: Table 5-8 (based on IPC Table 706.3) marks the sanitary tee for a horizontal-to-vertical change only; the wye and the combination wye and eighth bend for all three changes
- Michigan Administrative Code R 408.30757 (Michigan Plumbing Code, amending IPC section 708.3): cleanouts on horizontal drains within buildings and building sewers not more than 100 feet (30 480 mm) apart, and at each change of direction greater than 45 degrees
- PHCP Pros, Cleanouts in drainage systems: a cleanout at the base of each waste or soil stack, and horizontal drains with cleanouts not more than 100 ft apart
- International Code Council, 2021 International Plumbing Code, Section 708 Cleanouts and Table 706.3 Fittings for change in direction
- HM Government, The Building Regulations 2010, Approved Document H (2015 edition), paragraph 2.49: access on or near the head of each drain run, at a bend, at a change of gradient and of pipe size, and at junctions; Table 13 spacing
Inputs used
- Toilets (Water Closets)
- 2
- Lavatories (Bathroom Basins)
- 2
- Bathtubs and Showers
- 2
- Kitchen Sinks
- 1
- Laundry Standpipes and Tubs
- 1
- Floor Drains
- 0
- Share of Fixtures Joining a Vertical Stack
- 50
- Soil and Waste Stacks
- 1
- Building Drain Length
- 49 ft
- Maximum Distance Between Cleanouts
- 100 ft
- Changes of Direction over 45°
- 2
Intermediate steps
- Sanitary tees
- 4 pieces
- Wyes with eighth bends
- 4 pieces
- P-traps
- 6 pieces
- Closet flanges
- 2 pieces
- Cleanouts
- 4 pieces
Confidence note: One branch fitting per fixture, a trap for every fixture but a toilet, a flange under each toilet, and cleanouts at stack bases, sharp bends and along the drain.
What this calculation does not cover
- Pipe diameters, drainage fixture units, vents and the fall of each branch are plumbing design set by the code your jurisdiction has adopted. This tally only counts fittings for a layout already drawn.
- Some codes let one cleanout serve several bends that fall close together along the drain. The page counts one for every bend over 45 degrees, so the cleanout figure can run a little high.
- A double fixture (two bowls of a kitchen sink, a pair of basins) often shares one trap and one branch fitting. Enter it as one fixture when it does.
- Reducers, street elbows, test tees, the vent fittings and the fittings on the sewer outside the building are not counted.
Part of a bigger job
This trade is one line of a job takeoff. Run the whole job and every other trade comes back with it, off the same measurements.
Computed in your browser — nothing you enter is uploaded. Presented in US customary units and US trade terminology. Where a formula follows a published standard, that standard and its edition are cited beside it on this page; where none governs, the page says so. Local amendments override model codes — verify against the code in force where you build.
Sources checked 2026-11-26 · 2 test vectors · v1.0.0
Regulatory standards & verification citations5
- ICC, Plumbing Code Essentials: Based on the 2018 International Plumbing Code, pp. 68-69: Table 5-8 (based on IPC Table 706.3) marks the sanitary tee for a horizontal-to-vertical change only; the wye and the combination wye and eighth bend for all three changes
- Michigan Administrative Code R 408.30757 (Michigan Plumbing Code, amending IPC section 708.3): cleanouts on horizontal drains within buildings and building sewers not more than 100 feet (30 480 mm) apart, and at each change of direction greater than 45 degrees
- PHCP Pros, Cleanouts in drainage systems: a cleanout at the base of each waste or soil stack, and horizontal drains with cleanouts not more than 100 ft apart
- International Code Council, 2021 International Plumbing Code, Section 708 Cleanouts and Table 706.3 Fittings for change in direction
- HM Government, The Building Regulations 2010, Approved Document H (2015 edition), paragraph 2.49: access on or near the head of each drain run, at a bend, at a change of gradient and of pipe size, and at junctions; Table 13 spacing
Which documents these citations point at
- International Plumbing Code — Table 706.3 (United States)Plumbing systems — fixtures, water supply, sanitary drainage, venting and storm drainage.
- Approved Documents to the Building Regulations (England) — H (United Kingdom)Practical guidance on meeting the Building Regulations, one lettered part per subject — Part A structure, Part B fire, Part K protection from falling, Part L conservation of fuel and power, and the rest.
A code or standard has force only where a jurisdiction has adopted it, usually with local amendments. This site holds no adoption data for any authority, so check what is in force with the authority where you build. Any section cited above without an edition should be checked against the edition in force where you build. What it would take to know.
Cite this page
Your workspace
Most jobs need more than one number. Add the calculators you need next and they open right here, underneath this one — your figures stay on screen and nothing is lost to a page change.
Tools and safety for this job
To cut and join plastic pipe. Generic types, no brands, no prices.
Protection this work requires
- Knives cause more site injuries than any power tool: cut away from your body, change blades often, and wear cut-resistant gloves to EN 388 level C for repeated cutting.
Cut and join plastic pipe: Push-fit and solvent-weld plumbing is within reach of a competent DIYer. The regulated parts of the system — gas, unvented hot water, and anything notifiable — are not, whatever tools are to hand.
Show the 3 tools this job needsHide tools
Essential
Plastic pipe shears
Tape measure
Recommended
Deburring tool and wire wool
what each plumbing tool is for, and the spec that decides which to buy where one does.