Math 24 Game Solver

Use this free 24 game solver to find every way to make 24 from four numbers using +, −, ×, ÷ and brackets, including solutions with fractions or negative intermediate values. No sign-up required.

Can these numbers make 24?

Enter four numbers from 1–13. Find ways to reach 24.

Or tap four numbers:

Enter your numbers to reveal the answer.

What counts as a solution

A hand counts as solved when you use all four numbers exactly once, in any order, with any combination of addition, subtraction, multiplication and division — brackets allowed. You do not need to use every operation, and you may repeat one. Decimal answers are not accepted partway through: every intermediate value must be an exact rational number, which is why a hand like 3, 3, 8, 8 still has a solution even though 3 − 8 ÷ 3 is a fraction. Expressions that are the same up to ordering or bracketing — 3 × 8 and 8 × 3 — are counted once, so the list shows every distinct way to make 24, not every way to write it down.

Worked Examples — Every Solution Type, Sorted

Each hand below is worked through in full. Solutions are grouped by the kind of step they need, so you can see how far a hand is from the easy route — and whether it needs a fraction at all.

These are selected, distinct worked routes, one per row; enter a hand in the tool for its complete list. A hand appears in only one category. For the two whole-number groups, classification follows its simplest route after adjacent addition/subtraction and multiplication/division chains are flattened.

Simple hands — a direct whole-number route

A direct chain, or one grouped calculation combined with an outer operation family, is enough. Multiplication and exact division belong to one family; addition and subtraction belong to the other. These hands have a route with at most two nested families, even if a longer solution also exists.

HandSolutionCheck
1 · 2 · 3 · 4((1 × 2) × 3) × 4= (2 × 3) × 4 = 6 × 4 = 24
1 · 2 · 3 · 4((1 + 2) + 3) × 4= (3 + 3) × 4 = 6 × 4 = 24
1 · 3 · 4 · 5((4 + 5) − 1) × 3= (9 − 1) × 3 = 8 × 3 = 24
1 · 3 · 4 · 5((4 × 5) + 1) + 3= (20 + 1) + 3 = 21 + 3 = 24
1 · 2 · 6 · 6((6 + 6) × 1) × 2= (12 × 1) × 2 = 12 × 2 = 24
1 · 2 · 6 · 6((6 − 2) × 1) × 6= (4 × 1) × 6 = 4 × 6 = 24
1 · 1 · 3 · 8((1 × 1) × 3) × 8= (1 × 3) × 8 = 3 × 8 = 24
1 · 1 · 3 · 8((1 + 3) − 1) × 8= (4 − 1) × 8 = 3 × 8 = 24
2 · 3 · 3 · 6((2 × 3) × 3) + 6= (6 × 3) + 6 = 18 + 6 = 24
2 · 3 · 3 · 6((3 + 3) + 6) × 2= (6 + 6) × 2 = 12 × 2 = 24
2 · 3 · 4 · 6((3 × 6) + 2) + 4= (18 + 2) + 4 = 20 + 4 = 24
2 · 3 · 4 · 6((3 − 2) × 4) × 6= (1 × 4) × 6 = 4 × 6 = 24
2 · 4 · 6 · 8((2 × 6) ÷ 4) × 8= (12 ÷ 4) × 8 = 3 × 8 = 24
2 · 4 · 6 · 8((2 × 6) + 4) + 8= (12 + 4) + 8 = 16 + 8 = 24
2 · 4 · 8 · 10((10 + 2) + 4) + 8= (12 + 4) + 8 = 16 + 8 = 24
2 · 4 · 8 · 10((10 + 2) ÷ 4) × 8= (12 ÷ 4) × 8 = 3 × 8 = 24
2 · 2 · 4 · 8((2 + 4) ÷ 2) × 8= (6 ÷ 2) × 8 = 3 × 8 = 24
2 · 2 · 4 · 8((2 × 2) × 4) + 8= (4 × 4) + 8 = 16 + 8 = 24
1 · 2 · 4 · 8((1 + 4) − 2) × 8= (5 − 2) × 8 = 3 × 8 = 24
1 · 2 · 4 · 8((4 + 8) × 1) × 2= (12 × 1) × 2 = 12 × 2 = 24
1 · 2 · 7 · 8((2 × 8) + 1) + 7= (16 + 1) + 7 = 17 + 7 = 24
1 · 2 · 7 · 8((7 − 1) ÷ 2) × 8= (6 ÷ 2) × 8 = 3 × 8 = 24
3 · 3 · 3 · 3((3 × 3) × 3) − 3= (9 × 3) − 3 = 27 − 3 = 24
3 · 5 · 7 · 9((3 + 5) + 7) + 9= (8 + 7) + 9 = 15 + 9 = 24
3 · 5 · 7 · 9(3 + 9) × (7 − 5)= 12 × (7 − 5) = 12 × 2 = 24
3 · 4 · 5 · 6((3 + 5) − 4) × 6= (8 − 4) × 6 = 4 × 6 = 24
4 · 4 · 4 · 4((4 × 4) + 4) + 4= (16 + 4) + 4 = 20 + 4 = 24
5 · 5 · 5 · 5(5 × 5) − (5 ÷ 5)= 25 − (5 ÷ 5) = 25 − 1 = 24
3 · 3 · 5 · 5(5 × 5) − (3 ÷ 3)= 25 − (3 ÷ 3) = 25 − 1 = 24
1 · 2 · 4 · 7((1 + 4) + 7) × 2= (5 + 7) × 2 = 12 × 2 = 24
1 · 2 · 4 · 7((1 + 7) − 2) × 4= (8 − 2) × 4 = 6 × 4 = 24
1 · 3 · 6 · 8((6 − 3) × 1) × 8= (3 × 1) × 8 = 3 × 8 = 24
2 · 2 · 4 · 10((10 + 2) ÷ 2) × 4= (12 ÷ 2) × 4 = 6 × 4 = 24
2 · 2 · 6 · 6((2 + 6) ÷ 2) × 6= (8 ÷ 2) × 6 = 4 × 6 = 24
2 · 3 · 3 · 8((3 + 3) ÷ 2) × 8= (6 ÷ 2) × 8 = 3 × 8 = 24
2 · 3 · 5 · 6((2 + 5) − 3) × 6= (7 − 3) × 6 = 4 × 6 = 24
2 · 3 · 6 · 7((6 ÷ 2) × 7) + 3= (3 × 7) + 3 = 21 + 3 = 24
2 · 4 · 5 · 8((2 + 5) − 4) × 8= (7 − 4) × 8 = 3 × 8 = 24
3 · 4 · 4 · 6((4 − 3) × 4) × 6= (1 × 4) × 6 = 4 × 6 = 24

Multiple-step hands — two or more operations, whole numbers throughout

These hands need more than one operation layered together, but every intermediate value stays a whole number — no fractions required. Here their shortest normalized whole-number route has more than two nested operation families. Where genuinely different routes exist, more than one is listed.

HandSolutionCheck
1 · 4 · 6 · 6((1 + 4) × 6) − 6= (5 × 6) − 6 = 30 − 6 = 24
1 · 4 · 6 · 6((4 − 1) × 6) + 6= (3 × 6) + 6 = 18 + 6 = 24
4 · 4 · 10 · 10((10 × 10) − 4) ÷ 4= (100 − 4) ÷ 4 = 96 ÷ 4 = 24
1 · 1 · 4 · 10((1 + 1) × 10) + 4= (2 × 10) + 4 = 20 + 4 = 24
1 · 1 · 6 · 9((1 + 1) × 9) + 6= (2 × 9) + 6 = 18 + 6 = 24
1 · 1 · 6 · 12((1 + 1) × 6) + 12= (2 × 6) + 12 = 12 + 12 = 24
1 · 1 · 7 · 10((1 + 1) × 7) + 10= (2 × 7) + 10 = 14 + 10 = 24
1 · 1 · 8 · 8((1 + 1) × 8) + 8= (2 × 8) + 8 = 16 + 8 = 24
1 · 2 · 6 · 10((1 + 2) × 10) − 6= (3 × 10) − 6 = 30 − 6 = 24
1 · 2 · 6 · 10((1 + 6) × 2) + 10= (7 × 2) + 10 = 14 + 10 = 24
1 · 2 · 7 · 7((7 × 7) − 1) ÷ 2= (49 − 1) ÷ 2 = 48 ÷ 2 = 24
1 · 2 · 7 · 12((7 − 1) × 2) + 12= (6 × 2) + 12 = 12 + 12 = 24
1 · 2 · 8 · 10((8 − 1) × 2) + 10= (7 × 2) + 10 = 14 + 10 = 24
1 · 2 · 9 · 11((1 + 2) × 11) − 9= (3 × 11) − 9 = 33 − 9 = 24
1 · 3 · 3 · 8((1 + 8) × 3) − 3= (9 × 3) − 3 = 27 − 3 = 24
1 · 3 · 9 · 10((1 + 10) × 3) − 9= (11 × 3) − 9 = 33 − 9 = 24

Hands that look impossible

Some hands look like they should not work, and do. A fractional intermediate step can unlock an answer.

This is where players give up too early. With 3, 3, 8, 8, use 8 ÷ (3 − 8 ÷ 3) = 8 ÷ (1/3) = 24. With 1, 3, 4, 6, use 6 ÷ (1 − 3 ÷ 4) = 6 ÷ (1/4) = 24. The small fraction in the denominator is the key. Exact arithmetic avoids rounding uncertainty; a carefully implemented decimal solver may also find these answers.

A hand can look fraction-dependent even when an integer route exists. Compare 3, 3, 7, 7, which requires a fractional step, with 4, 4, 10, 10: the route (10 × 10 − 4) ÷ 4 stays entirely in integers and belongs in Multiple. A fractional-looking answer alone is not evidence that a hand needs fractions.

Fraction hands — no whole-number route exists

Each hand in this table has a solution, but exhaustive search finds no route whose intermediate values are all integers. The Check column keeps the fractions visible through the last step.

HandSolutionCheck
3 · 3 · 8 · 88 ÷ (3 − (8 ÷ 3))= 8 ÷ (3 − (8/3)) = 8 ÷ (1/3) = 24
1 · 3 · 4 · 66 ÷ (1 − (3 ÷ 4))= 6 ÷ (1 − (3/4)) = 6 ÷ (1/4) = 24
3 · 3 · 7 · 7((3 ÷ 7) + 3) × 7= ((3/7) + 3) × 7 = (24/7) × 7 = 24
1 · 5 · 5 · 5(5 − (1 ÷ 5)) × 5= (5 − (1/5)) × 5 = (24/5) × 5 = 24
1 · 4 · 5 · 64 ÷ (1 − (5 ÷ 6))= 4 ÷ (1 − (5/6)) = 4 ÷ (1/6) = 24
1 · 4 · 5 · 66 ÷ ((5 ÷ 4) − 1)= 6 ÷ ((5/4) − 1) = 6 ÷ (1/4) = 24
1 · 6 · 6 · 86 ÷ (1 − (6 ÷ 8))= 6 ÷ (1 − (3/4)) = 6 ÷ (1/4) = 24
1 · 8 · 12 · 1212 ÷ ((12 ÷ 8) − 1)= 12 ÷ ((3/2) − 1) = 12 ÷ (1/2) = 24
2 · 2 · 11 · 11((2 ÷ 11) + 2) × 11= ((2/11) + 2) × 11 = (24/11) × 11 = 24
2 · 2 · 13 · 13(2 − (2 ÷ 13)) × 13= (2 − (2/13)) × 13 = (24/13) × 13 = 24
2 · 3 · 5 · 1212 ÷ (3 − (5 ÷ 2))= 12 ÷ (3 − (5/2)) = 12 ÷ (1/2) = 24
2 · 4 · 10 · 10((4 ÷ 10) + 2) × 10= ((2/5) + 2) × 10 = (12/5) × 10 = 24

No-solution hands — verified by exhaustion

Other hands look workable but cannot make 24. Using this page's solver, we enumerated all 1,820 unordered four-card hands with repetition allowed and values from 1 to 13: 1,362 are solvable and 458 are not. An independent exact-fraction search using BigInt arithmetic confirmed the result for every hand. All distinct number orderings, operator assignments and bracket shapes were exhausted, allowing fractions and negative intermediate results and excluding division by zero.

For example, four ones cannot exceed 4, while four twos can reach 16 but not 24. An intuitive bound can help with these cases; the general verdict below comes from the complete search. Repeated values reduce the number of distinct orderings, so counts vary by hand.

HandSolutionVerdict
1 · 1 · 1 · 1No solutionNo solution — all 320 candidate expressions checked; division by zero excluded.
1 · 1 · 2 · 2No solutionNo solution — all 1,920 candidate expressions checked; division by zero excluded.
2 · 2 · 2 · 2No solutionNo solution — all 320 candidate expressions checked; division by zero excluded.
2 · 3 · 3 · 4No solutionNo solution — all 3,840 candidate expressions checked; division by zero excluded.
2 · 4 · 7 · 13No solutionNo solution — all 7,680 candidate expressions checked; division by zero excluded.
7 · 7 · 7 · 7No solutionNo solution — all 320 candidate expressions checked; division by zero excluded.

How the Solver Works

The solver does not guess. It searches every ordering of your four numbers, every assignment of +, −, × or ÷ to three operator slots, and all five binary bracket shapes. At most 24 × 64 × 5 = 7,680 candidate expressions are checked. Repeated card values reduce the number of distinct orderings; expressions containing division by zero are rejected. Nothing you enter is sent to a server: the calculation runs in your browser.

The arithmetic is exact. Every intermediate value is stored as a reduced integer numerator and denominator, including negative values. Thus 3 − 8 ÷ 3 remains exactly 1/3, rather than a rounded decimal. Fractional routes are retained and labelled. The supported input range keeps these integer calculations within JavaScript’s exact integer limits.

Equivalent expressions are grouped. Subtraction becomes addition of a signed term; division becomes multiplication by a reciprocal. The solver flattens adjacent addition/subtraction or multiplication/division chains, then sorts their terms into a canonical key. It also treats multiplying and dividing by 1 as the same identity step. Reordering 3 × 8 or regrouping a sum therefore does not create another answer. Different constructions are kept; they are not merged merely because both evaluate to 24. A whole-number representative is preferred when an equivalent route exists.

Every search finishes before a no-solution result is shown. That result means exhaustion of this finite search under the stated operations, not a timeout. The four example tables use this same search and equivalence rule.

24 Game Solver FAQ

Can the solver handle fractions?

Yes. The solver works in exact fractions rather than decimals, so hands that can only be solved through a fractional intermediate step are handled correctly. Take 3, 3, 8, 8 — the only solution is 8 ÷ (3 − 8 ÷ 3) = 24. In decimal arithmetic, 3 − 8 ÷ 3 comes out as 0.333333…, and most solvers either miss this hand or report it as unsolvable. Every solution here is labelled when it needs a fraction partway through.

What algorithm does the solver use?

It enumerates every combination: all distinct orderings of your four numbers, all 64 operator assignments, and all five ways to bracket four operands. That is up to 7,680 evaluations per hand, run in your browser in well under a second. Because the arithmetic is exact, no solution is ever lost to rounding. Duplicate expressions — 3 × 8 and 8 × 3, or different bracketings of the same additions — are collapsed before the results are shown.

Is there a 24 game solver app?

You do not need one. This solver runs in the browser on any phone, tablet or desktop, with no download and no install. It is built mobile-first: the input row and the answer list are sized for a phone screen, so you can type four numbers and read the solutions without pinching or scrolling sideways. Add the page to your home screen if you want one-tap access.

Why does my hand have no solution?

Some hands genuinely cannot make 24, no matter how you combine them — 1, 1, 1, 1 is the simplest example, since the largest value you can reach is 4. When the solver finds nothing, it says so plainly instead of showing a blank result, and you can be sure every combination was checked. If you are playing with physical cards, check that you entered the numbers correctly first.

Can it solve 3 numbers instead of 4?

This solver uses four numbers, which is the standard 24 Game format. Enter four operands and combine them with any mix of addition, subtraction, multiplication and division, with brackets allowed. Four-number hands remain the default because they provide the full game challenge.

How many solutions does a hand have?

It varies a lot. Most hands have several solutions once you collapse expressions that are the same up to commutativity — 2, 3, 4, 5 works as 4 × (5 + 3 − 2) and as 2 × (5 + 4 + 3), among others. A few hands have exactly one essential solution: 3, 3, 8, 8 is the classic case, and it is 8 ÷ (3 − 8 ÷ 3). The solver lists every distinct solution and marks the ones that need a fraction.

Is the solver free? Do I need to sign up?

Free, and no account is needed. Type your four numbers and the solutions appear straight away — nothing is behind a login, a paywall or a "view more" click. The solver runs entirely in your browser, so nothing is uploaded and there is no per-day limit. If you use it regularly, bookmarking the page is the only thing worth doing.

Can teachers use the solver in class?

Yes, and it is designed for it. The solver is ad-supported rather than paid, works on classroom tablets and Chromebooks with no install, and shows every solution rather than just the first — which makes it useful for comparing a class's answers against the full list. For printed material, the free printable cards and answer keys on our 24 game cards page cover the same range of difficulty.

Can I enter decimals or negative numbers?

No — all input modes take positive whole numbers. Classic accepts card values from 1 to 13: suits are ignored, and face cards count as 11, 12 and 13. Big and Custom target accept numbers from 1 to 100; Custom target also accepts a whole-number goal from 1 to 9999. Negative numbers and fractions may appear inside a solution, but not in the hand you enter.

Are negative numbers allowed partway through a solution?

Yes. Only the final value has to equal the target; intermediate results may be negative. For 3, 7, 2, 8, the expression (3 − 7) × (2 − 8) passes through −4 and −6 and reaches 24. This is a valid route, not a claim that this hand requires negatives. The solver retains negative intermediate values when searching all permitted expressions.

Why show every solution instead of just one?

Because one answer does not show all the ways to solve a hand. Comparing distinct routes helps you spot a shorter construction, check your own working, or understand how a fraction unlocks an answer. The full list groups equivalent reorderings, so different-looking answers may share one representative. You can compare methods without mistaking a change of order for a new solution.

Does the solver work on my phone?

Yes — it runs in the browser on phones and tablets. There is nothing to install and no account to create. Open the page, enter four numbers and choose Find solutions, or use the Classic number buttons. The result list adapts to the screen, and wide worked-example tables scroll inside their own containers.

Solve the hand, then use it. These free tools support online practice, paper puzzles and learning together: