Plumbing & HVAC

Drain Fitting Count Calculator (Wyes, Sanitary Tees, Cleanouts, Traps and Closet Flanges by Fixture)

Counts the drain fittings a rough-in takes from its fixtures: sanitary tees or wyes, P-traps, closet flanges and the cleanouts the code calls for.

Drain fittings: 20 fittings for Toilets 2, Lavatories 2 and Bathtubs and Showers 2, the page's opening figures. Source: ICC, Plumbing Code Essentials.

  • Answers as you type
  • 5 sources cited
  • Calculated in your browser
SettingsSettings for this calculationUS
Market
Imperial · sales tax
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

High confidence

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

  1. Split the branch fittingsfixtures × % = 4 pieces; the rest = 4 pieces
  2. Add the traps and flangesfixtures other than = 6 pieces; = 2 pieces
  3. Count the cleanouts + + ( ÷ , rounded up) = 4 pieces
  4. Total the fittings4 pieces + 4 pieces + 6 pieces + 2 pieces + 4 pieces = 20 fittings
Then change the inputs to see how far the answer moves.

Show 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
Final result20 fittings

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.
100 ft49 ft2 at 100 ft
Schematic, drawn to the proportions you entered — not to scale on screen.

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
  1. 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
  2. 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
  3. 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
  4. International Code Council, 2021 International Plumbing Code, Section 708 Cleanouts and Table 706.3 Fittings for change in direction
  5. 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 needs

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.

How to calculate drain fitting count (wyes, sanitary tees, cleanouts, traps and closet flanges by fixture) in 4 steps

  1. Split the branch fittingsBranches dropping into a stack take a sanitary tee; branches joining a horizontal drain take a wye with an eighth bend.
  2. Add the traps and flangesEvery fixture but a toilet gets a trap; each toilet gets a closet flange.
  3. Count the cleanoutsA cleanout at each stack base, at each sharp bend and along the drain at the code's spacing.
  4. Total the fittingsAdd the five counts.

Key facts

  • The ICC's fittings table, based on IPC Table 706.3, marks a sanitary tee for a horizontal-to-vertical change only, while a wye and a combination wye and eighth bend are marked for all three directions. (ICC Plumbing Code Essentials)
  • Michigan's plumbing code, amending the IPC, puts cleanouts on horizontal drains and building sewers not more than 100 ft (30.5 m) apart and at each change of direction greater than 45 degrees. (Mich. Admin. Code R 408.30757)
  • Approved Document H asks for drain access on or near the head of each run, at a bend, at a change of gradient or pipe size, and at junctions. (Approved Document H, 2.49)

Frequently asked questions

When is a sanitary tee allowed on a drain?
Only where a horizontal branch turns down into a vertical stack. The IPC's fittings table marks the sanitary tee for that one change of direction, while a wye or a combination wye and eighth bend may be used for all three, so a branch joining a horizontal drain is counted here as a wye with its eighth bend.
Why does a toilet get no P-trap?
Its trap is cast into the china bowl, so the drain below needs only a closet flange to bolt the toilet down and seal it. Every other fixture on this page, from the basin to the floor drain, takes a trap of its own.
How many cleanouts does a house drain need?
Plumbing codes ask for one at the base of each stack, one at each horizontal turn sharper than 45°, and one at least every 100 ft (30.5 m) of horizontal drain. In England, Approved Document H asks for rodding access at the head of each run, at bends and changes of gradient, and at junctions that cannot be cleared from another point.
Is this the same as the fixture connection page?
No. The plumbing fixture connection calculator counts what sits above the floor at each fixture, the stop valves and the flexible supply connectors. This page counts the drain fittings under it, so a rough-in usually needs both lists.
Preliminary estimate, not certified engineering. This tool produces an indicative quantity calculation for planning purposes only — it is not a certified structural analysis, a guaranteed material takeoff, or a substitute for building department approval. Always verify measurements on-site and have a licensed contractor or structural engineer review any load-bearing, code-sensitive, or safety-critical work before purchasing materials or starting construction. Spotted an arithmetic or standards error? Report it to contact@craftquantities.com with your inputs — a confirmed fix gets a permanent check of its own, so the same mistake cannot come back.