Slope Calculator

Find the slope between two points, the line equation y = mx + b, the angle, distance and midpoint.

Results

Slope (m)
2
Equation
y = 2x + 0
y-intercept (b)
0
Angle
63.4349°
Distance
6.7082039
Midpoint
(2.5, 5)
💡 m = (8 − 2) ÷ (4 − 1) = 6 ÷ 3 = 2

Formula

m = (y₂ − y₁)/(x₂ − x₁); b = y₁ − m·x₁; distance = √(Δx² + Δy²)

More Math calculators