Geometry Solver
Home › Functions and graphs

How to find the equation of a line from two points

The rule: slope first, intercept second

For points and , first calculate the slope . Then put one point into and solve for . Finally, substitute both original points into the finished equation. If both work, the signs and fraction are correct.

Problem

Write each line in fully simplified slope-intercept form . Example 1. The line passes through and . Example 2. The line passes through and . Example 3. The line passes through and .

Answer

For and , the line is . For and , it is . For and , it is .
Each equation was checked against both points used to construct it.

Step-by-step solution

Example 1: an integer slope

Use the slope formula:

Now substitute into :

so . Therefore

A quick check with the second point gives .

Example 2: a positive fractional slope

The horizontal change is and the vertical change is :

Substitute :

Thus and

Checking gives .

Example 3: a negative fractional slope

Use and :

The point gives the intercept immediately: . Hence

At , this gives , as required.

How to check yourself

A line with a positive slope rises from left to right; a negative slope falls. Then substitute both given points. This catches the two most common errors: reversing only one subtraction in the slope formula and losing the sign of .

Add to Chrome - solve your own

Screenshot any problem on your screen and get the steps. Chrome on a computer; free.