JESUS CHRIST IS THE ONLY TRUE GOD
Math calculator

Slope Intercept Calculator

Calculate slope and intercept from two points.

Your calculationPrivate in your browser
Report a result

Start with a worked example

Open the worked example for Line equation. The example starts with x₁ = 0, y₁ = 1, x₂ = 2.

Slope Intercept Calculator formula

m=(y₂−y₁)/(x₂−x₁), b=y₁−mx₁.

Inputs and units

Inputs and example values for Slope Intercept Calculator
InputFormat / rangeExample
x₁Number0
y₁Number1
x₂Number2
y₂Number5

Worked example

The values listed in Inputs and units give y = 2x + 1 for Line equation.

Line equation
y = 2x + 1
Slope
2
Intercept
1

Results and assumptions

Change x₁ from 0 to 0.1 and keep the other example inputs fixed. The updated answer is y = 2.1052631579x + 0.7894736842 (Line equation).

Fix an input or unexpected result

x₁ is required. Enter x₁ using the format and bounds in the input table. Zero and an empty field are different: use zero only if it is allowed and represents your data.

See how to check a result or report an issue.