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. 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 iPhone app showing IPC code reference, Find Slope mode and drainage pipe size selection
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.

Find slope or find drop

Enter length + drop to get the slope, or length + slope to get the required total drop. Results in in/ft, mm/m and percent grade.

Code compliance built in

Select IPC, UPC or NPC and the app flags any slope below the minimum for your pipe size — including the UPC's 4"+ AHJ exception.

Measure with your iPhone

Digital torpedo level mode: lay the phone along the pipe, watch the live reading turn green at your target slope, then capture 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.

History for every job

Save up to 50 calculations with custom titles. Restore yesterday's main-line numbers in one tap, or copy full results to paste into a text or report.

All standard pipe sizes

1½" through 15" (DN 40–DN 375), with common slope presets from 1/16"/ft to 1"/ft and a slider for any custom grade.

Screenshots

See it on the pipe

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

Pipe Slope Calculator app home screen with IPC code selected and Find Slope mode
Slopes & drops, fast
Find Drop mode calculating total drop for a drainage pipe with length presets
Find the drop for any run
Choosing between IPC, UPC and NPC plumbing codes with imperial and metric units
IPC · UPC · NPC, imperial or metric
Below-minimum slope warning with animated pipe diagram and results for a 2.5 inch pipe
Warnings when slope is below code
Measuring pipe slope by laying the iPhone on the pipe like a torpedo level
Measure the slope right on the pipe
Copying pipe slope results with total drop, grade percentage and slope in inches per foot
Copy-paste results anywhere
Saved history of pipe slope calculations with code standard and units for each entry
Replay your last 50 calculations
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, and a clear warning if you're below the code minimum. Copy or save the result for the job file.

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?

Most sewer lines need ¼ inch of fall per foot of run for pipes up to 3 inches, and ⅛ inch per foot for 4-inch and larger pipe under the IPC. 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. Under the UPC and Canada's NPC, a 3-inch drain needs ¼ 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 →

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?

Yes. Pipe Slope Calculator uses the iPhone's built-in tilt sensor as a digital torpedo level: place the phone on its side edge along the pipe and read live slope in inches per foot or mm per metre. Sensor readings are approximate (±1–2° / ±0.2 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 →

Does Pipe Slope Calculator work offline?

Yes — the app works 100% offline. Every calculation, code check, slope measurement and saved entry runs 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.

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 · iOS 17+ · iPhone (runs on Apple Silicon Macs too) · 3.3 MB