Skip to content

Paper Together: sit a paper in a room with your friends.See how it works

Function machines – GCSE Maths

Foundation · Grade 2 · Non-calculator

Jump to the questions and answers · Download the worksheet (PDF)

Follow inputs through a chain of operations, work backwards from an output, and write the machine's rule as algebra. It is a Foundation topic, aimed at grade 2. Free questions with answers are on this page. Worked examples show each line before you try the questions.

A function machine is a one-way conveyor: the input goes through each operation in order. If the machine divides by then adds , an input of becomes then . Write the output as an expression by wrapping the first operation in a bracket: input becomes , or if it adds then multiplies by .

To go backwards, undo the last operation first. If the machine subtracts then multiplies by and the output is , divide by to get , then add to get . Inverse of is , inverse of is , and you reverse the order.

Two-step machines are the seed of solving equations. The same undoing, written with an equals sign, is one-step and two-step algebra in the next topics.

Objectives

Key points

Worked examples

Example 1

A function machine does × 3 then + 4. The input is 2. What is the output?

2 marks

  1. × 3 first: 2 × 3 = 6.
  2. Then + 4: 6 + 4 = 10.
  3. The output is 10.

Answer: 10

Common slips
  • Slip: × 5 first: 2 × 3 = 6. That changes a number from the question, so it answers a different question.
  • Slip: Then + 7: 6 + 4 = 10. That changes a number in the working, so the step no longer follows from the one before.
  • Slip: The output is 14. That does not match the working above it.

Example 2

A function machine does × 2 then − 5. The input is 3. What is the output?

2 marks

  1. × 2 first: 3 × 2 = 6.
  2. Then − 5: 6 − 5 = 1.
  3. The output is 1.

Answer: 1

Common slips
  • Slip: × 4 first: 3 × 2 = 6. That changes a number from the question, so it answers a different question.
  • Slip: Then − 8: 6 − 5 = 1. That changes a number in the working, so the step no longer follows from the one before.
  • Slip: The output is 5. That does not match the working above it.

Example 3

A function machine does × 3 then + 4. The output is 16. What is the input?

2 marks

  1. Undo the last step first: 16 − 4 = 12.
  2. Then undo the multiplication: 12 ÷ 3 = 4.
  3. The input is 4.

Answer: 4

Common slips
  • Slip: Undo the last step first: 18 − 4 = 12. That changes a number from the question, so it answers a different question.
  • Slip: Then undo the multiplication: 15 ÷ 3 = 4. That changes a number in the working, so the step no longer follows from the one before.
  • Slip: The input is 8. That does not match the working above it.

Questions and answers

GCSE Maths function machines questions and answers. Try each one, then open the answer. Easy questions come first.

Question 1 Easy2 marks

A function machine does × 3 then + 4. The input is 5. What is the output?

Show answer

Answer: 19

  1. × 3 first: 5 × 3 = 15.
  2. Then + 4: 15 + 4 = 19.
  • M1 — × 3 first: 5 × 3 = 15.
  • A1 — Answer 19

Question 2 Easy2 marks

A function machine does × 2 then − 5. The input is 6. What is the output?

Show answer

Answer: 7

  1. × 2 first: 6 × 2 = 12.
  2. Then − 5: 12 − 5 = 7.
  • M1 — × 2 first: 6 × 2 = 12.
  • A1 — Answer 7

Question 3 Medium2 marks

A function machine does × 2 then − 5. The input is 9. What is the output?

Show answer

Answer: 13

  1. × 2 first: 9 × 2 = 18.
  2. Then − 5: 18 − 5 = 13.
  • M1 — × 2 first: 9 × 2 = 18.
  • A1 — Answer 13

Question 4 Medium2 marks

A function machine does × 3 then + 4. The output is 34. What is the input?

Show answer

Answer: 10

  1. Undo the last step first: 34 − 4 = 30.
  2. Then undo the multiplication: 30 ÷ 3 = 10.
  • M1 — Undo the last step first: 34 − 4 = 30.
  • A1 — Answer 10

Question 5 Hard2 marks

A function machine does × 2 then − 5. The output is 21. What is the input?

Show answer

Answer: 13

  1. Undo the last step first: 21 + 5 = 26.
  2. Then undo the multiplication: 26 ÷ 2 = 13.
  • M1 — Undo the last step first: 21 + 5 = 26.
  • A1 — Answer 13

Question 6 Hard2 marks

A function machine does × 3 then + 4. The input is 14. What is the output?

Show answer

Answer: 46

  1. × 3 first: 14 × 3 = 42.
  2. Then + 4: 42 + 4 = 46.
  • M1 — × 3 first: 14 × 3 = 42.
  • A1 — Answer 46

Question 7 Exam-style2 marks

A function machine does × 2 then − 5. The output is 29. What is the input?

Show answer

Answer: 17

  1. Undo the last step first: 29 + 5 = 34.
  2. Then undo the multiplication: 34 ÷ 2 = 17.
  3. The input is 17.
  • M1 — Undo the last step first: 29 + 5 = 34.
  • A1 — Answer 17

Common mistakes

Most lost marks on this topic are one slip.

  1. Doing the second step first.

    Follow the machine from left to right.

  2. Undoing the steps in the same order.

    The inverse reverses the order and the operations.

  3. Adding when the machine says multiply.

    Read the operation on each arrow.

Spot the slip

Input 4 goes through × 2. What is the output?

  1. 8
  2. 6
  3. 2
Show the slip

8 Four times two is 8.

Exam tips

Printable worksheet

The same questions are in a PDF you can print. Answers start on a later page.

Download worksheet (PDF)

Or use Print in your browser. Answers under each question are included when you print.

Questions students ask

Is Function machines Foundation or Higher?

Function machines is Foundation, aimed at grade 2.

What is a common slip on Function machines?

Doing the second step first. Follow the machine from left to right.

Where can I get Function machines questions and answers?

The questions on this page are free. Open Show answer under each one, or download the worksheet PDF. Start free to practise this topic in the app.

Related topics

More on Function machines

Practise Function machines free

Start free

AQA-style and Edexcel-style questions. Yumio is not affiliated with, endorsed by or connected to AQA, Pearson Edexcel or any other exam board.

Last updated 9 November 2026.

Next topicPractise free