Copper and PEX Pipe Calculator
Last updated: 2026-08-10
Enter your email and download a PDF report with your results.
| Total length (m) | Supply points (ud) | |
|---|---|---|
| Small bathroom | 12.5 m | 3 ud |
| Medium bathroom | 18.75 m | 4 ud |
| Large bathroom | 25 m | 6 ud |
| Apartment | 37.5 m | 9 ud |
| House | 50 m | 12 ud |
Whether you are a professional plumber or a DIY homeowner tackling a renovation, accurately estimating the materials for a piping project can save you time, money, and frustration. The Copper and PEX Pipe Calculator is a free plumbing calculator designed to help you quickly determine the total pipe length, number of elbows, tees, and valves needed for your installation. By inputting just two key values—the total pipe run length and the number of supply points—you can generate a reliable materials list that accounts for typical waste and standard fitting ratios.
What the Copper and PEX Pipe Calculator Does and When to Use It
This calculator simplifies the planning phase of any plumbing project involving copper or PEX piping. It takes the guesswork out of ordering materials by converting your basic project dimensions into a detailed list of components. Specifically, it calculates the following:
- Adjusted Pipe Length: The raw length of pipe you plan to run, increased by 10% to account for cuts, waste, and minor routing adjustments.
- Number of Elbows (90-degree turns): Based on the number of supply points (sinks, toilets, showers), the calculator assumes two elbows per point for standard connections.
- Number of Tees: Used for branching off the main line, calculated as half the number of supply points, rounded up.
- Number of Angle Valves (Shut-off Valves): One valve per supply point is included.
- Number of 50-meter Pipe Rolls: Handy for PEX projects, this tells you how many standard rolls you need to cover the adjusted length.
Use this calculator at the very beginning of your project, before you visit the hardware store or place an online order. It is ideal for rough-in plumbing in new construction, retrofitting an existing system, or expanding a water supply line to a new bathroom or kitchen. The calculator works for both copper and PEX because the material waste factor and fitting logic are similar for standard residential layouts.
The Formula Explained: Variable by Variable
The calculator uses a straightforward formula built from your inputs. Understanding each variable helps you interpret the results and adjust them for your specific situation. Here is the breakdown:
Input Variables
- longitud (Length): This is the total linear distance of the main pipe run you plan to install, measured in meters. For example, if your manifold or main line runs 30 meters from the water heater to the farthest fixture, enter 30.
- puntos_suministro (Supply Points): The number of individual fixtures or appliances that will connect to the pipe. Each sink, toilet, dishwasher, and washing machine typically counts as one supply point. The default value is 6 if you leave this blank.
Calculated Outputs
- longitud_merma_m (Adjusted Pipe Length in meters): Calculated as
L * 1.10, rounded to one decimal place. This adds a 10% waste factor for cuts, errors, and slight deviations in the route. If your raw length is 40 meters, the adjusted length becomes 44.0 meters. - codos_ud (Number of Elbows): Calculated as
ps * 2. Each supply point is assumed to need two 90-degree elbows—one to turn from the main line toward the fixture and another for the final connection. For 6 supply points, this equals 12 elbows. - tee_ud (Number of Tees): Calculated as
Math.ceil(ps / 2). A tee is needed every time the main line branches to a fixture. Half the number of supply points, rounded up, accounts for shared branches. For 5 supply points, Math.ceil(2.5) equals 3 tees. - llaves_escuadra (Number of Angle Valves): Exactly one per supply point (
ps). This includes the shut-off valve typically installed at each fixture. - rollos_50m (Number of 50-meter Rolls): Calculated as
Math.ceil(l_merma / 50). Since PEX is often sold in 50-meter rolls, this tells you how many full rolls to buy. For an adjusted length of 44 meters, you would need 1 roll. For 55 meters, you would need 2 rolls.
Worked Examples with Concrete Numbers
Example 1: Small Bathroom Addition
Situation: You are adding a small bathroom with a sink, toilet, and shower. The main pipe run from the existing line to the new bathroom is 15 meters. You have 3 supply points.
Inputs: longitud = 15, puntos_suministro = 3
Calculations:
| Output | Formula Step | Result |
|---|---|---|
| Adjusted Pipe Length | 15 * 1.10 | 16.5 meters |
| Elbows | 3 * 2 | 6 elbows |
| Tees | Math.ceil(3 / 2) | 2 tees |
| Angle Valves | 3 | 3 valves |
| 50m Rolls | Math.ceil(16.5 / 50) | 1 roll |
Interpretation: For this small bathroom, buy at least 17 meters of PEX or copper pipe, 6 elbows, 2 tees, and 3 angle valves. One 50-meter roll of PEX is enough. If using copper, you will buy pipe in standard lengths (typically 3 or 6 meters) and cut as needed.
Example 2: Large Kitchen and Laundry Expansion
Situation: You are remodeling a kitchen with a sink and dishwasher, and adding a new laundry room with two washing machine connections. The longest pipe run from the manifold to the farthest point is 35 meters. You have 4 supply points.
Inputs: longitud = 35, puntos_suministro = 4
Calculations:
| Output | Formula Step | Result |
|---|---|---|
| Adjusted Pipe Length | 35 * 1.10 | 38.5 meters |
| Elbows | 4 * 2 | 8 elbows |
| Tees | Math.ceil(4 / 2) | 2 tees |
| Angle Valves | 4 | 4 valves |
| 50m Rolls | Math.ceil(38.5 / 50) | 1 roll |
Interpretation: You need approximately 39 meters of pipe, 8 elbows, 2 tees, and 4 angle valves. One 50-meter roll is sufficient. Note: If your actual pipe runs longer due to routing around obstacles, the 10% waste factor helps cover those extra meters. For copper, you might buy six 6-meter sticks (36 meters) plus one 3-meter stick, totaling 39 meters.
Common Mistakes When Using This Calculator
Underestimating the Number of Supply Points
It is easy to forget that a double-bowl kitchen sink or a washing machine may require two separate supply points. Always count each individual shut-off valve location. For example, a dishwasher under the sink counts as its own supply point, separate from the sink faucet. If you enter 3 supply points when you actually have 5, you will be short by 4 elbows and 2 valves.
Ignoring the Waste Factor (10%)
Some users enter the exact measured distance along the wall and wonder why they run out of pipe. The 10% increase is not optional; it accounts for vertical drops to fixtures, minor detours around studs, and the small amount wasted on each cut. For long runs, like 50 meters, skipping the waste factor means you could be short by 5 meters—enough to require an extra roll of PEX.
Confusing Tees with Elbows
New DIYers often buy too many elbows and forget tees. Remember: an elbow changes direction (90 degrees), while a tee splits or joins the flow. In a standard "trunk and branch" system, each fixture needs at least one tee to branch off the main line. The calculator assumes one tee for every two supply points, but if your layout has many separate branches (e.g., each toilet on its own line), you may need more tees.
Mixing Up Metric and Imperial Units
This calculator uses meters for all pipe lengths. If you are used to feet, convert first (1 meter = 3.28 feet). Entering 40 feet as 40 meters will drastically overestimate your material. Similarly, the roll size is 50 meters (approximately 164 feet). For imperial projects, you may need to adjust the roll count based on local availability (e.g., 100-foot rolls).
Frequently Asked Questions (FAQ)
Can I use this calculator for both copper and PEX systems?
Yes. The formula is material-agnostic because the waste factor and fitting ratios are based on general plumbing design principles, not the specific material. For copper, you will buy pipe in standard lengths (usually 3 m or 6 m) instead of rolls, but the number of elbows, tees, and valves remains the same. Adjust the roll count only if you are specifically buying PEX in 50-meter rolls; for copper, use the adjusted pipe length to estimate how many sticks you need.
What if my piping layout has more than two elbows per supply point?
The calculator assumes a standard installation with two 90-degree elbows per fixture (one from the main line and one to the valve). If your layout requires additional bends—for example, if you are routing around a large obstacle or going through multiple walls—you should manually add extra elbows. The calculator provides a baseline, not an exact count for complex reroutes.
How do I handle supply points that are very far apart?
The calculator assumes your pipe length covers the entire main run. If your supply points are spread out over a long distance, your entered length should be the total run from the start to the farthest point. The number of tees and elbows is calculated based on the number of points, not their spacing. For widely spaced fixtures, you may still need only one tee per point, but your total pipe length will increase accordingly.