Mastering How to Calculate the Slope of a Line: A Step-by-Step Guide

News

Slope is rise over run, or (y2 – y1) / (x2 – x1).

Formula

Slope m = rise / run = (y2 – y1) / (x2 – x1).

Steps

  • Choose two points on the line, (x1, y1) and (x2, y2).
  • Subtract the y-values for the rise.
  • Subtract the x-values for the run, in the same order.
  • Divide.
How to do slope of a line: main illustration

Example

Points (2, 3) and (6, 11): m = (11 – 3) / (6 – 2) = 8 / 4 = 2.

What the sign means

How to do slope of a line: visual explanation
  • Positive: line goes up.
  • Negative: down.
  • Zero: horizontal.
  • Undefined: vertical.
How to do slope of a line: example and key details

From an equation

In y = mx + b, m is the slope.

Based on data from standard algebra textbooks and Khan Academy.

Rate article