Every valid 24 Game answer is an arithmetic expression that uses four given numbers exactly once, combines them with addition, subtraction, multiplication, and division, and produces exactly 24. The 24 Game Solver searches this complete rule space for any hand of four whole numbers from 1 through 99, then returns up to 50 distinct expressions that meet the rules. Each returned expression is shown as a complete formula ending in = 24, so the answer can be read directly instead of taken on faith. Because the search is exhaustive for the disclosed operation set, the tool can prove when a hand has no solution under those rules — the absence of a result is itself an answer. This matters because some hands, like 3, 3, 8, 8, only solve through a fractional intermediate value that ordinary integer checks miss, while other hands such as 1, 5, 11, 13 cannot be solved using only the four basic operations at all. Try the 24 Game Solver to see the full rule set applied to your hand.

24 game answers
24 game answers

The 24 Game: Rules Behind Every Answer

The standard 24 Game, as documented by the University of California, Santa Cruz mathematics program, gives you four numbers and asks you to combine them with the four basic arithmetic operations — addition, subtraction, multiplication, and division — using parentheses to control the order of operations. Each number must be used exactly once. No digits may be concatenated, no number may be reused, and the target value is always exactly 24. The same rules are independently confirmed on 4nums, a long-standing 24 Game reference. Many commercial card editions restrict the numbers to 1 through 10 or 1 through 13, but the operation contract — four numbers, four operations, parentheses, exactly 24 — is the rule set that determines what counts as a valid answer.

Different puzzles sometimes loosen or tighten these rules. Some editions allow exponentiation, factorials, or decimal-point insertion. Some allow concatenation so that 1 and 2 can become the number 12. The 24 Game Solver deliberately keeps the standard contract: four whole numbers, each used once, only + − × ÷ and parentheses. Any answer it returns will also be a valid answer under the standard rules, and any hand it judges unsolvable is unsolvable under the same rules.

RuleAllowed by the SolverNotes
Use each entered number exactly onceYesNo concatenation, no reuse
Addition, subtraction, multiplication, divisionYesAll four basic operations
Parentheses for order of operationsYesShown in returned expressions
Decimal-point insertionNoStandard rules only
Exponentiation, factorials, rootsNoOutside this rule set
Unary minus as an extra operationNoNot part of the standard contract

Finding Answers for a Four-Number Hand

The 24 Game Solver takes four whole numbers between 1 and 99 and searches every legal grouping, so the steps to use it are deliberately short. The entire search runs locally in the browser, which means the four numbers you enter and the expressions generated from them are not uploaded, stored, or attached to an account.

  1. Enter exactly four whole numbers from 1 through 99, one number in each input field. Each value must be a positive whole number; a 4 must be entered as 4 and not as 2 + 2 or 2 × 2, because the solver uses each entered value exactly once and does not split it.
  2. Select Solve to exhaustively search the allowed arithmetic operations with exact fractions. At each step the solver picks two remaining terms, combines them with addition, multiplication, both subtraction orders, and every legal division order, then returns the new term to the pool until only one term remains.
  3. Read any returned expression from inside the parentheses outward, or treat the no-solution result as the verdict for these rules. Every line in the result list ends with = 24, so the arithmetic can be verified by hand before the answer is trusted.

Inputs outside the 1–99 whole-number range fall outside the verified input contract and the solver is not designed to evaluate them. If you copy a hand from a card game and one of the values is 0, negative, or a decimal, the search is not guaranteed to produce a meaningful result.

How the Solver Handles Fractional Intermediates

Some hands look unsolvable at first glance but solve through a fraction. The classic example is 3, 3, 8, 8. A naïve left-to-right integer check never reaches 24 from these four numbers, but the expression 8 ÷ (3 − 8 ÷ 3) does. Walked out step by step:

Step 1: compute the inner division 8 ÷ 3, giving the fraction 8/3. Step 2: subtract 8/3 from 3, giving (9/3 − 8/3) = 1/3. Step 3: compute 8 ÷ (1/3) = 8 × 3 = 24.

Each intermediate value in this chain is a reduced fraction rather than a rounded decimal. The solver stores an integer numerator and a positive integer denominator, reduces them by their greatest common divisor, and checks the final equality as numerator = 24 × denominator. A value merely close to 24 is never reported as exact, and a valid repeating-decimal path is not lost to floating-point rounding. That is the practical reason hands like 3, 3, 8, 8 and 1, 5, 5, 5 still resolve correctly under the standard rules.

HandExpected OutcomeWhy It Matters
1, 2, 3, 4SolvableBaseline product check
3, 3, 8, 8Solvable with fractionsFractional intermediate required
1, 5, 5, 5Solvable with fractionsRepeating-decimal path
1, 5, 11, 13No solutionConfirms negative case under basic rules

Because every search runs through the same exhaustive procedure, the expected outcomes in this table are guaranteed by construction — if a hand returns no result, the hand has been proven unsolvable under the disclosed operation set.

Reading Returned Expressions and Checking Your Work

The solver prints every accepted expression as a complete formula ending in = 24, and the list is capped at 50 results to keep the page readable. Reading from the inside out is the safest approach. For (3 − 8 ÷ 3), evaluate the inner division first, then the outer subtraction, then the outer division. The same habit prevents the most common reading error: treating 3 − 8 ÷ 3 as (3 − 8) ÷ 3 = −5/3 instead of 3 − (8 ÷ 3) = 1/3.

Once the expression is in hand, it can be verified on paper, in a basic calculator, or with a fraction calculator for the harder chains. If the result matches the printed = 24, the answer is sound. If it does not, the most likely cause is reading the parentheses wrong rather than a solver bug, because the page deduplicates by exact expression string and only prints arithmetic the recursive search has already confirmed equals 24.

The 50-expression cap means the list is a set of valid constructions, not a claim that there are at most 50 mathematically distinct answers. Reordered expressions can encode the same arithmetic idea, so a hand with many equivalent forms will simply hit the cap rather than report every possible rearrangement.

When the Search Returns No Solution

A no-solution message is itself an answer. It means the exhaustive search found no exact 24 using only the four basic operations, parentheses, and each input once. Under the standard rules, this is the final word for the entered hand. The solver does not generate a "closest to 24" approximation and does not stretch the rules to find something; it either returns a verified expression or it reports none.

Before accepting a no-solution result, three things are worth checking. First, the four numbers should be copied exactly — 1, 5, 11, 13 has no solution, but 1, 5, 11, 12 does. Second, the source puzzle should be using the same operation rules; a puzzle that allows powers or factorials is a different problem. Third, the inputs must be whole numbers in the 1–99 range — 0, negatives, and decimals are outside the verified input contract, and a no-solution message under those conditions may simply reflect that the input was rejected rather than that the hand is impossible.

For a hand whose difficulty is worth studying further, the 4nums reference lists solvability classifications under a closely matched rule set, which is useful for cross-checking the no-solution verdict when the answer feels like it should exist.