24 Game Math Solver

Enter 4 numbers and instantly find all possible addition, subtraction, multiplication, and division combinations that equal 24.

Classic Challenges

Enter 4 numbers to solve

Type numbers 1-13 in the slots above (A, J, Q, K supported), or pick a classic challenge above.

3.7/ 5
3 ratings
Rate this tool
Click stars to rate

Comments

U

What is the 24 Game? (Instant 4-Number Rules)

The 24 Game is a classic mental-math puzzle where you must combine four numbers (1–13)—using each number exactly once with addition (+), subtraction (−), multiplication (×), division (÷), and parentheses—to make 24. Enter any four digits (or poker shortcuts A=1, T=10, J=11, Q=12, K=13) above to instantly see every valid solution, including fractional steps, or confirm when a hand is mathematically unsolvable.

Classic Hard 24 Game Puzzles & Solutions

The trickiest 24 Game hands require intermediate fractions or non-obvious division before multiplying back to 24. Click any preset in the solver above—or use this quick reference—to see how the hardest hands work:

4 NumbersWinning FormulaKey Technique
3, 3, 8, 88 ÷ (3 − (8 ÷ 3)) = 24Intermediate fraction (3 − 8/3 = 1/3, then 8 ÷ 1/3)
1, 5, 5, 55 × (5 − (1 ÷ 5)) = 24Fractional subtraction (5 − 1/5 = 24/5)
1, 3, 4, 66 ÷ (1 − (3 ÷ 4)) = 24Unit-fraction denominator (1 − 3/4 = 1/4)
1, 4, 5, 64 ÷ (1 − (5 ÷ 6)) = 24 or 6 ÷ ((5 ÷ 4) − 1) = 24Two distinct fraction paths
4, 4, 10, 10((10 × 10) − 4) ÷ 4 = 24Large intermediate product (96 ÷ 4 = 24)
1, 11, 12, 1312 × (13 − 11) × 1 = 24Poker face-card pairing (A, J, Q, K)

Fast Mental-Math Strategy for Solving 24

Before checking the solver, scan for these four high-yield target pairs:

  1. Build 3 × 8 or 4 × 6: Keep one target factor (3, 4, 6, or 8) aside and combine the other three cards to form its partner.
  2. Build 2 × 12 or 24 ÷ 1: Especially effective with face cards (J=11, Q=12, K=13) where 13 − 11 = 2 or 12 + 12 = 24.
  3. Overshoot and Divide: Multiply two large cards to reach 48, 72, or 96, then divide by 2, 3, or 4 (as in (10 × 10 − 4) ÷ 4).
  4. Look for Fraction Denominators: When whole numbers stall (like 3, 3, 8, 8), try forming 1/3, 1/4, or 1/6 so dividing by the fraction multiplies into 24.

How Does the Solver Algorithm Work?

To guarantee complete coverage, our solver runs an exhaustive Depth-First Search (DFS) across all permutations of the 4 numbers, all combinations of +, −, ×, and ÷, and all 5 binary parenthesization structures:

Bracket TypeMathematical StructureValid 1–13 Card Example
Type 1 (Linear Left)((A op B) op C) op D((2 + 4) × 3) + 6 = 24
Type 2 (Balanced)(A op B) op (C op D)(4 × 3) + (6 × 2) = 24
Type 3 (Nested Left)(A op (B op C)) op D(4 × (2 + 1)) × 2 = 24
Type 4 (Nested Right)A op ((B op C) op D)6 × ((5 − 3) + 2) = 24
Type 5 (Linear Right)A op (B op (C op D))12 ÷ (2 ÷ (8 ÷ 2)) = 24

Exploring up to 4! (24) permutations × 4³ (64) operator choices × 5 tree shapes (up to 7,680 expression trees, pruned by commutativity of + and ×), the solver evaluates every candidate with floating-point tolerance (1e-6), deduplicates identical expressions, and flags intermediate-fraction solutions in milliseconds.

Solvable vs. Unsolvable 24 Game Odds

Frequently Asked Questions (FAQ)