How to Make a Line with Two Points Given

What Does "Find the Equation of a Line Through Two Points" Actually Mean?

You're given two points on a coordinate plane. You need to write the equation that connects them. That's it. That's the whole problem.

This comes up constantly in algebra, geometry, and anything that uses coordinate systems. The good news: the process is straightforward once you know the steps.

The Formula You Need to Know

The most common form you'll use is the slope-intercept form:

y = mx + b

Where:

To find the equation, you need to calculate both m and b.

Step 1: Calculate the Slope

The slope formula is:

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

Pick one point as your starting point and the other as your ending point. Label them consistently:

Example

Given points (2, 3) and (6, 11):

m = (11 - 3) / (6 - 2) = 8 / 4 = 2

The slope is 2. This means for every 1 unit you move right on the x-axis, the y-value goes up by 2.

Step 2: Find the Y-Intercept

Once you have the slope, plug it into y = mx + b along with one of your points. Solve for b.

Example Continued

Using the slope we found (m = 2) and point (2, 3):

3 = 2(2) + b
3 = 4 + b
b = -1

Step 3: Write the Final Equation

Plug m and b back into y = mx + b:

y = 2x - 1

Verify: Does (2, 3) work? 3 = 2(2) - 1 = 4 - 1 = 3 ✓
Does (6, 11) work? 11 = 2(6) - 1 = 12 - 1 = 11 ✓

Point-Slope Form: An Alternative

Sometimes you don't need to solve for the y-intercept. Use point-slope form instead:

y - y₁ = m(x - x₁)

This is useful when the problem doesn't ask you to solve for b explicitly, or when you just need the equation without simplifying.

Same Example in Point-Slope Form

Using point (2, 3) and m = 2:

y - 3 = 2(x - 2)

Simplify to slope-intercept: y - 3 = 2x - 4 → y = 2x - 1

Common Mistakes to Watch For

Quick Reference: Slope Types

Slope Value Line Description Example Equation
m > 0 Uphill / positive y = 2x + 1
m < 0 Downhill / negative y = -3x + 4
m = 0 Horizontal y = 5
m = undefined Vertical x = 2

How to Get This Right Every Time

  1. Label your points clearly. Write (x₁, y₁) and (x₂, y₂) before doing anything else.
  2. Calculate slope first. Use the formula exactly as written.
  3. Substitute into y = mx + b using your known slope and one point.
  4. Solve for b. Don't skip this step.
  5. Write the final equation. Double-check by plugging both original points in.

When You'll Actually Use This

Beyond homework, finding line equations from two points applies to:

The math stays the same regardless of context. Two points define a line. Find the slope. Find the intercept. Done.