Slope Calculator: Rise over Run as Percent, Ratio and Angle
Calculate rise over run, percentage grade, angle in degrees, roof pitch (x/12), and inches per foot. Includes ADA ramp planning and two-point coordinate math.
Calculate Slope from Rise and Run
- Formula: Slope m = Rise ÷ Run = 1 ÷ 12 = 0.0833
- Percentage Grade = m × 100% = 0.0833 × 100% = 8.33%
- Angle in Degrees = arctan(|m|) = arctan(0.0833) ≈ 4.76°
- Ratio 1:N = 1 : (12 ÷ 1) = 1 : 12
- Roof Pitch = |m| × 12 = 1/12 (or 1.00 in per foot of run)
- Slope Length = √(Rise² + Run²) = √(1 + 144) ≈ 12.0416
- Percent, ratio, angle & pitch
- Ramp & drain checks
- Feet-inches input
- Two-point slope
100% free · No sign-up · Runs in your browser, nothing is uploaded
How to Use the Slope Calculator
This rise over run calculator accommodates both construction grading and academic mathematics across three dedicated modes:
- Rise & Run Mode (Default): Enter any vertical rise and horizontal run to instantly calculate slope as a percentage grade, ratio (1:N), angle in degrees, roof pitch (x/12), and inches per foot. You can input standard numbers or architectural feet-and-inches (e.g.
2' 6"). - Ramp, Drain & Roof Presets: Plan accessible ramps against the 2010 ADA Standards (1:12 slope and 30-inch maximum run height), convert a drain fall such as 1/4″ per foot into a percent grade, or check roof pitch ratios.
- Two Points & Rate of Change: Input two Cartesian coordinate points (x₁, y₁) and (x₂, y₂) to generate the slope m, y-intercept b, linear equation y = mx + b, Euclidean distance, and average rate of change.
Rise over Run Explained
Slope measures the steepness and direction of a line or physical incline. In algebra and building trades alike, slope is formally defined as the ratio of vertical change (rise) to horizontal change (run):
Where:
- Rise: The vertical difference in elevation between two points (positive for uphill, negative for downhill).
- Run: The horizontal distance between the same two points.
Converting Slope: Percent, Degrees, Ratio and Pitch
Different industries express slope in different units:
- Percentage Grade (%): m × 100. Used in civil engineering, road signage, and grading.
- Angle in Degrees (°): arctan(m) × (180 ÷ π). Used in mechanical engineering and geometry.
- Ratio (1:N): 1 unit of rise per N units of horizontal run (Run ÷ Rise). Standard in ADA ramp specifications.
- Roof Pitch (x/12): m × 12. Expresses rise in inches per 12 inches (1 foot) of horizontal run.
- Inches per Foot (in/ft): m × 12. Standard in plumbing drain codes.
Percent vs Degrees: A Common Mistake
A frequent misconception is assuming that a 10% grade equals a 10-degree angle. They are fundamentally different scales:
10° Angle = tan(10°) × 100% ≈ 17.63% Grade
45° Angle = 100% Grade (where rise equals run)
Ramp Slope and Planning an Accessible Ramp
For public accommodations and commercial buildings, wheelchair ramp design is governed strictly by the 2010 ADA Standards for Accessible Design:
- Running Slope (§405.2): The maximum running slope for a ramp shall not be steeper than 1:12 (an 8.33% grade or 4.76° angle).
- Rise per Run (§405.6): The rise for any single ramp run shall be 30 inches (760 mm) maximum. If total elevation rise exceeds 30 inches, the ramp must be divided into multiple runs separated by level landings.
- Landings (§405.7): Intermediate landings must have a clear length of at least 60 inches (1,525 mm) and be as wide as the widest ramp run leading to them.
Worked Example: If your entrance has a 24-inch rise: at a 1:12 slope, the ramp requires 24 inches × 12 = 288 inches = 24 feet of horizontal run. Because 24 inches is under the 30-inch limit, it can be built as a single continuous run.
Drain and Plumbing Pipe Slope
Drain fall is often written as inches of drop per foot of pipe. The minimum depends on the pipe size and on the plumbing code your area has adopted, so take it from that code or your inspector. The calculator turns any fall into a grade and a total drop:
- 1/4 inch per foot = 0.25 ÷ 12 = 2.08%; over 20 ft that is a 5 in drop.
- 1/8 inch per foot = 0.125 ÷ 12 = 1.04%; over 20 ft that is a 2.5 in drop.
Roof Pitch and Slope
Roofers describe steepness using inches of vertical rise per 12 inches of run. A 4/12 roof pitch means 4 inches of rise for every foot of run (an angle of 18.43° and a 33.33% slope). For rafters, combine this calculation with our Rafter Calculator and Pythagorean Theorem Calculator.
Driveway and Road Grades
Unlike ADA ramps, there is no universal federal limit for driveways; requirements are established by municipal zoning and fire marshal codes. In practice:
- Grades up to 10% are standard and comfortable for passenger vehicles in all weather.
- Grades between 10% and 15% are steep and often require transitional blending slopes at the curb to prevent car bumpers from scraping.
- Grades above 15% frequently require special fire department variances.
Rate of Change and Slope from Two Points or a Table
In algebra and statistics, slope represents the constant rate of change between two variables:
Worked Example: Find the slope and equation of the line passing through (1, 2) and (4, 11):
- Δy = 11 − 2 = 9
- Δx = 4 − 1 = 3
- Slope m = 9 ÷ 3 = 3
- y-intercept b = 2 − (3 × 1) = −1
- Linear Equation: y = 3x − 1
- Distance = √(3² + 9²) = √90 ≈ 9.4868
Frequently Asked Questions
Rise over run is the foundational mathematical definition of slope (m = rise ÷ run). The “rise” measures the vertical elevation change (up or down), while the “run” measures the horizontal distance traveled. For example, a vertical climb of 1 foot over a 12-foot horizontal span gives a slope of 1 ÷ 12 ≈ 0.0833.
To convert slope to a percentage grade, divide the vertical rise by the horizontal run and multiply by 100: Percent Slope = (Rise ÷ Run) × 100%. A slope of 1 ÷ 12 equals 8.33% grade.
No. Slope percentage and angle in degrees use completely different scales. A 10% slope corresponds to an angle of arctan(0.10) ≈ 5.71°, not 10°. A 100% slope represents an angle of 45° (where rise equals run). An angle of 10° is approximately a 17.63% slope.
Under the 2010 ADA Standards for Accessible Design §405.2, the maximum running slope for an accessible ramp is 1:12 (8.33% grade). Furthermore, §405.6 mandates that the maximum vertical rise for any single ramp run shall not exceed 30 inches (760 mm) before requiring a level landing.
Given two points (x₁, y₁) and (x₂, y₂), the slope formula is m = (y₂ − y₁) ÷ (x₂ − x₁). For a table of values, pick any two consecutive rows and compute the difference in y divided by the difference in x. If the slope remains constant across all rows, the relationship is linear.
The rate of change formula expresses how one quantity changes in relation to another: Rate of Change = Change in Output ÷ Change in Input = Δy ÷ Δx = (y₂ − y₁) ÷ (x₂ − x₁). In linear relationships, rate of change is identical to slope m.
For any continuous function y = f(x) over an interval [a, b], the average rate of change is [f(b) − f(a)] ÷ (b − a). It represents the slope of the secant line connecting the two endpoints on the function’s graph.
Roof pitch expresses how many inches of vertical rise occur per 12 inches (1 foot) of horizontal run. Multiply the decimal slope by 12: Pitch = m × 12. For example, a 33.33% grade (m = 0.3333) corresponds to a 4/12 roof pitch.
The minimum fall is set by the plumbing code your area has adopted and depends on the pipe size, so check that code or your local inspector. The calculator converts whatever fall you need: 1/4 inch per foot is 0.25 ÷ 12 = 2.08%, and 1/8 inch per foot is 1.04%.
A 1:12 ratio means there is 1 unit of vertical rise for every 12 units of horizontal run. For a ramp, it means 1 inch of rise requires 12 inches (1 foot) of horizontal length.
Driveway limits are set locally, so check your city or county rules before you build. To check a driveway, measure the rise and the run and enter them: for example, a 2 ft rise over 20 ft of run is 10%, or 5.71°.
In calculus, the difference quotient is the algebraic expression [f(x + h) − f(x)] ÷ h. It measures the average rate of change of f(x) over an increment of length h, and its limit as h approaches zero defines the instantaneous rate of change (derivative).
How This Calculator Works: Formula, Defaults & Sources
Formula
- Slope m = Rise ÷ Run = Δy ÷ Δx
- Percent grade = m × 100%; Angle in degrees = arctan(|m|) × (180 ÷ π)
- Ratio 1:N = 1 : (Run ÷ Rise); Roof pitch = |m| × 12 (in/ft)
- Slope length = √(Rise² + Run²)
- Accessible ramp minimum run: Run = Rise × 12 (1:12 slope, ADA §405.2); max rise per run: 30 inches (§405.6)
- Drain fall example: ¼ inch per foot = 0.25 ÷ 12 = 2.08% (check your local plumbing code for the required fall)
- Linear equation from two points: m = (y₂ − y₁) ÷ (x₂ − x₁); b = y₁ − m·x₁; y = mx + b
Default values (you can change them)
- Baseline rise & run: rise 1 over run 12 = 8.33% slope, 1:12 ratio, 4.76° angle, 1/12 pitch, 1 in/ft
- Ramp example: 24 in total rise at 1:12 requires 24 ft minimum horizontal run
- Two points example: (1, 2) and (4, 11) yields slope m = 3, y-intercept b = −1 (y = 3x − 1)
Sources
- 2010 ADA Standards for Accessible Design (U.S. Access Board) — §405.2 running slope not steeper than 1:12; §405.6 rise 30 in (760 mm) maximum per run; §405.7.3 landing length 60 in (1525 mm) minimum (checked 2026-11-24)
- Drain fall — no code values are built in: the minimum fall depends on pipe size and the plumbing code your area has adopted
Results are planning estimates, not engineering advice. Confirm quantities with your supplier and follow your plans and local building code. Last updated: November 25, 2026. Spotted a wrong number? Email us or use the contact page.