Slope of a Line Formula


Equation for calculate slope of a line is,

m = (y2 - y1) / (x2 - x1)

where,
x1, x2, y1, y2 - coordinates of two points