{
  "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": "pipe-hanger-spacing-calculator",
  "category": "materials-quantities",
  "title": "Pipe Hanger Spacing Calculator",
  "description": "Calculate the number of hangers needed to support a pipe run at code-required spacing.",
  "url": "https://craftquantities.com/calculators/materials-quantities/pipe-hanger-spacing-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/pipe-hanger-spacing-calculator.json",
  "inputCount": 2,
  "testCaseCount": 2,
  "sourceCount": 1,
  "lastVerified": "2026-09-05",
  "translations": {
    "es-US": "https://craftquantities.com/es/calculators/materials-quantities/pipe-hanger-spacing-calculator/"
  },
  "citation": {
    "author": "Craft Quantities",
    "title": "Pipe Hanger Spacing Calculator",
    "version": "1.0.1",
    "sourcesChecked": "2026-09-05",
    "url": "https://craftquantities.com/calculators/materials-quantities/pipe-hanger-spacing-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. Pipe Hanger Spacing Calculator. Version 1.0.1. Sources checked 2026-09-05. https://craftquantities.com/calculators/materials-quantities/pipe-hanger-spacing-calculator/",
      "apa": "Craft Quantities. (2026). Pipe Hanger Spacing Calculator (Version 1.0.1) [Web calculator]. Retrieved from https://craftquantities.com/calculators/materials-quantities/pipe-hanger-spacing-calculator/",
      "harvard": "Craft Quantities (2026) Pipe Hanger Spacing Calculator (Version 1.0.1). Available at: https://craftquantities.com/calculators/materials-quantities/pipe-hanger-spacing-calculator/",
      "bibtex": "@misc{craftquantities-calculators-materials-quantities-pipe-hanger-spacing-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Pipe Hanger Spacing Calculator},\n  version      = {1.0.1},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/materials-quantities/pipe-hanger-spacing-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "runLength",
      "label": "Pipe Run Length",
      "type": "number",
      "dimension": "length",
      "defaultValue": 20,
      "min": 0.01,
      "max": 200,
      "step": 0.5,
      "help": "The total length of the pipe run needing support."
    },
    {
      "id": "maxSpacing",
      "label": "Maximum Hanger Spacing (Per Code, by Pipe Size/Material)",
      "type": "number",
      "dimension": "length",
      "defaultValue": 2.4,
      "min": 0.01,
      "max": 4,
      "step": 0.1,
      "help": "The maximum spacing between hangers allowed by code for this pipe's material and size."
    }
  ],
  "sources": [
    {
      "label": "Hanger count = ceil(pipe run length ÷ maximum hanger spacing) + 1, the standard layout method for spacing pipe supports at or within the maximum spacing permitted by plumbing/mechanical code for the pipe's material and size"
    }
  ],
  "testCases": [
    {
      "name": "20m run, 2.4m max spacing",
      "inputs": {
        "runLength": 20,
        "maxSpacing": 2.4
      },
      "expected": 10,
      "toleranceDecimalPlaces": 0,
      "unit": "hangers",
      "confidence": "medium",
      "steps": [
        {
          "label": "Bays along the pipe run",
          "value": 9
        },
        {
          "label": "Hanger centres along the pipe",
          "value": 2.2222222222222223,
          "unit": "m"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "30m run, 3.0m max spacing",
      "inputs": {
        "runLength": 30,
        "maxSpacing": 3
      },
      "expected": 11,
      "toleranceDecimalPlaces": 0,
      "unit": "hangers",
      "confidence": "medium",
      "steps": [
        {
          "label": "Bays along the pipe run",
          "value": 10
        },
        {
          "label": "Hanger centres along the pipe",
          "value": 3,
          "unit": "m"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    }
  ]
}
