{
  "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": "service-run-calculator",
  "category": "materials-quantities",
  "title": "Pipe, Conduit and Cable Run Calculator (Length, Fittings and Supports from a Measured Route)",
  "description": "A measured route turned into the pipe, conduit or cable to buy: stock lengths, joints, bend fittings and supports at your code's spacing.",
  "url": "https://craftquantities.com/calculators/materials-quantities/service-run-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/service-run-calculator.json",
  "inputCount": 10,
  "testCaseCount": 3,
  "sourceCount": 5,
  "lastVerified": "2026-10-11",
  "translations": {
    "es-US": "https://craftquantities.com/es/calculators/materials-quantities/service-run-calculator/"
  },
  "citation": {
    "author": "Craft Quantities",
    "title": "Pipe, Conduit and Cable Run Calculator (Length, Fittings and Supports from a Measured Route)",
    "version": "1.0.0",
    "sourcesChecked": "2026-10-11",
    "url": "https://craftquantities.com/calculators/materials-quantities/service-run-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, Conduit and Cable Run Calculator (Length, Fittings and Supports from a Measured Route). Version 1.0.0. Sources checked 2026-10-11. https://craftquantities.com/calculators/materials-quantities/service-run-calculator/",
      "apa": "Craft Quantities. (2026). Pipe, Conduit and Cable Run Calculator (Length, Fittings and Supports from a Measured Route) (Version 1.0.0) [Web calculator]. Retrieved from https://craftquantities.com/calculators/materials-quantities/service-run-calculator/",
      "harvard": "Craft Quantities (2026) Pipe, Conduit and Cable Run Calculator (Length, Fittings and Supports from a Measured Route) (Version 1.0.0). Available at: https://craftquantities.com/calculators/materials-quantities/service-run-calculator/",
      "bibtex": "@misc{craftquantities-calculators-materials-quantities-service-run-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Pipe, Conduit and Cable Run Calculator (Length, Fittings and Supports from a Measured Route)},\n  version      = {1.0.0},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/materials-quantities/service-run-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "horizontalRun",
      "label": "Horizontal Route Length",
      "type": "number",
      "dimension": "length",
      "defaultValue": 18,
      "min": 0,
      "max": 2000,
      "step": 0.1,
      "help": "Every level part of the route added together, along the path it will really take."
    },
    {
      "id": "verticalRun",
      "label": "Vertical Route Length (rises and drops)",
      "type": "number",
      "dimension": "length",
      "defaultValue": 3,
      "min": 0,
      "max": 500,
      "step": 0.1,
      "help": "Every rise and drop added together."
    },
    {
      "id": "straightRuns",
      "label": "Straight Runs",
      "type": "number",
      "defaultValue": 4,
      "min": 1,
      "max": 200,
      "step": 1,
      "help": "How many straight pieces of route there are between bends and ends."
    },
    {
      "id": "bends",
      "label": "Bends (changes of direction)",
      "type": "number",
      "defaultValue": 3,
      "min": 0,
      "max": 200,
      "step": 1,
      "help": "How many times the route turns, each an elbow or a bend."
    },
    {
      "id": "ends",
      "label": "Ends (fixtures, boxes and connections)",
      "type": "number",
      "defaultValue": 2,
      "min": 0,
      "max": 200,
      "step": 1,
      "help": "Where the run starts, stops or connects."
    },
    {
      "id": "tail",
      "label": "Extra Length at Each End",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0.3,
      "min": 0,
      "max": 3,
      "step": 0.01,
      "help": "What you allow at each end to make the connection."
    },
    {
      "id": "stockLength",
      "label": "Stock Length or Coil",
      "type": "number",
      "dimension": "length",
      "defaultValue": 3,
      "min": 0.5,
      "max": 500,
      "step": 0.1,
      "help": "The length one piece or one coil comes in at your merchant."
    },
    {
      "id": "fixing",
      "label": "How the Run Is Held",
      "type": "select",
      "defaultValue": "supported",
      "options": [
        {
          "value": "supported",
          "label": "Fixed to the building, on supports"
        },
        {
          "value": "buried",
          "label": "Buried in a bedded trench (no supports)"
        }
      ],
      "help": "Supports for a run fixed to walls, joists or ceilings; none for a pipe or duct laid in a trench."
    },
    {
      "id": "horizontalSpacing",
      "label": "Support Spacing, Horizontal",
      "type": "number",
      "dimension": "length",
      "defaultValue": 1.2192,
      "min": 0.1,
      "max": 6,
      "step": 0.001,
      "help": "The most your code allows between supports for this product, laid level."
    },
    {
      "id": "verticalSpacing",
      "label": "Support Spacing, Vertical",
      "type": "number",
      "dimension": "length",
      "defaultValue": 3.048,
      "min": 0.1,
      "max": 10,
      "step": 0.001,
      "help": "The most your code allows between supports on a rise or drop."
    }
  ],
  "sources": [
    {
      "label": "International Plumbing Code Table 308.5, hanger spacing, as summarised by Open Exam Prep's ICC commercial plumbing guide: PVC and ABS horizontal at no more than 4 feet (1219 mm), vertical at least every 10 feet (3048 mm); copper tubing 1 1/4 in and smaller 6 feet (1829 mm) horizontal; PEX 32 inches (813 mm); cast iron 5 feet (1524 mm)",
      "url": "https://open-exam-prep.com/study-guides/icc-commercial-plumbing/piping-protection-installation/hangers-supports"
    },
    {
      "label": "NEC (NFPA 70) 358.30, electrical metallic tubing: securely fastened at intervals not exceeding 3 m (10 ft), and within 3 feet of each outlet box, junction box, device box, cabinet, conduit body or other tubing termination (ExpertCE)",
      "url": "https://expertce.com/learn-articles/nec-article-358-emt-installation-support/"
    },
    {
      "label": "NEC 2023 334.30, nonmetallic-sheathed cable: supported at intervals not exceeding 1.4 m (4 1/2 ft) and secured within 300 mm (12 in) of each box, cabinet, conduit body or other termination (ElectricianU)",
      "url": "https://electricianu.com/securing-and-supporting-nm-cable-a-guide-to-nec-compliance/"
    },
    {
      "label": "NEC 340.10(4), UF cable: where it is installed as nonmetallic-sheathed cable, the installation must comply with Parts II and III of Article 334, so 334.30's support at intervals not exceeding 4 1/2 ft (1.4 m) applies to it (EC&M Code Q&A, permitted uses of UF cable)",
      "url": "https://www.ecmweb.com/national-electrical-code/qa/article/21173416/code-qa-permitted-uses-of-uf-cable"
    },
    {
      "label": "NEC 330.30(B), MC cable: secured at intervals not exceeding 1.8 m (6 ft), and within 300 mm (12 in) of every box, cabinet, fitting or other cable termination (EC&M Code Quiz, securing requirements for MC cable)",
      "url": "https://www.ecmweb.com/national-electrical-code/quizzes/article/20896735/code-quiz-securing-requirements-for-mc-cable"
    }
  ],
  "testCases": [
    {
      "name": "Opening: 18 m level and 3 m vertical, 4 runs, 3 bends, 2 ends with 300 mm tails, 3 m lengths, PVC spacing",
      "inputs": {
        "horizontalRun": 18,
        "verticalRun": 3,
        "straightRuns": 4,
        "bends": 3,
        "ends": 2,
        "tail": 0.3,
        "stockLength": 3,
        "horizontalSpacing": 1.2192,
        "verticalSpacing": 3.048
      },
      "expected": 21.6,
      "toleranceDecimalPlaces": 6,
      "unit": "m",
      "confidence": "high",
      "steps": [
        {
          "label": "Route measured",
          "value": 21,
          "unit": "m"
        },
        {
          "label": "Tails at the ends",
          "value": 0.6,
          "unit": "m"
        },
        {
          "label": "Stock lengths or coils",
          "value": 8,
          "unit": "pieces"
        },
        {
          "label": "Joints between lengths on a rigid run",
          "value": 4,
          "unit": "joints"
        },
        {
          "label": "Bend fittings",
          "value": 3,
          "unit": "fittings"
        },
        {
          "label": "Supports on level runs",
          "value": 19,
          "unit": "supports"
        },
        {
          "label": "Supports on rises and drops",
          "value": 1,
          "unit": "supports"
        },
        {
          "label": "Supports in all",
          "value": 20,
          "unit": "supports"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "EMT: 60 ft level, 8 ft of drops, 5 runs, 4 bends, 3 boxes at 6 in, 10 ft lengths, the NEC's 10 ft spacing",
      "inputs": {
        "horizontalRun": 18.288,
        "verticalRun": 2.4384,
        "straightRuns": 5,
        "bends": 4,
        "ends": 3,
        "tail": 0.15239999999999998,
        "stockLength": 3.048,
        "horizontalSpacing": 3.048,
        "verticalSpacing": 3.048
      },
      "expected": 21.1836,
      "toleranceDecimalPlaces": 4,
      "unit": "m",
      "confidence": "high",
      "steps": [
        {
          "label": "Route measured",
          "value": 20.7264,
          "unit": "m"
        },
        {
          "label": "Tails at the ends",
          "value": 0.45719999999999994,
          "unit": "m"
        },
        {
          "label": "Stock lengths or coils",
          "value": 7,
          "unit": "pieces"
        },
        {
          "label": "Joints between lengths on a rigid run",
          "value": 2,
          "unit": "joints"
        },
        {
          "label": "Bend fittings",
          "value": 4,
          "unit": "fittings"
        },
        {
          "label": "Supports on level runs",
          "value": 11,
          "unit": "supports"
        },
        {
          "label": "Supports on rises and drops",
          "value": 1,
          "unit": "supports"
        },
        {
          "label": "Supports in all",
          "value": 12,
          "unit": "supports"
        }
      ],
      "basis": "cited",
      "sourceIndex": 1
    },
    {
      "name": "A buried water service: 15 m of trench and a 0.9 m rise, one run, two ends at 300 mm, 25 m coils, no supports",
      "inputs": {
        "horizontalRun": 15,
        "verticalRun": 0.9,
        "straightRuns": 1,
        "bends": 1,
        "ends": 2,
        "tail": 0.3,
        "stockLength": 25,
        "fixing": "buried",
        "horizontalSpacing": 1.2192,
        "verticalSpacing": 3.048
      },
      "expected": 16.5,
      "toleranceDecimalPlaces": 6,
      "unit": "m",
      "confidence": "high",
      "steps": [
        {
          "label": "Route measured",
          "value": 15.9,
          "unit": "m"
        },
        {
          "label": "Tails at the ends",
          "value": 0.6,
          "unit": "m"
        },
        {
          "label": "Stock lengths or coils",
          "value": 1,
          "unit": "pieces"
        },
        {
          "label": "Joints between lengths on a rigid run",
          "value": 0,
          "unit": "joints"
        },
        {
          "label": "Bend fittings",
          "value": 1,
          "unit": "fittings"
        },
        {
          "label": "Supports on level runs",
          "value": 0,
          "unit": "supports"
        },
        {
          "label": "Supports on rises and drops",
          "value": 0,
          "unit": "supports"
        },
        {
          "label": "Supports in all",
          "value": 0,
          "unit": "supports"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    }
  ],
  "usedByAssemblies": [
    {
      "id": "service-connections",
      "name": "New-build service connections (water and sewer)"
    }
  ]
}
