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
- Grade 5 (5.OA.B.3, 5.G.A.2): two number patterns and plotting points on the coordinate plane.
- Grade 6 (6.EE.C.9): independent and dependent variables, with tables, graphs and equations.
- Grade 7 (7.RP.A.2): proportional relationships and the constant of proportionality.
- Grade 8 (8.EE.B.5–6, 8.F.A.1–3, 8.F.B.4–5): functions, slope, y = mx + b, linear models, comparing functions and describing graphs.
More for each grade: Grade 6 math and the CBSE class 6 maths guide; Grade 7 math and the CBSE class 7 maths guide; Grade 8 math and the CBSE class 8 maths guide.
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.
- Independent and dependent variablesGrade 6 · tables and equations
- Graphing proportional relationshipsGrades 7–8 · unit rate as slope
- What is a functionGrade 8 · one output per input
- SlopeGrade 8 · rise over run
- Slope-intercept formGrade 8 · y = mx + b
- Linear functionsGrade 8 · rate and initial value
- Comparing functionsGrade 8 · tables, graphs, equations
- Linear vs nonlinearGrade 8 · straight or curved
- Describing graphsGrade 8 · increasing, decreasing
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).
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:
- Words: $2 to book, then $8 for each ticket.
- Equation: y = 8x + 2, where x is the number of tickets and y is the total cost.
- Table: 1 ticket costs $10, 2 cost $18, 3 cost $26, 4 cost $34. Each row goes up by 8.
- Graph: points on a straight line that starts at (0, 2) and rises 8 for each step right.
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:
- Proportional (grade 7): y = kx. A straight line through the origin. Apples at $2 a pound: 0 pounds cost $0. See graphing proportional relationships.
- Linear (grade 8): y = mx + b. Any straight line. Every proportional relationship is linear, but a linear one with a starting fee, like the taxi, is not proportional.
- Nonlinear: anything that is not a straight line, like the area of a square, A = s², where the area grows faster and faster. See linear vs nonlinear.
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.
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
- Plotting points on the coordinate plane (grade 5 and 6).
- Independent and dependent variables, with tables and simple equations like c = 8t (grade 6).
- Proportional graphs and the unit rate (grade 7 and 8).
- What a function is: one output for each input (grade 8).
- Slope from a graph and from two points, then y = mx + b (grade 8).
- Linear models from stories: rate of change and initial value (grade 8).
- 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:
- Phone and streaming plans: a monthly fee plus a cost per gigabyte or per movie. The fee per unit is the slope.
- Saving money: $40 in the bank plus $15 a week is y = 15x + 40. When will it reach $200?
- Speed: distance against time. A steeper line means a faster trip; a flat part means stopped.
- Ramps and roads: a wheelchair ramp may rise at most 1 inch for every 12 inches across, a slope of 1/12. Road signs give a slope as a percent: a 6% grade rises 6 feet for every 100 feet.
- Cooling and heating: a cup of cocoa cools quickly at first and then more slowly. That graph curves, so it is nonlinear.
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:
- 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.
- 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.
- 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 and functions worksheets
- Slope worksheet50 questions · answer key
- Slope and y-intercept worksheety = mx + b · answer key
- Proportional relationshipsGrade 7 review
- Coordinate planePlotting points
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.