Line Equation Calculator

Learn how to find the equation of a straight line from two points!

Points: 0

Find the Line Equation

Given Points:

Point 1: (x₁, y₁)

Point 2: (x₂, y₂)

Line Equation Forms:

Slope-intercept form: y = mx + c

General form: ax + by + c = 0

Calculate the Line Equation

Step 1: Identify the coordinates

Identify the x and y values for both points:

Point 1:

x₁ = ?, y₁ = ?

Point 2:

x₂ = ?, y₂ = ?

Step 2: Calculate the gradient (slope)

Use the formula: m = (y₂ - y₁) / (x₂ - x₁)

m = (y₂ - y₁) / (x₂ - x₁) = (? - ?) / (? - ?) = ?

Step 3: Calculate the y-intercept (c)

Use the formula: c = y₁ - m × x₁

c = y₁ - m × x₁ = ? - ? × ? = ?

Step 4: Write the equation in slope-intercept form

Use the formula: y = mx + c

Using m = ? and c = ?

y = x +

Step 5: Write the equation in general form

Convert from y = mx + c to ax + by + c = 0

From y = ?x + ?

Rearrange to get: ?x - y + ? = 0

x + y + = 0

Final Answer

The equation of the line is:

y = mx + c

ax + by + c = 0

Your Progress:

How to Find a Line Equation:

  1. Identify the coordinates of the two points (x₁, y₁) and (x₂, y₂)
  2. Calculate the gradient: m = (y₂ - y₁) / (x₂ - x₁)
  3. Calculate the y-intercept: c = y₁ - m × x₁
  4. Write the equation in slope-intercept form: y = mx + c
  5. If needed, convert to general form: ax + by + c = 0
1
2
3
4
5
6
7
8
9
0
-
.
/
Clear
Close
Excellent Work!
⭐⭐⭐
You found the line equation correctly!