Back
Graphing a Line Using the Slope and Y-Intercept
> ... Math > Slopes, Intercepts, Equation of a Straight Line > Graphing a Line Using the Slope and Y-Intercept

In this lesson, we learn how to graph our line using the y-intercept and the slope. First, we know that the y-intercept (b) is on the y-axis, so we graph that point. Next, we use the slope to find a second point in relation to that intercept. The following video will show you how this is done with two examples.

Graphing a Line Using the Slope and Y-Intercept

Video Source (05:37 mins) | Transcript

Steps for graphing an equation using the slope and y-intercept:

  1. Find the y-intercept = b of the equation \( y = mx + b \).
  2. Plot the y-intercept. The point will be \((0, b)\).
  3. Find the slope=m of the equation \( y = mx + b \).
  4. Make a single step, using the rise and run from the slope. (Make sure you go up to the right if it’s positive and down to the right if it’s negative.)
  5. Connect those two points with your line.

Additional Resources

Practice Problems

  1. Plot the line \(y=−3x+2\) starting with the y-intercept and then using the slope. (
    Solution
    x
    Solution:
    Note: The graph you create may look slightly different depending on the spacing you choose for your x and y-axis. The correct graph should still have the same direction of slope and the x and y-intercepts should be the same.
    A coordinate plane with a dashed line passing through the points (-1,5), (0,2), (1,-1) and (2,-4).
    Details:
    To graph this line we need to identify the slope and the y-intercept. The equation is written in slope-intercept form, y=mx+b, where m is the slope and b is the y-intercept.

    Step 1: Find the slope and the y-intercept of the line:

    The equation of the line is

    \({\text{y}}={\color{red}-3}{\text{x}}{\color{Blue}+2}\)

    So the slope is \({\color{red}-3}\), and the y-intercept is \({\color{Blue}2}\).

    Step 2: Graph the y-intercept:

    A coordinate plane with the point (0,2) graphed on it.

    This is a picture of a coordinate plane with the point (0,2) graphed on it.

    Step 3: Find another point on the line using the slope:

    The slope is \(−3\), which we can rewrite as \(-\dfrac{3}{1}\). Slope is \(\dfrac{\text{rise}}{\text{run}}\), which means that to find another point on the graph, we start at the y-intercept and then move down three spaces, then one space to the right:

    A coordinate plane. The point (0,2) has been graphed. There is an arrow pointing down three spaces from (0,2) to the point (0, -1). There is a horizontal arrow pointing to the right from (0, -1) to the point (1, -1).

    This is a picture of a coordinate plane. The point \((0,2)\) has been graphed. There is an arrow pointing down three spaces from \((0,2)\) to the point \((0,−1)\). There is another arrow pointing from \((0,−1)\) to the point \((1,−1)\).

    Step 4: Draw a line that passes through the points:

    A coordinate plane with the points (0, 2) and (1, -1) graphed on it. There is a line passing through both points.

    This is a picture of a coordinate plane with the points \((0,2)\) and \((1,−1)\) graphed on it. There is a line passing through both points.
    )
  2. Plot the line \(y=\dfrac{1}{2}x−3\) starting with the y-intercept and then using the slope. (
    Solution
    x
    Solution:
    Note: The graph you create may look slightly different depending on the spacing you choose for your x and y-axis. The correct graph should still have the same direction of slope and the x and y-intercepts should be the same.
    A coordinate plane with a dashed line passing through the points (-4,-5),(-3, -4.5), (-2, -4), (-1,-3.5), (0, -3), (1,-2.5), (2, -2), (3, -1.5), (4, -1), (5, -0.5), (6, 0), (7, 0.5) and (8,1).
    )
  3. Plot the line \(y=−\dfrac{3}{5}x+1\) starting with the y-intercept and then using the slope. (
    Solution
    x
    Solution:
    Note: The graph you create may look slightly different depending on the spacing you choose for your x and y-axis. The correct graph should still have the same direction of slope and the x and y-intercepts should be the same.
    A coordinate plane with a dashed line passing through the points (-6, 4.6),(-5, 4), (-4, 3.4), (-3, 2.8), (-2, 2.2), (-1, 1.6), (0, 1), (1, 0.4), (2, -0.2), (3, -0.8), (4, -1.4), (5, -2), (6, -2.6), (7, -3.2) and (8, -3.8).
    )
  4. Plot the line \(y=2x+3\) starting with the y-intercept and then using the slope. (
    Solution
    x
    Solution:
    Note: Your graph may look a little different depending on the spacing you choose for your x and y-axis. Notice in this graph the hash marks for the x-axis are farther apart than the hash marks for the y-axis. This artificially makes the graph look less steep than it is if the hash marks are the same distance apart. However, sometimes this is helpful in order to better fit the data into the graph.
    A coordinate plane with a line passing through the points (3,9), (2,7), (1,5), (0,3), (-1,1), (-2,-1), (-3,-3), (-4,-5), (-5,-7) and (-6,-9).
    )
  5. Plot the line \(y=−x−4\) starting with the y-intercept and then using the slope. (
    Solution
    x
    Solution:
    Note: In this graph, the spacing of the hash marks on the x and y-axis are spaced almost identically.
    A coordinate plane with a line passing through the points (3,-7), (2,-6), (1,-5), (0,-4), (-1,-3), (-2,-2), (-3,-1), (-4,0), (-5,1), (-6,2), (-7,3), (-8,4) and (-9,5).
    Details:
    To graph this line we need to identify the slope and the y-intercept. The equation is written in slope-intercept form, \(y=mx+b\), where m is the slope and b is the y-intercept.

    Step 1: Find the slope and the y-intercept of the line:

    The equation of the line is

    \({\text{y}}={{\color{Red} -\text{x}}}{\color{Blue}{-}4}\)

    Keep in mind that \({\color{red}-}{\color{Red}{\text{x}}}\) is equal to \({\color{red}-1}{\color{Red}{\text{x}}}\), so an equivalent equation is:

    \({\text{y}}={\color{red}-1}{\text{x}}{\color{Blue}{-}4}\)

    So the slope is \({\color{red}-1}\), and the y-intercept is \({\color{blue}-4}\)

    Step 2: Graph the y-intercept:

    A coordinate plane with the point (0, -4) graphed on it.

    This is a picture of a coordinate plane with the point \((0,−4)\) graphed on it.

    Step 3: Find another point on the line using the slope:

    The slope is \(−1\), which we can rewrite as \(-\dfrac{1}{1}\). Slope is \(\dfrac{\text{rise}}{\text{run}}\), which means that to find another point on the graph, we start at the y-intercept and then move down one space, then one space to the right:

    A coordinate plane with the points (0, -4) and (1, -5) graphed on it. There is a vertical arrow pointing from (-4, 0) down to (-5, 0) and a horizontal arrow pointing right from (-5, 0) to (1, -5).

    This is a picture of a coordinate plane with the points \((0,−4)\) and \((1,−5)\) graphed on it. There is an arrow pointing from \((−4,0)\) to \((−5,0)\) and an arrow pointing from \((−5,0)\) to \((1,-5)\)

    Step 4: Draw a line that passes through the points:

    A coordinate plane with the points (0, -4) and (1, -5) graphed on it. There is a line passing through both points.

    This is a picture of a coordinate plane with the points \((0,−4)\) and \((1,−5)\) graphed on it. There is a line passing through both points.
    )
  6. Plot the line \(y=\dfrac{4}{5}x+4\) starting with the y-intercept and then using the slope. (
    Solution
    x
    Solution:
    A coordinate plane with a line passing through the points (3,6.4), (2,5.6), (1,4.8), (0,4), (-1,3.2), (-2,2.4), (-3,1.6), (-4,0.8), (-5,0), (-6,-0.8), (-7,-1.6), (-8,-2.4) and (-9,-3.2).
    )

Need More Help?

  1. Study other Math Lessons in the Resource Center.
  2. Visit the Online Tutoring Resources in the Resource Center.
  3. Contact your Instructor.
  4. If you still need help, Schedule a Tutor.