text: You have two points: (x1, y1) and (x2, y2). By convention, we assume the second point is on the right (in the positive X direction). \n\nCalculate (y2-y1)/(x2-x1). This will be the slope of the line. (you can remember this as "rise over run; rise is higher": ABOVE the line in the division).