Identify the two points: (x₁, y₁) and (x₂, y₂).
Subtract the y coordinate of the second point to the y coordinate of the first point: y₂ - y₁.
Subtract the x coordinate of the second point to the x coordinate of the first point: x₂ - x₁.
Finally, to calculate the slope m by dividing the subtraction of the y coordinates by the subtraction of the x coordinates: m = (y₂ - y₁)/(x₂ - x₁) (this is the slope formula)
Read more