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.
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
- Virtual fraction bars and fraction circles
- Interactive number line
- Virtual base ten blocks
- Multiplication arrays
- Interactive teaching clock
- Virtual money for counting practice
- Interactive coordinate plane
- Algebra balance scale
- Simple circuit simulator
- States of matter simulation
- Adding fractions with a model
- Virtual algebra tiles
- Alphabetical order game
- Virtual protractor and angle maker
- Animal cell diagram
- Area and perimeter builder
- Build an atom simulator
- Bar graph maker for kids
- Butterfly life cycle
- Capital letters practice
- Circle explorer
- Color mixing simulator
- Compare fractions
- Compound word maker
- CVC word blending
- Day and night simulator
- Decimal grid (hundredths)
- Decimal place value chart
- Digestive system diagram
- Division by sharing and grouping
- Equivalent fractions explorer
- Even and odd numbers
- Interactive factor tree
- Float or sink simulator
- Food chain builder
- Balanced and unbalanced forces simulator
- Dividing fractions
- Multiplying fractions with an area model
- Fraction number line
- Frog life cycle
- Function machine
- Virtual geoboard
- Gravity on other planets simulator
- Homophone picker
- Human body organs diagram
- Parts of the eye
- Human heart diagram
- Human skeleton diagram
- Interactive hundred chart
- Insect body parts
- Virtual integer chips
- Lever and seesaw simulator
- Light reflection simulator
- Line plot maker with fractions
- Magnets simulator
- Mean, median and mode explorer
- Virtual measuring jug
- Virtual measuring ruler
- Mixed number builder
- Moon phases simulator
- Interactive multiplication chart
- Nets of 3D shapes
- Virtual number bonds
- Interactive open number line
- Parts of a flower
- Parts of a plant diagram
- Parts of a wave diagram
- Parts of speech sorter
- Growing pattern builder
- Pendulum simulator
- Percent bar model
- Interactive periodic table
- pH scale
- Pictograph maker for kids
- Pie chart maker
- Interactive place value chart
- Plant cell diagram
- Plant growth experiment
- Plant life cycle
- Polygon explorer
- Predator and prey simulation
- Probability simulator
- Pulley simulator
- Punctuation fixer
- Punnett square simulator
- Pythagorean theorem explorer
- Quadratic graph explorer
- Ratio table and double number line
- Virtual rekenrek (20-bead rack)
- Rounding hill
- Reasons for the seasons simulator
- Sentence builder
- Shadows simulator
- Interactive Sieve of Eratosthenes
- Skip counting frog
- Solar system diagram
- Sound waves simulator
- Speed, distance and time simulator
- Spinner designer
- Syllable counter
- Symmetry mirror
- Synonym and antonym match
- Virtual ten frames
- Interactive thermometer
- Tooth diagram
- Transformations on a coordinate grid
- Two dice sums simulator
- Volume with unit cubes
- Water cycle diagram
- Word builder
- Word families
Keep exploring
Practice these topics
More manipulatives
- Virtual fraction bars and fraction circles
- Interactive number line
- Virtual base ten blocks
- Multiplication arrays
- Interactive teaching clock
- Virtual money for counting practice
- Interactive coordinate plane
- Algebra balance scale
- Simple circuit simulator
- States of matter simulation
- Adding fractions with a model
- Virtual algebra tiles
- Alphabetical order game
- Virtual protractor and angle maker
- Math by topicFractions, times tables, long division and more
- Math by gradeEvery skill from kindergarten to 8th grade
- English and grammarNouns, verbs, commas, spelling and more
- Reading passagesShort stories with read-aloud and questions
- Science by gradePlants, forces, matter, space and more
- Printable worksheetsPrint, or do them on a tablet with a finger or pen
- Free math games3D games where every move is a math question
- Fraction calculatorEvery step shown, from mixed numbers to simplest form
- Math 5-a-dayFive fresh warm-up questions every day
- Guides for parentsHow to help with fractions, tables, tests and more
Math, English and science that click.
