✓ Effortless Math · Free Tool

Equation of a Line Calculator

Find the equation of a line from a slope and a point, or from two points — get the slope, y-intercept, and the line in slope-intercept, point-slope, and standard form, with a live graph and full step-by-step working.

Slope-intercept form:  y = mx + b
m at point ( x₁ , y₁ )

Enter the slope and any point on the line. Decimals and negatives are fine.

( x₁ , y₁ )  and  ( x₂ , y₂ )

Enter two different points the line passes through. Decimals and negatives are fine.

Results

Equation of the line
Slope (m)
Y-intercept (b)
Point-slope form
Standard form (Ax + By = C)

Graph

LineGiven point(s)Y-intercept

Step-by-step