The rule
Sewer gas shouldn't blow into a window or an air intake. So the vent opening has to be either at least 10 feet away from an openable window, door, opening, air intake or vent shaft, or at least 3 feet above it.
Lot lines get their own distance: at least 3 feet in every direction from a lot line. Streets and alleys are the exception, so you don't measure from those.
Either clearance is measured to the vent's opening, not to the pipe where it comes through the roof.
On the job
- Check the neighbor's side too. A vent close to a side lot line, or just under a neighbor's openable window, is the one that gets flagged.
- On a tight lot, the easiest fix is usually raising the vent so its top is 3 feet above the window or intake. Make sure the added height still meets the roof rules in Section 906.1.
- Check where the HVAC outside-air intakes and bath fan ducts land before you pick the vent location.
The inspector and your city's adopted edition have the final word.