Skip to content
eurekami
Menu

Grades 7 to 9 (Years 8 to 10 in England)

Linear graph explorer: y = mx + b

This explorer graphs y = mx + b on a coordinate grid, with steppers for the slope m (including fractions like 1/2) and the y-intercept b, a slope triangle and a table of values. Start by setting b to 0 and stepping m through its values to see how the line turns.

Loading…

What the explorer shows

Every straight line that isn't vertical can be written as y = mx + b. The slope m says how steep the line is and which way it goes; the y-intercept b says where it crosses the y-axis. On this page, m steps through whole numbers and fractions from −3 to 3 (such as −2/3, 1/2 and 3/2), and b runs from −8 to 8. You can also drag the green dot on the y-axis to change b.

The slope triangle starts at the y-intercept: the blue side is the run and the red side is the rise. For m = 2/3, the line goes across 3 and up 2. Dots mark every point where the line passes through whole-number coordinates, and the table of values lists y for x from −2 to 3. The readout gives the equation and where the line crosses both axes.

Why explore lines this way

Changing one number at a time and watching the line separates the two ideas clearly: b slides the line up and down without turning it, and m turns it without moving the intercept. The slope triangle connects the number m to rise over run, and the table connects it to the pattern in the y-values. Match this line and Through two points then ask students to work backward from a graph to an equation.

Common mix-ups

  • Swapping rise and run. A slope of 1/2 goes across 2 and up 1, so it is gentler than a slope of 2.
  • Thinking a negative slope means the line is below the x-axis. A negative slope means the line goes down from left to right.
  • Reading b as where the line crosses the x-axis. b is where it crosses the y-axis, at x = 0.
  • Thinking a slope of 0 has no line. y = 3 is a flat line through (0, 3).

A 10-minute lesson on slope

  • Set m = 1 and b = 0. Ask students to predict what m = 2 will look like, then show it.
  • Step to m = 1/2 and compare the slope triangles.
  • Change b only and ask what stays the same.
  • Use the table to show that y changes by m for each step of 1 in x.
  • Finish with two rounds of Match this line.

Where it fits by grade

  • Grade 7: proportional relationships through the origin, y = kx, where k is the unit rate (7.RP.A.2).
  • Grade 8: graph proportional relationships and interpret the unit rate as slope (8.EE.B.5), use similar triangles to explain why slope is the same between any two points and derive y = mx + b (8.EE.B.6), and interpret y = mx + b as a linear function (8.F.A.3).
  • High school: graph linear functions and show intercepts (HSF-IF.C.7a).
  • England writes y = mx + c and calls the slope the gradient. Key Stage 3 students rearrange linear equations into this form and interpret gradients and intercepts, and this continues at GCSE.

Learning more

Negative numbers, ratios and solving equations are skills on Eurekami's skill map, and Daily Practice brings them back when they start to fade. Exam Prep includes GCSE Maths practice papers, and the AI tutor asks guiding questions when a graphing problem is tricky.

Questions people ask

What do m and b mean in 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 where the line crosses the y-axis.
How do you find the slope from a graph?
Pick two points on the line where it crosses grid corners. Count the rise (up or down) and the run (across) between them. The slope is rise divided by run.
What does a negative slope look like?
The line goes down as you move from left to right. The more negative the slope, the steeper the drop.
Is y = mx + b the same as y = mx + c?
Yes. They are the same equation with a different letter for the intercept. y = mx + b is usual in the US and y = mx + c in England.

More virtual manipulatives

Keep exploring

Math, English and science that click.

Linear Graph Explorer: y = mx + b | Eurekami