What's My Rule?

The machine has a secret rule. Put in a number and see what comes out. Keep trying numbers until you can work out the rule, then press Reveal.

Level
?
InOut

Put in a number to begin.

On paper: children draw their own in/out table and write a guess for the rule at the bottom.

How to play What's My Rule?

  1. Choose a level: one step, two steps or tricky.
  2. Type a number and press Put it in, or press Suggest a number.
  3. Look at the table. Can you see a pattern between the In and Out numbers?
  4. Predict what the machine will do with the next number. Press Reveal the rule to check.

Maths skills this game builds

Tips for parents and carers

Using What's My Rule? with a group or class

Frequently asked questions

What is a function machine?

A function machine takes a number, changes it using a rule, and gives a new number. It is a first step towards algebra.

Are the rules always whole numbers?

Most are. A few rules use halving, so you might see a decimal.

Can I choose my own numbers?

Yes. Type any whole number, or press Suggest a number.

Suitable for ages 7 to 11 (Years 3 to 6, Key Stage 2). Free to play, with no sign-up and no personal details collected. Last updated October 2026.

More free maths games