Slope Calculator

This free slope calculator converts a ground or pipe slope between every form the trades use: percent grade for yard grading and driveways, inches per foot for drain pipe and patios, degrees for angle finders, and H:1V ratios for retaining-wall backslopes and embankments. Enter the slope in whichever form you have — including a raw rise-and-run measurement in feet and inches — and get all the others instantly.

Add your run length and the calculator returns the total fall: the drop you actually set with stakes and a string line. Pick an application and it checks your grade against the published requirement — IRC R401.3 foundation drainage (6 inches of fall in the first 10 feet), IPC 704.1 drain-pipe pitch by diameter, ADA walkway and ramp maximums, and the ICPI 2% patio recommendation — and tells you how much fall you are short.

Free and no signup, with the common construction slopes tabled next to your result. Once you have your grade, feed it into the French Drain Calculator for trench materials, the Retaining Wall Calculator for backslope loading, or the Paver Calculator for patio base planning.

View material estimation guides →

Slope Calculator

Convert a slope between every form the trades use — rise over run, percent grade, degrees, inches per foot, and H:1V ratio — and turn a slope plus a run length into the total fall to stake out. Check your grade against code minimums like IRC R401.3 foundation drainage, IPC 704.1 drain pitch, and ADA ramp maximums. Free, no signup.

How do you know the slope?

Rise and run

ft
in
ft
in

Run length & code check (optional)

ft

How slope actually works

Slope confuses people because every trade writes the same number differently — plumbing specs say inches per foot, ADA says percent, grading plans say H:1V. These engineering-style diagrams show why they're all one rise-over-run number, how to stake a slope outside with a string line, and which code minimums and maximums your grade has to clear.

The notation diagram is why the calculator accepts five input modes and always returns the same four answers. A 6″ fall over 10 ft — the IRC R401.3 foundation-grading minimum — is 5%, 2.86°, ⅝″ per foot, and 20H:1V at the same time. It also flags the classic mix-up: a 100% grade is 45°, not 90°.

Every slope notation is rise ÷ run in a different dialect: 6″ over 10 ft is 5%, 2.86°, ⅝″ per foot, and 20H:1V — the same slope. Plumbing specs speak in/ft, ADA speaks percent, grading plans speak H:1V. And percent ≠ degrees: a 100% grade is 45°, not 90°.Source: percent = rise ÷ run × 100; 6″ in 10 ft = 5% is the IRC R401.3 grading minimum (src/lib/calculators/slope.js)See the One slope diagram →

The string-line diagram turns the calculator’s total fall output into a field procedure. Fall = slope × run, so a 1% french drain over 40 ft drops 4.8″ — stake both ends, level the string with a line level, and measure down at both stakes until the outlet reads that much more.

A slope only becomes buildable as a total fall: fall = slope × run, so a 1% french drain over 40 ft drops 4.8″ (≈ 4 13/16″). Stake both ends, level a string with a line level, then measure down at both stakes — the outlet must read that much more than the high end.Source: total fall = slope × run; 1% ≈ ⅛″ per ft matches IPC Table 704.1 for 3–6″ pipe (src/lib/calculators/slope.js)See the The string-line method diagram →

The code ladder is what the calculator’s application presets check against. Drainage slopes are minimums — flatter and water stands — while accessible routes and driveways are maximums. Knowing which direction your slope is regulated in is half the answer.

Codes write slopes both directions: drainage slopes are minimums (gutters ≥ 0.2%, french drains ≥ 1%, patios ≥ 2%, foundation grading ≥ 5% per IRC R401.3) while accessibility and driveways are maximums (walkways ≤ 5%, ramps ≤ 1:12 = 8.33% per ADA 405.2, driveways ≤ ~15%). The calculator checks your grade against these presets.Source: IRC R401.3; IPC Table 704.1; ADA 403.3 / 405.2; ICPI Tech Spec 2 (APPLICATION_PRESETS, src/lib/calculators/slope.js)See the The slope code ladder diagram →

Related Calculators

Explore Measuring & Estimating: calculators, diagrams & guidesEvery calculator, cross-section diagram, and guide for this trade in one place.

How to Use This Calculator

  1. Pick how you know the slope: a measured rise and run, a percent grade, inches per foot, degrees, or an H:1V ratio.
  2. Rise-and-run mode: enter the drop and the horizontal distance in feet and inches — level a string from the high point and measure down to grade.
  3. Single-value modes: enter the percent, in/ft (⅛ = 0.125, ¼ = 0.25), degrees, or the H in the H:1V ratio.
  4. Optionally enter your run length in feet to get the total fall in inches — the number you stake and string.
  5. Optionally pick an application — foundation grading, french drain, drain pipe, patio, walkway, ramp, or driveway — to check the slope against its code minimum or maximum.
  6. Click Calculate to see the grade as percent, degrees, inches per foot, and ratio, the total fall, the code check, and a reference table of common construction slopes.

Percent, Degrees, Inches per Foot, and H:1V — Why Four Units?

Each trade writes slope in its own unit, and they are NOT interchangeable scales. Percent grade (rise ÷ run × 100) is how civil and landscape drawings call out grading — IRC R401.3 wants 5% away from the foundation. Inches per foot is the plumbing and flatwork unit — IPC 704.1 pitches small drain pipe at ¼ inch per foot, which is 2.08%, and the french-drain "1% rule" is the ⅛ inch per foot pitch of larger pipe. Degrees come off an angle finder or digital level and follow the tangent, not a straight proportion — a 100% grade is 45°, not 90°. H:1V ratios are geotechnical shorthand for embankments and retaining-wall backslopes, where 3H:1V means 3 feet of run per foot of rise (about 18°). This calculator holds one slope and speaks all four, so a "2% patio," a "¼-inch-per-foot pipe," and a "1.15° angle" stop being three different-sounding numbers for the same grade. Roof slopes use a fifth unit — x:12 pitch — covered by the Roof Pitch Calculator.

Frequently Asked Questions

How do you calculate slope percentage?

Divide the rise (the vertical drop) by the run (the horizontal distance) and multiply by 100 — rise and run in the same unit. A 6-inch drop over 10 feet is 0.5 ÷ 10 × 100 = 5%, which is exactly the IRC R401.3 minimum for grading away from a foundation. Measured in mixed units, convert first: 8 inches over 25 feet is 0.667 ÷ 25 × 100 = 2.7%. This calculator takes the rise and run in feet and inches and does the conversion for you.

What slope do I need for drainage?

It depends on what's draining. Ground next to a foundation: 6 inches of fall in the first 10 feet (5%) per IRC R401.3. Patios, walks, and driveways within 10 feet of the house: minimum 2% away, per the same section and ICPI Tech Spec 2. French drains and 3–6 inch drain pipe: ⅛ inch per foot (about 1%) per IPC Table 704.1; pipe 2½ inches and smaller wants ¼ inch per foot (about 2%). Lawns and swales keep water moving at 1–2%. The calculator's application check compares your grade to each of these and tells you how much fall you're short.

Is a 2% slope the same as 2 degrees?

No — percent and degrees are different scales. Percent grade is rise ÷ run × 100; degrees is the inverse tangent of rise ÷ run. A 2% grade is only 1.15°, and a 45° angle is a 100% grade, not 45%. They track each other loosely at shallow slopes (each degree is roughly 1.75% near zero) but diverge fast as slopes steepen. Specs mix both units — grading plans use percent, angle finders read degrees — which is exactly why this calculator shows the same slope in both.

How much fall does my french drain need over its full run?

Total fall = slope × run length. At the standard 1% minimum (⅛ inch per foot), a 40-foot trench needs 0.01 × 40 × 12 = 4.8 inches — call it 4 13/16 inches — of drop from inlet to outlet. A 60-foot run needs about 7¼ inches. Enter your run length in the calculator and it returns the exact fall to stake out, plus a string-line procedure: stake both ends, level the string, then lower the outlet end by the total fall.

What does 3H:1V mean, and how steep is it?

It's a grading ratio: 3 horizontal units of run for every 1 vertical unit of rise — about 18° or a 33% grade. Geotechnical and retaining-wall specs write slopes this way; the Retaining Wall Calculator's backslope options (3H:1V, 2H:1V, 1.5H:1V) use it because the slope above a wall increases the earth pressure on it. Measure your bank's rise and run, enter them here, and read off the H:1V ratio to pick the right backslope option. The smaller the H, the steeper the slope — 1H:1V is 45° and generally engineer territory.

What is the maximum slope for a driveway or a ramp?

Driveways have no IRC maximum — municipalities cap them, most commonly at 12–15%, with 10% or less considered comfortable, so verify locally. Accessible ramps are federal: ADA 405.2 caps new-construction ramps at 1:12 (8.33%) with a maximum 30-inch rise between landings, and ADA 403.3 caps walking surfaces at 1:20 (5%) — steeper than that and it must be built as a ramp. The calculator's driveway, ramp, and walkway checks apply these limits to your measured grade.

How do I measure the slope of my yard without special tools?

A string, a line level, a tape, and two stakes. Drive a stake at the high point and one downhill at a known distance (10 feet is convenient because the percent math is easy). Tie the string at grade on the high stake, level it with the line level, and measure from the string down to grade at the low stake. That drop over that distance is your rise and run — 7 inches down at 10 feet is a 5.8% grade. For short runs, a 4-foot level with a known-thickness block under one end does the same job.