# Pipe, Conduit and Cable Run Calculator (Length, Fittings and Supports from a Measured Route)

> A measured route turned into the pipe, conduit or cable to buy: stock lengths, joints, bend fittings and supports at your code's spacing.

Page: https://craftquantities.com/calculators/materials-quantities/service-run-calculator/ (calculator). This is the page's Markdown copy; the HTML page is the canonical version.

Version 1.0.0, sources checked 2026-10-11, 3 published test vectors.

Length to buy: 71 ft for Horizontal Route Length 59 ft and Vertical Route Length 10 ft, the page's opening figures; on the metric page, 18 m and 3 m give 21.6 m. Source: International Plumbing Code Table 308.5, hanger spacing, as summarised by Open Exam Prep's ICC commercial plumbing guide.

## 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 |
|---|---|---|---|---|
| Horizontal Route Length | `horizontalRun` | 18 m | 59 ft | mm, cm, m, in, ft, yd; range 0–2000 m |
| Vertical Route Length (rises and drops) | `verticalRun` | 3 m | 10 ft | mm, cm, m, in, ft, yd; range 0–500 m |
| Straight Runs | `straightRuns` | 4 | 4 | range 1–200 |
| Bends (changes of direction) | `bends` | 3 | 3 | range 0–200 |
| Ends (fixtures, boxes and connections) | `ends` | 2 | 2 | range 0–200 |
| Extra Length at Each End | `tail` | 300 mm | 11.75 in | mm, cm, m, in, ft, yd; range 0–3 m |
| Stock Length or Coil | `stockLength` | 3 m | 10 ft | mm, cm, m, in, ft, yd; range 0.5–500 m |
| How the Run Is Held | `fixing` | Fixed to the building, on supports | Fixed to the building, on supports | `supported`, `buried` |
| Support Spacing, Horizontal | `horizontalSpacing` | 1219.2 mm | 48 in | mm, cm, m, in, ft, yd; range 0.1–6 m |
| Support Spacing, Vertical | `verticalSpacing` | 3048 mm | 120 in | mm, cm, m, in, ft, yd; range 0.1–10 m |

- **Horizontal Route Length**: Every level part of the route added together, along the path it will really take.
- **Vertical Route Length (rises and drops)**: Every rise and drop added together.
- **Straight Runs**: How many straight pieces of route there are between bends and ends.
- **Bends (changes of direction)**: How many times the route turns, each an elbow or a bend.
- **Ends (fixtures, boxes and connections)**: Where the run starts, stops or connects.
- **Extra Length at Each End**: What you allow at each end to make the connection.
- **Stock Length or Coil**: The length one piece or one coil comes in at your merchant.
- **How the Run Is Held**: Supports for a run fixed to walls, joists or ceilings; none for a pipe or duct laid in a trench.
- **Support Spacing, Horizontal**: The most your code allows between supports for this product, laid level.
- **Support Spacing, Vertical**: The most your code allows between supports on a rise or drop.

`horizontalSpacing` applies only when `fixing` is `supported`.
`verticalSpacing` applies only when `fixing` is `supported`.

## The answer on the opening values

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

### Metric

| Result | Value |
|---|---|
| **Length to buy** | 21.6 m |
| Route measured | 21 m |
| Tails at the ends | 0.6 m |
| Stock lengths or coils | 8 pieces |
| Joints between lengths on a rigid run | 4 joints |
| Bend fittings | 3 fittings |
| Supports on level runs | 19 supports |
| Supports on rises and drops | 1 support |
| Supports in all | 20 supports |

### US customary

| Result | Value |
|---|---|
| **Length to buy** | 71 ft |
| Route measured | 69 ft |
| Tails at the ends | 1.96 ft |
| Stock lengths or coils | 8 pieces |
| Joints between lengths on a rigid run | 4 joints |
| Bend fittings | 3 fittings |
| Supports on level runs | 19 supports |
| Supports on rises and drops | 1 support |
| Supports in all | 20 supports |

## How it is worked out

The route plus a tail at each of 2 ends; supports at both ends of each of the 4 straight runs and at the spacing between, which is the code's for your product, entered by you.

The working the page shows, in order: Route measured; Tails at the ends; Stock lengths or coils; Joints between lengths on a rigid run; Bend fittings; Supports on level runs; Supports on rises and drops; Supports in all; then length to buy.

The method, derived in full:

- [Spacing, Pitch and the Count That Follows](https://craftquantities.com/methodology/spacing-pitch-and-count/): Why a run divided by a spacing gives the number of gaps and not the number of things, why the division rounds up rather than to nearest, and what the leftover bay at the end does to both.

What this calculation does not cover:

- Nothing here sizes the pipe, conduit, cable or duct, or says it may be used where you are running it. The size comes from the sizing pages, and the support spacing from the code your trade works to for that product and size.
- Supports are worked from totals: every straight run gets one at each end, and the rest at the spacing over the whole horizontal length. A route of many short runs can need a few more than this where a run's own length does not divide evenly.
- Fittings are the bends you count, one each. Tees, reducers, boxes, cleanouts, valves and the connectors at each end are separate items.
- Joints assume rigid lengths butted end to end along a straight run. A coil of cable or flexible pipe has none, and its pieces are the coils to buy.
- The tail at each end is the length you allow for the connection; nothing else is added for waste, for offsets round obstructions you have not measured, or for slope.

A professional must decide:

- Electrics: circuit design, protection, cable sizing and the work itself are for a qualified or licensed electrician, under the rules where you build.
- 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-10-11):

- 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) <https://open-exam-prep.com/study-guides/icc-commercial-plumbing/piping-protection-installation/hangers-supports>
- 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) <https://expertce.com/learn-articles/nec-article-358-emt-installation-support/>
- 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) <https://electricianu.com/securing-and-supporting-nm-cable-a-guide-to-nec-compliance/>
- 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) <https://www.ecmweb.com/national-electrical-code/qa/article/21173416/code-qa-permitted-uses-of-uf-cable>
- 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) <https://www.ecmweb.com/national-electrical-code/quizzes/article/20896735/code-quiz-securing-requirements-for-mc-cable>

The site's pages for the documents these name:

- [National Electrical Code (NFPA 70)](https://craftquantities.com/standards/nfpa/nec/)
- [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

**How much pipe or cable do I buy for a run?**

The route as it will really be fixed, level and vertical, plus a tail at every end for the connection, in the lengths or coils your merchant sells. An 18 m (59.1 ft) route along the joists with 3 m (9.8 ft) of drops and two ends at 300 mm (11.8 in) each is 21.6 m (70.9 ft), eight 3 m (9.8 ft) lengths.

**How many supports does the run need?**

One near each end of every straight run, and the rest at the spacing your code sets for the product. The IPC gives 4 ft (1219 mm) for plastic pipe laid level and 10 ft (3048 mm) up a stack; the NEC gives 10 ft (3 m) for EMT and 4 1/2 ft (1.4 m) for NM cable, with a fixing close to every box. The page asks for the spacing rather than choosing it.

**Does this tell me what size of pipe or cable to use?**

No. Size the pipe, the conductor or the duct on the sizing pages first; this page only counts the run.

## Related calculators

- [Pipe Hanger Spacing Calculator](https://craftquantities.com/calculators/materials-quantities/pipe-hanger-spacing-calculator/)
- [HVAC Duct Hanger Support Spacing Calculator](https://craftquantities.com/calculators/materials-quantities/duct-hanger-spacing-calculator/)
- [Conduit Fill Calculator](https://craftquantities.com/calculators/electrical/conduit-fill-calculator/)
- [Domestic Water Pipe Sizing by Fixture Unit Calculator](https://craftquantities.com/calculators/materials-quantities/domestic-water-pipe-sizing-calculator/)

## Run it from a program

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

---
Source: https://craftquantities.com/calculators/materials-quantities/service-run-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.
