{
  "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-pipe-slope-calculator",
  "category": "plumbing-hvac",
  "title": "Drain Pipe Slope Calculator",
  "description": "Find the minimum required drop for a drain pipe run, based on standard plumbing code minimum slope.",
  "url": "https://craftquantities.com/calculators/plumbing-hvac/drain-pipe-slope-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/drain-pipe-slope-calculator.json",
  "inputCount": 2,
  "testCaseCount": 2,
  "sourceCount": 1,
  "lastVerified": "2026-09-05",
  "translations": {
    "es-US": "https://craftquantities.com/es/calculators/plumbing-hvac/drain-pipe-slope-calculator/"
  },
  "citation": {
    "author": "Craft Quantities",
    "title": "Drain Pipe Slope Calculator",
    "version": "1.0.1",
    "sourcesChecked": "2026-09-05",
    "url": "https://craftquantities.com/calculators/plumbing-hvac/drain-pipe-slope-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 Pipe Slope Calculator. Version 1.0.1. Sources checked 2026-09-05. https://craftquantities.com/calculators/plumbing-hvac/drain-pipe-slope-calculator/",
      "apa": "Craft Quantities. (2026). Drain Pipe Slope Calculator (Version 1.0.1) [Web calculator]. Retrieved from https://craftquantities.com/calculators/plumbing-hvac/drain-pipe-slope-calculator/",
      "harvard": "Craft Quantities (2026) Drain Pipe Slope Calculator (Version 1.0.1). Available at: https://craftquantities.com/calculators/plumbing-hvac/drain-pipe-slope-calculator/",
      "bibtex": "@misc{craftquantities-calculators-plumbing-hvac-drain-pipe-slope-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Drain Pipe Slope Calculator},\n  version      = {1.0.1},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/plumbing-hvac/drain-pipe-slope-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "pipeLength",
      "label": "Pipe Run Length",
      "type": "number",
      "dimension": "length",
      "defaultValue": 6,
      "min": 0.01,
      "max": 100,
      "step": 0.1,
      "help": "The horizontal length of the drain pipe run."
    },
    {
      "id": "pipeDiameterCategory",
      "label": "Pipe Size",
      "type": "select",
      "defaultValue": "small",
      "optionsBySystem": {
        "imperial": [
          {
            "value": "small",
            "label": "3 in diameter or smaller"
          },
          {
            "value": "large",
            "label": "Larger than 3 in diameter"
          }
        ],
        "metric": [
          {
            "value": "small",
            "label": "80 mm (3 in) diameter or smaller"
          },
          {
            "value": "large",
            "label": "Larger than 80 mm (3 in) diameter"
          }
        ]
      },
      "help": "Larger drain pipes are allowed a gentler minimum slope."
    }
  ],
  "sources": [
    {
      "label": "Standard plumbing code minimum drain slope (UPC/IPC): 1/4 in per ft for pipes 3 in and smaller, 1/8 in per ft for pipes larger than 3 in"
    }
  ],
  "testCases": [
    {
      "name": "6m run, small pipe",
      "inputs": {
        "pipeLength": 6,
        "pipeDiameterCategory": "small"
      },
      "expected": 4.921,
      "toleranceDecimalPlaces": 2,
      "unit": "in of drop (minimum)",
      "confidence": "high",
      "steps": [
        {
          "label": "Pipe run length",
          "value": 19.68503937007874,
          "unit": "linear ft"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "20m run, large pipe",
      "inputs": {
        "pipeLength": 20,
        "pipeDiameterCategory": "large"
      },
      "expected": 8.202,
      "toleranceDecimalPlaces": 0.1,
      "unit": "in of drop (minimum)",
      "confidence": "high",
      "steps": [
        {
          "label": "Pipe run length",
          "value": 65.61679790026247,
          "unit": "linear ft"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    }
  ]
}
