Graphing a Line Using Slope and a Point
Learning Outcomes
- Draw the graph of a line using slope and a point on the line
- Write the equation of a line using slope and y-intercept
When graphing a line we found one method we could use is to make a table of values. We also learned how to graph lines by plotting points, by using intercepts, and by recognizing horizontal and vertical lines. However, if we can identify some properties of the line, we may be able to make a graph much quicker and easier.
Graphing a Line Using Slope and a Point on the Line
Another method we can use to graph lines is the point-slope method. Sometimes, we will be given one point and the slope of the line, instead of its equation. When this happens, we use the definition of slope to draw the graph of the line.
example
Graph the line passing through the point
(1,−1) whose slope is
m=43.
Solution
Plot the given point,
(1,−1).

Use the slope formula
m=runrise to identify the rise and the run.
m=43runrise=43rise=3run=4
Starting at the point we plotted, count out the rise and run to mark the second point. We count
3 units up and
4 units right.

Then we connect the points with a line and draw arrows at the ends to show it continues.

We can check our line by starting at any point and counting up
3 and to the right
4. We should get to another point on the line.
try it
[ohm_question]147024[/ohm_question]
Graph a line given a point and a slope
-
- Plot the given point.
- Use the slope formula to identify the rise and the run.
- Starting at the given point, count out the rise and run to mark the second point.
- Connect the points with a line.
example
Graph the line passing through the point
(−1,−3) whose slope is
m=4
Answer:
Solution
Plot the given point.
Identify the rise and the run. |
m=4 |
Write 4 as a fraction. |
runrise=14 |
|
rise=4 run=1 |
Count the rise and run.

Mark the second point. Connect the two points with a line.
try it
[ohm_question]147026[/ohm_question]
You can watch the video below for another example of how to graph a line given a point and a slope.
https://youtu.be/ngpAgpMjozw
A special case for graphing using the point-slope method is when the given point is the y-intercept. We will give some examples here and then we will show below why this case is so important.
example
Graph the line with
y -intercept
(0,2) and slope
m=−32
Answer:
Solution
Plot the given point, the y -intercept (0,2).
Use the slope formula m=runrise to identify the rise and the run.
m=−32runrise=3−2rise=−2run=3
Starting at (0,2), count the rise and the run and mark the second point.

Connect the points with a line.
try it
[ohm_question]147025[/ohm_question]
Slope-Intercept Form
We will now show you what is so special about the case in which the given point is the y-intercept. The slope can be represented by m and the y-intercept, where it crosses the axis and x=0, can be represented by (0,b) where b is the value where the graph crosses the vertical y-axis. Any other point on the line can be represented by (x,y).
Slope-Intercept Form of a Linear Equation
In the equation
y=mx+b,
- m is the slope of the graph.
- b is the y value of the y-intercept of the graph.
This formula is known as the slope-intercept equation. If we know the slope and the y-intercept we can easily find the equation that represents the line.
Example
Write the equation of the line that has a slope of
21 and a
y-intercept of
−5.
Answer: Substitute the slope (m) into y=mx+b.
y=21x+b
Substitute the
y-intercept (b) into the equation.
y=21x−5
Answer
y=21x−5
We can also easily find the equation by looking at a graph and finding the slope and y-intercept.
Example
Write the equation of the line in the graph by identifying the slope and
y-intercept.
Answer: Identify the point where the graph crosses the y-axis (0,3). This means the y-intercept is 3.
Identify one other point and draw a slope triangle to find the slope.
The slope is 3−2
Substitute the slope and y value of the intercept into the slope-intercept equation.
y=mx+by=3−2x+by=3−2x+3
Answer
y=3−2x+3
We can also move in the opposite direction. When we are given an equation in the slope-intercept form of y=mx+b, we can easily identify the slope and y-intercept and graph the equation from this information. When we have an equation in slope-intercept form we can graph it by first plotting the y-intercept, then using the slope, find a second point and connecting the dots.
Example
Graph
y=21x−4 using the slope-intercept equation.
Answer: First, plot the y-intercept.
Now use the slope to count up or down and over left or right to the next point. This slope is 21, so you can count up one and right two—both positive because both parts of the slope are positive.
Connect the dots.
(NOTE: it is important for the equation to first be in slope intercept form. If it is not, we will have to solve it for y so we can identify the slope and the y-intercept.)
Try It
[ohm_question]79774[/ohm_question]
You can watch the video below for another example of how to write the equation of the line, when given a graph, by identifying the slope and y-intercept.
https://youtu.be/GIn7vbB5AYo
Contribute!
Did you have an idea for improving this content? We’d love your input.
Licenses & Attributions
CC licensed content, Shared previously
CC licensed content, Specific attribution
- Beginning and Intermediate Algebra. Authored by: Tyler Wallace. License: CC BY: Attribution.