24 Game Solver

Enter the numbers on your cards and the target, and the solver lists all distinct expressions that reach it, including tricky fraction solutions.

Berjalan dalam pelayar anda. Fail anda tidak pernah meninggalkan peranti. Lihat cara menyemaknya

…

Cara melakukannya

  1. 1
    Enter the numbers

    Separated by commas.

  2. 2
    Enter the target

    24 by default.

  3. 3
    Read the first solution

    Highlighted.

  4. 4
    Browse all solutions

    In the table.

Tentang alat ini

The 24 game is a classic mental arithmetic puzzle: draw four cards and combine their numbers with addition, subtraction, multiplication and division to make exactly 24, using each number once. Some hands are easy, others famously hard, like 8, 8, 3, 3, whose only solution needs a fraction. This solver searches every combination with exact fractions, so no solution is missed and none is invented by rounding, and it works for other targets and for two to six numbers.

Who this is for

Puzzle fans, teachers using the game for arithmetic practice, parents and competition players checking hands.

Rules

Use every number exactly once, with +, −, × and ÷ and any brackets. Concatenating digits (making 33 from 3 and 3) is not allowed in the standard game.

How the solver works

It repeatedly picks two numbers, combines them with every operation (both orders for − and ÷), and recurses on the smaller set until one value remains. Because it uses exact fractions instead of decimals, 8 ÷ (3 − 8 ÷ 3) is recognised as exactly 24.

Hard hands

- 8, 8, 3, 3 → 8 ÷ (3 − 8 ÷ 3) - 1, 5, 5, 5 → 5 × (5 − 1 ÷ 5) - 3, 3, 7, 7 → 7 × (3 + 3 ÷ 7) - 1, 3, 4, 6 → 6 ÷ (1 − 3 ÷ 4) These all need fractions along the way, which is what makes them hard.

Unsolvable hands

Of the 1820 distinct four-card hands with values 1–13, about a quarter have no solution, for example 1, 1, 1, 1. The solver tells you when none exists.

Teaching ideas

- Ask students to find two different solutions. - Change the target to 10 or 36. - Use five numbers for a harder challenge. - Discuss why order of operations and brackets matter.

Listing solutions

The list shows distinct expressions; some may be equivalent rearrangements (such as a + b and b + a in different positions). The count stops at 40 to keep the page fast.

Good practice

Try the hand yourself first, then use the solver to check or to learn the tricky ones.

Variations

Some versions allow powers, roots or factorials, or use cards with picture values (J = 11, Q = 12, K = 13). Others race against a clock or play in teams. The solver follows the classic rules with the four basic operations.

Why it is good practice

The game trains number sense, flexible thinking and the order of operations. Players learn factor pairs of 24 (1 × 24, 2 × 12, 3 × 8, 4 × 6) and look for ways to build one of them.

Strategy tips

Look for a 4 and a 6, or a 3 and an 8, then try to make the missing factor from the other two cards. Division by a fraction is often the key to the hardest hands.

Worked example

For 8, 8, 3, 3 the solver finds exactly one expression: 8 ÷ (3 − (8 ÷ 3)) = 24. For 1, 2, 3, 4 it finds many, such as 1 × 2 × 3 × 4 and (1 + 2 + 3) × 4.

Limits

Two to six integers; expressions with more than six numbers grow too large to list. Not an official competition referee.

Contoh berselesaian

8, 8, 3, 3 has one solution: 8 ÷ (3 − 8 ÷ 3) = 24.

Ringkasnya

Soalan lazim

How do you solve 8 8 3 3 in the 24 game?

8 ÷ (3 − 8 ÷ 3) = 24.

Can every hand make 24?

No, about a quarter of the distinct hands with values 1–13 cannot.

Can I change the target?

Yes, any whole number.

Why use exact fractions?

Decimals can miss or fake solutions through rounding.

How many numbers can I enter?

Two to six.

Is my data stored?

No. Everything is calculated in your browser.

Percuma sepenuhnyaTiada bayaran, tiada pendaftaran
Fail kekal peribadiSemuanya berjalan dalam pelayar anda
Mudah dalam bahasa andaTersedia dalam banyak bahasa