About this slope calculator
Slope is rise over run: m = (y₂ − y₁) ÷ (x₂ − x₁). Through (1, 2) and (4, 8) the slope is 6 ÷ 3 = 2 and the line is y = 2x. The calculator also gives the y-intercept, the angle of the line, the distance between the points and the midpoint; a vertical line has undefined slope.