{
  "version": "v1",
  "source": "https://craftquantities.com",
  "licence": "CC BY 4.0",
  "licenceUrl": "https://creativecommons.org/licenses/by/4.0/",
  "attribution": "Craft Quantities — craftquantities.com",
  "documentation": "https://craftquantities.com/api/",
  "versioning": "Fields are added, never removed or repurposed, within a version. A breaking change becomes /api/v2/ and v1 keeps being built.",
  "slug": "drain-fitting-count-calculator",
  "category": "plumbing-hvac",
  "title": "Drain Fitting Count Calculator (Wyes, Sanitary Tees, Cleanouts, Traps and Closet Flanges by Fixture)",
  "description": "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.",
  "url": "https://craftquantities.com/calculators/plumbing-hvac/drain-fitting-count-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/drain-fitting-count-calculator.json",
  "inputCount": 11,
  "testCaseCount": 2,
  "sourceCount": 5,
  "lastVerified": "2026-11-26",
  "citation": {
    "author": "Craft Quantities",
    "title": "Drain Fitting Count Calculator (Wyes, Sanitary Tees, Cleanouts, Traps and Closet Flanges by Fixture)",
    "version": "1.0.0",
    "sourcesChecked": "2026-11-26",
    "url": "https://craftquantities.com/calculators/plumbing-hvac/drain-fitting-count-calculator/",
    "accessDate": null,
    "accessDateNote": "Add the date you retrieved this. It is deliberately absent: a static file cannot know when you read it, and the build date would be wrong.",
    "permanentVersionedUrl": null,
    "permanentVersionedUrlNote": "Not offered. This site keeps no archive of previous builds, so any such URL would resolve to the current page or to nothing. The version and sourcesChecked fields identify the calculation instead.",
    "formats": {
      "plain": "Craft Quantities. Drain Fitting Count Calculator (Wyes, Sanitary Tees, Cleanouts, Traps and Closet Flanges by Fixture). Version 1.0.0. Sources checked 2026-11-26. https://craftquantities.com/calculators/plumbing-hvac/drain-fitting-count-calculator/",
      "apa": "Craft Quantities. (2026). Drain Fitting Count Calculator (Wyes, Sanitary Tees, Cleanouts, Traps and Closet Flanges by Fixture) (Version 1.0.0) [Web calculator]. Retrieved from https://craftquantities.com/calculators/plumbing-hvac/drain-fitting-count-calculator/",
      "harvard": "Craft Quantities (2026) Drain Fitting Count Calculator (Wyes, Sanitary Tees, Cleanouts, Traps and Closet Flanges by Fixture) (Version 1.0.0). Available at: https://craftquantities.com/calculators/plumbing-hvac/drain-fitting-count-calculator/",
      "bibtex": "@misc{craftquantities-calculators-plumbing-hvac-drain-fitting-count-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Drain Fitting Count Calculator (Wyes, Sanitary Tees, Cleanouts, Traps and Closet Flanges by Fixture)},\n  version      = {1.0.0},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/plumbing-hvac/drain-fitting-count-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "toilets",
      "label": "Toilets (Water Closets)",
      "type": "number",
      "defaultValue": 2,
      "min": 0,
      "max": 200,
      "step": 1,
      "help": "Each toilet sits on a closet flange and has its trap built into the bowl."
    },
    {
      "id": "lavatories",
      "label": "Lavatories (Bathroom Basins)",
      "type": "number",
      "defaultValue": 2,
      "min": 0,
      "max": 200,
      "step": 1,
      "help": "Bathroom sinks, each with its own trap."
    },
    {
      "id": "tubsShowers",
      "label": "Bathtubs and Showers",
      "type": "number",
      "defaultValue": 2,
      "min": 0,
      "max": 200,
      "step": 1,
      "help": "Each tub or shower drain takes a trap below the floor."
    },
    {
      "id": "kitchenSinks",
      "label": "Kitchen Sinks",
      "type": "number",
      "defaultValue": 1,
      "min": 0,
      "max": 100,
      "step": 1,
      "help": "A two-bowl sink that drains through one trap counts once."
    },
    {
      "id": "laundry",
      "label": "Laundry Standpipes and Tubs",
      "type": "number",
      "defaultValue": 1,
      "min": 0,
      "max": 100,
      "step": 1,
      "help": "A washer's standpipe or a laundry tub, each with a trap."
    },
    {
      "id": "floorDrains",
      "label": "Floor Drains",
      "type": "number",
      "defaultValue": 0,
      "min": 0,
      "max": 100,
      "step": 1,
      "help": "Basement, garage or utility floor drains, each trapped."
    },
    {
      "id": "stackSharePercent",
      "label": "Share of Fixtures Joining a Vertical Stack",
      "type": "number",
      "defaultValue": 50,
      "min": 0,
      "max": 100,
      "step": 5,
      "help": "Fixtures whose branch drops into a stack take a sanitary tee; the rest join a horizontal drain by a wye."
    },
    {
      "id": "stacks",
      "label": "Soil and Waste Stacks",
      "type": "number",
      "defaultValue": 1,
      "min": 0,
      "max": 50,
      "step": 1,
      "help": "Each stack takes a cleanout at its base."
    },
    {
      "id": "drainLength",
      "label": "Building Drain Length",
      "type": "number",
      "dimension": "length",
      "defaultValue": 15,
      "min": 0,
      "max": 1000,
      "step": 0.5,
      "help": "The horizontal main from the farthest stack to where it leaves the building."
    },
    {
      "id": "cleanoutSpacing",
      "label": "Maximum Distance Between Cleanouts",
      "type": "number",
      "dimension": "length",
      "defaultValue": 30.48,
      "min": 3,
      "max": 150,
      "step": 0.5,
      "help": "The IPC spaces cleanouts on a horizontal drain at not more than 100 ft (30.5 m)."
    },
    {
      "id": "bendsOver45",
      "label": "Changes of Direction over 45°",
      "type": "number",
      "defaultValue": 2,
      "min": 0,
      "max": 100,
      "step": 1,
      "help": "Horizontal turns sharper than 45° on the building drain each take a cleanout."
    }
  ],
  "sources": [
    {
      "label": "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",
      "url": "https://www.iccsafe.org/wp-content/uploads/2018_ipc_ess_p68-69.pdf"
    },
    {
      "label": "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",
      "url": "https://www.law.cornell.edu/regulations/michigan/Mich-Admin-Code-R-408-30757"
    },
    {
      "label": "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",
      "url": "https://www.phcppros.com/articles/9446-cleanouts-in-drainage-systems"
    },
    {
      "label": "International Code Council, 2021 International Plumbing Code, Section 708 Cleanouts and Table 706.3 Fittings for change in direction"
    },
    {
      "label": "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",
      "url": "https://assets.publishing.service.gov.uk/media/5a80cf9ded915d74e33fc8ae/BR_PDF_AD_H_2015.pdf"
    }
  ],
  "testCases": [
    {
      "name": "Two bathrooms, a kitchen and a laundry over a 15 m drain: twenty fittings",
      "inputs": {
        "toilets": 2,
        "lavatories": 2,
        "tubsShowers": 2,
        "kitchenSinks": 1,
        "laundry": 1,
        "floorDrains": 0,
        "stackSharePercent": 50,
        "stacks": 1,
        "drainLength": 15,
        "cleanoutSpacing": 30.48,
        "bendsOver45": 2
      },
      "expected": 20,
      "toleranceDecimalPlaces": 0,
      "unit": "fittings",
      "confidence": "high",
      "steps": [
        {
          "label": "Sanitary tees",
          "value": 4,
          "unit": "pieces"
        },
        {
          "label": "Wyes with eighth bends",
          "value": 4,
          "unit": "pieces"
        },
        {
          "label": "P-traps",
          "value": 6,
          "unit": "pieces"
        },
        {
          "label": "Closet flanges",
          "value": 2,
          "unit": "pieces"
        },
        {
          "label": "Cleanouts",
          "value": 4,
          "unit": "pieces"
        }
      ],
      "basis": "cited",
      "sourceIndex": 1
    },
    {
      "name": "A slab house with 11 fixtures on a 120 ft drain: twenty-nine fittings",
      "inputs": {
        "toilets": 3,
        "lavatories": 3,
        "tubsShowers": 2,
        "kitchenSinks": 1,
        "laundry": 1,
        "floorDrains": 1,
        "stackSharePercent": 0,
        "stacks": 2,
        "drainLength": 36.576,
        "cleanoutSpacing": 30.48,
        "bendsOver45": 3
      },
      "expected": 29,
      "toleranceDecimalPlaces": 0,
      "unit": "fittings",
      "confidence": "high",
      "steps": [
        {
          "label": "Sanitary tees",
          "value": 0,
          "unit": "pieces"
        },
        {
          "label": "Wyes with eighth bends",
          "value": 11,
          "unit": "pieces"
        },
        {
          "label": "P-traps",
          "value": 8,
          "unit": "pieces"
        },
        {
          "label": "Closet flanges",
          "value": 3,
          "unit": "pieces"
        },
        {
          "label": "Cleanouts",
          "value": 7,
          "unit": "pieces"
        }
      ],
      "basis": "cited",
      "sourceIndex": 1
    }
  ],
  "usedByAssemblies": [
    {
      "id": "bathroom-plumbing-rough-in",
      "name": "Bathroom plumbing rough-in"
    }
  ]
}
