Skip to ContentGo to accessibility page
Algebra 1

1.12.5 Writing an Equation Given Two Points

Algebra 11.12.5 Writing an Equation Given Two Points

1.12.5 Writing an Equation Given Two Points

1.12.5 • Writing an Equation Given Two Points

Activity

Answer the following questions.

1.

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

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=y2−y1x2−x1m=y2−y1x2−x1

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, y−y1=m(x−x1)y−y1=m(x−x1).

Simplify

y−y1=m(x−x1)y−(−2)=−15(x−2)y+2=−15x+25y−y1=m(x−x1)y−(−2)=−15(x−2)y+2=−15x+25

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

y=−15x−85y=−15x−85

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

y=−15x−85y=−15x−85

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=y2−y1x2−x1m=y2−y1x2−x1

Step 2 - Choose one point.

Step 3 - Substitute the values into the point-slope form: y−y1=m(x−x1)y−y1=m(x−x1).

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, y−y1=m(x−x1)y−y1=m(x−x1).

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

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

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
Reuse and redistribution of this content in digital or print format:
  • 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 prior written permission.
  • This book uses the Creative Commons Attribution-NonCommercial-ShareAlike License, which means that you can reuse and modify the material only for noncommercial purposes, must attribute OpenStax, and must distribute any derivative works under the same license.
  • Any commercial printing of this textbook, including using a local or custom printer, must be approved by OpenStax, and proper citation provided.
  • OpenStax-copyrighted images, activities, assessments, and similar components of this book are subject to the same licensing – CC-BY-NC-SA. They can be used for noncommercial purposes with attribution. Commercial use requires permission.
  • Permission requests: Anyone who intends to incorporate this content (including text, images, and other components) into large language models, use it in AI offerings, use it commercially (including in print), and/or has questions about another use case is welcome to complete our reuse request form.
Attribution information
  • If you are redistributing all or part of this book in a noncommercial 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 noncommercial digital format, then for every page that includes OpenStax content, you must license the derivative work under the same CC-BY-NC-SA license as the original, and 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

The information below includes the information needed to generate citations in most major styles (APA, MLA, etc.); you must reformat and organize the information as needed to fit the requirements of the style. Use the information below to generate a citation. We recommend using a citation tool such as this one.

© Apr 23, 2026 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, and Rice University name, and Rice University logo trademarks, or wordmarks are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.