To find the slope with two points, you use a simple formula and plug in the coordinates.

Step 1: Know the slope formula

If your two points are
(x1,y1)(x_1,y_1)(x1​,y1​) and (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​​

This is often described as β€œrise over run”: change in y divided by change in x.

Step 2: Label your points

Take your actual points and label them consistently. Example: Suppose your two points are (1,βˆ’2)(1,-2)(1,βˆ’2) and (3,βˆ’6)(3,-6)(3,βˆ’6).

  • Let (x1,y1)=(1,βˆ’2)(x_1,y_1)=(1,-2)(x1​,y1​)=(1,βˆ’2)
  • Let (x2,y2)=(3,βˆ’6)(x_2,y_2)=(3,-6)(x2​,y2​)=(3,βˆ’6)

You could swap them (make the first one point 2 and the second one point 1) and you’d still get the same slope as long as you stay consistent in the formula.

Step 3: Plug into the formula

Using the example (1,βˆ’2)(1,-2)(1,βˆ’2) and (3,βˆ’6)(3,-6)(3,βˆ’6):

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 is βˆ’2-2βˆ’2.

Step 4: Important tips and special cases

  • It doesn’t matter which point is β€œpoint 1” and which is β€œpoint 2” as long as you use them in the same order in numerator and denominator.
  • If x2βˆ’x1=0x_2-x_1=0x2β€‹βˆ’x1​=0, then you are dividing by zero, which means the line is vertical and the slope is undefined.
  • You may also see the equivalent form y1βˆ’y2x1βˆ’x2\frac{y_1-y_2}{x_1-x_2}x1β€‹βˆ’x2​y1β€‹βˆ’y2​​; it gives the same answer because you’re multiplying top and bottom by βˆ’1-1βˆ’1.

Quick mini story to remember it

Imagine walking up or down a hill between two spots on a hiking trail.

  • The change in height (up or down) is your rise (y2βˆ’y1y_2-y_1y2β€‹βˆ’y1​).
  • The distance forward along the trail is your run (x2βˆ’x1x_2-x_1x2β€‹βˆ’x1​).

Slope is just β€œhow steep that hill feels” = rise Γ· run.

Very short version (TL;DR)

  • Label your points (x1,y1)(x_1,y_1)(x1​,y1​), (x2,y2)(x_2,y_2)(x2​,y2​).
  • Compute m=y2βˆ’y1x2βˆ’x1m=\dfrac{y_2-y_1}{x_2-x_1}m=x2β€‹βˆ’x1​y2β€‹βˆ’y1​​.
  • Simplify the fraction; if the denominator is 0, the slope is undefined.

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