Pipe Calculator
What are you plumbing?
Count every fixture getting hot and cold water.
How long are the runs?
Trunk lines feed the branches — measure your longest paths.
Water heater / main to the far end of the house.
Trunk (or manifold) to a typical fixture.
Waste allowance — extra for offcuts, kinks & reroutes
Your pipe count
Buy this much PEX
–
- Fixtures
- –
- Trunk ×2
- –
- Branch runs
- –
- Total PEX (+10%)
- –
- Fittings
- –
- Shutoff valves
- –
💡 Pro field tips
🧰 Tools you'll need
Tap to check off as you load up.
Est. project cost (optional)
File this estimate under a job name or PO to track what to order. Leave blank to file under "General".
Copied to clipboard ✓
How the math works
Plumbing a house with PEX is mostly a measuring exercise: how many feet of pipe, how many fittings to connect it all, and how many shutoff valves to control it. The math follows the shape of the system itself — a main trunk line that runs the length of the house, with smaller branch lines tee-ing off to each fixture. This calculator walks that layout and totals everything up, with a waste % you can add so you are not making a second trip to the supply house.
Step 1: The trunk line
The trunk is the big pipe (usually 3/4-inch PEX) that carries water from where it enters the house past every bathroom and the kitchen. Its length is simply the measured run: trunk feet = distance from water entry to the farthest fixture group. If your water heater sits 30 feet from the entry and the far bathroom is 15 feet past that, the trunk is roughly 45 feet. The calculator uses your entered trunk length directly — measure the actual path the pipe will take, including up and over, not the straight-line distance on the floor plan.
Step 2: Branch lines to each fixture
Every fixture gets its own branch (usually 1/2-inch PEX) teeing off the trunk. The calculator multiplies your average branch length × number of fixtures. If branches average 12 feet and you have 8 fixtures, that is 96 feet of 1/2-inch pipe. Branches are smaller than the trunk because each one only feeds a single fixture — it does not need to carry the whole house's flow.
Step 3: Hot and cold are two separate systems
Nearly every fixture needs both a hot and a cold line, so the calculator doubles the branch footage (and runs a parallel hot trunk from the water heater). A "12-foot branch" really means 12 feet of cold plus 12 feet of hot. Forgetting to double is the classic PEX estimating mistake — your pipe total would come up exactly half short.
Step 4: Fittings and shutoffs
Each fixture needs a shutoff valve (so you can service one sink without killing water to the whole house), and the fittings add up fast — tees where branches leave the trunk, elbows, adapters. The rule of thumb this calculator uses: one shutoff valve per fixture, and 4 fittings per fixture plus 6 spares. PEX uses far fewer fittings than copper because the tubing bends around corners instead of needing an elbow at every turn, which is a big part of why it is cheaper and faster to install.
Step 5: The waste buffer
The calculator starts with no waste added — the total is exactly what you measured. Add a cushion with the waste chips on the results screen (0/5/10/15/20%). Offcuts from cutting to length, a bend that kinked and had to be redone, and routing around an unexpected joist all eat footage. Ten percent covers normal waste without leaving you with a garage full of expensive leftover coil.
Worked example
A small house: 40-foot trunk, 6 fixtures averaging 10-foot branches. Trunk: 40 ft of 3/4-inch, doubled for hot and cold = 80 ft. Branches: 6 × 10 = 60 ft of 1/2-inch, doubled for hot and cold = 120 ft. Fittings: 6 × 4 + 6 spares = 30 fittings, and 6 shutoff valves — one per fixture. Subtotal: 80 + 120 = 200 ft. Add 10% waste — the common pick: 220 ft of PEX to buy.
Most Asked Questions
Why is my total pipe footage so much more than the distance I measured?
Hot and cold are two separate systems — this calculator doubles every run. The trunk gets a parallel hot line from the water heater, and every branch counts twice (hot + cold), and any waste you add with the buttons goes on top. Forgetting the doubling is the classic PEX mistake: your order comes up exactly half short.
How much extra pipe does the calculator add for waste?
Nothing is added until you add it — the waste starts at 0%. Tap a waste chip (10% is the common pick) and the total updates right away.
What size PEX do I need for the trunk and the branches?
3/4-inch for the trunk, 1/2-inch for the branches. The trunk carries the whole house's flow past every fixture group; each branch only feeds one fixture, so it can run smaller.
What counts as a fixture in this calculator?
Every sink, toilet, tub or shower, washer hookup, and hose bib. Each one gets its own branch off the trunk — count the fixtures in the house and enter them by type.
How many fittings should I buy?
This calculator budgets 4 fittings per fixture, plus 6 spares. PEX bends around corners instead of needing an elbow at every turn, so it uses far fewer fittings than copper — and the spares cover the drops and do-overs.
What should I do before I close up the walls?
Pressure-test the system — 100 psi for 15 minutes. And support horizontal PEX every 32 inches: unsupported runs sag, and water hammer gets loud. A leak found now is a fitting; a leak found after drywall is a remodel.