We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
Was this tool helpful to use?
Your feedback helps us make it better
Quickly calculate how to make 24 from four numbers using basic math operations.
Select card values from the dropdown, or click 'Shuffle' to generate a new set of cards.
After selecting 4 cards, click 'Solve 24' to view all solutions.
Overview
Understand what the tool solves, how it works, and the boundaries of its data.
Enter four playing-card values and the solver searches for expressions that use those values with addition, subtraction, multiplication, or division to reach 24. Each of the four inputs is used once. Parentheses make the order of operations explicit. The card range is Ace as 1 through King as 13, matching the values shown by the controls.
For example, with 1, 2, 3, and 4, the expression (1 + 3) × (2 + 4) = 24 uses each value once. The page lists matching expressions when it finds them; repeated or rearranged forms may appear because equivalent arithmetic arrangements are not all collapsed into one canonical answer.
The solver checks possible number orders, the four basic operations, and common parenthesis groupings. Division by zero is skipped. Some four-card sets cannot reach exactly 24 under these rules, so a no-solution result is a valid outcome rather than an input error. The search uses floating-point arithmetic with a small tolerance when checking whether a result equals 24.
Try to solve the cards before requesting answers, then compare your expression with the displayed list. Parentheses help show which operation happens first. The shuffle button creates a new set from card values 1 through 13; reset returns the inputs to 1, 2, 3, and 4. Copy an expression when you want to save a particular answer.
Guide
Follow the workflow and verify inputs and outputs with practical examples.
Choose a value from Ace (1) through King (13) in each card selector. Repeated values are allowed, just as a card set can contain cards with the same rank.
Select the calculate control to search for expressions. Editing a card clears the prior result so that it cannot be mistaken for the new set.
Each listed expression is shown equal to 24 and has its own copy control. If no expressions appear, the result area reports that this set has no solution under the supported operations.
Shuffle to generate four new values, or reset to the initial 1, 2, 3, 4 set. You can also change individual values instead of shuffling.
Use cases
See how the tool fits into real work and everyday tasks.
A learner can work out a hand first, then use the listed expressions to check operation order and parenthesis placement.
A parent or teacher can enter the four card values and use a copied expression to discuss why each card is used exactly once.
Players can enter a disputed hand to see whether a solution exists under the basic four-operation rules before moving to the next round.
Q&A
Find concise answers to common questions and confusing cases.
Yes. Some combinations cannot make 24 using each value once and only addition, subtraction, multiplication, and division. The no-solution message reflects that search.
No. This calculator searches for 24 and does not provide a target-number field.
The results can include different operation orders or arrangements that produce equivalent arithmetic. The display does not guarantee one unique expression for each mathematical idea.
Notes
Review scope, result limitations, and important precautions before use.
Solutions follow the page's four-card range and four basic operations. They do not add exponents, concatenation, factorials, or other game variants.
Related
Discover related tools, collections, and available API capabilities.