top of page

Slope-Intercept Form Explained: How to Graph y = mx + b

Sep 4
7 min read

Updated: 4 days ago

Glowing blue ribbon weaves through golden rings above misty cliffs and waterfalls in a dark sci-fi landscape.

In the previous post, we explored linear relations and saw how the same relationship can be represented using words, a table of values, a graph, or an equation. One of the most useful ways to write the equation of a non-vertical line is called slope-intercept form.

Slope-intercept form is especially helpful because it turns an equation into a clear set of graphing instructions. Instead of choosing several x-values and building a complete table, we can identify two important features of the line, plot a few points, and graph the relation efficiently.

In my work as a math tutor, I have found that students become much more confident with linear relations once they understand what each part of y = mx + b actually tells them. This post explains the formula carefully and shows how to use it one step at a time.

What Is Slope-Intercept Form?

The slope-intercept form of a linear equation is: y = mx + b

In this equation:

  • x is the input, or independent variable.

  • y is the output, or dependent variable.

  • m is the slope, which represents the line's rate of change.

  • b is the y-intercept, which represents the value of y when x = 0.

The values of m and b give us the two pieces of information we need to graph the line:

Part of the Equation

Meaning

Graphing Instruction

b

The y-intercept

Start at (0, b) on the y-axis.

m

The slope, or rate of change

Use the rise and run to find another point.

In simple terms, b tells us where to start, and m tells us how to move.

What Does the Slope Mean?

The slope measures the steepness and direction of a line. More precisely, it compares the change in y with the corresponding change in x:

slope = rise/run = change in y/change in x

The word rise describes the vertical change, while run describes the horizontal change.

A positive slope rises as we move from left to right. A negative slope falls as we move from left to right. A slope of zero produces a horizontal line.

Value of the Slope

Direction of the Line

m > 0

The line rises from left to right.

m < 0

The line falls from left to right.

m = 0

The line is horizontal.

A vertical line has an undefined slope, so it cannot be written in the form y = mx + b. For example, the vertical line x = 4 does not have a y-value that can be calculated from one fixed slope and y-intercept.

What Does the Y-Intercept Mean?

The y-intercept is the point where a graph crosses the y-axis. Every point on the y-axis has an x-coordinate of 0, so the y-intercept always has the form: (0, b)

We can see why by substituting x = 0 into slope-intercept form:

y = m(0) + b

y = b

Therefore, when x = 0, the corresponding y-value is b. This gives us the point (0, b).

Students sometimes describe the y-intercept as merely "the number at the end" of the equation. That shortcut may help identify it, but understanding why it represents (0, b) makes the idea far more useful.

Example: How to Graph y = 2x + 3

Consider the equation:

y = 2x + 3

The equation is already written in slope-intercept form, so we can compare it directly with:

y = mx + b

This tells us that:

m = 2

and

b = 3

The slope is 2, and the y-intercept is 3.

Step 1: Plot the Y-Intercept

Since b = 3, the line crosses the y-axis at the point: (0, 3)

Begin at 0 on the x-axis and 3 on the y-axis. Plot the point (0, 3).

Step 2: Write the Slope as a Fraction

The slope is the whole number 2. Any whole number can be written over 1, so:

m = 2 = 2/1

This form makes the rise and run visible:

  • The numerator, 2, is the rise.

  • The denominator, 1, is the run.

Therefore, from the y-intercept, move up 2 units and right 1 unit.

Starting at (0, 3):

  • Moving right 1 changes the x-coordinate from 0 to 1.

  • Moving up 2 changes the y-coordinate from 3 to 5.

This gives us a second point: (1, 5)

Step 3: Repeat the Slope

From (1, 5), move up 2 units and right 1 unit again. This gives us: (2, 7)

Because a linear relation has a constant rate of change, the same rise and run can be repeated as many times as needed. We can also reverse both movements by going down 2 and left 1. Reversing both directions keeps the ratio equal to 2 and produces additional points on the same line.

Step 4: Draw the Line

Use a ruler or straight edge to draw a straight line through the points. Extend the line in both directions and add arrowheads when the graph represents the entire equation rather than a restricted real-world situation.

Coordinate graph showing y = 2x + 3 with a teal line, labeled y-intercept = 3, run 1, rise 2, on a grid.

The graph crosses the y-axis at 3 and rises 2 units for every 1-unit increase in x. The visual pattern therefore matches both parts of the equation.

Checking the Graph With a Table of Values

Slope-intercept form allows us to graph quickly, but a short table can confirm that our points satisfy the equation.

x

y = 2x + 3

Ordered Pair

0

2(0) + 3 = 3

(0, 3)

1

2(1) + 3 = 5

(1, 5)

2

2(2) + 3 = 7

(2, 7)

Every point found using the y-intercept and slope also appears in the table. The two methods are not competing procedures; they are different ways of describing the same linear relation.

How to Graph a Negative Slope

Now consider:

y = -3/2x + 4

In this equation:

m = -3/2

and

b = 4

Begin by plotting the y-intercept (0, 4).

The negative slope tells us that the line falls from left to right. We can interpret -3/2 as:

  • Down 3 units

  • Right 2 units

Starting at (0, 4), moving right 2 and down 3 gives the point (2, 1). Repeating the movement gives (4, -2).

We could also interpret the same slope as 3/-2 and move up 3 units and left 2 units. Either approach produces points on the same line because:

-3/2 = 3/-2

However, we should not make both the rise and run negative. The fraction -3/-2 is positive, not negative, and would graph a line rising from left to right.

How to Read Hidden Values in Slope-Intercept Form

Not every equation displays m and b as obvious numbers. Sometimes a value is implied.

Example 1: y = x - 4

The coefficient of x is not written, but x means 1x. Therefore:

m = 1

b = -4

The line begins at (0, -4) and moves up 1 and right 1.

Example 2: y = -x + 2

Here, -x means -1x. Therefore:

m = -1

b = 2

The line begins at (0, 2) and moves down 1 and right 1.

Example 3: y = 5

This equation can be written as:

y = 0x + 5

Therefore:

m = 0

b = 5

The graph is a horizontal line passing through (0, 5). Since y never changes, the rise is 0 for any nonzero run.

What If the Equation Is Not Written as y = mx + b?

Sometimes a linear equation must be rearranged before we can identify its slope and y-intercept.

For example:

2x + y = 7

To isolate y, subtract 2x from both sides:

y = -2x + 7

Now the equation is in slope-intercept form. We can see that:

m = -2

and

b = 7

The line crosses the y-axis at (0, 7) and moves down 2 units for every 1 unit it moves to the right.

Common Mistakes When Graphing y = mx + b

Students should watch for several common errors:

  • Starting at the slope instead of the y-intercept. The first point comes from b, so begin at (0, b).

  • Plotting b on the x-axis. The y-intercept belongs on the y-axis, where x = 0.

  • Using the slope backward. Slope is rise/run, not run/rise.

  • Forgetting that a whole-number slope has a denominator of 1. A slope of 2 means 2/1, not 1/2.

  • Losing a negative sign. A negative slope must fall as the graph moves from left to right.

  • Treating b as a point by itself. If b = 3, the y-intercept is the ordered pair (0, 3).

  • Drawing a freehand curve. A linear equation must produce a straight line.

A useful final check is to compare the graph with the signs of m and b. If m is positive, the line should rise from left to right. If b is negative, the line should cross the y-axis below the origin.

Why Slope-Intercept Form Is So Useful

Slope-intercept form makes two defining features of a non-vertical line immediately visible:

  1. The slope shows the constant rate of change.

  2. The y-intercept shows the output value when the input is zero.

This makes the form useful for more than graphing. It also helps us interpret real-world linear models, compare two linear relations, identify parallel lines, and understand how changing an equation changes its graph.

For example, the equations y = 2x + 3 and y = 2x - 5 have the same slope but different y-intercepts. Their graphs rise at the same rate and are therefore parallel. By contrast, y = 4x + 3 has the same y-intercept as y = 2x + 3, but its greater slope makes it rise more steeply.

The Big Idea

Slope-intercept form should not feel like a string of unrelated symbols. The equation y = mx + b gives us direct information about a line:

  • b tells us where to start: (0, b).

  • m tells us how to move: rise/run.

  • Repeating the same movement creates points with a constant rate of change.

  • Connecting those points produces a straight line.

In my experience tutoring students in Winnipeg, graphing becomes much easier when students understand these meanings instead of relying only on memorized steps. The goal is not simply to remember that m is the slope and b is the y-intercept. It is to see how the equation controls the position, direction, and steepness of the graph.

At Tutor Advance, math tutoring in Winnipeg focuses on building that kind of connected understanding. When students can move confidently between equations, graphs, tables, and real-world situations, later topics such as systems of equations, functions, transformations, and analytic geometry become much more manageable.

Need more help with linear relations? If you’re in Winnipeg and looking for a tutor, Tutor Advance provides expert one-on-one support! Students and families looking for personalized math tutoring in Winnipeg can contact Tutor Advance to discuss the support that would best fit their needs.

 
 
bottom of page