The rule
Table 703.2 gives each vent size a maximum length. If you're using the smallest vent the table allows for the load, no more than one-third of that permitted length can be horizontal. A 2 inch vent at the table's 120 foot limit can have no more than 40 feet of it horizontal and the other 80 feet vertical.
Count the horizontal pieces together, wherever they fall in the run. Offsets and attic runs all add up toward the one-third limit.
If you increase a minimum-sized vent by one pipe size for its entire length, the maximum length limit doesn't apply. That's often the quick fix when a vent runs long: go up a size and stop counting feet.
On the job
- Measure the developed length of the vent, from the connection to the open air, including offsets. Count the horizontal pieces separately.
- When a vent has to wander across an attic, the fix is to upsize the whole vent one size, not just the long part.
- Write the vent size and developed length on the rough-in sketch so it's easy to show at inspection.
The inspector and your city's adopted edition have the final word.