The 24 Game Solver with fractions searches every valid arithmetic grouping of four whole numbers and uses exact fractional arithmetic to find constructions that equal 24. Its inputs are four positive whole numbers from 1 through 99, and every returned expression uses each number exactly once with addition, subtraction, multiplication, division, and parentheses only. This matters when a correct route passes through a fractional intermediate value: the solver does not round that fraction away, discard it, or accept a value that is merely close to 24. To use it, enter one value in each field, select Solve, and read a returned expression from the inside of its parentheses outward. The complete expression is followed by = 24, so you can inspect the operation order and check the result directly. If the page reports no solution, that is an exhaustive verdict for the disclosed rules and input limits—not a suggestion to keep guessing randomly. The tool is therefore both a solver for a specific hand and a checker of whether that hand is solvable under the standard four-basic-operation rules. It supports fractional reasoning without asking you to enter fractions as the starting cards.

24 game solver with fractions
24 Game Solver With Fractions: Enter, Solve, Verify

The hand format and arithmetic rules

Here, “with fractions” describes the solver’s internal arithmetic rather than its input format. You start with four positive whole numbers from 1 through 99. The solver may create fractions while combining them, but it does not accept fractional or decimal cards as starting values. The search is limited to the four basic operations and parentheses.

Feature Accepted setting Practical meaning
Starting values Exactly four positive whole numbers from 1 through 99 Enter one number in each field
Use of values Each entered value exactly once No number may be omitted or reused
Operations Addition, subtraction, multiplication, division, and parentheses No extra operations are included
Intermediate arithmetic Exact reduced fractions A fraction may appear inside a valid answer
Output Up to 50 distinct expression strings Each complete expression ends with = 24
No-solution result The exhaustive search found no exact construction The verdict applies to these rules and input limits

The accepted operation contract follows the common rules documented by the UC Santa Cruz mathematics program’s 24 Game page and was independently cross-checked against the 4nums 24 Game reference. Different commercial card editions may use a narrower range, but this solver deliberately accepts positive whole numbers through 99 while preserving the basic-operation contract.

Use the 24 Game Solver in this order:

  1. Enter the four values. Put exactly four whole numbers from 1 through 99 in the four fields, one number per field.
  2. Select Solve. The page exhaustively searches the allowed groupings and combinations, carrying exact fractional values through intermediate steps.
  3. Read the outcome. Read any returned expression from the inside of the parentheses outward. Confirm that the complete line ends with = 24 and that every entered value appears exactly once. If no solution is returned, use that result as the verdict for these rules and input limits.

Parentheses are part of the solution, not optional decoration; removing them can change the order of operations. For classroom or puzzle practice, attempt the hand before selecting Solve, then compare your construction with the returned list. The page solves a supplied hand rather than checking a separate expression typed by a player.

Trace a fractional intermediate through a valid hand

The hand 3, 3, 8, 8 shows why exact fractions matter. One valid construction can be checked in this single chain:

  1. Set the working form: a ÷ (b − c ÷ d).
  2. Substitute the values: a = 8, b = 3, c = 8, and d = 3, giving 8 ÷ (3 − 8 ÷ 3).
  3. Evaluate from the inside: 8 ÷ 3 = 8/3, then 3 − 8/3 = (9/3 − 8/3) = 1/3.
  4. Finish the outer operation: 8 ÷ (1/3) = 24.

The fractional value is not one of the starting cards; it is an intermediate term created by division. Each of the two 3s and two 8s is used once. Reading from the innermost parentheses outward mirrors the expression’s evaluation order and makes the equality easy to verify without changing any grouping.

Internally, every term is stored as a reduced integer numerator and a positive integer denominator. The greatest common divisor reduces the pair, and the final equality test is numerator = 24 × denominator. The solver therefore does not rely on binary floating-point comparisons. A fraction stays exact through later combinations, while a number that is only close to 24 cannot pass the final check.

At each search step, the tool selects two remaining terms, combines them with addition, multiplication, both subtraction orders, and every legal division order, then returns the result to the remaining pool. Repeating that process explores different pairings and parenthesis structures until one term remains. This is what makes the search exhaustive for the disclosed operation set and input bounds, rather than a left-to-right integer test. Because the starting values stop at 99, the intermediate integer products also remain within the engine’s safe-integer range. The qualifier “exhaustive” does not extend to puzzles that allow extra operations or repeated numbers.

Interpret solutions and no-solution results

Each result is displayed as a complete expression followed by = 24, which makes the output directly checkable. The parentheses disclose the operation order, so read them exactly as shown rather than assuming a conventional precedence rule has been applied somewhere else. A valid line contains all four supplied values exactly once and only addition, subtraction, multiplication, or division.

The page returns at most 50 distinct expression strings. The implementation removes duplicate strings and orders them by length and then locale order, but reordered expressions can still express the same arithmetic idea. The list is therefore a set of valid constructions, not a guarantee of one canonical entry for every mathematical equivalence class, and a hand with many forms can exceed the display cap. If the page reports no solution, the exhaustive search found no exact construction using every input once, the four basic operations, parentheses, and the accepted input range. That verdict does not rule out a different puzzle that permits powers, factorials, concatenation, or other changes.

Resolve common rule mismatches

Most discrepancies come from the puzzle rules or input format rather than the fraction engine. Check these points before treating a result as final:

  • Starting values: Use exactly four positive whole numbers from 1 through 99. Fractional and decimal starting cards are outside the accepted input format.
  • Number of cards: A three-number or five-number puzzle is not the hand this solver checks.
  • Allowed operations: The solver does not add concatenation, exponentiation, factorials, roots, decimal-point insertion, unary negation as an extra operation, or reuse of a number.
  • Grouping: Keep the parentheses because they determine the order of operations.
  • Source rules: A no-solution result applies to the basic four-operation game, not every possible expansion of a puzzle.

If the page reports no solution, recheck that the four values were copied correctly and that the source uses the same operation rules. An answer requiring a power or factorial may be valid for that source while remaining outside this solver’s contract.

Local processing and focused scope

All processing occurs in the browser. The four numbers and generated expressions are not uploaded, stored, or attached to an account. No login is required, and there is no usage limit, so the same check can be repeated for classroom analysis, puzzle practice, or verification of a proposed hand.

The solver stays focused on one question: can these four values make exactly 24 under the stated rules, and which concrete expressions demonstrate the answer? It does not generate random puzzles, rank difficulty, promise a unique shortest solution, or verify an expression typed elsewhere. Using it with fractions therefore does not change the game; it makes the search more complete when a valid path needs a fractional intermediate value.

For a deeper look, see How to Calculate Fractions on iPhone Calculator.

For a deeper look, see 24 Hour Time Converter: AM, PM, and Military Time.