Trap and Drain Calculator

Last updated: 2026-09-09

Trap and Drain Calculator — Plumbing trap and drain sizing based on fixtures and pipe diameter.
Inputs
aparatos
%
Result
Enter values and press Calculate
Common Examples — Click to Fill
Number of fixturesStack lengthCollector gradient (%)
Small bathroom 242
Medium bathroom 462
Large bathroom 582
Apartment 8122
House 10162

What Is the Trap and Drain Calculator?

Plumbing design is unforgiving of guesswork. A bathroom or kitchen remodel can fail within weeks if the drainage system is undersized, lacks proper venting, or has insufficient slope. The Trap and Drain Calculator is a pre-construction planning tool that determines the exact number of traps (sifones), floor drains (sumideros), total pipe length required for a given run, and the mandatory slope percentage. It converts the number of sanitary fixtures (lavabos, duchas, inodoros) into a concrete materials list and pipe specification, eliminating the back-of-the-envelope math that often leads to costly rework.

This calculator is essential for plumbers estimating residential or light commercial jobs, general contractors coordinating with multiple trades, and DIY homeowners who need to order materials correctly the first time. By inputting just two numbers — the fixture count and the distance from the fixtures to the main stack (bajante) — the calculator returns a complete specification: units of traps, units of floor drains, total meters of drainage pipe, and the exact slope percentage needed. This ensures compliance with basic gravity drainage principles and prevents the two most common failures: sewer gas infiltration and silent blockages caused by flat pipes.

How to Use the Calculator

Using the tool requires only two pieces of information about your project. Follow these steps in order:

  1. Count the Sanitary Fixtures: Walk through the plan and count every fixture that connects to the drainage system. This includes lavabos (sinks), duchas (showers), inodoros (toilets), bidets, and urinals. Do not count floor drains yet — those are calculated separately. For a standard bathroom, this might be 3 (lavabo, ducha, inodoro). For a full master suite with a double vanity, it could be 4 or 5.
  2. Measure the Distance to the Main Stack (Bajante): Determine the total horizontal length of pipe from the furthest fixture to the vertical main drain stack. In the calculator, this is the field labeled 'bajante length (m)'. Measure in meters along the actual path the pipe will take, including any easements or turns. Do not measure straight-line distance from the plan view — pipes must run in straight lines with fittings.
  3. Input the Fixture Count: Enter the total number of fixtures from Step 1 into the field labeled 'number of aparatos'.
  4. Input the Bajante Length: Enter the measurement from Step 2 into the field labeled 'bajante length (m)'.
  5. Review the Outputs: The calculator immediately generates four results. First, the number of sifones (traps) — this will equal your fixture count because each fixture requires its own P-trap. Second, the number of sumideros (floor drains) — this is calculated as one per 5 fixtures, rounded up (a project with 6 fixtures needs 2 floor drains). Third, the total pipe length — this is the bajante length multiplied by 1.02 to account for the extra 2% slope (the hypotenuse of the slope triangle). Fourth, the slope percentage — displayed as 2%, which is the universal minimum for gravity drainage.
  6. Check Pipe Diameters: While the calculator handles quantities and length, you must verify individual fixture drain sizes. Standard practice, as reflected in the calculator's logic, is: lavabo = 40mm, ducha = 50mm, inodoro = 110mm. The calculator outputs are based on these assumed diameters.

Formula and Calculation Method

The calculator uses a three-part logic sequence. It does not use complex hydraulic equations; rather, it applies standardized plumbing codes and simple geometry.

Part 1: Trap Count (Sifones)

The formula is: Sifones = Number of Aparatos

This is a direct one-to-one mapping. Every fixture must have a trap installed immediately downstream to create a water seal that blocks sewer gases. There is no scenario where two fixtures share a single trap without violating plumbing code.

Part 2: Floor Drain Count (Sumideros)

The formula is: Sumideros = CEILING(Number of Aparatos / 5)

For every five fixtures, the code requires one floor drain to evacuate spillage or leaks. If you have 5 fixtures, you need 1 sumidero. If you have 7 fixtures, you need 2 sumideros (7 divided by 5 = 1.4, rounded up to 2).

Part 3: Pipe Length and Slope

This is where the geometric calculation happens. Gravity drainage requires a downward slope of 2% (2 centimeters per meter). This means the pipe's length is not simply the horizontal distance; it is the hypotenuse of a right triangle.

The formula is: Pipe Length (m) = Bajante Length (m) × 1.02

The multiplier 1.02 accounts for the vertical drop, which is {bajante length} × 0.02. By the Pythagorean theorem (a² + b² = c²), where 'a' is horizontal run and 'b' is vertical drop (2% of 'a'), the true pipe length 'c' is approximately 'a' × 1.02 for typical runs under 100 meters.

Worked Example:

Scenario: You have a bathroom with 5 fixtures (lavabo, ducha, inodoro, bidet, and a second lavabo). The distance from the furthest fixture to the stack is 8 meters.

  • Sifones: 5 fixtures = 5 traps.
  • Sumideros: 5 / 5 = 1 floor drain.
  • Slope Drop: 8m × 2% = 0.16m (16cm of total vertical drop over the run).
  • Pipe Length: 8m × 1.02 = 8.16m of pipe needed to maintain the slope.

The calculator's output would read: To 5 aparatos with bajante of 8m need 5 sifones, 1 sumideros and 8.16m of pipe with 2% of slope.

Practical Examples

Here are three distinct scenarios you might encounter, demonstrating how inputs affect outputs.

ScenarioFixtures (Aparatos)Bajante LengthCalculated Outputs
Small Half-Bath (Powder Room)2 (lavabo + inodoro)3 meters2 sifones, 1 sumidero (2/5 = 0.4 rounded up), Pipe = 3 × 1.02 = 3.06m
Full Family Bathroom5 (lavabo, ducha, inodoro, bidet, extra lavabo)8 meters5 sifones, 1 sumidero, Pipe = 8 × 1.02 = 8.16m, Drop = 16cm
Commercial Restroom (High Traffic)12 (6 lavabos, 4 inodoros, 2 urinals)15 meters12 sifones, 3 sumideros (12/5 = 2.4 rounded up), Pipe = 15 × 1.02 = 15.3m, Drop = 30cm

Notice the commercial example: 12 fixtures require 12 individual traps, but only 3 floor drains. The pipe length increases linearly with distance, but the slope requirement means the pipe must drop 30 centimeters over its 15-meter length. If your ceiling or structural slab cannot accommodate this drop, you must shorten the run or install a pump (which is outside the scope of this gravity-based calculator).

Tips for Accurate Results

These tips address the most common errors that can invalidate your calculations:

  • Never skip a trap on any fixture. The calculator generates one sifon per aparato for a reason. Installing a fixture without a trap allows sewer gases (methane and hydrogen sulfide) to enter the living space. This is not just an odor nuisance; it is a health hazard. The water seal in the trap is the only barrier between you and the sewer main.
  • Verify your slope is at least 2% (2 cm per meter). A slope of less than 2% causes solids to settle and eventually create a complete blockage. While you can use a slightly greater slope (e.g., 3% or 4%), using less than 2% is a code violation in most jurisdictions. The calculator uses exactly 2% — do not manually reduce the pipe length to save materials, as the 1.02 multiplier is essential for the pipe to reach the stack at the correct elevation.
  • Plan for bajante ventilation. The calculator assumes the vertical stack is properly vented to the atmosphere. Without an open vent at the top of the bajante, the pressure fluctuations from flushing can siphon the water out of the traps — a phenomenon called 'sifonaje'. This renders the traps ineffective. If your design cannot vent the top of the stack, you must install a mechanical vent (Studor vent) or an air admittance valve (AAV).
  • Measure the true pipe path. When measuring the bajante length, account for elbows and 45-degree fittings. The calculator input should be the total length of pipe you will purchase, including the slight extra rounding at fittings. A 10-meter wall-to-stack distance measured straight on the floor plan is often 10.5 or 11 meters when you follow the actual installation path around obstacles.
  • Check fixture-specific diameters. The calculator normalizes all fixtures, but your pipe diameters are not uniform. Lavabos require a 40mm drain line, duchas require 50mm (and a 90mm sumidero), and inodoros require a 110mm line. These feed into a larger horizontal branch (typically 110mm) that ties into the bajante. Do not attempt to connect a 40mm lavabo drain directly to a 110mm stack without a proper reducer fitting and a vent.
  • Round up the sumidero count. The formula divides fixtures by 5. If you have exactly 5, you get 1. If you have 6, 7, 8, 9, or 10, you still get 2 (since the calculator rounds up). This ensures adequate floor drainage capacity even when the fixture count slightly exceeds a multiple of 5.

Frequently Asked Questions

Q: How many sifones do I need for 10 aparatos?

You need exactly 10 sifones (traps). The trap count is always equal to the fixture count. The calculator will also tell you that you need 2 sumideros (10 / 5 = 2). If your bajante is 8 meters, you need 8.16 meters of pipe. The critical rule is that you cannot install a manifold that attaches multiple fixtures to a single trap — each fixture requires its own water seal at the point of exit.

Q: What does the 1.02 multiplier mean in the pipe length calculation?

The multiplier 1.02 converts the horizontal distance to the actual pipe length required. A 2% slope means the pipe must drop 2 centimeters for every 1 meter of horizontal run. If you have an 8-meter run, the drop is 16 centimeters. The pipe is the hypotenuse of the triangle formed by the horizontal distance and the vertical drop. Over an 8-meter run, the true pipe length is √(8² + 0.16²) = 8.0016 meters. The calculator simplifies this to 8 × 1.02 = 8.16 meters, which adds a small safety margin of about 15 centimeters to account for pipe insertion into fittings and minor alignment errors. This extra length ensures you do not come up short during installation.

Q: What happens if I use a slope less than 2%?

A slope below 2% (1.5%, 1%, or flat) is the primary cause of drain blockages. In a 2% slope, water flows at a self-cleaning velocity that carries solids along. At 1%, the water velocity drops by roughly 30%, and heavier solids (such as those from an inodoro) begin to settle. The results are predictable: gradual accumulation, then an abrupt total blockage. If your site cannot achieve a 2% slope over the required distance (because of a shallow foundation or existing slab), you have two options: relocate the fixtures closer to the bajante, or install a sewage ejector pump (a macerating or upflush system) that grinds solids and pumps them vertically. The gravity-based calculator cannot help with a pump system — you would need to consult a plumbing engineer for a lift station calculation.