How it works
Slope m = (y₂ − y₁) / (x₂ − x₁), when x₂ is not equal to x₁.
The results update in your browser as you change the inputs. You can test alternatives without creating an account.
FREE INTERACTIVE CALCULATOR
Find the slope, angle and equation of a line from two coordinates.
Equation: y = 2x · Angle: 63.4349°
Slope m = (y₂ − y₁) / (x₂ − x₁), when x₂ is not equal to x₁.
The results update in your browser as you change the inputs. You can test alternatives without creating an account.
The points (1, 2) and (4, 8) create a slope of 2 and the equation y = 2x.
The default values in the tool are illustrative. Change them to match your situation.
A vertical line has undefined slope and an equation of the form x = constant.
Results are educational estimates, not professional financial advice or a lender quote.
Slope m = (y₂ − y₁) / (x₂ − x₁), when x₂ is not equal to x₁.
The points (1, 2) and (4, 8) create a slope of 2 and the equation y = 2x.
A vertical line has undefined slope and an equation of the form x = constant.
Browse the calculator library · Mortgage Calculator · Calculation methodology
Content created October 23, 2026. Methods and editorial standards.