UnitCompiler

Slope, Rise Over Run & Linear Equations Guide

Learn the coordinate slope formula m = (y₂ − y₁) ÷ (x₂ − x₁), slope-intercept and point-slope line forms, parallel and perpendicular slopes, and road percent grade vs. inclination angles.

By UnitCompiler Editorial & Mathematics Team • 8 min read read • Published 2026-11-20

What Slope Measures in Mathematics & Engineering

Whether graphing linear functions in algebra, designing wheelchair access ramps, or rating mountain highway gradients, slope (m) measures steepness and direction—specifically how much vertical change (Δy, or rise) occurs for every single unit of horizontal change (Δx, or run).

Compute line equations, intercepts, distance, and inclination angles instantly in the UnitCompiler Slope Calculator, or visualize any line interactively in our 2D Function Grapher.

Why Zero Slope and Undefined Slope Are Opposite Extremes

A flat horizontal line (y = 5) has Δy = 0, giving slope 0 ÷ Δx = 0 (zero slope). A strictly vertical line (x = 5) has Δx = 0, attempting Δy ÷ 0 (undefined slope, never zero!).

Core Linear Equation & Slope Formulas

Two-Point Slope Formula (Rise Over Run)
m = (y₂ − y₁) ÷ (x₂ − x₁) = Δy ÷ Δx

Keep point order consistent: if y₂ − y₁ is in the numerator, x₂ − x₁ MUST be in the denominator.

Slope-Intercept, Point-Slope & Standard Linear Forms
y = mx + b | y − y₁ = m(x − x₁) | Ax + By = C

Where m is slope, b is the y-intercept (0, b), and (x₁, y₁) is any known point on the line.

Parallel and Perpendicular Slope Rules
Parallel: m₁ = m₂ | Perpendicular: m₁ × m₂ = −1 (m₂ = −1 ÷ m₁)

Non-vertical perpendicular lines always have opposite-reciprocal slopes.

Civil Engineering Slope Grade & Inclination Angle
Percent Grade (%) = m × 100 | Angle θ = arctan(m)

Note that a 100% slope (rise = run, m = 1) equals 45°, NOT 90°.

Slope Ratio, Percent Grade & Inclination Angle Reference Table

Comparison of Rise:Run Ratios, Decimal Slope, Percent Grade & Angles
Rise : Run RatioDecimal Slope (m)Percent Grade (%)Angle θ (Degrees)
1 : 20 0.0500 5.00% 2.86° (Accessible walkway)
1 : 12 0.0833 8.33% 4.76° (Max ADA ramp)
1 : 10 0.1000 10.00% 5.71° (Steep mountain road)
1 : 4 0.2500 25.00% 14.04° (3/12 roof pitch)
1 : 2 0.5000 50.00% 26.57° (6/12 roof pitch)
1 : 1 1.0000 100.00% 45.00° (12/12 pitch)

Step-by-Step Worked Examples

Example 1: Finding the Line Through (2, 3) and (6, 11)

  1. Compute the slope m: m = (11 − 3) ÷ (6 − 2) = 8 ÷ 4 = 2.
  2. Plug point (2, 3) into point-slope form: y − 3 = 2(x − 2).
  3. Simplify to slope-intercept form: y = 2x − 4 + 3 → y = 2x − 1.
  4. Check the second point (6, 11): 2(6) − 1 = 11 ✓.

Example 2: Finding a Perpendicular Line Through (4, 5)

Suppose a reference line is y = (2/3)x − 1, so its slope is m₁ = 2/3. What line crosses perpendicular to it at (4, 5)?

  1. Take the negative reciprocal: m₂ = −1 ÷ (2/3) = −3/2 = −1.5.
  2. Apply point-slope form: y − 5 = −1.5(x − 4).
  3. Expand and simplify: y = −1.5x + 6 + 5 → y = −1.5x + 11.

Example 3: Calculating Ramp Length & Angle for an 8% ADA Driveway Slope

Suppose a contractor needs a vertical rise of 0.60 meters at an 8% grade (m = 0.08):

  1. Horizontal run required: run = rise ÷ m = 0.60 ÷ 0.08 = 7.50 meters.
  2. True diagonal ramp surface length (via our Pythagorean Theorem Calculator): √(7.50² + 0.60²) = √(56.25 + 0.36) = √56.61 = 7.524 meters.
  3. Ramp angle above ground: arctan(0.08) ≈ 4.57°.

Four Common Slope Mistakes in Algebra & Physics

  1. Reversing Subtract Order Between Top and Bottom: Writing (y₂ − y₁) ÷ (x₁ − x₂) flips the sign (+m becomes −m), turning an uphill line downhill.
  2. Putting Δx Over Δy (Run Over Rise): Dividing horizontal change by vertical change computes 1 ÷ m, not slope! Always put vertical y on top.
  3. Confusing 45° with 50% Grade: Because slope equals tan(θ), a 45° triangle has rise = run, giving m = 1.00 = 100% grade. A 50% grade (m = 0.50) is only 26.57°.
  4. Assuming Roof Pitch Equals Percent Grade: US roofers express pitch over 12 inches of run (4/12 pitch = 4 ÷ 12 = 33.33% grade, 18.43°).

Physics Connection: Velocity & Tangent Slopes

In physics, the slope of a Position–Time graph equals velocity (Δx ÷ Δt), and the slope of a Velocity–Time graph equals acceleration (Δv ÷ Δt). Review derivative tangent slopes anytime in our Mathematics & Calculus Formulas Library.

Frequently Asked Questions

What happens when a slope calculation divides by zero (x₁ = x₂)? The line is completely vertical (x = x₁), running parallel to the y-axis. Its slope is undefined (often informally described as infinite steepness), so it cannot be written in y = mx + b form.

How do I quickly find the x-intercept and y-intercept from Ax + By = C? Set x = 0 to solve the y-intercept (0, C ÷ B), and set y = 0 to solve the x-intercept (C ÷ A, 0). You can also inspect unit conversions and graph points directly on our Graph Maker and verify math precision on Accuracy & Methodology.