Javascript required
Skip to content Skip to sidebar Skip to footer

How to Find the Y Intercept of Two Points

What Type of Equation?

Point Slope or Slope Intercept ?


There are a few different ways to write the equation of line .

Slope Intercept Form

Slope Intercept Form

The first half of this page will focus on writing the equation in slope intercept form like example 1 below.


Which Form is better?

Point Slope Form is better

Point slope form requires fewer steps and fewer calculations overall. This page will explore both approaches. You can click here to see a side by side comparison of the 2 forms.

Video Tutorial
on Finding the Equation of a line From 2 points

Example - Slope Intercept Form

Using Slope Intercept Form

Find the equation of a line through the points (3, 7) and (5, 11)

Step 1

$$ \text { slope } \\ \frac{ y_2 - y_1}{x_2 - x_1} \\ \frac{ 11- 7 }{5-3} \\ \frac 4 2 = \boxed{2} $$

Step 2

$$ y = \red{m} x + b \\ y = \red 2 x + b $$

Step 3

Substitute either point into the equation. You can use either $$(3, 7)$$ or $$(5, 11)$$.

Let's use $$( \red 3, \red 7)$$

$$ y = 2x + b \\ \red 7 = 2 (\red 3) + b $$

Step 4

Step 4 the y intercept

Step 5

Substitute $$ 1$$ for $$ \red b $$ , into the equation from step 2.

$$ y = 2x + \red b \\ y = 2x + \red 1 \\ \boxed { y = 2x + 1 } $$

Use our Calculator

You can use the calculator below to find the equation of a line from any two points. Just type numbers into the boxes below and the calculator (which has its own page here) will automatically calculate the equation of line in point slope and slope intercept forms.

Practice Problems- Slope Intercept Form

Problem 1

Find the equation of a line through the following 2 points: (4, 5) and (8, 7)

Step 1

step 1 find slope

Step 3

Substitute either point into the equation. You can use either (4, 5) or (8, 7).

Step 3

Step 4

Step 4 the y intercept

Step 5

Substitute b, 3, into the equation from step 2.

Final Equation of Line

Problem 2

Find the equation of a line through the following the points: (-6, 7) and (-9, 8).

Step 1

step 1 find slope

Step 2

equation of line

Step 3

Substitute either point into the equation. You can use either (-6, 7) or (-9, 8).

Step 3

Step 4

Step 4 the y intercept

Step 5

Substitute b, 5, into the equation from step 2.

$$ y = \frac{1}{3}x +\red{b} \\ y = \frac{1}{3}x +\red{5} $$

Problem 3

Find the equation of a line through the following the 2 points: (-3, 6) and (15, -6).

Step 1

step 1 find slope

Step 2

equation of line

Step 3

Substitute either point into the equation. You can use either (-3, 6) or (15, -6).

Step 3

Step 4

Step 4 the y intercept

Step 5

Substitute b, -1, into the equation from step 2.

Final Equation of Line

Example 2

Equation from 2 points using Point Slope Form

As explained at the top, point slope form is the easier way to go. Instead of 5 steps, you can find the line's equation in 3 steps, 2 of which are very easy and require nothing more than substitution! In fact, the only calculation, that you're going to make is for the slope.

The main advantage, in this case, is that you do not have to solve for 'b' like you do with slope intercept from.

Find the equation of a line through the points $$(3, 7)$$ and $$(5, 11)$$ .

Step 1

$$ \text { slope } \\ \frac{ y_2 - y_1}{x_2 - x_1} \\ \frac{ 11- 7 }{5-3} \\ \frac 4 2 = \boxed{2} $$

Step 2

$$ y - y_1 = m(x - x_1) \\ y - y_1 = \red 2 (x - x_1) $$

Step 3

Substitute either point as $$ x1, y1 $$ in the equation. You can use either $$(3, 7)$$ or $$ (5, 11) $$.

Using $$ (3, 7)$$ :

$$ y - 7 = 2(x - 3) $$

Using $$ (5, 11)$$ :

$$ y - 11 = 2(x - 5) $$

Practice Problems - Point Slope

Point Slope is definitely the easier form for what we are doing. It takes 2 steps and 1 of the steps is simply substitution! So, really the only thing you have to do is find the slope and then substitute a point.

Problem 1

Find the equation of a line through the following 2 points: (4, 5) and (8, 7).

Step 1

step 1 find slope

Step 2

y - y1 = m(x - x1)
y - y1 = ½(x - x1)

Step 3

Substitute either point into the equation. You can use either (4, 5) or (8, 7).

using (4, 5):
y - 5 = ½(x - 4)

using (5, 11) :
y - 11 = ½(x - 5)

Problem 2

If a line goes through the following 2 points, what is the line's equation? (-6, 7) and (-9, 8).

Step 1

step 1 find slope

Step 2

y - y1 = m(x - x1)
y - y1 = ⅓(x - x1)

Step 3

Substitute either point into the equation. You can use either (-6, 7) or (-9, 8).

using (-6, 7):
y - 7 = ⅓(x + 6)

using (-9, 8):
y - 8 = ⅓(x + 9)

Problem 3

Find the equation of a line through the following the 2 points: (-3, 6) and (15, -6).

Step 1

step 1 find slope

Step 2

y - y1 = m(x - x1)
y - y1 = ⅓(x - x1)

Step 3

Substitute either point into the equation (-3, 6) and (15, -6).

using (-3, 6):
y - 6 = ⅓(x + 3)

using (15, -6):
y + 6 = ⅓(x - 15)

If you read this whole page and looked at both methods (slope intercept form and point slope), you can see that it's substantially quicker to find the equation of line through 2 points by means of point slope.

Find the equation of a line through the points (3, 7) and (5, 11)

Slope Intercept Form

Step 1

$$ \text { slope } \\ \frac{ y_2 - y_1}{x_2 - x_1} \\ \frac{ 11- 7 }{5-3} \\ \frac 4 2 = \boxed{2} $$

Step 2

$$ y = \red{m} x + b \\ y = \red 2 x + b $$

Step 3 Using $$( \red 3, \red 7)$$

$$ y = 2x + b \\ \red 7 = 2 (\red 3) + b $$

Step 4

Step 4 the y intercept

Step 5

$$ y = 2x + \red b \\ y = 2x + \red 1 \\ \boxed { y = 2x + 1 } $$

Point Slope Form

Step 1

$$ \text { slope } \\ \frac{ y_2 - y_1}{x_2 - x_1} \\ \frac{ 11- 7 }{5-3} \\ \frac 4 2 = \boxed{2} $$

Step 2

$$ y - y_1 = m(x - x_1) \\ y - y_1 = \red 2 (x - x_1) $$

Step 3

Using $$ (3, 7)$$ :

$$ y - 7 = 2(x - 3) $$

Of course, you could do the last step with the point $$(5,11)$$ . Either point is acceptable.

How to Find the Y Intercept of Two Points

Source: https://www.mathwarehouse.com/algebra/linear_equation/write-equation/equation-of-line-given-two-points.php