Course contentsShow
← Mathematics
Lesson 914 of 3,12122. Coordinate Geometry and TransformationsFree lesson

Equations from Two Points

Find the equation of a line passing through two given points using slope and point-slope form.

Equations from Two Points

What you'll learn: You'll learn how to write the equation of a line when you're given two coordinate points it passes through.

The Core Idea

Imagine you're given two dots on a graph—let's say (2, 5) and (6, 13)—and you need to find the equation of the line connecting them. You already have the tools: you can calculate slope from two points, and you know point-slope form. Now you'll combine them!

The process has two simple steps:

Step 1: Find the Slope

Use the slope formula with your two points (x₁, y₁) and (x₂, y₂):

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

For our example: m = (13 - 5) / (6 - 2) = 8/4 = 2

Step 2: Use Point-Slope Form

Now plug the slope and either of the two points into point-slope form:

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

Using point (2, 5) and slope 2: y - 5 = 2(x - 2)

You can simplify this to slope-intercept form: y - 5 = 2x - 4 y = 2x + 1

Or convert to standard form if needed.

Why This Works

Think of it like navigation: the slope tells you the "direction" the line travels, and the point tells you where it actually is. Together, they uniquely identify one specific line.

Pro tip: You can use either point—you'll get the same final equation both ways!

Key Takeaway: To find a line's equation from two points, calculate the slope first, then substitute the slope and one point into point-slope form to write the complete equation.