Slope Calculator (Two-Point Formula)
Find slope (m), y-intercept (b), line equation, distance, and angle between two points using m = (y₂ − y₁) / (x₂ − x₁).
MATHFind the slope (m), y-intercept (b), line equation in y = mx + b form, distance between points, and angle of inclination using the two-point formula.
Vertical lines (where x₂ = x₁) have undefined slope — Δx = 0 makes the ratio undefined. Horizontal lines have slope 0. Positive slope rises left-to-right; negative falls. The angle of inclination is arctan(slope) and ranges from −90° to +90°.
Slope Calculator
Find the slope (m), y-intercept (b), line equation, distance, and angle between two points using m = (y₂ − y₁) / (x₂ − x₁).
Point 1 (x₁, y₁)
Point 2 (x₂, y₂)
Algebra-1 staple. For 3D vectors or higher dimensions, use a vector calculator. For best-fit slope through multiple points, use linear regression.