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.
브라우저에서 실행됩니다. 파일은 기기 밖으로 나가지 않습니다. 확인하는 방법 보기
…
사용 방법
- 1Enter the numbers
Separated by commas.
- 2Enter the target
24 by default.
- 3Read the first solution
Highlighted.
- 4Browse all solutions
In the table.
이 도구 소개
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.
풀이 예시
8, 8, 3, 3 has one solution: 8 ÷ (3 − 8 ÷ 3) = 24.
한눈에 보기
- 카테고리: 게임 및 재미
- 브라우저에서 실행되며 가입도 업로드도 필요 없습니다.
- 입력한 정보는 기기에 머뭅니다.
- 영어로 제공됩니다.
- 콘텐츠 최종 검토일:
- 공식 출처: Exhaustive search over all orders of combining the numbers with +, −, ×, ÷ and every bracketing, using exact rational arithmetic so that solutions such as 8 ÷ (3 − 8 ÷ 3) are found without rounding errors
자주 묻는 질문
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.
