Vent pipes should extend to outdoors above the building roof and should terminate vertically not less than 6 above the roof surface nor more than 24 and must be at least 12 from any vertical surface such as a nearby sidewall.
Vent pipe hieght above roof.
For those stinky vents consider installing odor hog vent caps see image on the roof vents.
This may seem suitable since the only purpose for the stack is to provide air and expel sewer gases.
Depending on your region the vent stack may protrude only a few inches above the surface of the roof.
The soil pipe also known as the vent stack or stack pipe provides air for the plumbing system.
In other words the highest point within a 10 foot circle of the pipe.
A vent terminal and depending if the roof is strictly for weather protection it terminates about 24 above the roof.
The regulations were changed from the days that you needed those 1m or so long pipes jutting from your roof.
If the roof area is for people then it is 7 ft above the roofing surface.
If the pipe is farther than 10 feet from the roof peak it must be 2 feet above the highest point of the roof within 10 feet.
Above the roof plumbing vent height.