Slope-Intercept Calculator
Find y = mx + b from two points.
Equation
y = 2.0000x + 0.0000
Slope 2.0000 · y-intercept 0.0000
About this calculator
From two points (x₁,y₁) and (x₂,y₂), derive slope m and y-intercept b.
- Slope m = (y₂ − y₁) ÷ (x₂ − x₁).
- Intercept b = y₁ − m·x₁.
- Vertical lines (x₁ = x₂) have undefined slope.
Formula:
m = (y₂ − y₁) ÷ (x₂ − x₁); b = y₁ − m·x₁Frequently asked questions
What if the line is vertical?
Slope is undefined (division by zero). The line is x = constant.
Related calculators
Calculator NZ provides general information only. For decisions with significant financial, medical or legal consequence please consult a qualified professional.