Skip to ContentGo to accessibility page
Algebra 1

1.12.2 Writing an Equation Given the Slope and y -intercept

Algebra 11.12.2 Writing an Equation Given the Slope and y -intercept

1.12.2 Writing an Equation Given the Slope and y -intercept

1.12.2 • Writing an Equation Given the Slope and y -intercept

Activity

Recall that the slope-intercept form of the equation of a line is y = m x + b y = m x + b , where m m is the slope and b b is the 𝑦 𝑦 -intercept. The 𝑦 𝑦 -intercept is the point where the graph crosses the 𝑦 𝑦 -axis. For 𝑦 𝑦 -intercept 𝑏 𝑏 , the coordinates of the point are ( 0 , 𝑏 ) ( 0 , 𝑏 ) .

In the following activity, you will complete a series of questions regarding this information.

For questions 1 – 3, determine the slope, m m , and the y y -intercept, b b .

1.

y = 2 x + 5 y = 2 x + 5

2.

y = − 3 x + 2 y = − 3 x + 2

3.

y = − 1 5 x − 1 y = − 1 5 x − 1

For questions 4 – 7, match the correct slope and y y -intercept to the given equations.

  1. slope: − 1 2 − 1 2 , y y -intercept: − 3 − 3
  2. slope: 2 2 , y y -intercept: − 3 − 3
  3. slope: − 2 − 2 , y y -intercept: 3 3
  4. slope: 3 3 , y y -intercept: − 2 − 2
4.

What is the correct slope and y y -intercept of y = − 2 x + 3 y = − 2 x + 3 ?

5.

What is the correct slope and y y -intercept of y = 3 x − 2 y = 3 x − 2 ?

6.

What is the correct slope and y y -intercept of y = 2 x − 3 y = 2 x − 3 ?

7.

What is the correct slope and y y -intercept of y = − 1 2 x − 3 y = − 1 2 x − 3 ?

8.

Write the equation of a line, in slope-intercept form, that has a slope of −9 −9 and a y y -intercept at ( 0, −4 ) ( 0, −4 ) .

9.

Write the equation of a line, in slope-intercept form, that has a slope of 2 5 2 5 and a y y -intercept at ( 0, −4 ) ( 0, −4 ) .

Self Check

Write the equation of a line in slope-intercept form with a slope of  − 3 4 and a y -intercept of − 2 .
  1. y = 3 4 x − 2
  2. 3 x + 4 y = − 8
  3. y = − 3 4 x + 2
  4. y = − 3 4 x − 2

Additional Resources

Write Equations Given a Slope and y y -Intercept

We can determine the slope and intercept of a line if the equation is written in slope-intercept form, y = m x + b y = m x + b . Now we will do the reverse—we will start with the slope and y y -intercept and use them to find the equation of the line.

Example 1

Find the equation of a line with slope − 1 − 1 and y y -intercept ( 0 , − 3 ) ( 0 , − 3 ) .

Solution

Step 1 - Name the slope.

m = − 1 m = − 1

Step 2 - Name the y y -intercept.

b = − 3 b = − 3

Step 3 - Substitute the values into y = m x + b y = m x + b .

y = − 1 x + − 3 y = − 1 x + − 3

y = − x − 3 y = − x − 3

The same information can be picked up from a graph of a line.

Example 2

Find the equation of the line shown in the graph.

Solution

Step 1 - Find the slope by counting the rise and run.

m = r i s e r u n m = r i s e r u n

From ( 0 , − 4 ) ( 0 , − 4 ) to ( 3 , − 2 ) ( 3 , − 2 ) , the slope is m = 2 3 m = 2 3 .

Step 2 - Find the y y -intercept.

y y -intercept ( 0 , − 4 ) ( 0 , − 4 )

b = − 4 b = − 4

Step 3 - Substitute the values into y = m x + b y = m x + b .

y = m x + b y = m x + b

y = 2 3 x − 4 y = 2 3 x − 4

Try it

Write Equations Given a Slope and y y -Intercept

Write the equation of the line graphed below in slope-intercept form:

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.