Graphing Linear Equations – Explanation and Examples

Graphing linear equations requires using information about lines, including slopes, intercepts, and points, to convert a mathematical or verbal description into a representation of a line in the coordinate plane.

Though there are many ways to do this, this article will focus on how to use the slope-intercept form to graph a line. If you need a refresher on linear equations or graphing, make sure you review before moving forward with this section.

This topic will cover:

  • How to Graph Linear Equations
  • How to Find the Slope of a Linear Equation
  • Slope-Intercept Form
  • Point-Slope Form
  • Standard Form
  • How to Find the Intercept of a Linear Equation

How to Graph Linear Equations

Recall that any line can be defined by two points. Therefore, in order to graph a line, we just need to find two points and connect them.

Since lines go on forever, a graphical representation will usually include a line segment with arrows on both ends to show that the line continues infinitely in both directions.

We can also graph the line if we know one point and the slope. In particular, the slope will help us find the second point needed to draw the line.

How to Find the Slope of a Linear Equation

Often, we are given a linear equation and asked to graph the line from that. In this case, we will need to use the equation to find the slope and a point on the line.

The process for finding the slope of a line based on a linear equation depends on the type of linear equation presented.

Slope-Intercept Form

Slope-intercept form makes it easy to find the slope of a line. Recall that any linear equation in slope-intercept form looks like this:


In this equation, m is the slope of the line and b is the y-intercept. Therefore, we can read off the slope by finding the coefficient of x.

Point-Slope Form

It is also simple to find the slope of a line when the linear equation for it is in point-slope form. Recall that a linear equation in point-slope form looks like this:


In this equation, m is the slope, and (x1, y1) is any point on the line. Therefore, we can again find the slope easily by finding the number in front of the open parenthesis.

Standard Form

Finding the slope from standard form requires a little bit more algebraic manipulation. Recall that an equation written in standard form looks like this:


In this equation, A is positive, and A, B, and C are whole numbers.

Let’s convert this equation to slope-intercept form to find the slope. We can do this by solving for y.



Now, this equation is in slope-intercept form. Therefore, the slope is -A/B.

How to Find the Intercept of a Linear Equation

If we know the slope of a line, we can graph it once we find a point. Often, the easiest point to use is the y-intercept, which is the place where the line crosses the y-axis. It will always be of the form (0, b), where b is some real number.

If the y-intercept isn’t clear, we can use a different point as long as we know the slope.

Slope-Intercept Form

If we are given the slope-intercept form of a line’s equation, we are luck. It is super easy to find the y-intercept of slope-intercept form. As mentioned above, slope-intercept form is:


where m is the slope and b is the y-intercept. That is, whatever term in the equation does not have a variable is the y-intercept!

Point-Slope Form

Point-slope form tells us the slope of a line and one point on it. Sometimes, this point is the y-intercept, but sometimes it is not.

More often, it makes sense to algebraically manipulate the point-slope form and turn it into slope-intercept form. We can do this as follows, starting with the point-slope equation: y-y1=m(x-x1).

Then, distribute the slope:


Finally, add y1 to both sides:


Since x1 and y1 are both just numbers, y=mx-mx1+y1 is in slope-intercept form and mx1+y1 is the y-intercept. We can then proceed in graphing the line as above.

Standard Form

Earlier, we showed that we can convert standard form to slope-intercept form:


The term without any variable, C/B, is the y-intercept. We can now use this value to graph the equation, just as we did when presented with equations in slope-intercept form.


In this section, we will provide examples of how to use the slope and intercept to graph a line and step-by-step solutions.

Example 1

The line k has slope-intercept form: y=-3/2+2. Graph the line k.

Example 1 Solution

The line k is already in slope-intercept form. This makes it easy to find the information we need to graph it.

First, we need to find one point. The y-intercept, b, is the obvious choice. Since b=2, the y-intercept is the point (0, 2). That is, the y-intercept is on the y-axis, two units above the x-axis.

Now, we can use the slope to find another point on the graph. Again, since the given equation is in slope-intercept form, we know the slope is the coefficient of x, –3/2.

Notice that, if we read the slope out loud, we call it “minus three over two.” This means we can find a second point by going “down three (units), over two (units right).” Just remember that a negative number means down, while a positive number means up. In either case, move to the right when you say “over.”

Now, we have two points, (0, 2) and (2, -1). We should then line up a straight edge so that it aligns with the two points and trace a line through them. Ideally, this line should go a little beyond both points.

Finally, add arrows to the line segment to show it continues in both directions infinitely.

Example 2

A line k passes through the point (-1, -1) and has a slope of 1/2. Find the graph of k.

Example 2 Solution

Though graphing with the y-intercept is a great strategy, it does not always work. This example illustrates why.

Let’s use the given slope and point to find one version of the point-slope form of this equation: y+1=1/2(x+1).

Now, we can manipulate this equation to put it in slope-intercept form:



In this case, the y-intercept is not a whole number. While it is certainly possible to graph fractions, it is easier to graph numbers that land on grid lines. In this case, starting at the point (-1, -1) might make more sense.

First, plot the known point.

Again, we read the slope out loud as “1 over 2.” This means we can find a second point by locating the coordinates that are “up one (unit) over two (units right).”

Going up one gets us to the point (-1, 0), while going over two gets us to the point (1, 0).

Now, as in example 1, we can draw a line through the two points with arrows on the end.