The pipe slope calculator built for the job site

Calculate drain pipe slope, pipe fall and total drop in seconds — automatically checked against IPC, UPC and NPC minimum slopes. Plan multi-segment runs, keep each job's notes and photos, and share a PDF report. Or lay your iPhone on the pipe and measure the grade directly.

IPC 2024 UPC 2024 NPC 2020 Imperial ⇄ Metric
Download on the App Store
QR code linking to Pipe Slope Calculator on the App Store Scan with your iPhone camera to download
  • Works 100% offline
  • No subscription — $2.99 once
  • No ads, no tracking
Pipe Slope Calculator on iPhone: a 4-inch drain at ¼ inch per foot meets the IPC minimum, with 10 inches of total drop, grade, ratio and angle
Why plumbers use it

Every drainage slope answer, before you set the pipe

Built for plumbers, pipefitters, contractors and inspectors — and precise enough for the serious DIYer roughing in a bathroom.

Four ways to solve the grade

Find slope, find drop, find the longest run, or work from invert elevations. Results in in/ft, mm/m, percent, ratio and degrees, with set-out numbers for your level, string line and pipe laser.

Code compliance built in

Select IPC, UPC or NPC and the app flags any slope below the minimum for your pipe size, names the clause it comes from, and covers the UPC's 4"+ AHJ exception.

Measure with your iPhone

Digital torpedo level mode: calibrate in two steps, lay the phone along the pipe, watch the reading turn green at your target slope, then lock it into the calculator.

Works 100% offline

Basements, crawl spaces, new builds with no service — every feature works with zero signal. No account, no ads, no tracking.

Runs, jobs and reports

Chain up to 15 segments into a run with drop and invert at every station. Keep each job's calculations, runs, notes and photos together, and share one PDF job report.

All standard pipe sizes

1½" through 15" (DN 40–DN 375), with slope presets from 1/16"/ft to 1"/ft or 1:40 to 1:200, a slider for any grade, and the whole app in English or French.

Screenshots

See it on the pipe

Swipe through the app — from code selection to slope measurement.

Pipe Slope Calculator result: a 4-inch drain at ¼ inch per foot meets the IPC minimum with 10 inches of total drop
Code-checked in seconds
Multi-segment drain run with total drop, average slope and the invert at every station
Plan runs station by station
Plumbing job with site address, permit number, notes and job-site photos
Jobs, notes and photos
Job report PDF with every calculation, run and photo for one job
One PDF for the whole job
Measuring pipe slope with the calibrated iPhone level, on target at ¼ inch per foot
Measure right on the pipe
Minimum drain slopes for every pipe size under IPC, UPC and NPC, with code clauses
IPC · UPC · NPC minimums
Elevations mode in dark mode: end invert checked against the sewer main
Check inverts against the main
iPhone & iPad

Now on iPad, with the inputs beside the results

On iPad, the code, pipe size and measurements sit next to the verdict, the numbers and the diagram, so you see every change as you type — in portrait or landscape.

  • Every feature on both devices: runs, jobs, photos, PDF reports and the slope level.
  • Plan a long run or review a job on the bigger screen before you dig.
  • One purchase covers your iPhone and your iPad.
Pipe Slope Calculator on iPad with the inputs beside a code-checked result Multi-segment drain run on iPad with the drop and invert at every station
How it works

Three taps from question to code-checked answer

1

Pick your code and pipe size

Choose IPC, UPC or NPC and tap your pipe size (1½"–15"). The app instantly knows the minimum slope that applies.

2

Enter what you know

Type the run length and either the drop you have or the slope you want — or capture the live slope by laying your iPhone on the pipe.

3

Read the verdict

Total drop, slope in in/ft or mm/m, percent grade, ratio and angle, the code clause, and a clear warning if you're below the minimum. Save it to a job or share a PDF report.

Minimum slope cheat sheet

The numbers the app checks for you, straight from the three major North American plumbing codes:

Pipe sizeIPC 2024 (§704.1)UPC 2024NPC 2020 (Canada)
1½" – 2½"¼"/ft (2.08%)¼"/ft (2%)1:50 · ≈¼"/ft (2%)
3"⅛"/ft (1.04%)¼"/ft (2%)1:50 · ≈¼"/ft (2%)
4" – 6"⅛"/ft (1.04%)¼"/ft (2%)*1:100 · ≈⅛"/ft (1%)
8" – 15"1/16"/ft (0.52%)¼"/ft (2%)*1:100 · ≈⅛"/ft (1%)

* UPC: pipe 4" and larger may be approved at ⅛"/ft (1%) by the Authority Having Jurisdiction where ¼"/ft is impractical. Reference only — always verify with your local AHJ. See the full IPC vs UPC vs NPC comparison.

Guides

Pipe slope guides & answers

Straight answers to the slope questions plumbers and DIYers actually search for — each with the exact code numbers and a worked example.

FAQ

Pipe slope questions, answered

What is the minimum slope for a drain pipe?

Under the International Plumbing Code (IPC), horizontal drain pipes 2½ inches and smaller need a minimum slope of ¼ inch per foot, pipes 3 to 6 inches need ⅛ inch per foot, and pipes 8 inches and larger need 1/16 inch per foot. The UPC requires ¼ inch per foot for all sizes unless the local authority approves flatter slope on 4-inch-plus pipe. Always confirm with your local code. Learn more →

How much fall per foot does a sewer line need?

Under the IPC, a sewer line needs ¼ inch of fall per foot up to 2½-inch pipe and ⅛ inch per foot for 3- to 6-inch pipe. Canada's NPC asks 1:50 (about ¼ inch per foot) up to 3 inches and 1:100 (about ⅛ inch) for 4 inches and up, and the UPC ¼ inch per foot for every size. A 50-foot 4-inch sewer at ⅛ inch per foot drops 6.25 inches in total. Learn more →

What slope does a 4-inch sewer pipe need?

A 4-inch sewer or drain pipe needs a minimum slope of ⅛ inch per foot (about 1%) under the IPC and NPC. The UPC requires ¼ inch per foot (2%) unless the Authority Having Jurisdiction approves ⅛ inch per foot. Learn more →

What slope does a 3-inch toilet drain need?

Under the IPC, a 3-inch drain needs at least ⅛ inch per foot of slope. The UPC requires ¼ inch per foot, and Canada's NPC 1:50 (about ¼ inch per foot). Many plumbers run 3-inch toilet drains at ¼ inch per foot regardless, for a self-cleaning safety margin. Learn more →

How do you calculate pipe slope?

Divide the total drop by the pipe length. For slope in inches per foot, divide the drop in inches by the run in feet. For percent grade, divide inches-per-foot by 12 and multiply by 100 — so ¼ inch per foot equals about 2.08%. Learn more →

How do I convert pipe slope between inches per foot, percent, ratio and degrees?

Percent grade is in/ft ÷ 12 × 100, the ratio is 1 : (12 ÷ in/ft), and the angle is the arctangent of in/ft ÷ 12. So ¼ inch per foot is 2.08%, 1:48 and 1.19°, and ⅛ inch per foot is 1.04%, 1:96 and 0.60°. In metric, 20.8 mm/m is the same 2.08%. Pipe Slope Calculator reads and shows all five units, so you can type 1:50, 2% or 1.2° straight into the slope field. Learn more →

How long can a drain run be for the fall I have?

Divide the fall you have by the slope you need. With 6 inches of fall at ¼ inch per foot, the longest run is 24 feet; at ⅛ inch per foot it is 48 feet. Pipe Slope Calculator's Find Run mode does this for you, and when the slope is below the minimum for your pipe it names the smallest larger pipe that would meet code at that slope.

How do I calculate the end invert of a sewer or drain pipe?

End invert = start invert − drop, and drop = length × slope. A 60-foot run at ¼ inch per foot drops 15 inches (1.25 ft), so a 100.00 ft start invert ends at 98.75 ft. In Elevations mode, Pipe Slope Calculator also compares the end invert with the sewer main's invert and warns when the connection sits too low for gravity, which may call for a sewage ejector.

How do I work out drop and inverts for a run with several slopes?

Split the run into straight segments. For each one, drop = length × slope, and each station's invert is the previous invert minus that drop. Pipe Slope Calculator handles up to 15 segments, lists the distance, drop and invert at every station, and flags any segment below the code minimum. Example: from a 100.00 ft start invert, 20 ft at ¼"/ft, 25 ft at ⅛"/ft and 15 ft at ¼"/ft drop 11⅞ inches in total and end at 99.01 ft.

What block goes under my level to set ¼ inch per foot?

Multiply the slope by the level's length in feet: for ¼ inch per foot, a 4-foot level needs a 1-inch block under its downhill end and a 2-foot level needs ½ inch. In metric, a 1200 mm level at 2.08% (20.8 mm/m) needs a 25 mm block. Pipe Slope Calculator's set-out numbers also give the fall over a 10-foot string line (2½ inches at ¼ inch per foot) and the grade to dial into a pipe laser (−2.08%).

Can a drain pipe have too much slope?

Codes set minimum slopes, not general maximums, and slopes of 45 degrees or steeper are treated as vertical piping. A widely used field guideline keeps gravity drains carrying solids between ¼ and ½ inch per foot, because very steep, shallow-graded runs can let liquids outrun solids. Some local authorities do publish maximum-pitch rules, so check your jurisdiction. Learn more →

How much drop is ¼ inch per foot over 20 feet?

At ¼ inch per foot, a 20-foot run drops 5 inches in total. The formula is run in feet × 0.25 inches — for example 10 ft drops 2.5 inches and 40 ft drops 10 inches. Learn more →

Can I measure pipe slope with my iPhone or iPad?

Yes. Pipe Slope Calculator uses the device's tilt sensor as a digital torpedo level. Calibrate it in two steps on any flat surface, lay the phone on its edge along the pipe, and read the live slope, which way the pipe falls, and whether you have hit your target; lock the reading once it is steady. Sensor readings are approximate (±1–2°, about ±0.2–0.4 in/ft), so verify with a calibrated level before making code-compliance decisions. Learn more →

What is the difference between IPC, UPC and NPC slope requirements?

The IPC scales minimum slope with pipe size (¼ in/ft up to 2½ inches, ⅛ in/ft for 3–6 inches, 1/16 in/ft for 8 inches and up). The UPC requires ¼ in/ft for all sizes, with a possible ⅛ in/ft exception for 4-inch-plus pipe where the local authority approves. Canada's NPC requires 1:50 (about ¼ in/ft) up to 3 inches and 1:100 (about ⅛ in/ft) for larger pipe. Learn more →

What is a 1:50 drainage gradient in mm/m and percent?

A 1:50 gradient means 1 unit of fall per 50 units of run — 20 mm of fall per metre, or a 2% grade. A 1:100 gradient is 10 mm per metre, or 1%. Multiply the run length by the gradient to get total fall: 8 m at 1:50 falls 160 mm. Learn more →

Can I keep job notes and photos and share a slope report?

Yes. A job keeps one site's calculations, runs, address, permit number, notes and photos together and shares them as one PDF: a cover page, a page for each calculation and run, then the photos. Any single result can also be shared as a one-page report, as a PDF, an image or text. Everything stays on your device until you share it.

Does Pipe Slope Calculator work on iPad and in French?

Yes. Since version 2.0 the app runs on iPhone and iPad (iOS and iPadOS 17 or later), in portrait or landscape, and on iPad the inputs sit beside the results. One purchase covers both devices. The whole app is available in English and French (Canada), where the National Plumbing Code appears as the CNP.

Does Pipe Slope Calculator work offline?

Yes — the app works 100% offline. Every calculation, code check, slope measurement, job and photo stays on the device, so it works in basements, crawl spaces and remote job sites with no signal. It collects zero personal data and contains no ads or tracking.

Is Pipe Slope Calculator free?

Pipe Slope Calculator is a one-time purchase of US$2.99 on the App Store. There is no subscription, no ads, no account and no in-app purchases — you pay once and own it, on iPhone and iPad.

Pipe Slope Calculator app icon

Stop second-guessing your grade

Get the right slope, fall and drop — code-checked — before you set the pipe.

Download on the App Store
QR code linking to Pipe Slope Calculator on the App Store Scan with your iPhone camera

US$2.99 one-time · iPhone & iPad · iOS 17+ · English & français