24 Game Solver screenshot

24 Game Solver

Find an expression using all four numbers once with + − × ÷ that makes exactly 24, or say that none exists.

Privacy First
0 Runs
Updated 2026-11-22
Runs in your browser
States its rule
Nothing uploaded

What this 24 Game Solver does

Find an expression using all four numbers once with + − × ÷ that makes exactly 24, or say that none exists.

The page tries every pairing of the four numbers, every placement of addition, subtraction, multiplication and division, and every way of bracketing the result — the complete search, not a heuristic. It returns the first expression it finds in a fixed order, so the same four numbers always print the same answer. Only whole numbers from 1 to 13 are accepted, and division is exact arithmetic.

How to use it

Enter Number A, Number B, Number C, Number D, then press Run. The page recalculates from the values on screen and prints the rule it applied.

Worked example

Input:

Number A = 6
Number B = 6
Number C = 6
Number D = 6

Output:

Numbers = 6, 6, 6, 6
Solution = ((6 + 6) + (6 + 6))
Rule = every pairing, every placement of + − × ÷, exact arithmetic

Why it runs in your browser

This page runs entirely in this tab: no value is posted to a server, no cookie or storage entry is written, and reloading the page discards everything.

24 Game Solver: Find an expression using all four numbers once with + − × ÷ that makes exactly 24, or say that none exists.

The page tries every pairing of the four numbers, every placement of addition, subtraction, multiplication and division, and every way of bracketing the result — the complete search, not a heuristic. It returns the first expression it finds in a fixed order, so the same four numbers always print the same answer. Only whole numbers from 1 to 13 are accepted, and division is exact arithmetic.

Worked example: Number A = 6, Number B = 6, Number C = 6, Number D = 6 gives Numbers = 6, 6, 6, 6; Solution = ((6 + 6) + (6 + 6)); Rule = every pairing, every placement of + − × ÷, exact arithmetic.

How to use the 24 Game Solver calculator

Enter Number A, Number B, Number C, Number D, then press Run. The page recalculates from the values on screen and prints the rule it applied.

This page runs entirely in this tab: no value is posted to a server, no cookie or storage entry is written, and reloading the page discards everything.

  • Number A — a number
  • Number B — a number
  • Number C — a number
  • Number D — a number

The rule this page applies

The page tries every pairing of the four numbers, every placement of addition, subtraction, multiplication and division, and every way of bracketing the result — the complete search, not a heuristic. It returns the first expression it finds in a fixed order, so the same four numbers always print the same answer. Only whole numbers from 1 to 13 are accepted, and division is exact arithmetic.

Static HTML and JavaScript only — the same source served to every visitor, with no network call and no server-side executor.

  • Numbers = 6, 6, 6, 6
  • Solution = ((6 + 6) + (6 + 6))
  • Rule = every pairing, every placement of + − × ÷, exact arithmetic

What to Expect

Best for

  • Getting the numbers quickly
  • Checked arithmetic, printed with its rule
  • Comparing two sets of inputs

Not ideal for

  • Data this page does not carry
  • A guarantee about the physical world
  • Locales other than English

What this tool keeps

  • Your inputs in this tab
  • The rule, printed in full
  • The same answer on every run

What may need cleanup

  • A value the page refuses, which names the field instead of guessing
  • A number outside the stated range, which is refused by name

Common errors

  • A blank field is refused rather than read as zero
  • A zero denominator is refused rather than printed as infinity
  • A value outside the formula’s range is refused with the range named

Example use cases

  • Checking a figure before you rely on it
  • Homework and exam checking
  • Comparing two options side by side

Sample input

Number A = 6, Number B = 6, Number C = 6, Number D = 6

Sample output

Numbers = 6, 6, 6, 6; Solution = ((6 + 6) + (6 + 6)); Rule = every pairing, every placement of + − × ÷, exact arithmetic

Who this is for

  • Anyone checking this figure by hand
  • Students and teachers

Frequently asked questions

What does 24 Game Solver calculator do?

Find an expression using all four numbers once with + − × ÷ that makes exactly 24, or say that none exists. It prints numbers, solution, rule.

How does this page work out the answer?

The page tries every pairing of the four numbers, every placement of addition, subtraction, multiplication and division, and every way of bracketing the result — the complete search, not a heuristic. It returns the first expression it finds in a fixed order, so the same four numbers always print the same answer. Only whole numbers from 1 to 13 are accepted, and division is exact arithmetic.

Is anything uploaded or stored?

This page runs entirely in this tab: no value is posted to a server, no cookie or storage entry is written, and reloading the page discards everything.

Which inputs does the page read?

It reads Number A, Number B, Number C, Number D. Every other value is derived from those.

What if there is no solution?

The page says so rather than printing a near miss. Not every set of four numbers can make 24, and a solver that always found something would be dishonest.

Why is only one expression printed?

Because one is enough to prove the set is solvable. The search finds the first in a fixed order; a different bracketing of the same numbers may also work.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.