🎴 24 Game Solver
Enter 4 playing cards (A/J/Q/K letters or 1–13 numbers) and see every expression that makes 24. Features exact rational arithmetic (catches fraction solutions like 8÷(3−8÷3)), equivalence dedup, bracket-minimized display, custom target, random deal, and classic hard-case presets. Works on desktop and mobile.
Rules & tips
Rules
- Use each of the 4 cards exactly once.
- Only + − × ÷ and parentheses are allowed.
- Letter cards: A = 1, J = 11, Q = 12, K = 13.
- Intermediate results can be fractions, e.g. 8÷(3−8÷3) = 24.
Three core patterns
- 3 × 8 — find a 3 and an 8, e.g. (1+2)×8 or 3×(5+3).
- 4 × 6 — find a 4 and a 6, e.g. (2+2)×(1+5).
- 12 × 2 — find a 12 and a 2, e.g. (7+5)×(3−1).
Two classic examples
3 · 3 · 8 · 8→8 ÷ (3 − 8 ÷ 3) = 24(fraction path required)1 · 2 · 3 · 4→1×2×3×4、(1+2+3)×4、(1+3)×(2+4)and more.
Of the 1820 unordered 4-card combos from 1 to 13, about 75% are solvable; ~25% are unsolvable (e.g. 1·1·1·1, 13·13·13·13).
Online 24 game solver: enter 4 cards (A/J/Q/K letters or 1–13 numbers) and see every expression that makes 24. Uses exact rational arithmetic (no float errors — catches fraction solutions like 8÷(3−8÷3)), auto-dedups equivalent expressions (commutativity + associativity), minimizes brackets, and sorts by simplicity. Features custom target (1–99), random deal (solvable-only option), classic hard-case presets (3388/4/4/10/10), and full rules + strategy tutorial. client-side solver; card input is not uploaded. Works on desktop and mobile with full keyboard accessibility (Tab, Enter, Esc).