How the Trap Arm Length Checker works
Check how far your sink, tub, shower or toilet sits from its vent against the plumbing code your area uses, before you glue the pipe.
How this is calculated
A trap holds a plug of water that keeps sewer gas out of the room. The vent lets air into the drain so that water running away from the fixture does not pull that plug out behind it. Both model plumbing codes therefore limit how far the trap may be from the point where its vent connects, and the limit grows with the size of the trap.
The two codes do not share a table. This tool keeps them apart: you choose one, and every figure in the result comes from that code alone. The sources read for this tool do not explain why the tables differ, so this tool does not guess; treat them as two separate rules, not as a strict and a lenient version of the same one.
fall = distance from trap weir to vent (ft) × slope the pipe is laid at (in per ft)
IPC / IRC passes when distance ≤ table distance for the trap size
and slope = table slope for the trap size
and fall ≤ one pipe diameter
and distance ≥ 2 × pipe diameter
UPC passes when table minimum ≤ distance ≤ table maximum for the trap arm size
and slope = 1/4 in per ft
flatter than the minimum slope: fails. steeper than the table slope: not passed, reported as unclear.
slope not entered: assumed to be the table slope; the result then holds only if the pipe is laid at it.IPC and IRC (2021 IPC / IRC)
The International Plumbing Code (Section 909, Table 909.1) and the International Residential Code (Section P3105, Table P3105.1) print the same table. Its first column is the size of the trap, not of the pipe: the row is chosen by the trap. For each trap size it gives a slope and a maximum developed length of the fixture drain, measured from the trap weir to the vent fitting. Two more sentences in the same sections are checked here: the total fall of the fixture drain from its slope may not be more than one pipe diameter, and a vent may not be installed within two pipe diameters of the trap weir.
| Trap size | Slope | Maximum distance | Fall over that distance | Minimum distance |
|---|---|---|---|---|
| 1-1/4 in | 1/4 in per ft | 5 ft | 1 1/4 in | 2 1/2 in |
| 1-1/2 in | 1/4 in per ft | 6 ft | 1 1/2 in | 3 in |
| 2 in | 1/4 in per ft | 8 ft | 2 in | 4 in |
| 3 in | 1/8 in per ft | 12 ft | 1 1/2 in | 6 in |
| 4 in | 1/8 in per ft | 16 ft | 2 in | 8 in |
The first three columns are the code table. The fall and the minimum are worked out for a trap arm the same size as the trap: the fall from the table slope, the minimum as two pipe diameters. For the three smaller sizes the fall over the full distance at the table slope comes to exactly one pipe diameter, so the table and the fall rule agree; for 3 and 4 inch traps the table distance is reached first.
Which diameter: the IRC defines "diameter" in Section R202 as the nominal diameter unless the text says otherwise, so for the IRC the nominal size is the code's own reading. The IPC words the fall limit as the diameter of the fixture drain, and the IPC definitions read for this tool do not define the word; this tool uses the nominal size there too.
UPC (2024 UPC)
The Uniform Plumbing Code (Section 1002.2, Table 1002.2) limits the developed length of the trap arm from the trap weir to the inner edge of the vent. Its table gives a minimum and a maximum for each trap arm size, and the section adds that the arm may never be shorter than two times its diameter. Note 1 under the table says to maintain a slope of 1/4 inch per foot, for every size. The UPC defines diameter as the nominal diameter, and requires the trap to be the same size as the trap arm.
| Trap arm size | Minimum length | Maximum length | Slope | Fall over the maximum |
|---|---|---|---|---|
| 1-1/4 in | 2 1/2 in | 30 in (2 ft 6 in) | 1/4 in per ft | 5/8 in |
| 1-1/2 in | 3 in | 42 in (3 ft 6 in) | 1/4 in per ft | 7/8 in |
| 2 in | 4 in | 60 in (5 ft) | 1/4 in per ft | 1 1/4 in |
| 3 in | 6 in | 72 in (6 ft) | 1/4 in per ft | 1 1/2 in |
| 4 in | 8 in | 120 in (10 ft) | 1/4 in per ft | 2 1/2 in |
The table has one more row, for trap arms larger than 4 inches: a minimum of two diameters and a maximum of 120 inches. The calculation handles it for the pipe sizes the UPC lists above 4 inch (5, 6, 8, 10, 12) and it is one of the tested examples, but the form stops at 4 inch, the largest size with its own row in both tables. The UPC text read here does not state a one-diameter fall limit in these words, so no fall check is applied under the UPC; it does say the vent opening may not be below the weir of the trap.
Toilets (water closets)
Both codes take toilets out of these tables, in opposite directions, which is why the form asks what the fixture is.
- UPC. Table 1002.2 is headed as excluding water closets and similar fixtures. Its Note 2 limits the developed length between a water closet or similar fixture and its vent to 6 ft, measured in the 2024 edition from the face of the closet flange to the inner edge of the vent, so the drop below the flange is part of the distance. The 2021 and 2018 editions say the top of the closet flange. This tool uses the 2024 wording and applies the 6 ft whatever the pipe size, so a toilet is never checked against the longer trap arm rows. The text does not list the "similar fixtures"; the form offers only a toilet, and says so under the fixture choice and in every UPC result.
- IPC and IRC. An exception under the table section says the developed length for self-siphoning fixtures, such as water closets, is not limited. This tool shows that as "not limited by this table". It is not shown as a pass, because nothing else about the toilet's drain or vent is checked here.
Slope and fall
The slope question opens on "Not measured". In that state the tool assumes the table slope, works the fall from it, and marks the slope line, and under the IPC and IRC the fall line, Assumed instead of passing them: a slope taken from the table cannot fail a check against the table, so it proves nothing. A result that is otherwise in order is then headed "Passes if laid at the table slope" and stays amber. It turns green only after you choose "I measured it" and type the slope, which is when the slope and the fall are actually checked. No tolerance is applied to a measured slope: it is compared with the table figure as entered.
- Flatter than the minimum fails. The IRC (P3005.3) and the IPC (Section 704.1 and Table 704.1) set the minimum slope of horizontal drain pipe at 1/4 inch per foot for pipe 2-1/2 inch and smaller and 1/8 inch per foot for 3 inch and larger, the same figures as the slope column of the trap table. The UPC (Section 708.1) sets 1/4 inch per foot; it allows 1/8 for building drain piping 4 inch and larger only with the approval of the authority having jurisdiction, which this tool does not assume.
- More than one pipe diameter of fall fails under the IPC and IRC, whatever the distance.
- Any other slope than the table's is not passed. The IPC and IRC say the slope and the length are to be within the limits of the table, and the UPC note says to maintain 1/4 inch per foot. Neither says in so many words whether a steeper slope on a shorter arm is acceptable, and the commentary that might settle it could not be read for this tool. So a steeper slope is reported as "not covered by the table", never as a pass, even where the fall stays under one diameter. The same goes for the one case where a slope can be flatter than the table's without being below the minimum: a pipe larger than its trap, such as a 2 inch trap on 3 inch pipe laid at 1/8 inch per foot.
Scope and assumptions
- Editions: the 2021 IRC and 2021 IPC for the first table (the 2018 IRC, 2018 IPC and 2024 IPC were read as well and have the same rows), and the 2024 UPC for the second (the 2021 and 2018 UPC have the same rows). Your state or city may enforce another edition or its own amendments, and those govern.
- Trap and pipe sizes are asked separately. The IRC (P3201.7) and the IPC (1002.5) say a trap may not be larger than the drain pipe it discharges into, so the pipe can be larger than the trap but not smaller. When it is larger, the distance row is still the trap's; the two-diameter minimum is taken on the larger pipe and the fall limit on the smaller trap size, which is the stricter reading of "pipe diameter" each time. The UPC (1003.3) requires the trap and the trap arm to be the same size, so different sizes fail there.
- One fixture with its own vent connection. For anything but a toilet, that means a separately trapped fixture such as a sink, lavatory, tub, shower or laundry tray.
- Not covered: air admittance valves, wet venting, circuit venting, combination waste and vent systems, island fixture vents, drain and vent sizing, and cleanouts. Note 3 of the 2024 UPC table, which is new in that edition and sets separate limits for horizontally wet-vented bathtubs and showers, is a wet venting rule and is not applied here. Crown venting is covered only as the two-diameter minimum described above.
What this calculator is tested against
This tool cannot be published unless it reproduces every example below. 12 are copied from a published source. 27 were worked by hand from the cited rule.
| Example | Expected | Basis |
|---|---|---|
| IPC / IRC table row: 1-1/4 in trap | 5 ft maximum at 1/4 in per ft | Published 2021 IRC Table P3105.1 (same row in 2021 IPC Table 909.1) |
| IPC / IRC table row: 1-1/2 in trap | 6 ft maximum at 1/4 in per ft | Published 2021 IRC Table P3105.1 (same row in 2021 IPC Table 909.1) |
| IPC / IRC table row: 2 in trap | 8 ft maximum at 1/4 in per ft | Published 2021 IRC Table P3105.1 (same row in 2021 IPC Table 909.1) |
| IPC / IRC table row: 3 in trap | 12 ft maximum at 1/8 in per ft | Published 2021 IRC Table P3105.1 (same row in 2021 IPC Table 909.1) |
| IPC / IRC table row: 4 in trap | 16 ft maximum at 1/8 in per ft | Published 2021 IRC Table P3105.1 (same row in 2021 IPC Table 909.1) |
| UPC table row: 1-1/4 in trap arm | 2 1/2 in minimum, 30 in maximum, at 1/4 in per ft | Published 2024 UPC Table 1002.2 (IAPMO read-only edition, printed p. 153, viewer page 190) |
| UPC table row: 1-1/2 in trap arm | 3 in minimum, 42 in maximum, at 1/4 in per ft | Published 2024 UPC Table 1002.2 (IAPMO read-only edition, printed p. 153, viewer page 190) |
| UPC table row: 2 in trap arm | 4 in minimum, 60 in maximum, at 1/4 in per ft | Published 2024 UPC Table 1002.2 (IAPMO read-only edition, printed p. 153, viewer page 190) |
| UPC table row: 3 in trap arm | 6 in minimum, 72 in maximum, at 1/4 in per ft | Published 2024 UPC Table 1002.2 (IAPMO read-only edition, printed p. 153, viewer page 190) |
| UPC table row: 4 in trap arm | 8 in minimum, 120 in maximum, at 1/4 in per ft | Published 2024 UPC Table 1002.2 (IAPMO read-only edition, printed p. 153, viewer page 190) |
| UPC table row: trap arm exceeding 4 in (a 6 in arm) | two diameters (12 in) minimum, 120 in maximum, at 1/4 in per ft | Published 2024 UPC Table 1002.2 (IAPMO read-only edition, printed p. 153, viewer page 190) |
| UPC table note 2: toilet (water closet), closet flange to vent | 6 ft maximum; the trap arm rows do not apply | Published 2024 UPC Table 1002.2, Note 2 (IAPMO read-only edition, printed p. 153, viewer page 190) |
| UPC, toilet on a 4 in drain, vent 9 ft from the closet flange | fails: 3 ft over the 6 ft water closet limit (the 10 ft row for 4 in trap arms does not apply) | By hand 2024 UPC Table 1002.2, Note 2 (IAPMO read-only edition, printed p. 153, viewer page 190) |
| UPC, toilet, vent exactly 6 ft from the closet flange | passes, exactly at the limit | By hand 2024 UPC Table 1002.2, Note 2 (IAPMO read-only edition, printed p. 153, viewer page 190) |
| IPC / IRC, toilet, vent 20 ft away | not limited by this table: neither a pass nor a fail | By hand 2021 IRC P3105.1, Exception (same in 2021 IPC 909.1) |
| IPC / IRC, 1-1/2 in trap, vent exactly 6 ft away | in order on distance, exactly at the limit, but only IF laid at the table slope: not a pass (slope not entered, fall 1 1/2 in assumed) | By hand 2021 IRC Table P3105.1 (same row in 2021 IPC Table 909.1) |
| IPC / IRC, 1-1/2 in trap, vent exactly 6 ft away, measured at 1/4 in per ft | passes, exactly at the limit; fall 1 1/2 in (6 ft x 1/4 in per ft), one pipe diameter | By hand 2021 IRC Table P3105.1 (same row in 2021 IPC Table 909.1) |
| IPC / IRC, 1-1/2 in trap, vent 6 ft 0 1/8 in away | fails: 1/8 in too far, and the fall is now more than one pipe diameter | By hand 2021 IRC Table P3105.1 (same row in 2021 IPC Table 909.1) |
| IPC / IRC, 1-1/4 in trap feeding a larger pipe, vent 5 ft 6 in away | fails: the row is the 5 ft row for the trap size, not the 6 ft row for the pipe | By hand 2021 IRC Table P3105.1 (same row in 2021 IPC Table 909.1) |
| UPC, 1-1/2 in trap arm, vent exactly 42 in away | passes, exactly at the limit; fall 7/8 in (3.5 ft x 1/4 in per ft) | By hand 2024 UPC Section 1002.2 and Table 1002.2 (IAPMO read-only edition, printed p. 153, viewer page 190) |
| UPC, 1-1/2 in trap arm, vent 42 1/8 in away | fails: 1/8 in too far | By hand 2024 UPC Section 1002.2 and Table 1002.2 (IAPMO read-only edition, printed p. 153, viewer page 190) |
| The same 5 ft arm on a 1-1/2 in trap, checked under IPC / IRC | passes with 1 ft to spare (limit 6 ft); fall 1 1/4 in at the measured 1/4 in per ft | By hand 2021 IRC Table P3105.1 (same row in 2021 IPC Table 909.1) |
| The same 5 ft arm on a 1-1/2 in trap, checked under UPC | fails: 18 in over (limit 42 in) | By hand 2024 UPC Section 1002.2 and Table 1002.2 (IAPMO read-only edition, printed p. 153, viewer page 190) |
| IPC / IRC, 1-1/2 in trap, 5 ft arm laid at 1/2 in per ft | fails: fall 2 1/2 in (5 ft x 1/2 in per ft), over the 1 1/2 in allowed, though 5 ft is inside the table | By hand 2021 IRC P3105.2 / IPC 909.2 (fall no more than one pipe diameter) |
| IPC / IRC, 1-1/2 in trap, 2 ft arm laid at 1/2 in per ft | not passed: fall 1 in is under one diameter, but 1/2 in per ft is not the 1/4 in per ft of the table | By hand 2021 IRC P3105.1 and Table P3105.1 (slope column) |
| IPC / IRC, 2 in trap, 4 ft arm laid at 1/8 in per ft | fails: flatter than the 1/4 in per ft minimum for pipe 2-1/2 in and smaller | By hand 2021 IRC P3005.3 / IPC Table 704.1 (minimum drain slope) |
| IPC / IRC, 3 in trap at the 12 ft limit, laid at the table slope of 1/8 in per ft | fall 1 1/2 in (12 ft x 1/8 in per ft), under the 3 in allowed; passes | By hand 2021 IRC P3105.2 / IPC 909.2 (fall no more than one pipe diameter) |
| IPC / IRC, 3 in trap, 12 ft arm laid at 1/4 in per ft | not passed: fall 3 in is exactly one diameter, but 1/4 in per ft is not the 1/8 in per ft of the table | By hand 2021 IRC P3105.1 and Table P3105.1 (slope column) |
| IPC / IRC, 1-1/4 in trap at the 5 ft limit: fall equals one pipe diameter | fall 1 1/4 in (5 ft x 1/4 in per ft), exactly one pipe diameter; passes | By hand 2021 IRC P3105.2 / IPC 909.2 (fall no more than one pipe diameter) |
| UPC, 2 in trap arm at the 60 in limit, laid at 1/4 in per ft | fall 1 1/4 in (5 ft x 1/4 in per ft); passes at the limit | By hand 2024 UPC Table 1002.2, Note 1, and Section 708.1 (IAPMO read-only edition, printed p. 153, viewer page 190) |
| UPC, 1-1/2 in trap arm, 3 ft long, laid at 1/8 in per ft | fails: flatter than the 1/4 in per ft the table note and Section 708.1 call for | By hand 2024 UPC Table 1002.2, Note 1, and Section 708.1 (IAPMO read-only edition, printed p. 153, viewer page 190) |
| UPC, 1-1/2 in trap arm, 3 ft long, laid at 1/2 in per ft | not passed: 36 in is inside the table, but the note says to maintain 1/4 in per ft | By hand 2024 UPC Table 1002.2, Note 1, and Section 708.1 (IAPMO read-only edition, printed p. 153, viewer page 190) |
| IPC / IRC, 2 in trap on 3 in pipe, 6 ft, measured at 1/8 in per ft | not passed: 1/8 in per ft is not below the minimum for 3 in pipe, but it is flatter than the 1/4 in per ft of the 2 in trap row | By hand 2021 IRC P3105.1 and Table P3105.1 (slope column) |
| IPC / IRC, 1-1/4 in trap on 1-1/2 in pipe, vent 2 3/4 in from the weir | fails: two diameters of the 1-1/2 in pipe is 3 in (the trap size would have given 2 1/2 in) | By hand 2021 IRC P3105.3 / IPC 909.3 (no vent within two pipe diameters) |
| IPC / IRC, 2 in trap on 1-1/2 in pipe | fails: the trap is larger than its pipe | By hand 2021 IRC P3201.7 / IPC 1002.5 (trap no larger than the pipe it discharges into) |
| UPC, 1-1/4 in trap on a 1-1/2 in trap arm | fails: the UPC requires the trap and the trap arm to be the same size | By hand 2024 UPC Section 1003.3 (IAPMO read-only edition, printed p. 153, viewer page 190) |
| UPC, 1-1/2 in trap arm only 2 1/2 in long | fails: shorter than two diameters (3 in) | By hand 2024 UPC Section 1002.2 and Table 1002.2 (IAPMO read-only edition, printed p. 153, viewer page 190) |
| IPC / IRC, 2 in trap with the vent 3 in from the weir | fails: vent within two pipe diameters (4 in) of the trap weir | By hand 2021 IRC P3105.3 / IPC 909.3 (no vent within two pipe diameters) |
| IPC / IRC, 2 in trap with the vent exactly 4 in from the weir | passes: exactly two pipe diameters | By hand 2021 IRC P3105.3 / IPC 909.3 (no vent within two pipe diameters) |
Sources
- 2021 International Residential Code, Section P3105, Fixture vents, and Table P3105.1Read as published on UpCodes (Texas industrialized-housing adoption of the 2021 IRC). The table of trap size, slope and distance, its exception for self-siphoning fixtures such as water closets, the one-pipe-diameter fall limit (P3105.2) and the two-pipe-diameter rule (P3105.3) used here come from this text.
- 2021 International Residential Code, Section R202, DefinitionsSame site. Read for the definitions of diameter (the nominal diameter unless stated otherwise), trap arm, developed length and fixture drain.
- 2021 International Residential Code, Section P3005.3, Horizontal drainage piping slopeSame site. The minimum slopes used for the "too flat" check: 1/4 in per ft for pipe 2-1/2 in and smaller, 1/8 in per ft for 3 in and larger. IPC Section 704.1 and Table 704.1 were read from the IPC on the same site and give the same figures for these sizes.
- 2021 International Plumbing Code, Section 909, Fixture vents, and Table 909.1Read as published on UpCodes (Texas industrialized-housing adoption of the 2021 IPC). Table 909.1 has the same five rows and the same water closet exception as IRC Table P3105.1; 909.2 limits the fall to the diameter of the fixture drain and 909.3 gives the two-diameter rule. Chapter 2 (developed length, fixture drain, trap, vent system) and Section 1002.5 (a trap may not be larger than the drain it discharges into) were read from the same code.
- 2021 International Residential Code, Section P3201.7, Size of fixture trapsSame site. Read for the sentence that a trap may not be larger than the drainage pipe it discharges into, which is why the form asks for the pipe size separately and fails a trap larger than its pipe.
- 2021 International Plumbing Code, Section 1002.5, Size of fixture trapsSame site. The IPC counterpart of IRC P3201.7, with the same sentence about a trap and the pipe it discharges into.
- 2024 International Plumbing Code, Section 909 and Table 909.1Read as published on UpCodes (Colorado adoption). Same five table rows and the same 909.2 and 909.3 wording as 2021.
- 2018 International Residential Code, Section P3105 and Table P3105.1Read as published on UpCodes (Colorado adoption), along with the 2018 IPC from the same site. Same five table rows as 2021.
- 2024 Uniform Plumbing Code, Section 1002.2 and Table 1002.2, Horizontal lengths of trap armsIAPMO’s free read-only edition, a page-flip book: Chapter 10 starts on printed page 153, which is page 190 of the viewer. The minimum and maximum trap arm lengths, Note 1 (slope), Note 2 (water closets) and Note 3 (wet-vented tubs and showers, not covered here) were read from that page; Section 1003.3 (the trap is the same size as its trap arm, on the same page), Section 1002.4, Section 708.1 (slope), the pipe sizes of Table 703.2 and the Chapter 2 definitions of trap arm, developed length, diameter and trap weir from the same edition.
- 2021 Uniform Plumbing Code, Section 1002.2 and Table 1002.2IAPMO’s free read-only edition (Chapter 10, printed page 149), with the 2018 edition read from the same publisher. Same six table rows as 2024. The water closet note measures from the top of the closet flange where 2024 says the face, and there is no Note 3.
- California Plumbing Code 2022, title page on UpCodesUsed only for the statement that California’s plumbing code adopts the UPC (the 2021 edition) with amendments. The chapter text itself is behind a sign-in and was not used.