Paritian

Mathematics

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
The shape, to scale
Slope and Line Equation CalculatorSlope and Line Equation Calculator: Δx = 4.00, Δy = 12.00, 71.57°, 12.65Δx = 4.00Δy = 12.0012.6571.57°

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

SymbolMeaningUnit
x1x₁
y1y₁
x2x₂
y2y₂
MSlope (m)
BY-intercept (b)
AGAngle°
XIx

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.