How to Find the Slope of a Line From Two Points

How to Find the Slope of a Line From Two Points

To find the slope of a line from two points, use m = (y₂ − y₁)/(x₂ − x₁): subtract the y-values for the rise, the x-values for the run, and divide. For (2, 3) and (6, 11), rise is 8 and run is 4, so the slope is 2 — it climbs 2 units for every 1 unit right.

Slope is the single most useful number in coordinate geometry. It tells you how steep a line is and which way it tilts, it is the key to writing a line’s equation, and it shows up in every linear word problem. This guide covers the three-step method, the rise/run flip trap that catches half of all students, and the four slope types every exam tests.

The Three-Step Method: Rise Over Run

The formula m = (y₂ − y₁)/(x₂ − x₁) is just a precise way of saying “slope = rise ÷ run.” Rise is vertical change, run is horizontal change.

Worked example: (2, 3) and (6, 11).

  1. Rise — subtract the y-values in order: 11 − 3 = 8.
  2. Run — subtract the x-values in the same order: 6 − 2 = 4.
  3. Divide — m = 8/4 = 2.

Reading the result: m = 2 means for every 1 unit the line moves right, it rises 2 units. Check the direction: positive slope rises left to right, which matches the points (y grew from 3 to 11 as x grew from 2 to 6). Want it verified instantly? Calcrio’s free slope calculator has a Two Points mode that shows each subtraction step.

Same points, reversed order. Label (6, 11) as point 1 and (2, 3) as point 2: m = (3 − 11)/(2 − 6) = (−8)/(−4) = 2. Same answer. The order doesn’t matter — consistency does, as the next section shows.

The Rise/Run Flip Trap: Why Half of Students Get 1/2

The most common slope error is computing run over rise — flipping the fraction. With (2, 3) and (6, 11), that gives (6 − 2)/(11 − 3) = 4/8 = 1/2. It is wrong.

The definition settles it: slope is rise over run, vertical over horizontal. A slope of 2 means the line is steep — two units up per one unit across. A slope of 1/2 means a gentle climb. Plug both into a graph and only one passes through both points.

Memory rule: write the y-difference on top every time. If you catch yourself with an x-difference on top, flip it before you simplify. And remember: (6 − 2)/(11 − 3) is not a different valid method — it is the reciprocal of the correct slope.

The Four Slope Types at a Glance

Every line on a coordinate plane has exactly one of four slopes. Learn to recognize each from two points before you ever touch a calculator:

Slope What It Looks Like Example Points Calculation
Positive Rises left to right (2, 3), (6, 11) m = 8/4 = 2
Negative Falls left to right (−1, 2), (3, −4) m = (−6)/4 = −3/2
Zero Horizontal, flat (1, 4), (5, 4) m = 0/4 = 0
Undefined Vertical, straight up (3, 1), (3, 7) m = 6/0 — division by zero

The worked check for the negative example: rise = −4 − 2 = −6, run = 3 − (−1) = 4, so m = −6/4 = −3/2. The y-values fell as x grew — a falling line, exactly what a negative slope means.

Special Cases: Horizontal (m = 0) and Vertical (Undefined)

Horizontal lines have slope 0. Between (1, 4) and (5, 4), the rise is 4 − 4 = 0, so m = 0/4 = 0. No vertical change means no slope. Every horizontal line is y = a constant, like y = 4.

Vertical lines have undefined slope. Between (3, 1) and (3, 7), the run is 3 − 3 = 0, so m = 6/0 — division by zero, which has no value. “Undefined” is the correct answer, not “zero” and not “infinity”: the formula simply breaks because the x-coordinates never change. Every vertical line is x = a constant, like x = 3.

This is the single most-tested slope distinction in algebra classes: zero ≠ undefined. Write them on flashcards if you have to.

One Formula, One Line, One Check

From the slope you can always recover the full line. Take (2, 3) with m = 2 and use y = mx + b: 3 = 2(2) + b gives b = −1, so the line through both points is y = 2x − 1. Check it against the second point: y = 2(6) − 1 = 11 ✓. That built-in self-check — plugging the unused point back into the equation — catches arithmetic slips instantly. Slope also opens the door to perpendicular lines: flip the slope and change the sign, so the perpendicular to m = 2 has m = −1/2 (perpendicular slopes multiply to −1: 2 × −1/2 = −1). Tangent lines to circles lean on this fact, so Calcrio’s circle calculator and the slope calculator‘s parallel/perpendicular mode pair well here.

Frequently Asked Questions

What is the formula for the slope of a line?
m = (y₂ − y₁)/(x₂ − x₁) — the change in y divided by the change in x, or rise over run.

How do you find the slope between (2, 3) and (6, 11)?
Rise = 11 − 3 = 8, run = 6 − 2 = 4, so m = 8/4 = 2. The line rises 2 units for every 1 unit right.

Why do students get 1/2 instead of 2 for this example?
They compute run over rise — (6 − 2)/(11 − 3) = 1/2 — flipping the fraction. Slope is always rise (y) on top, run (x) underneath.

Can slope be zero? What about undefined?
Yes to both: horizontal lines have slope 0 (no rise), and vertical lines have undefined slope (zero run, division by zero). They are different answers — never mix them up.

What is the slope of a line parallel to one with slope 2?
Also 2 — parallel lines share the same slope. A line perpendicular to it has slope −1/2, since perpendicular slopes are negative reciprocals (2 × −1/2 = −1).

Does the order of the points change the slope?
No — (2, 3) → (6, 11) and (6, 11) → (2, 3) both give m = 2. What matters is subtracting the y’s and the x’s in the same order.

Keep Practicing

Work these by hand and verify with the (y₂ − y₁)/(x₂ − x₁) steps: (0, 0) → (5, 15) gives m = 3; (4, 9) → (10, 3) gives m = −1; (−2, 6) → (3, 6) is horizontal, m = 0; and (7, −1) → (7, 8) is vertical — undefined. For instant verification with every subtraction shown, use the free slope calculator — and if parabolas are next on your syllabus, the same slope idea measures how steep a curve is at a point, which the quadratic equation calculator covers next.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top