Report

Help us improve this tool

24 Game Solver Trainer

Solve the 24 math game with 4 numbers using +, -, *, /. Generate random practice cards by level and train mental arithmetic with instant answer checks.

O M T

What Is the 24 Game?

The 24 Game is a classic mathematical puzzle where players use four numbers (typically 1 through 13) and combine them with addition, subtraction, multiplication, and division to reach exactly 24. Each number must be used exactly once, and parentheses can be applied freely to change the order of operations. Invented by Robert Sun in 1988 as an educational tool for elementary school classrooms, it has grown into a worldwide phenomenon used in thousands of schools and competitive math tournaments.

Rules of the 24 Game

  • Four numbers: You receive exactly four integers, each between 1 and 13 (matching standard playing card values).
  • Four operations: You may use addition (+), subtraction (-), multiplication (×), and division (÷) in any combination.
  • Use every number once: All four numbers must appear exactly once in your expression.
  • Target is 24: The final result of your expression must equal exactly 24.
  • Parentheses allowed: You can group operations with parentheses to override the default order of operations.
  • Some sets are unsolvable: Not all four-number combinations can produce 24. Recognizing unsolvable sets is part of the skill.

How the 24 Game Solver Works

The solver explores all possible permutations of your four numbers, all combinations of operations (+, -, *, /), and five distinct parenthesization patterns. For each candidate expression, it evaluates the result using fraction-safe arithmetic. If the result equals 24 within a tiny tolerance, it records the expression as a valid solution. This exhaustive search guarantees that if a solution exists, the solver will find it.

Solving Strategies

  • Factor recognition: Look for pairs that multiply to 24, like 3 × 8, 4 × 6, or 2 × 12. Then figure out how to form those factors from the remaining numbers.
  • Addition to 24: Check if numbers add up to 24 directly or after simple modifications, such as 10 + 10 + 4 + 0 (where 0 comes from the difference of two other cards).
  • Fraction tricks: Division can create fractions that unlock otherwise impossible solutions. The classic puzzle 3, 3, 8, 8 uses 8 ÷ (3 - 8 ÷ 3) = 24.
  • Work backwards: Start from 24 and think about what operations on your numbers could reach it.
  • Eliminate quickly: If numbers are very small or very large, test multiplication and division first since they create the biggest value shifts.

Famous Challenging Puzzles

  • 3, 3, 8, 8: One of the most famous puzzles. Requires nested division: 8 / (3 - 8/3) = 24.
  • 1, 5, 5, 5: Uses the fraction approach: 5 × (5 - 1/5) = 24.
  • 1, 3, 4, 6: Multiple solutions exist, making it a great training puzzle.
  • 1, 1, 1, 1: Impossible under standard rules, a good example of an unsolvable set.

Educational Benefits

The 24 Game builds fluency with all four basic arithmetic operations and their interactions. It develops number sense, estimation skills, and mental calculation speed. The game teaches the importance of order of operations and grouping with parentheses, and encourages creative problem-solving and flexible mathematical thinking. It is used in competitive math programs worldwide as a warm-up and enrichment activity.

If you enjoy number puzzles, try our dice roller to generate random card combinations for practice, or explore the combinations and permutations calculator to understand how many possible four-number sets exist. For more math challenges, the number sequence calculator is a great way to practice pattern recognition alongside the 24 Game.

Frequently Asked Questions

Why is exact arithmetic important in the 24 game?

This solver uses fraction-safe math, avoiding floating-point precision errors. It only reports truly exact results that equal 24.

Can repeated cards be used, such as 5, 5, 5, 1?

Yes. Repeated numbers are fully supported as long as exactly four cards are provided.

How many four-card combinations can make 24?

Out of all possible four-card hands drawn from 1 to 13, roughly 92% have at least one valid expression that equals 24. The remaining 8% are unsolvable under standard rules.

Does this solver support parentheses?

Yes. The solver evaluates all five distinct parenthesization patterns, so expressions like (a + b) × (c - d) are automatically considered.

What happens if there is no solution?

The solver will display a "No solution found" message. You can try entering different numbers or load one of the example puzzles.