Slope and Line Equation Calculator
Slope, y-intercept, angle and x-intercept of the line through two points.
Results
Slope (m)
3.000000
Y-intercept (b)
-1.000000
Angle
71.5651
°
x
0.333333
What this tool does
Two points define a line, and from them come the two numbers that describe it: how steep it is and where it crosses the vertical axis. This is the algebraic slope, not the builder's percentage — for ramps and drainage use the gradient calculator instead.
Formula
m = (y₂ − y₁) ÷ (x₂ − x₁) , b = y₁ − m × x₁
Variables
| Symbol | Meaning | Unit |
|---|---|---|
x1 | x₁ | — |
y1 | y₁ | — |
x2 | x₂ | — |
y2 | y₂ | — |
M | Slope (m) | — |
B | Y-intercept (b) | — |
AG | Angle | ° |
XI | x | — |
Worked example
- x₁1
- y₁2
- x₂5
- y₂14
- Slope (m)3.000000
- Y-intercept (b)-1.000000
- Angle71.5651 °
- x0.333333
Limitations
- The calculation runs at full precision and only the display is rounded. If you copy an intermediate value and retype it, small differences can appear.