SightSolveSightSolve AI
All skills

Finding the slope from two points: 3 worked examples

Algebra 1 · Updated 2026-09-05

Slope is rise over run: how much y changes divided by how much x changes between two points. Subtract the coordinates in the same order for both, and watch the signs. A horizontal line has slope 0; a vertical line has no slope because you would divide by zero.

Example 1

Problem. Find the slope of the line through the points (2, 5) and (6, 13).

The slope $m$ of a line passing through two points $(x_1, y_1)$ and $(x_2, y_2)$ is calculated using the formula:
$m = \frac{y_2 - y_1}{x_2 - x_1}$

Given the points $(2, 5)$ and $(6, 13)$, we assign:
$x_1 = 2$, $y_1 = 5$
$x_2 = 6$, $y_2 = 13$

Substituting these values into the formula:
$m = \frac{13 - 5}{6 - 2}$
$m = \frac{8}{4}$
$m = 2$

Final answer: 2

Example 2

Problem. Find the slope of the line through the points (-3, 4) and (5, -2).

To find the slope of a line passing through two points $(x_1, y_1)$ and $(x_2, y_2)$, we use the slope formula:
$m = \frac{y_2 - y_1}{x_2 - x_1}$

Given the points $(-3, 4)$ and $(5, -2)$, we identify the coordinates as:
$x_1 = -3$
$y_1 = 4$
$x_2 = 5$
$y_2 = -2$

Substitute these values into the slope formula:
$m = \frac{-2 - 4}{5 - (-3)}$

Simplify the numerator and the denominator:
$m = \frac{-6}{5 + 3}$
$m = \frac{-6}{8}$

Finally, simplify the fraction by dividing the numerator and the denominator by their greatest common divisor, which is $2$:
$m = -\frac{3}{4}$

Final answer: $-\frac{3}{4}$

Example 3

Problem. Find the slope of the line through the points (1, -7) and (4, -7).

To find the slope of a line passing through two points $(x_1, y_1)$ and $(x_2, y_2)$, we use the slope formula:
$m = \frac{y_2 - y_1}{x_2 - x_1}$

Given the points $(1, -7)$ and $(4, -7)$, we identify the coordinates:
$x_1 = 1$
$y_1 = -7$
$x_2 = 4$
$y_2 = -7$

Substitute these values into the formula:
$m = \frac{-7 - (-7)}{4 - 1}$
$m = \frac{-7 + 7}{3}$
$m = \frac{0}{3}$
$m = 0$

Since the $y$-coordinates are the same, the line is a horizontal line, which always has a slope of $0$.

Final answer: 0

Where this shows up

IXL Algebra 1 (Find the slope from two points), Delta Math, Khan Academy Linear equations. The wording changes, the method does not.

Stuck on a different problem? Screenshot it. SightSolve reads any question on your screen and explains it step by step, the same way as above, in about ten seconds.

Add to Chrome, it's freeFree: 60 credits a week, no account. Works on Canvas, IXL, Delta Math, McGraw Hill Connect, Khan Academy, WebAssign and PDFs.

More skills