Every trap in a drain-waste-vent system needs a vent so that water flowing past it cannot siphon the trap seal dry or blow it out with back pressure. This calculator sizes that vent the way the International Plumbing Code does in Section 906: by the diameter of the drain being vented, the drainage fixture units connected, and the developed length of the vent run.
How it works
IPC Table 906.1 is a lookup organized by the size of the soil or waste pipe. For each drain size and each total DFU value the table lists a maximum developed length of vent for a series of standard vent diameters. The smallest diameter whose maximum length still exceeds your actual developed vent length is the minimum required vent size.
inputs: drain_size, total_DFU, developed_length
step 1: find the DFU row for the drain size in Table 906.1
step 2: read the maximum developed length allowed for each vent diameter
step 3: pick the smallest diameter whose max length >= developed_length
floor: vent must be >= half the drain diameter and >= 1.25 in
The code floor matters: no vent may be smaller than one-half the diameter of the
drain it serves, and never less than 1.25 inches, so the tool clamps the result up
to that minimum.
Tips and example
Suppose a 3 inch drain carries 30 DFU and the vent run is 60 feet developed.
The Table 906.1 row for a 3 inch drain at 30 DFU shows that a 2 inch vent is good to
roughly that length, so a 2 inch vent is the minimum. If the run grew to 120
feet, the same load would step up to a 3 inch vent. Always measure developed length
generously and add equivalent length for fittings, count every fixture’s DFU from
Table 709.1, and confirm your jurisdiction adopts the IPC rather than the UPC before
submitting.