Trap and Drain Calculator

Last updated: 2026-08-10

Use the Trap and Drain Calculator to get instant, accurate results. Enter your values below.
Inputs
Quantities & Type
Dimensions
Material / Product
Result
Enter values and press Calculate
Common Sizes — Click to Fill
Stack length (m) Number of fixtures (aparatos) Collector gradient (%) (%)
Small bathroom 4 m 2 aparatos 2 %
Medium bathroom 6 m 4 aparatos 2 %
Large bathroom 8 m 5 aparatos 2 %
Apartment 12 m 8 aparatos 2 %
House 16 m 10 aparatos 2 %

The Trap and Drain Calculator is a free online tool designed for plumbers, engineers, and DIY renovators who need to size sanitary drainage systems correctly. This calculator determines the minimum number of traps required, the necessary diameters for vertical soil stacks and horizontal collectors, and the total fall (slope) over a given pipe length, using a simple formula based on the number of connected appliances.

What the Trap and Drain Calculator Does and When to Use It

This calculator simplifies a critical but often tedious part of drainage design. It takes three key inputs from you and instantly outputs four essential design values. You should use this tool during the planning or inspection phase of any building project that includes sinks, toilets, showers, washing machines, or floor drains.

The primary purpose is to ensure that a drainage system has adequate capacity. If pipes are too small or slopes are too flat, waste and water can flow too slowly, leading to blockages and foul odors. If the system has too few traps, sewer gases can enter living spaces. This calculator helps you avoid those problems by providing a quick, reliable second opinion on your design.

You will find it particularly useful when: designing a new home drainage layout, adding a new bathroom or laundry room to an existing system, checking a contractor's plumbing plan, or troubleshooting a slow-draining system where undersized pipes may be the cause.

The Formula Explained: Variable by Variable

The calculator uses a straightforward engineering formula that relates the number of connected appliances to pipe sizes and slope. It assumes a standard vertical drop and a common horizontal collector design. Here is how each variable works:

Inputs You Provide

Calculated Outputs

The core formula can be summarized as: Downspout diameter (mm) = 30 x √(Number of appliances). This square root relationship means that doubling the number of appliances does not double the pipe size—it only increases it by about 40%. This reflects how multiple fixtures can share a pipe because they are rarely used simultaneously.

Two Worked Examples with Concrete Numbers

Example 1: Small Bathroom Addition

You are adding a bathroom with a sink, toilet, and shower—that is 3 appliances. The vertical soil stack will be 4 meters long (about 13 feet), and the horizontal collector has a 2% slope.

Step 1: The number of traps is 3 (one for each appliance).

Step 2: Downspout diameter = √3 x 30. The square root of 3 is approximately 1.732. So, 1.732 x 30 = 51.96, which rounds to 52 mm (about 2.0 inches).

Step 3: Collector diameter = 52 mm x 1.2 = 62.4 mm, rounded to 62 mm (about 2.4 inches).

Step 4: Total fall = 4 meters x 2% / 100 = 0.08 meters, or 8 cm (about 3.1 inches).

Result: You need a 52 mm vertical downspout, a 62 mm horizontal collector, and the pipe must drop 8 cm over its 4-meter length.

Example 2: Full House Renovation

You are renovating a house with two bathrooms, a kitchen, and a laundry room. Count the appliances: 2 toilets, 2 sinks, 1 shower, 1 bathtub, 1 kitchen sink, 1 washing machine = 8 appliances. The main vertical stack is 10 meters long (about 33 feet), and the slope is 1.5%.

Step 1: The number of traps is 8.

Step 2: Downspout diameter = √8 x 30. The square root of 8 is about 2.828. So, 2.828 x 30 = 84.85, rounded to 85 mm (about 3.3 inches).

Step 3: Collector diameter = 85 mm x 1.2 = 102 mm, rounded to 102 mm (about 4.0 inches).

Step 4: Total fall = 10 meters x 1.5% / 100 = 0.15 meters, or 15 cm (about 5.9 inches).

Result: You need an 85 mm vertical downspout, a 102 mm horizontal collector, and a total fall of 15 cm over 10 meters.

Common Mistakes When Using the Trap and Drain Calculator

Even with a simple calculator, errors happen. Here are the most frequent pitfalls and how to avoid them:

Confusing Appliance Count with Fixture Units

This calculator uses the number of appliances, not fixture units. A single sink counts as 1 appliance, the same as a toilet. Do not assign different weights to different fixtures. If you have a double sink, count it as 2 appliances.

Forgetting to Convert Units Properly

The calculator expects meters for length and uses millimeters for pipe diameters. If you measure your pipe length in feet, convert it to meters first (1 foot = 0.3048 meters). Similarly, the slope input is a percentage, not a fraction. A 1 in 50 slope is 2%, not 1%.

Ignoring the Downspout vs. Collector Distinction

The downspout diameter applies only to the vertical stack. The collector diameter is larger because the horizontal pipe carries more total flow. Do not use the downspout diameter for the entire horizontal run—the collector is always 1.2 times larger.

Assuming the Formula Fits All Building Codes

This calculator uses a general engineering relationship. Local building codes may have specific minimum pipe sizes or different requirements for certain fixtures (e.g., a washing machine may require a larger trap). Always check your local plumbing code against the calculator's output.

Neglecting the Total Fall for Long Runs

While the calculator gives you the total fall over the pipe length, make sure that the actual physical space allows for that drop. If you are designing a long horizontal collector in a tight crawl space, the required fall may be impossible to achieve without raising the starting point.

Frequently Asked Questions

Can I use this calculator for a building with more than 30 appliances?

Yes, the formula works for any number of appliances. However, for very large systems serving 30 or more fixtures, you should consult a professional engineer. The square root relationship works well for residential and small commercial projects, but large commercial or industrial systems often require more detailed hydraulic calculations and may have different code requirements for venting and slope.

What is the difference between a trap and a P-trap?

In this calculator, a "trap" refers to the U-shaped pipe fitting installed below each fixture that holds water to block sewer gases. A P-trap is a specific type of trap with a shape like the letter P when viewed from the side. The output "number of traps" simply tells you how many individual trap fittings you need—one for each appliance. It does not specify the type of trap; you can use P-traps, S-traps, or bottle traps as appropriate for your fixture and local code.

My calculator shows a downspout diameter of 52 mm, but I can only find 50 mm pipe locally. Is that okay?

Typically, you should round up to the nearest standard pipe size. If the calculator says 52 mm and you have access to 50 mm and 63 mm pipes, choose the 63 mm size. Going smaller than the calculated value risks inadequate drainage capacity and potential blockages. Always consult your local plumbing code, as standard metric pipe sizes vary by region (common sizes include 50 mm, 75 mm, 90 mm, and 110 mm). Choosing the next size up is almost always safe and is a common practice in plumbing design.

Written and reviewed by the CalcToWork editorial team. Last updated: 2026-08-10.