1. Slope Formula (Rise Over Run)
m = (y₂ − y₁) / (x₂ − x₁). For example, points (1, 2) and (5, 8) give Δy = 6 and Δx = 4, simplifying to m = 3/2 = 1.5.
THE TOOLBOX / GEOMETRY & ALGEBRA
Find the exact slope (m), slope-intercept equation (y = mx + b), distance, midpoint, inclination angle, and percent grade from any two coordinates—complete with a live rise-over-run graph and step-by-step algebra.
y − 2 = 1.5(x − 1)6x − 4y = -2(0, 0.5) · x-intercept = (-0.333, 0)ALGEBRA & GEOMETRY FORMULAS
m = (y₂ − y₁) / (x₂ − x₁). For example, points (1, 2) and (5, 8) give Δy = 6 and Δx = 4, simplifying to m = 3/2 = 1.5.
Use y = mx + b when plotting intercepts, or y − y₁ = m(x − x₁) when working directly from a known point and rate of change.
Distance is d = √(Δx² + Δy²) (the hypotenuse of the rise/run triangle), and midpoint is ((x₁ + x₂)/2, (y₁ + y₂)/2).
Civil engineering and construction express slope as grade = m × 100%. A standard 1:12 ADA ramp equals 8.33% grade (4.76°).
Solving more geometry problems? Open our Pythagorean Theorem Calculator, 3D Volume & Surface Area Calculator, or Ratio & Proportion Calculator.
The slope m between two points (x₁, y₁) and (x₂, y₂) is m = (y₂ − y₁) / (x₂ − x₁), often remembered as 'rise over run'. Our slope calculator displays both the exact reduced fraction and decimal value.
A horizontal line (where y₁ = y₂ and Δy = 0) has a slope of 0 (equation y = c). A vertical line (where x₁ = x₂ and Δx = 0) has an undefined slope because dividing by zero is undefined (equation x = c).
Percent grade equals slope × 100% (for example, an ADA wheelchair ramp with 1 unit rise over 12 units run has slope 1/12 ≈ 0.0833, or 8.33% grade). The angle of inclination in degrees is arctan(m) × (180 / π).
Once you calculate the slope m, substitute either point (x₁, y₁) into b = y₁ − m·x₁. The calculator outputs Slope-Intercept Form (y = mx + b), Point-Slope Form, and Standard Form (Ax + By = C) automatically.
Distance uses the Pythagorean theorem: d = √((x₂ − x₁)² + (y₂ − y₁)²). Midpoint averages each coordinate: M = ((x₁ + x₂)/2, (y₁ + y₂)/2).