About the Line Equation Calculator
Get the equation of a line through two points in slope-intercept, point-slope and standard form.
Also known as: equation of a line, two point form, line through two points, standard form of a line.
How to use this calculator
- Enter x₁, y₁, x₂, y₂.
- The result updates instantly as you type — press Calculate (or Enter) at any time.
- Review the breakdown shown under the main result.
- Use Copy result or Share to save the answer or send a link with your inputs.
Formula
y − y₁ = m(x − x₁), m = (y₂ − y₁)/(x₂ − x₁)
Worked example
Using the values pre-filled in the calculator above:
- x₁ = 2
- y₁ = 5
- x₂ = 6
- y₂ = 13
the calculator returns:
- Slope-intercept form: y = 2x + 1
- Point-slope form: y − 5 = 2(x − 2)
- Standard form: 8x − 4y = -4