Plan your future with our Retirement Budget Calculator

24 Game Solver

Enter 4 numbers to find every way to make 24 using addition, subtraction, multiplication, and division. The solver checks all permutations and parenthesizations, rates the puzzle difficulty, and lists every unique solution.
Loading...
Luis GonzalezCreated by Luis GonzalezLast updated:

How to Use This Calculator

  1. 1

    Enter 4 comma-separated numbers

    Input four numbers, separated by commas (e.g., 3, 8, 8, 3). These are the numbers the solver will use to try and reach 24.

  2. 2

    Click Find Solutions

    The solver checks all 24 permutations of your numbers across 5 parenthesization patterns with every combination of +, -, *, / — a total of 7,680 possibilities.

  3. 3

    Review your results

    The calculator displays a Result card (Solvable or No Solution), a Difficulty rating (Easy, Medium, Hard, or Very Hard), the Numbers used, and a list of all unique solutions found.

Example Calculation

A student wants to check if the classic puzzle set 3, 3, 8, 8 can form 24 using basic arithmetic operations.

Four Numbers (comma-separated)

3, 3, 8, 8

Results

Result

Solvable (1 unique expression found)

Difficulty

Very Hard

Solution

(8 / (3 - (8 / 3))) = 24

Tips

Explore Different Number Sets

Don't limit yourself to common numbers. Experiment with a mix of small and large integers, or even identical numbers, to discover a wider range of solvable puzzles. For instance, using '1, 1, 1, 1' will not yield 24, but '6, 6, 6, 6' can be solved — one solution is ((6 * 6) - (6 + 6)) = 24.

Prioritize Division for Fractions

Many challenging 24 Game puzzles involve creating fractions as intermediate steps. If you're struggling, consider division early in your manual attempts, such as 8/3 or 1/5, to then combine with other numbers. This often unlocks solutions that integer-only operations miss. For example, with 1, 5, 5, 5, the solution is (5 - (1 / 5)) * 5 = 24.

Use Difficulty as a Learning Guide

The solver rates difficulty based on how many unique solutions exist: 1-2 solutions is Very Hard, 3-5 is Hard, 6-10 is Medium, and 11+ is Easy. Start with Easy sets like 1, 2, 3, 4 (242 solutions) to build confidence, then progress to Very Hard sets like 3, 3, 8, 8 (1 solution).

Unlocking the 24 Game: How a Solver Reveals Hidden Solutions

The 24 Game Solver is a practical mathematical tool designed to find every expression that evaluates to 24 using four given numbers and basic arithmetic operations (+, -, *, /).

This calculator is invaluable for students, educators, and puzzle enthusiasts looking to verify solutions, explore different strategies, or confirm if a specific set of numbers is solvable.

Whether you're practicing mental math or preparing for a competition, this tool instantly reveals all paths to 24 and rates the puzzle difficulty.

The Algorithmic Approach to Finding 24

This solver systematically explores all possible permutations of the four input numbers and all combinations of four arithmetic operations: addition (+), subtraction (-), multiplication (*), and division (/).

It evaluates these expressions using 5 distinct parenthesization structures to ensure all valid solutions are considered:

Pattern 1: ((a op1 b) op2 c) op3 d
Pattern 2: (a op1 (b op2 c)) op3 d
Pattern 3: (a op1 b) op2 (c op3 d)
Pattern 4: a op1 ((b op2 c) op3 d)
Pattern 5: a op1 (b op2 (c op3 d))

For each of the 24 permutations of the 4 numbers, the solver tries all 64 operator combinations (4 choices for each of 3 operator positions) across all 5 patterns — checking 7,680 total possibilities.

A result is accepted if it equals 24 within a tiny tolerance (less than 1e-9 difference).

Duplicate expressions are filtered out, and the unique solutions are displayed.

💡 If you're dealing with statistical data and need to understand how far a data point is from the mean, our Standard Deviation Z-Score Table can help quantify that deviation.

Solving a 24 Game Puzzle: A Practical Example

Let's consider the classic puzzle with numbers 3, 3, 8, and 8 — widely known as one of the hardest 24 Game challenges.

  1. Input the numbers: Enter "3, 3, 8, 8" into the calculator's input field and click "Find Solutions."

  2. View the results:

    • Result: Solvable — 1 unique expression found
    • Difficulty: Very Hard
    • Solution: (8 / (3 - (8 / 3))) = 24
  3. Verify the solution step by step:

    • Start with the innermost operation: 8 / 3 = 2.666...
    • Next: 3 - 2.666... = 0.333... (which is 1/3)
    • Finally: 8 / 0.333... = 24

The key insight is that division creates the fraction 1/3 as an intermediate result, and dividing 8 by 1/3 gives exactly 24.

This is why the puzzle is rated Very Hard — there is only one unique way to arrange these numbers and operations to reach 24.

💡 If your calculations produce fractional or decimal results that need to be simplified for presentation, our Rounding Tool can help you adjust them to a desired precision.

Manual Calculation Walkthrough

To solve a 24 Game puzzle manually, you systematically try different combinations of numbers and operations.

Let's use the numbers 3, 3, 8, and 8.

  1. Attempt direct multiplication: 8 * 3 = 24, but the remaining 3 and 8 must contribute nothing (multiply by 1 or add 0), and neither 3/8, 8/3, 3-8, nor 8-3 equals 1 or 0.

    Dead end.

  2. Try creating useful fractions: We need a creative approach.

    What if we aim to make 1/3?

    • 8 / 3 = 2.666...
    • 3 - 2.666... = 0.333... = 1/3
    • Now we have 8 left, and 8 / (1/3) = 24
  3. Write the full expression: 8 / (3 - (8 / 3)) = 24

  4. Verify: (8/3) = 2.666..., then 3 - 2.666... = 0.333..., then 8 / 0.333... = 24.

This method shows how breaking down the problem into sub-goals and considering fractional intermediate steps can lead to the solution.

The solver finds this automatically by exhaustively checking all 7,680 possibilities.

Understanding Difficulty Ratings

The solver assigns a difficulty rating based on the number of unique solutions found:

Solutions Found Difficulty Example
0 Unsolvable 1, 1, 1, 1
1-2 Very Hard 3, 3, 8, 8 (1 solution)
3-5 Hard 1, 1, 1, 8 (4 solutions)
6-10 Medium 6, 6, 6, 6 (7 solutions)
11+ Easy 1, 2, 3, 4 (242 solutions)

A puzzle with fewer solutions is harder because there are fewer paths a human solver can discover.

Sets like 1, 2, 3, 4 are easy because almost any combination of operations reaches 24, while 3, 3, 8, 8 requires the specific insight of creating 1/3 through division.

When 24 Game Solver gives unexpected results

While the 24 Game Solver is highly effective, there are specific scenarios where its output might require careful interpretation:

  1. Floating-Point Precision: The solver uses a tolerance of 1e-9 (0.000000001) when comparing results to 24.

    This means expressions evaluating to 23.999999999 or 24.000000001 are accepted.

    In practice, this only matters for division-heavy expressions where floating-point arithmetic introduces tiny rounding errors.

  2. Many Duplicate-Looking Solutions: The solver treats different parenthesization patterns as distinct solutions even when they produce the same calculation order.

    For example, with commutative operations, (a + b) and (b + a) with the same numbers in different permutation slots may appear as separate solutions.

    This is why easy sets like 1, 2, 3, 4 show 242 solutions.

  3. Non-Integer Intermediate Results: Many puzzles require intermediate calculations that result in fractions or decimals.

    The classic 3, 3, 8, 8 puzzle requires computing 8/3 = 2.666... as a step.

    If you only try operations that yield whole numbers at each step, you might incorrectly conclude a puzzle is unsolvable.

Frequently Asked Questions

What is the '24 Game'?

The '24 Game' is a mathematical puzzle where the goal is to use four given numbers, along with addition, subtraction, multiplication, and division, to form an expression that evaluates to 24. Each number must be used exactly once, and parentheses can be used to control the order of operations.

Are there always solutions for any four numbers?

No, not every set of four numbers can be solved to equal 24. For example, the numbers 1, 1, 1, 1 cannot be combined using basic operations to reach 24. The solver will display 'No Solution' and rate the difficulty as 'Unsolvable' when no valid expression exists.

How many possibilities does the solver check?

The solver checks 7,680 total possibilities: 24 permutations of the 4 numbers, multiplied by 5 parenthesization patterns, multiplied by 64 operator combinations (4 operators for each of 3 positions). Duplicate expressions are filtered from the final results.

What do the difficulty ratings mean?

Difficulty is based on how many unique solutions exist: Unsolvable (0 solutions), Very Hard (1-2 solutions), Hard (3-5 solutions), Medium (6-10 solutions), and Easy (11+ solutions). For example, 1, 2, 3, 4 is Easy with 242 solutions, while 3, 3, 8, 8 is Very Hard with only 1 solution.

Can I use numbers other than integers?

Yes, the solver accepts any numbers including decimals. However, the traditional 24 Game uses integers, typically from 1 to 9. The solver handles fractional intermediate results automatically — for example, the solution for 3, 3, 8, 8 uses 8/3 as an intermediate step.