Lay shingles on the roof until you reach the vent pipe.
Slide the roof flange over the vent pipe.
Hold shingles in position where you will be installing them along the bottom of the roof flange, but don't nail them to the roof. Mark the outline of the roof flange onto the shingles.
Cut the shingles for the bottom of the flange with a utility knife or tin snips.
Place the cut shingles into position on the roof and slide them underneath the bottom of the flange. Nail the shingles to the roof.
Lift the bottom of the flange up, and apply a thick, zigzag bead of clear silicone caulk or roofing tar to the top of the shingles beneath the flange, then press the flange firmly down onto the shingles.
Cut the shingles for the top of the flange, following the same method you used for the shingles on the bottom of the flange.
Flip the shingles upside-down and run a thick bead of roofing tar or clear silicone caulk around the edge where you cut the shingles.
Place the shingles onto the roof around the top of the flange, and nail them into place.
Apply another thick bead of roofing tar or clear silicone caulk along the seam where the shingles and the flange meet.