Skip to ContentGo to accessibility pageKeyboard shortcuts menu
OpenStax Logo
Algebra 1

1.12.5 Writing an Equation Given Two Points

Algebra 11.12.5 Writing an Equation Given Two Points

Search for key terms or text.

Activity

Answer the following questions.

1.

Use the graph below to pick two points and find the slope between the two points.

A graph with an orange downward-sloping line passing through the points (-2, 3) and (4, 1), marked by blue dots. The x-axis ranges from -8 to 8, and the y-axis ranges from 0 to 6.
2.

Use your two points in the slope formula to confirm the slope is correct.

3.

Using the slope and a point, write your equation in point-slope form.

4.

Now write your equation in slope-intercept form.

5.

Convert slope-intercept form to standard form.

6.

Look at your equation and the original graph. What do you notice? How can you use a graph to check your equation?

Self Check

Which equation represents the slope-intercept form of the equation of a line containing the points  ( 2 , 4 ) and ( 1 , 3 ) ?
  1. y = 3 x 6
  2. y = 7 x + 10
  3. y = 1 3 x 7 3
  4. y = 1 3 x 10 3

Additional Resources

Find an Equation of the Line Given Two Points

So far, you have two options for finding an equation of a line: slope-intercept or point-slope. When you start with two points, it makes more sense to use the point-slope form.

But then you need the slope. You can find the slope with just two points and then use it and one of the given points to find the equation.

Example

Write the equation of a line that contains the points (3,1)(3,1) and (2,2)(2,2). Write the equation in slope-intercept form and standard form.

Step 1 - Find the slope using the given points.

Find the slope of the line through (3,1)(3,1) and (2,2)(2,2).

m=y2y1x2x1m=y2y1x2x1

m=2(1)2(3)m=2(1)2(3)

m=15m=15

m=15m=15

Step 2 - Choose one point.

Choose either point.

(x1,y1)(x1,y1)

(2,2)(2,2)

Step 3 - Substitute the values into the point-slope form, yy1=m(xx1)yy1=m(xx1).

Simplify

yy1=m(xx1)y(2)=15(x2)y+2=15x+25yy1=m(xx1)y(2)=15(x2)y+2=15x+25

Step 4 - Write the equation in slope-intercept form.

y=15x85y=15x85

Step 5 - Convert slope-intercept form to standard form.

y=15x85y=15x85

15x+y=8515x+y=85

5(15x+y)=5(85)5(15x+y)=5(85)

(1x+5y)=8(1x+5y)=8

Use this table for easy reference to find an equation of a line given two points.

Step 1 - Find the slope using the given points.

m=y2y1x2x1m=y2y1x2x1

Step 2 - Choose one point.

Step 3 - Substitute the values into the point-slope form: yy1=m(xx1)yy1=m(xx1).

Step 4 - Write the equation in slope-intercept form.

Step 5 - Convert slope-intercept form to standard form.

To find an equation of a line given the slope and a point, follow these steps:

Step 1 - Identify the slope.

Step 2 - Identify the point.

Step 3 - Substitute the values into the point-slope form, yy1=m(xx1)yy1=m(xx1).

Step 4 - Write the equation in slope-intercept form.

Step 5 - Convert slope-intercept form to standard form.

Try it

Try It: Writing the Equation of a Line Given Two Points

Write the equation of a line that contains the points (3,5)(3,5) and (3,4)(3,4).

Citation/Attribution

This book may not be used in the training of large language models or otherwise be ingested into large language models or generative AI offerings without OpenStax's permission.

Want to cite, share, or modify this book? This book uses the Creative Commons Attribution-NonCommercial-ShareAlike License and you must attribute OpenStax.

Attribution information
  • If you are redistributing all or part of this book in a print format, then you must include on every physical page the following attribution:

    Access for free at https://openstax.org/books/algebra-1/pages/about-this-course

  • If you are redistributing all or part of this book in a digital format, then you must include on every digital page view the following attribution:

    Access for free at https://openstax.org/books/algebra-1/pages/about-this-course

Citation information

© May 21, 2025 OpenStax. Textbook content produced by OpenStax is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License . The OpenStax name, OpenStax logo, OpenStax book covers, OpenStax CNX name, and OpenStax CNX logo are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.