← All guides

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.

Video lesson: Writing y = mx + b (free, with subtitles)

y = mx + b

Graphing y = −½x + 4

  1. Start at the intercept: the point (0, 4).
  2. Use the slope −½: go 2 right and 1 down to (2, 3). Again to (4, 2).
  3. Draw the line through the points.

Writing the equation through two points

Find the line through (2, 3) and (6, 11).

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

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.

Practice: Writing y = mx + b All courses