Enter two points to get the slope, the y-intercept and the equation of the line.
Slope is rise over run: the change in y divided by the change in x between two points. A positive slope goes up to the right, negative goes down, zero is flat and a vertical line has no defined slope. Once you have the slope m, the y-intercept is b = y − m × x for either point, giving the line y = mx + b.
Subtract the y-values and divide by the difference of the x-values. For (2, 3) and (8, 11): (11 − 3) ÷ (8 − 2) = 8/6 = 4/3.
y = mx + b, where m is the slope and b is where the line crosses the y-axis. The line through (2, 3) and (8, 11) is y = 4/3x + 0.3333.
A horizontal line has slope 0. A vertical line has an undefined slope because the run is 0.