The slope of the line is defined as a change in y divided by the change in x. Hence, the formula to determine the slope of a line is given as:Slope, m = [y2 – y1]/[x2 – x1] = Rise/Run.