To find the slope from two points, use the slope formula and plug in the coordinates of the points.

Slope formula (the key idea)

If you have two points on a line, (x1,y1)(x_1,y_1)(x1​,y1​) and (x2,y2)(x_2,y_2)(x2​,y2​), the slope mmm is

m=y2βˆ’y1x2βˆ’x1m=\frac{y_2-y_1}{x_2-x_1}m=x2β€‹βˆ’x1​y2β€‹βˆ’y1​​

This is often described as β€œrise over run” (change in yyy divided by change in xxx).

Step‑by‑step method

  1. Label your points
    • First point β†’ (x1,y1)(x_1,y_1)(x1​,y1​)
    • Second point β†’ (x2,y2)(x_2,y_2)(x2​,y2​)
      It doesn’t matter which you call β€œ1” or β€œ2” as long as you stay consistent (top and bottom use the same order).
  1. Find the change in y (rise)
    • Compute y2βˆ’y1y_2-y_1y2β€‹βˆ’y1​.
  1. Find the change in x (run)
    • Compute x2βˆ’x1x_2-x_1x2β€‹βˆ’x1​.
  1. Divide rise by run
    • m=y2βˆ’y1x2βˆ’x1m=\dfrac{y_2-y_1}{x_2-x_1}m=x2β€‹βˆ’x1​y2β€‹βˆ’y1​​.
  1. Simplify the fraction
    • Reduce the fraction if possible. A negative sign can go in the numerator, denominator, or in front of the whole fraction (they all mean the same slope).

Concrete example

Say the line goes through (1,βˆ’2)(1,-2)(1,βˆ’2) and (3,βˆ’6)(3,-6)(3,βˆ’6).

  1. Label:
    • (x1,y1)=(1,βˆ’2)(x_1,y_1)=(1,-2)(x1​,y1​)=(1,βˆ’2)
    • (x2,y2)=(3,βˆ’6)(x_2,y_2)=(3,-6)(x2​,y2​)=(3,βˆ’6)
  2. Compute rise:
    • y2βˆ’y1=βˆ’6βˆ’(βˆ’2)=βˆ’6+2=βˆ’4y_2-y_1=-6-(-2)=-6+2=-4y2β€‹βˆ’y1​=βˆ’6βˆ’(βˆ’2)=βˆ’6+2=βˆ’4
  3. Compute run:
    • x2βˆ’x1=3βˆ’1=2x_2-x_1=3-1=2x2β€‹βˆ’x1​=3βˆ’1=2
  4. Divide:
    • m=βˆ’42=βˆ’2m=\dfrac{-4}{2}=-2m=2βˆ’4​=βˆ’2

So the slope of the line through those two points is βˆ’2-2βˆ’2.

Handy HTML table of quick facts

Here’s a small HTML table summarizing the core ideas:

html

<table>
  <tr>
    <th>Concept</th>
    <th>Details</th>
  </tr>
  <tr>
    <td>Slope formula</td>
    <td>m = (yβ‚‚ - y₁) / (xβ‚‚ - x₁) [web:1][web:3]</td>
  </tr>
  <tr>
    <td>Meaning of slope</td>
    <td>β€œRise over run”: change in y divided by change in x [web:3]</td>
  </tr>
  <tr>
    <td>Point labeling</td>
    <td>You can swap which point is 1 or 2, as long as you stay consistent in numerator and denominator [web:1][web:3]</td>
  </tr>
  <tr>
    <td>Zero slope</td>
    <td>If yβ‚‚ = y₁, the slope is 0 (horizontal line) [web:3]</td>
  </tr>
  <tr>
    <td>Undefined slope</td>
    <td>If xβ‚‚ = x₁, denominator is 0 and slope is undefined (vertical line) [web:3][web:10]</td>
  </tr>
</table>

Tiny story to remember it

Imagine you’re hiking from one campsite to another on a straight trail.

  • The x-coordinate is how far you’ve walked forward.
  • The y-coordinate is how high above sea level you are.

If your second campsite is higher than the first, the β€œrise” y2βˆ’y1y_2-y_1y2β€‹βˆ’y1​ is positive, and the slope is positive: you’ve been climbing.
If it’s lower, the rise is negative, and the slope is negative: you’ve been going downhill.

TL;DR:
Label the points (x1,y1)(x_1,y_1)(x1​,y1​) and (x2,y2)(x_2,y_2)(x2​,y2​), then compute m=y2βˆ’y1x2βˆ’x1m=\dfrac{y_2-y_1}{x_2-x_1}m=x2β€‹βˆ’x1​y2β€‹βˆ’y1​​, simplify, and that’s your slope.

Information gathered from public forums or data available on the internet and portrayed here.