Allday Education

Slope-Intercept Form

Slope-intercept form describes a whole line with just two numbers: y=mx+by = mx + b. The mm is the slope — how steeply the line climbs or falls — and the bb is the yy-intercept, the height where the line crosses the yy-axis.

Once you can read mm and bb, equations and graphs become two views of the same thing. Given the equation, you can sketch the line in seconds; given the graph, you can write its equation. This lesson is the bridge between them.

What m and b tell you

In y=mx+by = mx + b, the slope mm is the number multiplying xx, and bb is the constant on the end. The line crosses the yy-axis at the point (0,b)(0, b) — substitute x=0x = 0 and the mxmx term vanishes, leaving y=by = b.

So y=2x+1y = 2x + 1 is a line that crosses the yy-axis at (0,1)(0, 1) and rises 22 for every 11 step right. That is the line drawn below.

-3-2-1123-2-11234xy

Reading m and b from an equation

For an equation already in the form y=mx+by = mx + b, just read the two numbers: in y=3x+4y = -3x + 4, the slope is m=3m = -3 and the yy-intercept is b=4b = 4. Keep the sign with the number it belongs to.

Two cases trip students up. When xx appears alone, as in y=x5y = x - 5, the coefficient is 11, so m=1m = 1 and b=5b = -5. And when the terms come in the other order, as in y=73xy = 7 - 3x, rewrite it with the xx-term first: y=3x+7y = -3x + 7, so m=3m = -3 and b=7b = 7 — the 77 is not the slope just because it comes first.

Writing the equation from a graph

Work in two reads. First find bb: look where the line crosses the yy-axis. Then find mm: starting from that crossing point, count the rise and run to the next clean grid point on the line.

Always start with the intercept — it anchors the line. If the line crosses at (0,3)(0, -3) and rises 11 for every 22 steps right, the equation is y=12x3y = \dfrac{1}{2}x - 3.

Worked examples

Example 1: read m and b from the equation

Name the slope and yy-intercept of y=3x+4y = -3x + 4.

Match the equation to the formy=mx+by = mx + b
The number multiplying xx is the slopem=3m = -3
The constant term is the yy-interceptb=4b = 4

Answer: m=3m = -3, b=4b = 4

Example 2: write the equation from a graph

A line crosses the yy-axis at (0,1)(0, 1) and rises 22 units for every 11 unit right. Write its equation.

The crossing point gives the interceptb=1b = 1
Rise over run gives the slopem=21=2m = \dfrac{2}{1} = 2
Write the equationy=2x+1y = 2x + 1

Answer: y=2x+1y = 2x + 1

Example 3: a real-world equation

A gym charges a $20 sign-up fee plus $15 per month. Write an equation for the total cost yy after xx months.

The one-time fee is the starting valueb=20b = 20
The monthly charge is the rate of changem=15m = 15
Write the equationy=15x+20y = 15x + 20

Answer: y=15x+20y = 15x + 20

Try one yourself

Common questions

What if there is no constant term?

Then b=0b = 0 and the line passes through the origin. An equation like y=4xy = 4x is still in slope-intercept form — it is also a proportional relationship, with the slope playing the role of the constant of proportionality.

Is b where the line crosses the x-axis?

No — the yy-axis. The yy-intercept is the point (0,b)(0, b), where x=0x = 0. The spot where the line crosses the xx-axis is a different point with its own name, the xx-intercept.

What if the equation is written like y=73xy = 7 - 3x?

Rewrite it with the xx-term first: y=3x+7y = -3x + 7. The slope is 3-3 and the intercept is 77. The slope is always the coefficient of xx, no matter where the term sits.

What does a negative slope mean for the graph?

The line falls as you read it left to right. In y=2x+6y = -2x + 6 the line starts high on the left, crosses the yy-axis at (0,6)(0, 6), and drops 22 for every step right.

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