How rise over run works
Rise is the difference in y-coordinates: y2 - y1. Run is the difference in x-coordinates: x2 - x1. The slope m equals rise divided by run. A positive slope means the line goes uphill from left to right; a negative slope means it goes downhill.
If the run is zero the line is vertical and the slope is undefined. If the rise is zero the line is horizontal and the slope is zero.
m = rise / run = (y2 - y1) / (x2 - x1)
Slope as rise over run.