Dividing the change in quantity on the horizontal axis by the change in quantity on the vertical axis calculates the slope of a line.