game 24 calculator

Game 24 Solver

Enter exactly four numbers, choose your target (default is 24), and this calculator will find a valid expression using + - * / and parentheses.

Use commas or spaces. Example hands: 1, 5, 5, 5 or 2 3 4 12.

What is the 24 game?

The 24 game (also called the 24 point game) is a classic arithmetic puzzle: you receive four numbers and must combine them to make 24. You can use addition, subtraction, multiplication, and division, along with parentheses. Each number must be used exactly once.

Quick rules

  • Use all four numbers once and only once.
  • Allowed operators: +, -, *, /.
  • Parentheses are allowed and often required.
  • No digit concatenation (for example, turning 1 and 2 into 12) unless your house rules allow it.

How this game 24 calculator works

This tool systematically tests combinations of your four numbers. It recursively combines pairs of values with every allowed operation, tracks generated expressions, and checks whether the final value matches your target. By default, it returns one valid answer quickly; if you enable Show all unique solutions, it collects many valid expressions.

Why it is useful

  • Practice: Check your own answer after solving by hand.
  • Teaching: Create examples for students learning order of operations.
  • Puzzle design: Test if a hand is solvable before using it in a worksheet or game night.

Example hands

Try these in the calculator:

  • 4, 7, 8, 8 → one solution is 8/(7-(4/8)) = 24
  • 1, 5, 5, 5 → one solution is 5*(5-(1/5)) = 24
  • 3, 3, 8, 8 → one solution is 8/(3-(8/3)) = 24

Tips for solving the 24 puzzle by hand

1) Work backward from 24

Think in target forms like 24 = 6×4, 24 = 12×2, or 24 = 48/2. Then see if your four numbers can build those intermediate values.

2) Use division to create fractions

Many difficult hands require non-integer steps. Expressions like 1/5 or 4/8 are often the hidden key.

3) Preserve promising numbers

If you see a number that can cleanly scale to 24 (like 6, 8, or 12), avoid consuming it too early. Build support values with the remaining numbers first.

FAQ

Can I use this as a general target-number solver?

Yes. Change the target value to any real number and the solver will search for matching expressions.

Does it always find the shortest expression?

No. It finds valid expressions through systematic search. If you request all solutions, you can compare and pick the cleanest one.

Why do some number sets have no solution?

Not every set of four numbers can produce 24 under standard rules. The calculator will report when no exact expression is found.

Final note

Use this game 24 solver to improve mental math, pattern recognition, and comfort with order of operations. It is a fast way to verify a hand, but the real fun is still in solving the puzzle yourself first.

🔗 Related Calculators