Functions and slope for grades 6–8

Functions and slope describe how one amount changes with another: a rule that turns each input into one output, and how steep its graph is.

This guide puts every lesson in order, from variables in grade 6 to y = mx + b and describing graphs in grade 8, with practice that makes new graphs every time.

What kids learn about functions, grade by grade

Functions and slope lessons, grades 6–8

Each lesson has pictures, worked examples, practice questions with answers and a quiz that draws new graphs and tables every time. They are listed in a sensible teaching order.

The big idea

A function is a rule with one output for each input. Most functions in grade 8 are linear: they change by the same amount every step. Movie tickets at $8 each, a taxi at $3 plus $2 a mile and a candle burning 2 cm an hour are all linear. Their graphs are straight lines, and two numbers describe each one completely: how fast it changes (the slope) and where it starts (the y-intercept).

01234567802468101214161820Miles (x)Cost in $ (y)initial value $3+$2 per mile
A taxi at $3 plus $2 a mile: y = 2x + 3. The start is the y-intercept and the $2 is the slope.

Four ways to show the same function

A big part of grade 8 is moving between four views of one function. Take movie tickets at $8 each, plus a $2 booking fee:

Each view answers different questions quickly. The equation gives the cost of 25 tickets in one step. The table shows the steady pattern. The graph shows at a glance that the cost grows at a constant rate. Standard 8.F.A.2 asks students to compare two functions even when one is a table and the other is a graph, so being able to read the slope and the starting value from every view is the key skill. The comparing functions lesson practices exactly that.

Proportional, linear and nonlinear

These three words describe how two amounts change together, and they nest inside each other:

A quick test for a table: if x goes up by the same step each time and y always changes by the same amount, it is linear. If, in addition, y is 0 when x is 0, it is proportional.

Slope in one minute

Slope = rise ÷ run: how far the line goes up for each step across. Between (1, 2) and (3, 8), the rise is 8 − 2 = 6 and the run is 3 − 1 = 2, so the slope is 3. A line going down from left to right has a negative slope, a flat line has slope 0, and a vertical line has no slope at all (it is undefined). The slope lesson has the full method.

y = mx + b

Every straight line (except a vertical one) is y = mx + b. The slope m multiplies x, and b is the y-intercept. The taxi is y = 2x + 3: m = 2 dollars per mile, b = 3 dollars to start. When b = 0, the line goes through the origin and the relationship is proportional. See slope-intercept form.

PositiveNegativeZeroUndefined
Positive, negative, zero and undefined slope.

Reading the story in a graph

Not every graph is one straight line. Standard 8.F.B.5 asks students to describe a graph in words without any numbers: where it is increasing (going up from left to right), decreasing (going down) or constant (flat), and whether each part is straight or curved. A graph of distance from home might go up while you walk to a friend’s house, stay flat while you visit, and come back down as you walk home. Steeper parts mean faster changes. The describing graphs lesson practices matching graphs and stories.

A sensible order for learning functions

  1. Plotting points on the coordinate plane (grade 5 and 6).
  2. Independent and dependent variables, with tables and simple equations like c = 8t (grade 6).
  3. Proportional graphs and the unit rate (grade 7 and 8).
  4. What a function is: one output for each input (grade 8).
  5. Slope from a graph and from two points, then y = mx + b (grade 8).
  6. Linear models from stories: rate of change and initial value (grade 8).
  7. Comparing functions, linear or nonlinear, and describing graphs (grade 8).

If slope feels hard, the gap is usually earlier: negative numbers (subtracting a negative), fractions (simplifying 6/4), or reading a coordinate grid. A week on subtracting integers often fixes more slope mistakes than another week of slope.

Slope and functions in real life

Grade 8 is often the first time math describes change instead of a single answer. That is why functions matter so much later, in science, economics and every high school math course. A few everyday examples to talk through with your child:

Function notation: f(x)

In grade 8 most functions are written y = …, but many textbooks also use f(x), read “f of x”. It means the output of the function f when the input is x. If f(x) = 3x − 4, then f(5) = 3 × 5 − 4 = 11. The brackets do not mean multiply: f(5) is simply “the output for 5”. Working backward is useful too: if f(x) = 11, then 3x − 4 = 11 and x = 5. The what is a function lesson practices both directions.

Three quick checks that catch most mistakes

Children who check their own work get far more right, and functions are unusually easy to check. Teach these three habits:

  1. Does the sign match the picture? Before working anything out, look at the line. If it goes down from left to right, the slope must be negative. If an answer comes out positive, something went wrong, usually a lost minus sign when subtracting a negative.
  2. Does the equation give back the points? After writing y = mx + b, put in the x of a known point. If the line went through (2, 7) and the equation is y = 3x + 1, then 3 × 2 + 1 should be 7. It is, so the equation is right. If not, recheck the slope first, then b.
  3. Does the answer make sense in the story? A taxi cannot cost less the further you go, and a candle cannot burn down to minus 3 centimeters. If the rate of change or a prediction does not fit the situation, the variables are probably swapped.

Ask your child to say which check they used. Explaining it out loud turns a lucky answer into a skill they can repeat on a test.

What comes after grade 8

Linear functions lead straight into systems of equations: two lines cross at the one point that makes both equations true, such as the month when two phone plans cost the same. In high school, Algebra 1 adds other ways to write a line (point-slope and standard form), parallel and perpendicular lines, and the first nonlinear families: quadratic functions with x² and exponential functions like 2x. A secure grasp of slope and y = mx + b makes every one of those easier.

Practice and levels

The functions practice has 10 skills with new graphs and tables every time, and the 8 functions levels have a short test each, saved on your device. For a full grade 8 test, try the grade 8 check-up.

Where kids get stuck

Slope of (1, 2) and (3, 8) = 1/3Divided run by rise.Fix: rise over run, 6 ÷ 2 = 3.
y = 2x + 3 has slope 3Took the last number.Fix: the slope is the number multiplying x.
{(1, 4), (2, 4)} is not a functionThought outputs cannot repeat.Fix: only an input with two outputs breaks the rule.
A flat distance graph means movingRead the graph as a picture of a road.Fix: flat means the distance is not changing, so the person has stopped.

Slope and functions worksheets

How to teach functions at home

Find linear bills

Phone plans, taxi fares and gym memberships have a starting fee and a cost per unit. Ask which number is the slope and which is the start.

Play the function machine

One person picks a secret rule like “times 3, minus 1”. The other gives inputs and works out the rule from the outputs.

Sketch a day

Draw a graph of your distance from home through a day. Where is it increasing, decreasing and constant?

Last reviewed

Questions parents ask

What is a function in math?

A rule that gives exactly one output for each input, like y = 2x + 1. Put in x = 3 and you always get 7.

What is slope?

How steep a line is: the rise divided by the run. It is the rate of change of a linear function.

What does y = mx + b mean?

It is the equation of a straight line. m is the slope and b is the y-intercept, where the line crosses the y-axis.

What grade learns functions and slope?

Grade 8 in the Common Core (8.EE.B and 8.F). Grade 6 prepares with independent and dependent variables, and grade 7 with proportional relationships.

How do you find slope from two points?

Subtract the y-values and the x-values in the same order and divide: (y₂ − y₁) ÷ (x₂ − x₁).

What is the difference between linear and nonlinear?

A linear function changes by the same amount each step and graphs as a straight line. A nonlinear one does not, and its graph curves.