Plumbing

Running Drain, Waste and Vent

Every DWV rule on a plumbing job exists to protect one of two things: continuous fall to the sewer, or free air behind the flow.
  • 10 minReading time
  • 7Sections
  • 4Calculators inline
  • Last reviewed

Two invariants, and why the code reads the way it does

Strip the plumbing code of its numbering and what remains is a defence of two physical conditions. The first is fall: waste moves because gravity moves it, and any length of pipe that loses its downhill slope becomes a settling basin for solids. The second is air: water leaving a fixture must be replaced by air entering behind it, or the moving slug will pull the trap seal out with it and open the drain to the room.

Fixture unit tables, cleanout spacing, offsets, wet vents, air admittance devices, trap arm limits, hanger spacing — trace any one of them back far enough and it lands on fall or on air. Learning which invariant a rule protects is worth more on site than memorising the rule, because it tells you what you are allowed to trade when the building fights you. A joist you cannot notch, a slab you cannot chase deeper, a soffit the architect wants two inches shallower: each of those is a negotiation, and knowing whether you are spending fall or spending air keeps you from spending both at once.

Neither invariant announces its own failure. A drain with lost fall runs fine for months while it is still mostly clean pipe, and a starved vent passes a rough inspection because there is no water in the system yet. Both fail later, in occupied buildings, behind finished surfaces, and both get blamed on the plumber who is easiest to find.

Invariant one — protecting fall

Fall is the cheapest thing to get right at layout and the most expensive to recover after the slab is poured. Sanitary drainage lines are pitched to hold flow in a velocity band: fast enough that solids stay entrained in the carrying water, slow enough that the water does not outrun what it is meant to carry. Over-pitch is a real defect, not a bonus. A branch dropped steeply between two fittings lets the liquid sprint ahead and strand the solids on dry pipe, which is why a vertical drop into a horizontal run under a heavy-use fixture group is a recurring source of blockages that never quite explain themselves.

Required slope varies by pipe diameter and by jurisdiction — the adopted plumbing code governs, and adoption differs by state, province and municipality, sometimes with local amendments layered on top. Confirm the figure the inspector will actually measure against before you set a single hanger, rather than working from the number you used on the last job in the next county. Where a run is long enough that the total drop matters to your ceiling or your invert at the connection, work the geometry before you cut anything.

Setting the slope is only half of holding it. Fall is lost after installation far more often than it is lost at layout — sagging between hangers, a length of PVC left unsupported through a wide bay, backfill settling under a buried line, a fitting rolled slightly out of plane by someone else's strut clamp. Support spacing in the manufacturer's instructions and the referenced material standards exists to stop bellies forming, and it tightens for plastic in warm environments where the pipe creeps. A belly does not need to be dramatic; a run that holds standing water at one low point will accumulate grease and paper at that point and nowhere else, and the resulting stoppage looks like a user problem until someone puts a camera down the line.

Cleanouts are the admission that fall will eventually be defeated by something. Place them where a drain machine can actually be worked — at the base of stacks, at changes of direction, at intervals along long horizontal runs, and at the building drain's junction with the sewer. A cleanout buried behind a finished wall or opening into eighteen inches of clearance is a code item satisfied on paper and useless the night it is needed. Think about the machine's reach and the cable's ability to negotiate the fitting you chose: a long-sweep pattern passes a cutter head; a tight pattern chosen to save an inch of ceiling does not.

Trench work carries its own version of the problem. Bedding must support the pipe continuously along the barrel, not just at the joints, and the bell holes must be excavated so the pipe is not effectively hung between its own couplings. Compaction under and beside the pipe, to the requirements of the installation standard for the material in use, is what preserves the invert elevations you surveyed. Skip it and the line settles unevenly during the first year of service, converting your careful slope into a series of shallow traps.

Bellies form between supports rather than at them, so the hanger count for a run is the cheapest defence fall has once the pitch itself is settled.

The total length of the pipe run needing support.

The maximum spacing between hangers allowed by code for this pipe's material and size.

Pipe hangers needed

10 hangers

Medium confidence

Maximum hanger spacing depends on your pipe's material and size per the applicable plumbing/mechanical code table (e.g. IPC Table 308.5) — confirm the correct maximum spacing for your specific pipe before finalizing hanger count.

Bays along the pipe run
9
Hanger centres along the pipe
7.33 ft

Estimated cost — your price

This site holds no price list for this material — local prices vary too much to publish honestly. Enter your supplier's price and the result is costed with it.

20 ft5 m66 ft20.12 m7.33 ft2.24 m

What this calculation does not cover

  • The +1 in the count assumes a hanger sits at each end of the length you typed, so a line measured and entered in sections will be over-counted by one hanger at every join where two sections meet and share a single support.
  • One spacing figure is divided into the whole run, which means a line that steps down in bore partway, changes material at a transition, or turns from a horizontal leg into a riser has to be entered as separate runs and the counts added — the arithmetic cannot hold two permitted spacings at once.
  • Weight never enters the calculation: no bore, wall thickness, contained water or insulation is asked for, so the answer gives the number of support points and says nothing about rod diameter, hanger type, or whether the structure overhead can carry a filled line.
  • The centres reported are an even division, which is why they come out under the maximum rather than on it: a 20 m run at a 2.4 m maximum is nine bays at roughly 2.22 m. Marking from one end at the full maximum instead is the other way to do it, and it leaves a short final bay to absorb — the page does not price that choice, and on a line with a fixed anchor at one end it may not be yours to make.
  • The spacing box refuses anything above 4 m (about 13 ft) and the run length stops at 200 m (about 656 ft), so a longer continuous line, or a support interval wider than that ceiling, has to be broken into pieces and counted piece by piece.

Where fall gets decided — the slope calculation

Before hangers go up, settle the arithmetic that governs the whole run: total drop over the developed length, the resulting invert at each end, and whether that invert clears the structure and meets the downstream connection. Run it for the worst case in the building, not the easiest branch.

Work the fall for the longest run first — if the far end fits, everything shorter will.

The horizontal length of the drain pipe run.

Larger drain pipes are allowed a gentler minimum slope.

Minimum required drop

4.875 in of drop (minimum)

High confidence

This is the code minimum slope — always check your specific local plumbing code, which may set stricter requirements in some jurisdictions.

Pipe run length
19.5 linear ft

Add the equipment this sizes

This result is a specification — 4.875 in of drop (minimum) — not a quantity. Put the thing it sizes into your project: how many, what you call it, and your supplier’s price.

1.19°19.5 ft5.94 m4.88 in123.82 mmvertical scale ×105 ft2 m

What this calculation does not cover

  • The size question is answered with two bands, so a 4 in branch and a 300 mm building sewer both land in the same band and get 1/8 in per ft. Real code tables are not that coarse: several add a gentler band for the largest sizes, and some jurisdictions require 1/4 in per ft at every size unless the reduction is specifically approved, so both the band boundary and the permitted figure are jurisdictional.
  • Nothing here checks the drop you actually have against a maximum, and nothing checks that the fall will physically fit: a 20 m run of large pipe needs about 208 mm of drop at this slope, and that depth has to be available between the fixture connection and the invert of the sewer or septic tank at the far end.
  • Slope is not capacity. Pipe size is set by the drainage fixture unit load on the run and the maximum permitted flow depth, and this page never asks how many fixtures discharge into it — the size band is something you tell the calculator, not something it works out for you.
  • The length is treated as one straight horizontal run. No allowance is made for bends, offsets or developed length through fittings, and the page does not size or locate the vents, traps and cleanouts the drain also needs; a run at exactly the right slope will still siphon its traps if the venting is wrong.
  • The figure is a total end-to-end drop and assumes the fall is delivered evenly along the run. It says nothing about hanger spacing or pipe bedding, and a single sag deep enough to hold standing water will collect solids even though the two ends of the pipe are the compliant distance apart.

Invariant two — protecting air

Air behaves in a drainage system like the second half of a two-phase flow, because that is exactly what it is. A slug of water descending a stack drags air with it and drives pressure ahead of itself; at the base of the stack, where vertical flow turns horizontal, that pressure spikes. Behind the slug, negative pressure develops. Trap seals sit between those pressure swings and the occupied space, and a two-inch column of water is not a strong barrier. Positive pressure blows the seal into the room; negative pressure siphons it down the drain. Both leave an open path for sewer gas, and the occupant reports the same thing either way — a smell that comes and goes.

Vents exist to keep those pressures near atmospheric. Every trap needs a vent within a maximum trap arm length, and that length is tied to the trap arm diameter, because the constraint is really about how far the arm can run before the flowing waste fills the pipe's cross-section and seals off the air path back to the vent. This is the one place the two invariants pull against each other: the trap arm must fall, but if it falls enough to drop the vent connection below the weir of the trap, the arm can flood and self-siphon. Hold the fall, hold the length limit, and take the vent off before the arm has dropped a full pipe diameter.

Wet venting, common venting and circuit venting are all sanctioned ways of making one pipe do two jobs, and each carries conditions about direction of flow, fixture unit loading and connection sequence. They are worth using — they save material and ceiling space — but they are unforgiving of improvisation. A wet vent that receives a fixture discharging in the wrong sequence stops being a vent at the moment it is needed most. Where an air admittance valve is permitted, treat it as a device with an installation envelope, not a universal exemption: accessibility, orientation, clearance above the flood level, and ventilated space around it are all conditions of its listing, and boxing one into a sealed cabinet voids the thing that made it acceptable.

Stack venting has a geometry all its own. Offsets in a vertical stack disrupt the annular flow that keeps air moving, and the region below a stack offset behaves like the base of a stack — pressurised, and hostile to any trap connected near it. Give that zone the same respect you give the base connection: keep branch connections clear of it by the distance the code requires, and where the building forces a branch into that region, relieve it with a yoke or a separate vent rather than hoping.

Terminations finish the air path. A vent through the roof must extend far enough above the surface to stay clear of snow and of anything walking on the roof, and must stand clear of openable windows and air intakes by the required horizontal and vertical distances — the specific dimensions are set by the adopted code and by local snow-load amendments, and cold-climate jurisdictions commonly require a larger terminal to resist frost closure. A vent that frosts shut in January produces the same symptoms as a vent that was never installed, and the callback lands in the coldest week of the year.

Traps: the seal both invariants defend

The trap is where fall and air meet, and it is the component most often defeated by neglect rather than by installation error. Seals evaporate. A floor drain in a mechanical room, a rarely used fixture in a guest suite, a trench drain in a garage that sees water twice a year — all of them dry out, and a dry trap is an open pipe regardless of how well the vent system performs. Trap primers exist to top those seals up, and the requirement for them in specific locations comes from the adopted plumbing code.

Sizing a primer line is a flow question: enough water to replace evaporation across the interval between primer cycles, delivered to every trap the primer serves through a distribution unit, without wasting potable water. Where one primer feeds several drains, the distribution has to be balanced, or the nearest trap gets everything and the far one stays dry. Protect the primer line from freezing and keep it accessible, because a primer that cannot be reached will not be maintained.

Deep-seal traps are a legitimate answer in high-evaporation environments, and so are trap seal protection devices where they are listed and accepted. What is not an answer is a floor drain left to fend for itself in a heated plant room. The failure mode is invisible until the space is occupied and someone with a sensitive nose reports it, at which point the investigation runs through the whole DWV system before arriving at a drain nobody has looked at since handover.

Sizing the primer before the walls close

Set the primer flow while the water line routing is still adjustable. Establish how many traps one primer will serve, the evaporation exposure in each location, and whether the delivered rate holds up at the furthest drain.

Size for the furthest, driest trap on the manifold — the near ones look after themselves.

The number of floor drain traps this trap primer distribution system serves.

The water flow rate delivered to each individual fixture by the trap primer.

Total trap primer flow needed

4 gal/min

High confidence

Add the equipment this sizes

This result is a specification — 4 gal/min — not a quantity. Put the thing it sizes into your project: how many, what you call it, and your supplier’s price.

What this calculation does not cover

  • Totals a flow rate, and a trap seal is kept alive by VOLUME and INTERVAL. What matters at each trap is a small charge of water — enough to top the seal back up — arriving often enough to beat evaporation in that room, and a warm plant room or one under constant extract dries a seal far faster than a cool corridor. The right flow on a primer that cycles too rarely still ends with a dry trap and sewer gas in the room.
  • Multiplies as though every outlet receives the full rate at the same moment. Most installations run one primer valve into a distribution unit that splits a single charge between its outlets, and those units are built for a handful of ports, not the fifty this page will accept. Split one charge too many ways and every trap on the manifold gets a share too small to make a seal.
  • The thing that fails an inspection is not in the arithmetic: a primer ties potable water to the drainage system. The device itself has to be a listed type — ASSE 1018 for a potable-supplied primer valve, ASSE 1044 for drainage-type and electronic devices — carrying the air gap or backflow protection that listing requires. No flow figure substitutes for the right valve.

Testing what you cannot see later

Rough-in testing is the only opportunity to prove both invariants while the system is still exposed. A water test on the DWV rough fills the system to a head that finds joints a smoke or air test might pass, and it does so while every joint is still reachable. Hold it for the duration the inspector requires and walk the whole run rather than watching the gauge — a weeping hub tells you more than a slow needle.

Slope verification deserves the same discipline. Shoot the inverts, or run a level along the pipe rather than eyeballing the hangers, and do it after the other trades have finished working around your lines. Ductwork and cable tray installers move things. A run that was correct on Tuesday can be sitting on a strut clamp on Thursday, and the difference is invisible in a ceiling photograph.

Final testing on the air side is the one most often skipped. A peppermint or smoke test on the completed system finds the connections that were never solvent-welded, the AAV installed upside down, and the vent terminal that was capped for a roofing operation and never uncapped. Doing it before the ceilings close costs a morning; doing it after occupancy costs finishes, access and reputation, and the diagnosis takes far longer because the evidence is behind drywall.

One last habit worth building: record what you actually installed. Marked-up drawings showing real inverts, real cleanout locations and real vent routing are worth more to the next person on the site than the design set ever was. When a stoppage appears in year three, the difference between a camera survey and a demolition exercise is usually whether somebody wrote down where the pipe went.

A water test fills the rough to a stated head, and knowing what the stack and its branches will hold tells you whether one hose bib fills it in a coffee break or ties up a morning.

The pipe's inside diameter, not the nominal or outside size.

The total length of pipe run.

Estimated pipe volume needed

0.7573 gallons

High confidence
Volume (liters)
2.87 liters
Volume (in³)
174.95 in³

Estimated cost — your price

This site holds no price list for this material — local prices vary too much to publish honestly. Enter your supplier's price and the result is costed with it.

10 ft2 m33 ft10.06 m0.75 in1.91 cm

What this calculation does not cover

  • The figure is the contents of a straight bore and nothing else. Fittings, valve bodies, meters, strainers and any water standing in a cylinder or tank at the end of the run are not counted, and the pipe wall is excluded — so this is not the volume of pipe material, and not the space the pipe occupies in a chase or trench.
  • Volume scales with the square of the bore, so an inside diameter that is 9 per cent out produces a volume 19 per cent out. Published inside diameters differ by material, schedule and class for the same nominal size, and the calculator takes whatever figure you type at face value — it has no way of knowing that a half-inch pipe was entered at half an inch.
  • It assumes the run is completely full of liquid over its whole length. Gravity drains, waste stacks and sewers are designed to flow part full, and a system that has not been purged holds air at its high points, so both contain less than this number says.
  • It answers how much the run holds, not how long the wait is. Turning that volume into a hot-water delay needs the fixture's flow rate as well, and the real delay runs longer because the first hot water gives up heat to the pipe wall and to whatever surrounds it. No time calculation happens on this page.
  • Nothing here is a sizing or a support check. Velocity, friction loss and pressure drop are separate calculations, and a long run that holds a comfortable volume can still be too small to deliver flow. The contents also weigh whatever that volume of water weighs, which bears on hanger spacing and is not assessed.

Before the hangers go up

Two calculations settle the geometry of a DWV rough. Do them in this order — fall determines where the pipe can go, and the primer sizing follows once the drain locations are fixed.

  • Adopted code edition and local amendments — Confirm the slope, trap arm and vent terminal requirements the inspector will measure against on this jurisdiction, not the last one.
  • Hanger and support spacing per the pipe material's installation standard — Tighter for plastic in warm spaces; this is what stops bellies forming after handover.
  • Cleanout locations checked for machine access — Stack bases, direction changes, long horizontal intervals, and the sewer junction — with real working clearance in front of each.
  • Bedding and backfill for buried runs — Continuous support along the barrel with bell holes excavated; compaction to the installation standard preserves surveyed inverts.
  • Vent terminal clearances and frost sizing — Height above roof, and horizontal and vertical separation from openable windows and air intakes, per the adopted code.
  • Trap primer line routing and accessibility — Freeze protection, a reachable distribution unit, and every served drain identified before the walls close.
Open this as a workspace →

Opens the calculators above on one screen with the dimensions from this article already filled in. Quantities only — this site publishes no price list, because local prices vary too much to publish honestly.

Drawn from

  • ASTM D2665 Standard Specification for Poly(Vinyl Chloride) (PVC) Plastic Drain, Waste, and Vent Pipe and Fittings
  • ASTM D2321 Standard Practice for Underground Installation of Thermoplastic Pipe for Sewers and Other Gravity-Flow Applications
  • ASTM A74 Standard Specification for Cast Iron Soil Pipe and Fittings
  • ASSE 1018 Performance Requirements for Trap Seal Primer Valves — Potable Water Supplied
  • ASSE 1072 Performance Requirements for Barrier Type Floor Drain Trap Seal Protection Devices
  • ASSE 1051 Performance Requirements for Individual and Branch Type Air Admittance Valves for Sanitary Drainage Systems
  • PDI-G101 Testing and Rating Procedure for Grease Interceptors with Appendix of Sizing and Installation Data

Guidance, not a specification. Local codes, the engineer of record and the product manufacturer’s instructions govern where they differ from anything written here.