A slope is the rise divided by the run. If the ground falls 6 inches over 10 feet, the slope is 0.5 ÷ 10 = 0.05: 5 %, 2.86°, 0.6 inches per foot or 1 : 20. Every way of writing a slope comes from that one ratio. The calculator above converts between all of them, works out the rise over any run and the length along the slope, and checks the result against the US codes for yard grading, drain pipe, ramps and roofs.
How the calculator works
Choose what you know: the rise and the run, or a slope already written as degrees, percent, inches per foot, per mille or 1 : N. Enter the run if you want the rise over a given distance. Then choose what the slope is for, and the calculator compares it with the rule that applies. When you switch the input unit, the current slope carries over, so you can type 2 % and read it as inches per foot.
One number behind every form
Every form is the tangent of the angle, t = rise ÷ run, measured level, not along the slope:
| Form | Formula | For 6 in over 10 ft |
|---|---|---|
| Percent (grade) | t × 100 | 5 % |
| Degrees | arctan t | 2.86° |
| Inches per foot, pitch x/12 | t × 12 | 0.6 in per ft, 0.6/12 |
| Per mille, mm per m | t × 1,000 | 50 ‰ |
| Ratio | 1 : (1 ÷ t) | 1 : 20 |
Do not mix up percent and degrees. A 100 % slope is 45°, not vertical, and 10 % is only 5.7°. Below about 10 % the two are almost proportional, which is why the confusion lasts; on steep ground the difference is large.
Rise, run and length along the slope
The rise over a run is the run × t. The length along the slope is the hypotenuse, √(run² + rise²). You need it for roofing, ramp decking and pipe. On gentle slopes it is almost the run: at 5 % the difference is 0.1 %, at a 12/12 roof it is 41 %.
The code checks
| Purpose | Rule | Source |
|---|---|---|
| Ground by the foundation | Fall at least 6 in in the first 10 ft (5 %) | IRC R401.3 |
| Paving by the foundation | At least 2 % away within 10 ft | IRC R401.3 |
| Drain pipe 2½ in and smaller | At least ¼ in per ft (2.08 %) | IRC Table P3005.3 |
| Drain pipe 3 to 6 in | At least ⅛ in per ft (1.04 %) | IRC Table P3005.3 |
| Ramp | No steeper than 1:12 (8.33 %); at most 30 in of rise per run | ADA 405.2, 405.6 |
| Home ramp where 1:12 cannot fit | Up to 1:8 (12.5 %) | IRC R311.8.1 |
| Asphalt shingle roof | At least 2/12; double underlayment below 4/12 | IRC R905.2.2, R905.1.1 |
These are the model codes most US jurisdictions adopt. Your town may amend them, and the version it adopted governs. For roofs, the calculator knows the minimum pitch of each covering in IRC Chapter 9; for the full roof geometry, use the Roof Pitch Calculator.
Grading away from the house
The most common use of a slope at home is getting rainwater away from the foundation. Six inches over ten feet sounds like a lot, but soil settles against new foundations, so builders often grade a little steeper and top up later. Where a lot line or a neighbor's wall leaves no room for 6 inches of fall, the code allows a swale or a drain instead. When raising a low yard, the Dirt Calculator works out the fill.
Ramps
A 1:12 ramp rises 1 inch for every foot of run, so a 24 inch porch needs a ramp at least 24 feet long, and one run can rise at most 30 inches before a level landing. If your result fails on length rather than slope, the calculator shows the longest run allowed. Slopes of 1:20 or gentler count as walks, not ramps, and need no handrails under ADA.
Common mistakes
- Measuring the run along the slope instead of level. On steep ground this underestimates the slope.
- Reading a percent as degrees on a level or an app. 10 % and 10° are very different: 10° is 17.6 %.
- Mixing units: 6 inches over 10 feet is 0.5 ÷ 10, not 6 ÷ 10.
- Laying drain pipe too steep "to be safe". There is no code maximum, but very steep runs let water outrun the solids; a uniform slope near the minimum works best.