The Slope is a measure of steepness of line in the coordinate plane. The Slope is calculated as “rise over run” (change in y-coordinate divided by change in x-coordinate).
m = change in y/change in x = Δrise/Δrun
If A(x1,y1) and B(x2,y2) are the two points on a straight line, then the slope formula is defined as:
m = (y2 – y1)/(x2 – x1)