24 Game Solver

Enter four numbers (1-13) and discover all expressions that equal 24 using +, -, *, / and parentheses.

Input Mode

Number

How to Play

The 24 game is a classic arithmetic puzzle. Use all four numbers exactly once with +, -, *, / to reach 24.

  • Enter four numbers between 1 and 13 (like playing cards).
  • Each number must be used exactly once.
  • You can use +, -, *, / and parentheses in any order.
  • The solver finds all valid expressions that equal 24.
Execution ModeRuns entirely in the browserAll solutions are computed locally using a pre-computed lookup table.