Math Tool

Function Machine Generator Input Output Tables

Make a function machine with any rule — +n, −n, ×n, ÷n or ×a+b. Guess-the-rule mode, input/output tables, printable blank worksheets, SVG export.

One-step (+n, −n, ×n, ÷n) or two-step ×a+b rulesGuess-the-rule teaching mode

Mode

Rule

Input values

Number in the machine

1 / 4
IN1× 3 + 2OUT5InputOutput1528414723

Function Machine Examples

Precise machines from the engine, plus illustrated ideas for posters and worksheets

View:

Two-Step Machine: ×3 + 2

Exact engine render — the default two-step machine ×3+2 with its input/output table.

two-stepmultiply-addtable

Guess the Rule

Exact engine render — guess-the-rule mode hides the rule behind a "?" and shows example pairs.

guess-the-rulemysterypuzzle

Robot Function Machine

AI illustration — a robot-themed function machine for classroom displays.

robotposterfun

Number Factory Machine

AI illustration — a factory machine turning input numbers into outputs.

factorygearsillustration

Number Muncher Monster

AI illustration — a monster machine that makes the rule feel like a game.

monsterkidsfun

Blank Worksheet Layout

AI illustration — a blank function machine worksheet layout ready to print.

worksheetblankprintable

What is a function machine?

A function machine is a classic elementary-math teaching aid that turns an abstract rule into something concrete: a number goes IN at the top, the machine applies its rule, and a new number comes OUT at the bottom. Drop in a 4 with a "× 3 + 2" machine and out comes 14. The machine metaphor matters because it gives young learners a mental picture of a function years before they meet f(x) notation — every input produces exactly one output, and the machine always does the same thing. This generator draws the machine precisely: an input funnel, a rule box in the middle, an output chute, and a matching input/output table underneath, so the picture on screen and the numbers on the worksheet always agree.

Using a function machine in class

  • Start with one-step rules. Set the machine to "+ 5" or "× 2", feed in a few inputs, and let students predict each output before you reveal it. Stepping through inputs one at a time — the tool highlights whichever row is travelling through the machine — turns the table into a sequence of small predictions instead of a finished answer key.
  • Move to two-step rules (×a + b) once one-step rules feel easy. Two-step machines are where order of operations stops being a slogan: students can see that ×3 then +2 is not the same as +2 then ×3, because the machine does the steps in a fixed order every time.
  • The "Guess the rule" mode is the mode teachers reach for most. Hide the rule behind a "?", show a handful of input/output pairs, and have students infer the rule from the pattern — then set their guess as the rule and check whether the machine reproduces every pair.

From machine to algebraic function

  • A function machine is, quite literally, a function. The input is the independent variable, the rule is the function body, and the output is the dependent variable. When a student later meets f(x) = 3x + 2, the machine they already know is the same object wearing new notation: "× 3 + 2" is f(x) = 3x + 2, and the input/output table is a table of (x, f(x)) pairs.
  • Making that link explicit pays off in middle school. Plot the pairs from a ×3+2 machine on a coordinate plane and they fall on a straight line — slope 3, intercept 2 — which is a gentle first encounter with linear functions, years before formal algebra.
  • The machine also teaches the one-output-per-input rule naturally: a machine that sometimes gave two different answers for the same input would be "broken", which is exactly the vertical-line-test intuition in disguise.

Worksheet and activity ideas

  • Blank worksheet mode prints the machine and an empty input/output table with no answers — perfect for in-class practice or homework. Pair it with the answer key by exporting the same rule in Solve mode; because the rendering is deterministic, the two always match.
  • Try "backwards machines": give students the outputs and ask which inputs could have produced them (inverse operations in disguise). Or run a "machine chain" where one machine’s output feeds the next machine’s input, foreshadowing function composition.
  • For differentiation, keep the machine the same and vary the inputs — whole numbers for one group, decimals or negative numbers for another. The engine handles negatives and decimals exactly, rounding non-terminating divisions to four decimal places.

Frequently Asked Questions