Skip to content
Calculator Tools
Coordinate Geometry Calculators

Line Equation Calculator

Get the equation of a line through two points in slope-intercept, point-slope and standard form.

Enter values

Results update as you type.

Result

Slope-intercept form

y = 2x + 1

Point-slope form
y − 5 = 2(x − 2)
Standard form
8x − 4y = -4

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

  1. Enter x₁, y₁, x₂, y₂.
  2. The result updates instantly as you type — press Calculate (or Enter) at any time.
  3. Review the breakdown shown under the main result.
  4. 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