Allday Education

Slope-Intercept Form

Slope-intercept form is the equation y=mx+by = mx + b, and it's the most useful way to write a line because both numbers in it mean something you can see. The mm is the slope — how steep the line is. The bb is the yy-intercept — where the line crosses the yy-axis.

Once you can read mm and bb off an equation, you can graph any line in about ten seconds, and you can reverse the process to write the equation of any line you're shown. Both directions show up constantly in Algebra 1.

What m and b tell you

In y=mx+by = mx + b, the coefficient of xx is the slope mm. In y=4x+3y = 4x + 3, the slope is 44. In y=x+6y = -x + 6, the slope is 1-1, because x-x means 1x-1 \cdot x. If the slope came from two points, it's the value y2y1x2x1\dfrac{y_2 - y_1}{x_2 - x_1}.

The constant term is the yy-intercept bb — the yy-value where the line crosses the yy-axis, at the point (0,b)(0, b). In y=4x+3y = 4x + 3, the line crosses at (0,3)(0, 3). If there is no constant written, as in y=5xy = 5x, then b=0b = 0 and the line passes through the origin.

The graph below shows two lines with the same yy-intercept, b=1b = 1: the black line is y=2x+1y = 2x + 1 and the blue line is y=x+1y = -x + 1. Both cross the yy-axis at the same point, but the slopes send them in different directions — positive slope climbs to the right, negative slope falls.

-3-2-11234-3-2-11234xy

Graphing a line from y = mx + b

Step 1: plot the yy-intercept. Put a point at (0,b)(0, b) on the yy-axis. That's the one point you get for free.

Step 2: use the slope to find a second point. Write mm as a fraction — the top is the vertical change, the bottom is the horizontal change. For m=23m = \dfrac{2}{3}, move up 22 and right 33 from the intercept and plot a second point. For a negative slope like m=2=21m = -2 = \dfrac{-2}{1}, move down 22 and right 11.

Step 3: draw the line through the two points. Two points determine the line — extend it in both directions with a straightedge.

Writing the equation from a graph

Go in reverse. First read bb: find where the line crosses the yy-axis. Then find mm: pick two points where the line passes exactly through grid corners and compute y2y1x2x1\dfrac{y_2 - y_1}{x_2 - x_1}. Finally, drop both numbers into y=mx+by = mx + b.

If the equation you're given isn't in slope-intercept form — something like 2x+y=62x + y = 6 — solve it for yy first. Subtracting 2x2x from both sides gives y=2x+6y = -2x + 6, and now the slope and intercept are visible.

Worked examples

Example 1: read m and b from an equation

Identify the slope and yy-intercept of y=4x7y = 4x - 7.

Match against the formy=mx+by = mx + b
The coefficient of xx is the slopem=4m = 4
The constant term is the yy-interceptb=7b = -7

Answer: slope 44, yy-intercept 7-7 — the line crosses the yy-axis at (0,7)(0, -7)

Example 2: graph a line from its equation

Graph y=23x+1y = \dfrac{2}{3}x + 1.

Plot the yy-intercept(0,1)(0, 1)
From there, use the slope: up 22, right 33(0+3, 1+2)=(3,3)(0 + 3,\ 1 + 2) = (3, 3)
Check the second point in the equationy=23(3)+1=3y = \dfrac{2}{3}(3) + 1 = 3
Draw the line through (0,1)(0, 1) and (3,3)(3, 3)

Answer: the line through (0,1)(0, 1) and (3,3)(3, 3)

Example 3: write the equation from a slope and intercept

A line has slope 55 and crosses the yy-axis at (0,2)(0, -2). Write its equation.

Start with the formy=mx+by = mx + b
Substitute the slopem=5m = 5
Substitute the yy-interceptb=2b = -2
Write the equationy=5x2y = 5x - 2

Answer: y=5x2y = 5x - 2

Example 4: rearrange into slope-intercept form

Write 2x+y=62x + y = 6 in slope-intercept form and identify mm and bb.

Start with the equation2x+y=62x + y = 6
Subtract 2x2x from both sidesy=2x+6y = -2x + 6
Read off the slope and interceptm=2,b=6m = -2, \quad b = 6

Answer: y=2x+6y = -2x + 6, with slope 2-2 and yy-intercept 66

Try one yourself

-4-3-2-112345-4-224xy

Common questions

What if the equation isn't written as y = mx + b?

Solve it for yy first. Move the xx-term to the other side, then divide everything by the coefficient of yy if there is one. For example, 3x+y=93x + y = 9 becomes y=3x+9y = -3x + 9, so m=3m = -3 and b=9b = 9.

What does the line look like when m is negative? When m is 0?

A negative slope falls from left to right — the bigger m|m| is, the steeper the drop. A slope of 00 gives y=by = b, a horizontal line. A vertical line can't be written in slope-intercept form at all, because its slope is undefined.

Is the yy-intercept a point or a number?

Both usages are common. The yy-intercept bb is a number, and the line crosses the yy-axis at the point (0,b)(0, b). If a question asks for the yy-intercept of y=3x5y = 3x - 5, answering 5-5 or (0,5)(0, -5) describes the same crossing.

Want the video version?

Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.

Try it for $1