When finding the gradient of a line we need to first locate any two points, on the line, where we know the x-coordinates and we know the y-coordinates. Now, with these two coordinates we need to find two values dy, difference in y, and dx, difference in x. When we have calculated these two values we just simply divide dy by dx. This will give us the gradient of the line.