To find the slope between two points, you use a simple formula that measures how steep the line is that connects them.

Core idea

If you have two points on a line:

  • First point: (x1,y1)(x_1,y_1)(x1​,y1​)
  • Second point: (x2,y2)(x_2,y_2)(x2​,y2​)

Then the slope mmm is:

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

People often call this β€œrise over run,” where:

  • Rise = change in y = y2βˆ’y1y_2-y_1y2β€‹βˆ’y1​
  • Run = change in x = x2βˆ’x1x_2-x_1x2β€‹βˆ’x1​

Step‑by‑step example

Say your two points are (1,βˆ’2)(1,-2)(1,βˆ’2) and (3,βˆ’6)(3,-6)(3,βˆ’6).

  1. Label the points:
    • (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. Plug into the formula:

m=y2βˆ’y1x2βˆ’x1=βˆ’6βˆ’(βˆ’2)3βˆ’1=βˆ’6+22=βˆ’42=βˆ’2m=\frac{y_2-y_1}{x_2-x_1} =\frac{-6-(-2)}{3-1} =\frac{-6+2}{2} =\frac{-4}{2} =-2m=x2β€‹βˆ’x1​y2β€‹βˆ’y1​​=3βˆ’1βˆ’6βˆ’(βˆ’2)​=2βˆ’6+2​=2βˆ’4​=βˆ’2

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

Important details and special cases

  • It does not matter which point you call β€œpoint 1” and which β€œpoint 2,” as long as you stay consistent in the formula (the x and y from the same point must go together).
  • If x2βˆ’x1=0x_2-x_1=0x2β€‹βˆ’x1​=0, that means the line is vertical and the slope is undefined (you cannot divide by zero).
  • If y2βˆ’y1=0y_2-y_1=0y2β€‹βˆ’y1​=0, that means the line is horizontal and the slope is 000.

Quick mini‑story to remember it

Imagine you’re hiking a straight trail on a hill from one marker to another:

  • The change in height between markers is your β€œrise” (y2βˆ’y1y_2-y_1y2β€‹βˆ’y1​).
  • The distance forward you walk is your β€œrun” (x2βˆ’x1x_2-x_1x2β€‹βˆ’x1​).
  • The steepness of the trail is the slope: rise Γ· run.

A positive slope means you’re going uphill as you move to the right; a negative slope means downhill.

Tiny checklist

When you’re given two points and asked β€œhow to find the slope of two points,” do this:

  1. Write the two points and label them (x1,y1)(x_1,y_1)(x1​,y1​) and (x2,y2)(x_2,y_2)(x2​,y2​).
  1. Compute y2βˆ’y1y_2-y_1y2β€‹βˆ’y1​.
  2. Compute x2βˆ’x1x_2-x_1x2β€‹βˆ’x1​.
  3. Divide: slope m=y2βˆ’y1x2βˆ’x1m=\dfrac{y_2-y_1}{x_2-x_1}m=x2β€‹βˆ’x1​y2β€‹βˆ’y1​​.
  4. Simplify the fraction and check if the line is vertical (undefined) or horizontal (0).

TL;DR:
Use m=y2βˆ’y1x2βˆ’x1m=\dfrac{y_2-y_1}{x_2-x_1}m=x2β€‹βˆ’x1​y2β€‹βˆ’y1​​, plug in your two points, and simplify; that’s exactly how to find the slope of two points in any basic algebra or graphing problem.

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