Slope-intercept form: y = mx + b explained
What m and b mean in y = mx + b, how to graph a line from it, and how to write the equation of a line through two points.
y = mx + b
- m is the slope: how much y changes when x goes up by 1.
- b is the y-intercept: the value of y when x = 0, where the line crosses the y-axis.
Graphing y = −½x + 4
- Start at the intercept: the point (0, 4).
- Use the slope −½: go 2 right and 1 down to (2, 3). Again to (4, 2).
- Draw the line through the points.
Writing the equation through two points
Find the line through (2, 3) and (6, 11).
- Slope: m = (11 − 3)/(6 − 2) = 8/4 = 2, so y = 2x + b.
- Put in one point, (2, 3): 3 = 2(2) + b, so 3 = 4 + b and b = −1.
- Answer: y = 2x − 1.
Check with the other point: 2(6) − 1 = 11 ✓
In real life
A taxi charges $3 to start plus $2 per mile: cost = 2 × miles + 3. The slope 2 is the rate (dollars per mile) and the intercept 3 is the starting amount.
Common mistakes
- Reading b as the x-intercept. b is where the line crosses the y-axis.
- Equation not solved for y. 2y = 4x + 6 must become y = 2x + 3 before you read m and b.
Practice it free
Watch the full lesson and try questions with new numbers every time, with the worked steps shown if you get one wrong.