Ducts, pipes & wiring · Trap Arm Length Checker

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.

Back to the tool

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 sizeSlopeMaximum distanceFall over that distanceMinimum distance
1-1/4 in1/4 in per ft5 ft1 1/4 in2 1/2 in
1-1/2 in1/4 in per ft6 ft1 1/2 in3 in
2 in1/4 in per ft8 ft2 in4 in
3 in1/8 in per ft12 ft1 1/2 in6 in
4 in1/8 in per ft16 ft2 in8 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 sizeMinimum lengthMaximum lengthSlopeFall over the maximum
1-1/4 in2 1/2 in30 in (2 ft 6 in)1/4 in per ft5/8 in
1-1/2 in3 in42 in (3 ft 6 in)1/4 in per ft7/8 in
2 in4 in60 in (5 ft)1/4 in per ft1 1/4 in
3 in6 in72 in (6 ft)1/4 in per ft1 1/2 in
4 in8 in120 in (10 ft)1/4 in per ft2 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.

ExampleExpectedBasis
IPC / IRC table row: 1-1/4 in trap5 ft maximum at 1/4 in per ftPublished 2021 IRC Table P3105.1 (same row in 2021 IPC Table 909.1)
IPC / IRC table row: 1-1/2 in trap6 ft maximum at 1/4 in per ftPublished 2021 IRC Table P3105.1 (same row in 2021 IPC Table 909.1)
IPC / IRC table row: 2 in trap8 ft maximum at 1/4 in per ftPublished 2021 IRC Table P3105.1 (same row in 2021 IPC Table 909.1)
IPC / IRC table row: 3 in trap12 ft maximum at 1/8 in per ftPublished 2021 IRC Table P3105.1 (same row in 2021 IPC Table 909.1)
IPC / IRC table row: 4 in trap16 ft maximum at 1/8 in per ftPublished 2021 IRC Table P3105.1 (same row in 2021 IPC Table 909.1)
UPC table row: 1-1/4 in trap arm2 1/2 in minimum, 30 in maximum, at 1/4 in per ftPublished 2024 UPC Table 1002.2 (IAPMO read-only edition, printed p. 153, viewer page 190)
UPC table row: 1-1/2 in trap arm3 in minimum, 42 in maximum, at 1/4 in per ftPublished 2024 UPC Table 1002.2 (IAPMO read-only edition, printed p. 153, viewer page 190)
UPC table row: 2 in trap arm4 in minimum, 60 in maximum, at 1/4 in per ftPublished 2024 UPC Table 1002.2 (IAPMO read-only edition, printed p. 153, viewer page 190)
UPC table row: 3 in trap arm6 in minimum, 72 in maximum, at 1/4 in per ftPublished 2024 UPC Table 1002.2 (IAPMO read-only edition, printed p. 153, viewer page 190)
UPC table row: 4 in trap arm8 in minimum, 120 in maximum, at 1/4 in per ftPublished 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 ftPublished 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 vent6 ft maximum; the trap arm rows do not applyPublished 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 flangefails: 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 flangepasses, exactly at the limitBy hand 2024 UPC Table 1002.2, Note 2 (IAPMO read-only edition, printed p. 153, viewer page 190)
IPC / IRC, toilet, vent 20 ft awaynot limited by this table: neither a pass nor a failBy hand 2021 IRC P3105.1, Exception (same in 2021 IPC 909.1)
IPC / IRC, 1-1/2 in trap, vent exactly 6 ft awayin 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 ftpasses, exactly at the limit; fall 1 1/2 in (6 ft x 1/4 in per ft), one pipe diameterBy 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 awayfails: 1/8 in too far, and the fall is now more than one pipe diameterBy 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 awayfails: the row is the 5 ft row for the trap size, not the 6 ft row for the pipeBy 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 awaypasses, 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 awayfails: 1/8 in too farBy 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 / IRCpasses with 1 ft to spare (limit 6 ft); fall 1 1/4 in at the measured 1/4 in per ftBy 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 UPCfails: 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 ftfails: 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 tableBy 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 ftnot passed: fall 1 in is under one diameter, but 1/2 in per ft is not the 1/4 in per ft of the tableBy 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 ftfails: flatter than the 1/4 in per ft minimum for pipe 2-1/2 in and smallerBy 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 ftfall 1 1/2 in (12 ft x 1/8 in per ft), under the 3 in allowed; passesBy 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 ftnot passed: fall 3 in is exactly one diameter, but 1/4 in per ft is not the 1/8 in per ft of the tableBy 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 diameterfall 1 1/4 in (5 ft x 1/4 in per ft), exactly one pipe diameter; passesBy 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 ftfall 1 1/4 in (5 ft x 1/4 in per ft); passes at the limitBy 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 ftfails: flatter than the 1/4 in per ft the table note and Section 708.1 call forBy 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 ftnot passed: 36 in is inside the table, but the note says to maintain 1/4 in per ftBy 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 ftnot 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 rowBy 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 weirfails: 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 pipefails: the trap is larger than its pipeBy 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 armfails: the UPC requires the trap and the trap arm to be the same sizeBy 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 longfails: 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 weirfails: vent within two pipe diameters (4 in) of the trap weirBy 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 weirpasses: exactly two pipe diametersBy hand 2021 IRC P3105.3 / IPC 909.3 (no vent within two pipe diameters)

Sources