← Back to Blog

Function Games for Middle School Math

September 9, 2026 · 8 min read · By Infinilearn Team

Somewhere in 8th grade, math class stops asking "what's the answer?" and starts asking "what's the rule?" That's the functions unit. Under Common Core's 8.F standards, students have to grasp the most abstract definition of their school careers so far: a function is a rule that assigns to each input exactly one output. Not a number. Not an equation. A relationship — and they're expected to reason about it, name it with strange notation, and sort the world into things that are functions and things that aren't.

Here's the good news, and it's unusually good: functions are the one middle school topic where the classic game literally is the concept. "Guess my rule" — the game where one person hides a rule and everyone else probes it with inputs — isn't an analogy for what a function is. It's the thing itself. A function machine isn't a cute illustration; it's the definition wearing a cardboard box.

This guide covers where functions land in the standards, why the definition is so slippery, offline games where playing well and understanding the math are the same act, and digital tools for practice — including our own, with honest caveats.

Where Functions Land in the Standards

Functions get their own Common Core domain in 8th grade, 8.F:

  • 8.F.1: Understand that a function assigns exactly one output to each input, and that the graph of a function is just the set of input-output pairs drawn as points.
  • 8.F.2: Compare two functions represented in different ways — one as an equation, one as a table, one as a graph — and decide, say, which has the greater rate of change.
  • 8.F.3: Know that y = mx + b defines a linear function, and recognize functions that are not linear — the classic example is A = s², the area of a square, whose graph is visibly not a straight line.
  • 8.F.4-5: Build functions to model real relationships and describe graphs qualitatively (where increasing, where decreasing).

The groundwork starts earlier: writing and evaluating expressions is 6th grade work (our roundup of expression games for middle school covers it), and plotting lines is the first half of 8th grade — see our graphing linear equations games. But 8.F.1 is a genuine step up from both, and it anchors everything in our broader guide to math games for 8th graders.

Why "Function" Is the Hardest Definition in Middle School

Every earlier hard topic — fractions, negatives, equations — was hard as a skill. Functions are the first topic that's hard as a definition. Three things trip students up:

  • The object is invisible. A function isn't the equation, the table, or the graph — those are three costumes the same rule can wear. Students who identify the function with one costume can't recognize it in another, which is exactly what 8.F.2 tests.
  • The vertical line test gets taught as a ritual. Most students learn it as a magic wand: wave a vertical line, declare "function" or "not." Almost none can say why it works. The reason is the definition itself: a vertical line marks one input, so crossing the graph twice means one input has two outputs — which the definition forbids. Taught as a consequence, the test reinforces the concept. Taught as a ritual, it replaces it.
  • The notation fights them. f(x) looks exactly like "f times x" to a student who has spent two years learning that adjacent symbols multiply. Expect that misreading, name it out loud, and it fades. Ignore it and it lingers into high school.

Because the concept is abstract, the fix is to make students be the concept — which is precisely what the games below do. For a broader look at the algebra runway leading into this unit, see our guide to algebra games for middle school.

Games Where Playing Well IS Understanding Functions

Guess-My-Rule Tournaments

One player (the rule-keeper) writes a secret rule — "double it and subtract 1." Challengers call out inputs; the keeper answers with outputs. To win, a challenger must do two things: correctly predict the output for a brand-new input, and state the rule in words or symbols. Requiring both is what makes it math instead of trivia.

Run it as a tournament with escalating rounds: round one, linear rules only; round two, rules with negatives and fractions allowed; round three, anything goes — squares, absolute value, even the constant rule "the output is always 7." That last one reliably starts an argument, and it's an argument worth having: yes, a constant rule is a function, because every input still gets exactly one output. Score by efficiency — the fewer inputs a challenger needed, the more points — which quietly rewards choosing strategic inputs like 0, 1, and 10 instead of random ones. That's the beginning of mathematical experiment design.

The Function Machine Relay

Function machines are usually drawn on worksheets. Skip the drawing: make the students the machines. Line up four kids, each holding a rule card — "add 3," "multiply by 2," "subtract 5," "double it." Feed an input card to the first machine; each machine applies its rule and passes the result down the line; the class checks the final output. You have just previewed function composition without ever saying the word, and when these students meet f(g(x)) in high school, it will be a memory instead of a shock.

Then run it backward: announce the final output and have the class reason back to the original input, machine by machine. That's inverse thinking. Best of all is the malfunctioning machine round: secretly instruct one student to give different outputs for the same input on different passes. The class's job is to identify which machine is broken — and the only way to catch it is to feed the same input twice and compare. A machine that answers one input two ways is not a function. Students who play this round have used the 8.F.1 definition as a detection tool, which is a far deeper encounter than reciting it.

"Is It a Function?" Sorting with Real Relations

Write real-world relations on cards and have teams sort them into "function" and "not a function," defending every placement from the definition. Good cards:

  • Person → their birthday: function. Every person has exactly one.
  • Birthday → person in our school: not a function the moment any two students share a birthday — one input, two outputs.
  • Student → locker number: function. Locker → student? Only if lockers aren't shared — a genuinely arguable card, which is the point.
  • Song → artist: mostly a function, until someone brings up cover versions. Let the argument happen; the argument is the lesson.

The payoff comes when you connect the sort to graphs: a graph is just a relation drawn as points, and the vertical line test is nothing more than checking for a "birthday with two people" — one input claiming two outputs. Students who arrive at the test this way never mistake it for magic.

Input-Output Card Games

Build two decks: input cards (numbers, including negatives and fractions) and rule cards ("triple it," "square it," "subtract from 10"). Flip one of each; first player to call the correct output takes the trick. For 8.F.3, add a sorting variant: flip rule cards one at a time and race to place each in a "linear" or "nonlinear" pile — y = 3x + 1 goes left, y = x² goes right — then settle disputes by quickly plotting three points. Straight line, linear; anything else, not.

Digital Options for Function Practice

1. Infinilearn

Best for: Grades 4-9 · Price: Free (optional premium) · Format: Fantasy RPG

Infinilearn is a free, browser-based fantasy RPG where students battle monsters across 15 zones and every attack, spell, and ability requires solving a real math problem matched to Common Core standards — including the 8.F cluster: identifying functions, function notation, comparing representations, and linear versus nonlinear.

The adaptive engine is what makes it useful for a unit this abstract. Infinilearn tracks accuracy per topic, and weapon attacks pull problems from the student's weakest areas — so a student who's solid on graphing but shaky on "is this a function?" gets served more of exactly that, without anyone assigning it. Parents can watch it happen: the free parent dashboard shows accuracy by topic, so "how's the functions unit going?" gets a real answer instead of a shrug.

The full game is free — all zones, all quests, all grades 4-9 math, no ads. Optional Premium (about $9.99/month or $59.99/year as of this writing) adds insight features like progress trends and standards tracking plus student cosmetics; it never gates math content or game progression.

Pros: Free full game, adaptive practice that targets weak topics, standards-aligned, runs on Chromebooks with no install. Cons: Multiple choice only — students identify and evaluate functions but don't construct graphs freehand in-game; browser only; practice, not instruction.

2. Desmos and GeoGebra

Best for: Seeing linear vs nonlinear · Price: Free · Format: Graphing tools

Type a rule, see its picture, instantly. For 8.F.3 there is no substitute: students can graph y = 2x + 1, y = x², and y = |x| side by side and see that "linear" is a visual fact, not a vocabulary word. Both tools also make the vertical line test concrete — graph a sideways parabola and slide a vertical line across it.

Pros: Free, immediate, the best visualization tools available. Cons: Tools rather than games; they show, but don't make anyone practice.

3. Khan Academy

Best for: Instruction on notation and definitions · Price: Free · Format: Video lessons + mastery practice

Khan Academy's 8th grade functions unit patiently untangles f(x) notation and the definition itself, with mastery practice attached. It's the right destination when a student is confused rather than just under-practiced.

Pros: Free, thorough, best free explanations available. Cons: Not a game; requires self-motivation.

Making the Definition Stick

  • Keep the language physical. "In goes 4, out comes 11" beats "f of 4 equals 11" for the first two weeks. Attach the notation to the machine language, not the other way around.
  • Ask "could one input give two outputs here?" about everything — tables, graphs, vending machines, the school schedule. The definition sticks when it becomes a lens, not a sentence to memorize.
  • Never accept the vertical line test without the why. One follow-up question — "what would it mean if a vertical line hit the graph twice?" — separates ritual from understanding.
  • Watch for the f(x)-as-multiplication misread. Name it explicitly once; it saves months of quiet confusion.

The Bottom Line

Functions are 8th grade's most abstract idea, and abstraction doesn't yield to worksheets — it yields to experience. The rare luck of this unit is that the experience is already a game: guess-my-rule is 8.F.1, a relay line of kids applying rules is composition, and catching the malfunctioning machine is the definition doing real work.

Play those games first. Then let Desmos make linear-versus-nonlinear visible, let Khan Academy handle the notation lectures, and let adaptive practice like Infinilearn grind the recognition skills until they're automatic. A student who walks into high school knowing what a function is — not just how to wave a vertical line at one — has the single most important prerequisite for everything from Algebra 1 to calculus.

Ready to make math fun?

Infinilearn is a math RPG built for grades 4-9. The full game is free for every student — no ads, no paywalled content. Just real math problems in an adventure worth playing.