Plumbing, Drainage & Sitework Calculators

Updated November 19, 2026 · buildcalc.io editorial team

This hub groups our hydraulic, subsurface drainage, and earthwork calculators—checking domestic supply sizing, sanitary pipe slope, roof stormwater runoff, sump lift, and trench excavation against IPC Chapters 7 and 11, IRC Chapters 29 and 30, SMACNA gutter tables, and OSHA 29 CFR 1926 Subpart P to produce pipe sizes, invert elevations, washed stone tonnage, and haul-truck counts.

This hub connects eight BuildCalc calculators covering domestic plumbing, roof stormwater, subsurface drainage, onsite wastewater, and earthwork hauling, showing which tool to open first and where code rules take over.

The eight plumbing, drainage, and sitework tools

  • Pipe slope calculator. Computes fall in inches and feet, percent grade, and downstream invert elevation against 2021 IPC Table 704.1 and IRC Table P3005.4.2 minimums.
  • Water pipe sizing calculator. Sizes Copper Type L, PEX SDR 9, and Schedule 40 PVC lines from peak GPM, velocity limits, and Hazen-Williams pressure drop.
  • French drain calculator. Calculates washed #57 stone in cubic yards and tons net of pipe displacement, non-woven geotextile wrap area, and excess spoil.
  • Excavation volume calculator. Converts cut dimensions into bank cubic yards (BCY), loose spoil yards (LCY), tonnage, dump truck loads, and OSHA 5-foot checks.
  • Gutter sizing calculator. Applies SMACNA Table 1-1 roof pitch factors and IPC Chapter 11 storm intensity to find peak GPM, gutter size, and downspout count.
  • Sump pump calculator. Totals static lift plus straight-pipe, elbow, and check-valve friction head to find Total Dynamic Head (TDH) and motor horsepower.
  • Septic system calculator. Estimates daily design flow from bedrooms, soil absorption area from local loading rates, and leach trench footage.
  • Reynolds number calculator. Solves internal pipe velocity, viscosity, and laminar-to-turbulent transition across water, glycol loops, and industrial fluids.

Which calculator to open first

Site or plumbing task Governing standard or physical basis Primary inputs Output unit Calculator
Set laser grade on a sanitary or storm sewer IPC Table 704.1 / IRC Table P3005.4.2 Run length, slope (in/ft), pipe size, start invert Inches & ft of fall, % grade, end invert Pipe slope
Size main or branch potable water piping ASTM B88 / F876 / D1785, CDA velocity, Hazen-Williams Peak GPM, pipe material, max ft/s, run length Nominal pipe size, actual ft/s, psi loss Water pipe sizing
Check laminar vs turbulent hydronic pipe regime NIST IAPWS-IF97 water properties, pipe bore Inside diameter, flow or velocity, fluid temp Dimensionless Re, flow regime, critical ft/s Reynolds number
Size eaves troughs and leaders for storm rain SMACNA Ch. 1 Table 1-1 & IPC Section 1106 Footprint sq ft, roof pitch, in/hr rain, profile Effective sq ft, peak GPM, gutter & leaders Gutter sizing
Order stone, pipe, and fabric for a curtain or footing drain Subsurface envelope geometry minus pipe OD Trench length, width, depth, cover, pipe OD Net stone yd³ & tons, fabric sq ft, spoil yd³ French drain
Match a submersible sump pump to discharge piping Hydraulic Institute TDH & Hazen-Williams (C=150) Pit GPM, vertical lift, run, elbows, check valve Equiv ft, TDH (ft), water HP, motor HP Sump pump
Price trench or basement digging and spoil hauling Bank-to-loose swell & OSHA 29 CFR 1926.652 Cut length, width, depth, swell %, truck yd³ Bank yd³, loose yd³, tons, loads, OSHA flag Excavation volume
Sanity-check rural septic tank and leach field area U.S. EPA Onsite Wastewater Manual & county rates Bedrooms, gpd/bedroom, soil loading rate Design gpd, absorption sq ft, trench ft Septic system

One residential lot worked end to end

Tracing water across a single 3-bedroom, 2,000-square-foot single-story house on a rural lot shows how outputs from one tool become inputs to the next:

  1. Roof runoff and gutters. Each half of the gable roof covers a 1,000 sq ft horizontal footprint at a 6:12 pitch in a 4 in/hr design rainfall zone. In the gutter sizing calculator, the SMACNA pitch factor of 1.10 raises the effective area to 1,100 sq ft per eave and produces 45.8 GPM of peak storm runoff—fitting a 5-inch K-style gutter served by two 2×3-inch downspouts per side so water discharges cleanly past the backfill zone.
  2. Perimeter French drain. Along the uphill side of the house, a 100 ft interceptor trench is cut 12 inches wide and 24 inches deep with a 4.5-inch OD perforated pipe and 4 inches of topsoil cap. The french drain calculator subtracts 11.04 ft³ of pipe displacement from the 20-inch gravel envelope, yielding 5.76 yd³ (7.78 tons) of washed #57 stone, 633 sq ft of non-woven geotextile fabric, and 6.17 bank yd³ of displaced soil.
  3. Sump basin and discharge. Interior footing drains collect 35 GPM during spring snowmelt into a basement sump pit requiring a 10 ft vertical lift, 20 ft horizontal run, two 90-degree elbows, and one swing check valve in 1-1/2-inch Schedule 40 PVC. The sump pump calculator converts the fittings into 49.0 ft of equivalent pipe, adds 3.44 ft of friction loss to the 10 ft static lift for 13.44 ft TDH, and selects a 1/3 HP pump (or 1/2 HP if inflow climbs toward 45 GPM).
  4. Potable water service. Inside the mechanical room, a hot-water trunk carrying 6 GPM to two bathrooms must stay at or below 5 ft/s per Copper Development Association guidance. The water pipe sizing calculator shows 3/4-inch Type L copper runs at 3.98 ft/s (4.30 psi loss per 100 ft), whereas thicker-walled PEX SDR 9 requires stepping up to 1-inch tubing (3.30 ft/s) because 3/4-inch PEX has a smaller 0.671-inch bore that pushes velocity to 5.44 ft/s.
  5. Building sewer grade and trenching. A 4-inch PVC building sewer runs 90 ft from the foundation stub-out (invert 96.50 ft) to the septic tank at 1/8 in/ft (1.04%). The pipe slope calculator sets the tank inlet invert at 95.56 ft (11.25 inches of fall). Digging that 90 ft × 3 ft × 4 ft trench in the excavation volume calculator yields 40.0 BCY, swelling 25% to 50.0 LCY (5 loads in a 12 yd³ truck)—whereas deepening to 5 ft or more triggers OSHA 29 CFR 1926.652 shoring.
  6. Septic absorption field. At 150 gpd per bedroom (450 gpd total) on a county-assigned soil loading rate of 0.5 gpd/ft², the septic system calculator sizes 900 sq ft of absorption area, or 300 linear feet of 3-foot-wide leach trenches.

For 2D and 3D rolling pipefitting travel cuts open the pipe offset calculator, for multi-surface lot runoff and drywell storage open the stormwater runoff calculator, for concrete bedding or thrust blocks use the concrete calculator, and check lawn restoration depth in the mulch and topsoil calculator.

Key code thresholds that catch field crews

  • Nominal size is not inside diameter. Comparing ASTM inside diameters—0.785 in. for 3/4-inch Type L copper versus 0.671 in. for 3/4-inch PEX SDR 9—explains why direct size-for-size substitutions starve multi-head showers.
  • Uneven grade clogs sewers faster than steepness. Under IPC Table 704.1, pipes 2-1/2 in. and smaller need 1/4 in/ft and 3 in. to 6 in. lines need at least 1/8 in/ft; uniform bedding without bellies keeps solids moving.
  • Trench safety escalates at 4 feet and 5 feet. OSHA 29 CFR 1926.651 and 1926.652 require ladder egress within 25 feet at 4 feet deep, spoil piles set back 2 feet from the lip, and sloping, shoring, or trench shields at 5 feet or deeper—plus daily Competent Person inspection at every depth.

Where calculators stop

Online arithmetic handles straight runs, rectangular cuts, and steady peak flows. It cannot classify OSHA Soil Type A, B, or C in an open trench, set local frost-line burial depth, convert Water Supply or Drainage Fixture Units under state amendments, or replace percolation testing and municipal stormwater permits. Verify pipe sizing, backflow protection, venting, and trench shoring with your local plumbing inspector, licensed master plumber, civil engineer, and utility locator (call 811 before digging).

Frequently asked questions

Which plumbing and sitework calculations require local code verification?

Potable water sizing, sanitary drain slope, storm sewers, septic systems, and excavations 5 feet or deeper are regulated by state plumbing codes, county health authorities, and OSHA Subpart P. Use these tools for planning checks before pulling permits.

Why do water supply pipes and gravity drain pipes follow opposite sizing rules?

Pressurized water lines run completely full, balancing velocity caps (5 ft/s hot, 8 ft/s cold) against friction loss. Gravity drains run partially full with air space above the water, relying on steady grade (1/8 to 1/4 in/ft) to carry solids.

How do roof gutters, French drains, and sump pumps connect on a residential lot?

Gutters capture roof runoff before it soaks foundation backfill. A perimeter French drain intercepts subsurface groundwater and routes it either to daylight or into an interior sump basin, where a sump pump lifts it clear of the house.

Why is excavated spoil volume always larger than the trench dimensions?

Digging breaks undisturbed bank soil apart and traps air between clods, swelling loose volume by roughly 12% in sand, 25% in loam, and 30% to 35% in clay. Schedule dump trucks from loose cubic yards, while tonnage follows bank density.

All plumbing & drainage calculators

Sources

  1. 2021 International Residential Code, Chapters 29 (Water Supply and Distribution) and 30 (Sanitary Drainage), International Code Council, accessed November 2026.
  2. 2021 International Plumbing Code, Chapter 7 (Sanitary Drainage) and Chapter 11 (Storm Drainage), International Code Council, accessed November 2026.
  3. OSHA 29 CFR 1926 Subpart P — Excavations (1926.651 Specific Excavation Requirements & 1926.652 Requirements for Protective Systems), Occupational Safety and Health Administration, accessed November 2026.
  4. Architectural Sheet Metal Manual, Chapter 1: Gutters and Downspouts (Roof Pitch Factors and Drainage Sizing), Sheet Metal and Air Conditioning Contractors' National Association (SMACNA), accessed November 2026.
  5. Onsite Wastewater Treatment Systems Manual, EPA/625/R-00/008, U.S. Environmental Protection Agency, accessed November 2026.