Slope Formula
The slope of a line through two points (x1, y1) and (x2, y2) is:
m = (y2 - y1) / (x2 - x1) = Δy / Δx
Slope is also equal to the tangent of the angle of incline: m = tan(θ)
Types of Slope
- Positive slope: Line rises from left to right (m > 0)
- Negative slope: Line falls from left to right (m < 0)
- Zero slope: Horizontal line (m = 0)
- Undefined slope: Vertical line (Δx = 0)
Slope-Intercept Form
The equation of a line in slope-intercept form is y = mx + b, where:
- m = slope of the line
- b = y-intercept (where the line crosses the y-axis)
Given slope m and a point (x1, y1), find b: b = y1 - m · x1
Point-Slope Form
An alternative form using a known point and slope:
y - y1 = m(x - x1)
Distance Between Two Points
The distance between (x1, y1) and (x2, y2) uses the Pythagorean theorem:
d = √(Δx² + Δy²)
Percent Grade
Grade is slope expressed as a percentage, commonly used for roads, ramps, and construction:
Grade (%) = (rise / run) × 100 = slope × 100
- A 5% grade rises 5 feet for every 100 feet horizontally
- ADA-compliant ramps require a maximum 8.33% grade (1:12 ratio)
- Steep roads are typically 6-10% grade
Grade, Angle, and Ratio Conversion Table
Slope is expressed three ways in the real world: percent grade, angle in degrees, and the "1 in N" ratio. This table converts between them for common values, with a note on where each shows up.
| Grade (%) | Angle | Ratio (1:N) | Typical Context |
|---|---|---|---|
| 1% | 0.6° | 1:100 | Minimum drainage fall for patios and pipes |
| 2% | 1.1° | 1:50 | Maximum cross slope for accessible paths |
| 3% | 1.7° | 1:33 | Gentle graded road |
| 4% | 2.3° | 1:25 | Easy walking ramp |
| 5% | 2.9° | 1:20 | Max walkway grade before a ramp is required |
| 6% | 3.4° | 1:16.7 | Interstate highway maximum sustained grade |
| 7% | 4.0° | 1:14.3 | Steep mountain road |
| 8.33% | 4.8° | 1:12 | Maximum ADA wheelchair ramp |
| 10% | 5.7° | 1:10 | Steep hill, low gear for trucks |
| 15% | 8.5° | 1:6.7 | Very steep driveway |
| 20% | 11.3° | 1:5 | Steep ski run or hiking trail |
| 25% | 14.0° | 1:4 | Severe grade, rare on public roads |
| 50% | 26.6° | 1:2 | Moderate roof pitch |
| 100% | 45.0° | 1:1 | Rise equals run — a true 45 degree slope |
Understanding the Terms
Rise
The vertical change between two points — how far the line goes up or down. In the slope fraction it is the numerator, the change in y.
Run
The horizontal change between the same two points — how far the line travels sideways. It is the denominator of the slope, the change in x.
Gradient
Another name for slope, common in engineering and geography. A gradient can be stated as a decimal, a percent grade, or a ratio, but all describe rise over run.
Y-Intercept
The point where the line crosses the vertical axis, the b in y = mx + b. It is the value of y when x equals zero.
Percent Grade
Slope written as a percentage, found by multiplying rise over run by 100. Road signs and ramp codes use grade because it is easy to read at a glance.
Example
Find the slope between (3, 2) and (7, 6):
- Δx = 7 - 3 = 4
- Δy = 6 - 2 = 4
- m = 4 / 4 = 1
- θ = arctan(1) = 45°
- d = √(16 + 16) = 5.6569
- y-intercept: b = 2 - 1(3) = -1
- Equation: y = x - 1
Related Math Calculators
- Percentage Calculator — convert grade to percent and back
- Ratio Calculator — simplify and scale the 1 in N slope ratio
- Quadratic Formula Calculator — solve curves where slope changes
- Square Root Calculator — the root step in the distance formula
- Exponent Calculator — powers used in coordinate geometry