# 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.

Page: https://craftquantities.com/calculators/plumbing-hvac/drain-fitting-count-calculator/ (calculator). This is the page's Markdown copy; the HTML page is the canonical version.

Version 1.0.0, sources checked 2026-11-26, 2 published test vectors.

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

## 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](https://www.iccsafe.org/wp-content/uploads/2018_ipc_ess_p68-69.pdf): 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'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](https://www.law.cornell.edu/regulations/michigan/Mich-Admin-Code-R-408-30757): 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)
- 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](https://assets.publishing.service.gov.uk/media/5a80cf9ded915d74e33fc8ae/BR_PDF_AD_H_2015.pdf): 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

A length, area or volume is entered with its unit. The page opens on the values below: a metric reader sees the metric column, a US customary reader the other.

| Input | id | Opens at (metric) | Opens at (US customary) | Accepts |
|---|---|---|---|---|
| Toilets (Water Closets) | `toilets` | 2 | 2 | range 0–200 |
| Lavatories (Bathroom Basins) | `lavatories` | 2 | 2 | range 0–200 |
| Bathtubs and Showers | `tubsShowers` | 2 | 2 | range 0–200 |
| Kitchen Sinks | `kitchenSinks` | 1 | 1 | range 0–100 |
| Laundry Standpipes and Tubs | `laundry` | 1 | 1 | range 0–100 |
| Floor Drains | `floorDrains` | 0 | 0 | range 0–100 |
| Share of Fixtures Joining a Vertical Stack | `stackSharePercent` | 50 | 50 | range 0–100 |
| Soil and Waste Stacks | `stacks` | 1 | 1 | range 0–50 |
| Building Drain Length | `drainLength` | 15 m | 49 ft | mm, cm, m, in, ft, yd; range 0–1000 m |
| Maximum Distance Between Cleanouts | `cleanoutSpacing` | 30.48 m | 100 ft | mm, cm, m, in, ft, yd; range 3–150 m |
| Changes of Direction over 45° | `bendsOver45` | 2 | 2 | range 0–100 |

- **Toilets (Water Closets)**: Each toilet sits on a closet flange and has its trap built into the bowl.
- **Lavatories (Bathroom Basins)**: Bathroom sinks, each with its own trap.
- **Bathtubs and Showers**: Each tub or shower drain takes a trap below the floor.
- **Kitchen Sinks**: A two-bowl sink that drains through one trap counts once.
- **Laundry Standpipes and Tubs**: A washer's standpipe or a laundry tub, each with a trap.
- **Floor Drains**: Basement, garage or utility floor drains, each trapped.
- **Share of Fixtures Joining a Vertical Stack**: Fixtures whose branch drops into a stack take a sanitary tee; the rest join a horizontal drain by a wye.
- **Soil and Waste Stacks**: Each stack takes a cleanout at its base.
- **Building Drain Length**: The horizontal main from the farthest stack to where it leaves the building.
- **Maximum Distance Between Cleanouts**: The IPC spaces cleanouts on a horizontal drain at not more than 100 ft (30.5 m).
- **Changes of Direction over 45°**: Horizontal turns sharper than 45° on the building drain each take a cleanout.

## The answer on the opening values

Worked exactly as the page works it, on the values each system opens on.

### Metric

| Result | Value |
|---|---|
| **Drain fittings** | 20 fittings |
| Sanitary tees | 4 pieces |
| Wyes with eighth bends | 4 pieces |
| P-traps | 6 pieces |
| Closet flanges | 2 pieces |
| Cleanouts | 4 pieces |

### US customary

| Result | Value |
|---|---|
| **Drain fittings** | 20 fittings |
| 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 fittings**: fixtures × 50% = 4 pieces; the rest = 4 pieces
2. **Add the traps and flanges**: fixtures other than 2 = 6 pieces; 2 = 2 pieces
3. **Count the cleanouts**: 1 + 2 + (49 ft ÷ 100 ft, rounded up) = 4 pieces
4. **Total the fittings**: 4 pieces + 4 pieces + 6 pieces + 2 pieces + 4 pieces = 20 fittings

Worked on the figures the page opens on; the page re-works each step on the reader's own.

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

1. **Split the branch fittings**: Branches 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 flanges**: Every fixture but a toilet gets a trap; each toilet gets a closet flange.
3. **Count the cleanouts**: A cleanout at each stack base, at each sharp bend and along the drain at the code's spacing.
4. **Total the fittings**: Add the five counts.

## How it is worked out

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.

The working the page shows, in order: Sanitary tees; Wyes with eighth bends; P-traps; Closet flanges; Cleanouts; then drain fittings.

The method, derived in full:

- [Quantity, Waste and Rounding](https://craftquantities.com/methodology/quantity-waste-and-rounding/): Why a material count is a ceiling function rather than a division, and why the waste factor — not the geometry — carries the risk.

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.

A professional must decide:

- Water: supply and drainage design, and work on them, are for a licensed plumber under the local plumbing rules.

## Sources

As the calculator cites them (sources checked 2026-11-26):

- 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 <https://www.iccsafe.org/wp-content/uploads/2018_ipc_ess_p68-69.pdf>
- 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 <https://www.law.cornell.edu/regulations/michigan/Mich-Admin-Code-R-408-30757>
- 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 <https://www.phcppros.com/articles/9446-cleanouts-in-drainage-systems>
- 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 <https://assets.publishing.service.gov.uk/media/5a80cf9ded915d74e33fc8ae/BR_PDF_AD_H_2015.pdf>

The site's pages for the documents these name:

- [Approved Documents to the Building Regulations (England)](https://craftquantities.com/standards/uk-gov/uk-approved-documents/)
- [International Plumbing Code](https://craftquantities.com/standards/icc/ipc/)

A code or standard has force only where a jurisdiction has adopted it, usually with local amendments; check what is in force with the authority where you build.

## Questions answered on the page

**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.

## Related calculators

- [Plumbing Fixture Connection Calculator (Supply Stops, Flex Connectors, Traps and Waste Fittings per Fixture)](https://craftquantities.com/calculators/plumbing-hvac/plumbing-fixture-connection-calculator/)
- [Drain Pipe Slope Calculator](https://craftquantities.com/calculators/plumbing-hvac/drain-pipe-slope-calculator/)
- [PVC Solvent Cement and Primer Calculator (Cans by Joints and Pipe Size)](https://craftquantities.com/calculators/plumbing-hvac/pvc-solvent-cement-calculator/)
- [Trap Primer Flow Rate Calculator](https://craftquantities.com/calculators/materials-quantities/trap-primer-flow-calculator/)

## Run it from a program

- REST: `GET https://api.craftquantities.com/v1/calculate/drain-fitting-count-calculator` with each input as a query parameter, a length, area or volume with its unit; `https://api.craftquantities.com/v1/describe/drain-fitting-count-calculator` lists the inputs.
- MCP: the `calculate` tool at https://api.craftquantities.com/mcp with `slug` `drain-fitting-count-calculator`.
- Definition and test vectors: https://craftquantities.com/api/v1/calculators/drain-fitting-count-calculator.json

---
Source: https://craftquantities.com/calculators/plumbing-hvac/drain-fitting-count-calculator/
Craft Quantities: free to read, cite and link to; the pages are not licensed for republication. Quantities only: no prices, no design and no certification.
