Free tools

24 game solver

Enter four whole numbers. The solver tries every way of combining them with addition, subtraction, multiplication and division — each number used exactly once — and lists every distinct solution, with the steps that build it. Solutions that are the same idea written differently (for example 3 × 8 and 8 × 3) are shown once.

Your four numbers

Whole numbers from 0 to 999. Everything runs in your browser; nothing is sent anywhere.

Press Solve to see the answers.

How the solver works

It takes any two of the numbers, replaces them with their sum, difference, product or quotient, and repeats until one number is left. With four numbers that is at most a few thousand combinations, so it checks all of them. Every calculation is done with exact fractions, never rounded decimals, so a solution like 8 ÷ (3 − 8 ÷ 3) is found correctly: 3 − 8/3 is exactly 1/3, and 8 ÷ 1/3 is exactly 24.

Some facts about the 24 game

With numbers from 1 to 13 (the values of a deck of cards) there are 1,820 different sets of four. This solver finds that 1,362 of them can make 24 and 458 cannot. Only 16 sets can be solved only with a fraction somewhere along the way — those are the famous hard ones, explained in The hardest 24 puzzles.

Try to solve it yourself first

A solver is useful to check an answer, but the skill only grows when you find it yourself. Our Target 24 strategy guide explains the four techniques that solve almost every puzzle, and Number Forge in BRINXO gives you five fresh puzzles a round with hints when you are stuck.