HomeIn and Out Boxes: Complete Function-Machine Rule Tables Free original lessons
In and Out Boxes: Complete Function-Machine Rule Tables
Learn to complete in-and-out box tables by applying a rule to each input. Includes worked example, common mistakes, rubric, and four practice tasks.
Free lesson
Four exercises
Worked answers
Algebra and Function Practice
An in-and-out box, also called a function machine, takes an input number, applies a rule, and produces an output number. The rule is often written in words such as add 4, subtract 2, multiply by 3, or divide by 5. To complete a table, apply the same rule to every input. Work left to right or top to bottom, and record each output in the matching row. This lesson focuses only on completing rule tables, not on matching rules or graphing functions.
Practice materials: Printable downloads are not available for this lesson yet. Use the instructions and four exercises below.
Read the rule and the table structure
A function-machine table usually has two columns: input and output. The rule box states what happens to each input. For example, a rule of add 4 means output equals input plus 4. A rule of multiply by 3 means output equals input times 3.
Before calculating, check that each input has one matching output row. If the table is partially filled, use a completed row to confirm the rule. Then apply the rule to every blank output. Keep the same order and units throughout the table.
- Identify the rule written in the rule box.
- Write the rule as a short equation, such as output = input + 4.
- Apply the rule to the first input and record the output.
- Repeat for each remaining input, checking one row at a time.
Apply one-step rules accurately
Most in-and-out tables use one operation. For addition and subtraction, keep place value aligned. For multiplication and division, recall the fact or use a simple check. If the rule is divide by 5, the input should be divisible by 5 for a whole-number output unless the table allows remainders.
Use simple checkable arithmetic. For example, if the rule is multiply by 3 and the input is 7, the output is 21 because 7 times 3 equals 21. Check by reversing: 21 divided by 3 equals 7.
- For addition, add the rule number to the input.
- For subtraction, subtract the rule number from the input.
- For multiplication, multiply the input by the rule number.
- For division, divide the input by the rule number and check by multiplying back.
Use completed rows to verify the rule
When a table already has some outputs, test the rule on those rows. If the rule is subtract 2 and a completed row shows input 9 with output 7, the rule fits because 9 minus 2 equals 7. If a row does not fit, re-read the rule before filling blanks.
Verification prevents copying an error down the column. After completing all outputs, spot-check two rows by reversing the operation. This is especially useful for division and subtraction.
- Choose a completed row and apply the rule to its input.
- Compare your result with the given output.
- If they match, continue filling blank outputs.
- After finishing, reverse-check at least two rows.
Record answers clearly
Write each output in the same row as its input. Keep digits legible and align columns so the table can be checked quickly. If a rule produces a two-digit output, write both digits without crowding the next column.
For handwriting, use a consistent convention: form digits with clear strokes, keep number height between the baseline and midline, and leave a small space between columns. Letter styles may vary, but digits and operation signs should be unambiguous.
- Place each output directly beside its input.
- Keep digit height between baseline and midline.
- Leave a small gap between the input and output columns.
- Review the table from top to bottom for missing entries.
Worked example
A function machine has the rule add 4. Complete the outputs for inputs 3, 6, 10, and 12.
Worked answer
Outputs are 7, 10, 14, and 16.
Four practice exercises
Exercise 1
Rule: subtract 3. Complete the outputs for inputs 8, 11, 15, and 20.
Show answer and check
5, 8, 12, 17.
Why: Apply subtract 3 to each input: 8 minus 3 equals 5; 11 minus 3 equals 8; 15 minus 3 equals 12; 20 minus 3 equals 17.
Check: Add 3 to each output: 5 plus 3 equals 8; 8 plus 3 equals 11; 12 plus 3 equals 15; 17 plus 3 equals 20.
Exercise 2
Rule: multiply by 2. Complete the outputs for inputs 4, 7, 9, and 13.
Show answer and check
8, 14, 18, 26.
Why: Multiply each input by 2: 4 times 2 equals 8; 7 times 2 equals 14; 9 times 2 equals 18; 13 times 2 equals 26.
Check: Divide each output by 2: 8 divided by 2 equals 4; 14 divided by 2 equals 7; 18 divided by 2 equals 9; 26 divided by 2 equals 13.
Exercise 3
Rule: divide by 4. Complete the outputs for inputs 12, 20, 28, and 36.
Show answer and check
3, 5, 7, 9.
Why: Divide each input by 4: 12 divided by 4 equals 3; 20 divided by 4 equals 5; 28 divided by 4 equals 7; 36 divided by 4 equals 9.
Check: Multiply each output by 4: 3 times 4 equals 12; 5 times 4 equals 20; 7 times 4 equals 28; 9 times 4 equals 36.
Exercise 4
Rule: add 6. A table shows input 5 with output 11 already completed. Complete the outputs for inputs 2, 9, and 14.
Show answer and check
8, 15, 20.
Why: The completed row confirms add 6 because 5 plus 6 equals 11. Apply add 6 to the blanks: 2 plus 6 equals 8; 9 plus 6 equals 15; 14 plus 6 equals 20.
Check: Subtract 6 from each output: 8 minus 6 equals 2; 15 minus 6 equals 9; 20 minus 6 equals 14. Also confirm the given row: 11 minus 6 equals 5.
Common mistakes
- Applying the rule in the wrong direction, such as subtracting when the rule says add. Write the rule as an equation before calculating, then apply it exactly to each input.
- Skipping a row or placing an output beside the wrong input. Work one row at a time and point to the input before writing its output.
- Using a completed row that does not match the rule. Test the rule on a completed row first; if it fails, re-read the rule box.
- Forgetting to check division by multiplying back. After dividing, multiply the output by the rule number to confirm the input.
Self-check rubric
- Applies the stated rule to every input without changing the operation.
- Places each output in the same row as its matching input.
- Uses correct arithmetic for all four outputs.
- Shows a reverse check on at least one row.
- Writes digits legibly using a consistent baseline-to-midline height; valid alternative digit styles are accepted if unambiguous.
Questions and answers
What is an in-and-out box table?
It is a table with input and output columns. A rule is applied to each input to produce the matching output.
Do I apply the rule to the output or the input?
Apply the rule to the input. The result is the output.
What if the rule is divide by 5 and the input is not a multiple of 5?
Check whether the table expects whole-number outputs. If so, the input should be a multiple of 5; otherwise record the quotient as given by the table instructions.
How can I check my completed table?
Reverse the operation on two rows. For add 4, subtract 4 from the output to get the input.