MathorynMathematical Formula Database

Analytic Geometry

Slope of a Line

The slope measures the steepness of a line: rise over run between two points with x1≠x2x_1\neq x_2. Vertical lines have undefined slope. It is used to find rates of change, the steepness of roads and ramps, and the equation of a line through two points.

m=y2−y1x2−x1m=\frac{y_2-y_1}{x_2-x_1}
LaTeXm=\frac{y_2-y_1}{x_2-x_1}

Variables

mm
slope
(x1,y1), (x2,y2)(x_1,y_1),\ (x_2,y_2)
two points on the line

Example

Slope through (1,2)(1,2) and (3,8)(3,8).

  1. 8−23−1=62\frac{8-2}{3-1}=\frac62.

Answer: m=3m=3.

Related formulas