Home / Math / Geometry for building
Slope, pitch and grade
Understand rise over run, read and use roof pitch, lay out a ramp at a safe slope, and set the fall on drain pipes and yard grading.
Intermediate · 11 min read · Updated December 3, 2026
Roofs shed rain, ramps let wheelchairs roll, drain pipes carry water away and yards slope away from houses. All of them depend on slope: how steep something is. Different trades describe slope in different ways, but they are all the same idea.
Rise over run
- Rise is how far something goes up or down.
- Run is how far it goes across, measured level (horizontal), not along the slope.
- Slope = rise ÷ run.
Every slope can be drawn as a right triangle: the run along the bottom, the rise up the side, and the sloped surface as the diagonal.
There are four common ways to write the same slope:
| Way to write it | Used for | Example |
|---|---|---|
| Pitch (rise per 12) | Roofs, stairs | 6/12 |
| Ratio (1 : run) | Ramps | 1:12 |
| Percent grade | Roads, driveways, site work | 2% |
| Inches per foot | Pipes, drainage | 1/4 inch per foot |
To get percent grade, divide rise by run and multiply by 100. Both must be in the same unit.
Roof pitch
Roof pitch is the rise in inches for every 12 inches of run. A 6/12 roof (say "six twelve" or "six in twelve") rises 6 inches for every foot of run.
- 6/12 as a percent: 6 ÷ 12 = 0.5 = 50%.
- 6/12 as an angle: about 26.6 degrees. (On a calculator, the
tan⁻¹key, also called arctan, of 0.5 gives 26.57.)
Example: finding a rafter length. A roof has a 6/12 pitch and the run (level distance from the outside wall to the center of the ridge) is 14 ft.
Find the total rise
The roof rises 6 inches for every 12 inches, which is 1/2 ft per foot. 14 x 1/2 = 7 ft of rise.Use the Pythagorean theorem
14 x 14 = 196. 7 x 7 = 49. 196 + 49 = 245.Take the square root
√245 = 15.65 ft.Change to feet and inches
0.65 ft x 12 = 7.83 in. 0.83 x 16 = 13.3, so 13/16. The rafter is about 15 ft 7 13/16 in, before you add the overhang and adjust for the ridge board.
Ramp slope
For wheelchair ramps, the US ADA Standards set the steepest allowed slope at 1:12. That means 1 inch of rise for every 12 inches of run, which is about 8.33%.
Example: a ramp up 30 inches to a porch.
- At 1:12, the run is 12 times the rise.
- 30 x 12 = 360 inches.
- 360 ÷ 12 = 30 ft of ramp run.
A 30 inch rise is also the most a single ramp run can climb before it needs a level landing. Ramps also need handrails and edge protection when they rise more than 6 inches. Check the ADA Standards and your local code, which may be stricter.
Pipe and drainage slope
Drain pipes need enough slope for water and waste to flow, but not so much that water outruns the solids. Plumbers give it as inches of fall per foot.
Under common US plumbing codes, small drain pipes (about 2 1/2 inches and smaller) need at least 1/4 inch per foot. Many larger pipes are allowed 1/8 inch per foot. Check your local plumbing code.
Example: a 40 ft drain line at 1/4 inch per foot.
- 40 x 1/4 = 10 inches of total fall.
- If the pipe starts 18 inches below the floor, it must end at least 18 + 10 = 28 inches down.
1/4 inch per foot is about 2%: 0.25 ÷ 12 = 0.0208.
Grading a yard
The ground around a house must slope away from the foundation so rain does not pool against the walls. US residential codes commonly call for at least 6 inches of fall in the first 10 ft away from the house.
As a percent: 6 inches = 0.5 ft. 0.5 ÷ 10 = 0.05 = 5%.
Example: a driveway check. The driveway rises 2 ft over its 40 ft length. 2 ÷ 40 = 0.05 = 5% grade.
Modern tools
A digital level or angle finder reads slope directly in degrees, percent or inches per foot. Many phone level apps do the same, though they are less accurate. A rotary laser with a grade rod is the standard way to set drainage and site grades over long distances. Know the math so you can set the tool correctly and check its readings.
Common mistakes
- Measuring the run along the slope. Run is always measured level.
- Mixing units. Rise in inches and run in feet gives a wrong percent. Change one to match the other.
- Too much slope on drains. Steeper is not always better for waste lines. Follow the code range.
Practice
- A roof rises 4 inches for every 12 inches of run. What is its pitch, and what is it as a percent?
- A ramp must climb 24 inches at 1:12. How long is the run?
- A 32 ft drain line slopes 1/4 inch per foot. How many inches of total fall is that?
- The ground drops 9 inches over 30 ft. What is the percent grade?
- A roof has an 8/12 pitch and a run of 10 ft. What is the rise, and about how long is the rafter (before overhang)?
Answers
- 4/12 pitch, 33.3%. 4 ÷ 12 = 0.333. (That is about 18.4 degrees.)
- 24 ft. 24 x 12 = 288 inches, and 288 ÷ 12 = 24 ft.
- 8 inches. 32 x 1/4 = 8.
- 2.5%. 9 inches = 0.75 ft. 0.75 ÷ 30 = 0.025.
- Rise 6 ft 8 in, rafter about 12 ft 1/4 in. 10 x 8/12 = 6.67 ft, which is 6 ft 8 in. 10 x 10 = 100, and 6.67 x 6.67 = 44.4. √144.4 = 12.02 ft. 0.02 x 12 is about 0.22 in, close to 1/4 in.