Slope formula

The slope formula is represented as:

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

Where:
m = slope
y2 and y1 = y-coordinates of two points on the line
x2 and x1 = x-coordinates of the same two points on the line

This formula calculates the change in y-coordinates divided by the change in x-coordinates between two points on a line, giving the slope of that line.