Combinations Calculator
C(n,r) — order does not matter
Variable Legend
Combinations formula
Order does not matter.
Pascal's triangle identity
Each value is the sum of the two above it.
Symmetry
Choosing r is the same as leaving out n−r.
Combinations with repetition
Allow repeating items.
Combinations, often written as nCr or C(n,r), count how many groups of r items can be chosen from n distinct items when the order of selection does not matter. This idea appears everywhere once you know what to look for. Selecting a committee, choosing a team roster, drawing a poker hand, picking lottery numbers, and calculating parts of the binomial theorem are all combination problems. The reason is that the final set is what matters, not the sequence used to list it. A group containing Anna, Ben, and Chris is still the same group whether you say Anna-Ben-Chris or Chris-Anna-Ben. This concept is foundational in probability and statistics because many event counts depend on it. It is also central to Pascal's triangle, binomial coefficients, and algebraic expansion. A combinations calculator makes the concept usable at real scale because factorials grow very quickly. Even moderate values produce very large intermediate numbers, so a calculator saves time and reduces arithmetic mistakes. More importantly, it helps people focus on the key modeling question: does order matter? If it does not, combinations are usually the right tool. The calculator represented by this page is most useful for students, teachers, analysts, and anyone working through selection problems. It can support classroom work, probability exercises, contest math, coding interviews, and practical selection scenarios. It also teaches symmetry: choosing r items from n is the same as choosing which n-r items to leave out. That makes C(n,r) = C(n,n-r), a property that often simplifies mental checks and hand calculations. Used well, a combinations calculator is not just a shortcut. It is a way to connect counting, probability, and algebra with a reliable, easy-to-check result.
Main formula: C(n,r) = n! / (r! (n-r)!), where n is the total number of items and r is the number selected. Symmetry property: C(n,r) = C(n,n-r). Worked example: C(12,4) = 12! / (4! 8!) = (12 x 11 x 10 x 9) / (4 x 3 x 2 x 1) = 495.
- 1Enter n as the total number of available distinct items and r as the number you want to select.
- 2Check that the problem is about choosing a group rather than arranging positions, because combinations only apply when order does not matter.
- 3The calculator verifies that r is between 0 and n, which are the valid bounds for combinations without replacement.
- 4It computes the binomial coefficient using C(n,r) = n! / (r! (n-r)!) or an equivalent reduced-product method.
- 5It can also use the symmetry rule C(n,r) = C(n,n-r) to simplify the arithmetic when r is close to n.
- 6The final result is the count of distinct groups, which can then be used directly in probability, statistics, or combinatorics problems.
A good example for learning the meaning of nCr.
You can list the ten pairs by hand and confirm that order is ignored. This makes it a useful introductory example.
Combinations are the right model because no offices are assigned.
The calculator counts every unique 4-student group once. Rearranging the same four names does not create a new committee.
This is the standard number of 5-card hands.
Card-hand counting is a classic combinations application because the order in which cards appear in your hand is irrelevant. Probability calculations for many games start from this value.
Lottery picks are unordered selections without replacement.
A ticket is defined by the set of numbers chosen, not the order written down. That makes the combination count the correct denominator for simple probability calculations.
Counting possible committees, teams, sample groups, and card hands.. This application is commonly used by professionals who need precise quantitative analysis to support decision-making, budgeting, and strategic planning in their respective fields
Building probability denominators for lotteries, games, and statistical models.. Industry practitioners rely on this calculation to benchmark performance, compare alternatives, and ensure compliance with established standards and regulatory requirements, helping analysts produce accurate results that support strategic planning, resource allocation, and performance benchmarking across organizations
Understanding binomial coefficients in algebra and Pascal's triangle.. Academic researchers and students use this computation to validate theoretical models, complete coursework assignments, and develop deeper understanding of the underlying mathematical principles
Researchers use combinations computations to process experimental data, validate theoretical models, and generate quantitative results for publication in peer-reviewed studies, supporting data-driven evaluation processes where numerical precision is essential for compliance, reporting, and optimization objectives
Zero or all chosen
{'title': 'Zero or all chosen', 'body': 'If r is 0 or r equals n, the result is always 1 because there is only one way to choose none of the items or all of them.'} When encountering this scenario in combinations calculations, users should verify that their input values fall within the expected range for the formula to produce meaningful results. Out-of-range inputs can lead to mathematically valid but practically meaningless outputs that do not reflect real-world conditions.
Repeated choices allowed
{'title': 'Repeated choices allowed', 'body': 'If the same type can be selected more than once, the ordinary nCr formula is not appropriate and combinations with replacement should be used instead.'} This edge case frequently arises in professional applications of combinations where boundary conditions or extreme values are involved. Practitioners should document when this situation occurs and consider whether alternative calculation methods or adjustment factors are more appropriate for their specific use case.
Negative input values may or may not be valid for combinations depending on the domain context.
Some formulas accept negative numbers (e.g., temperatures, rates of change), while others require strictly positive inputs. Users should check whether their specific scenario permits negative values before relying on the output. Professionals working with combinations should be especially attentive to this scenario because it can lead to misleading results if not handled properly. Always verify boundary conditions and cross-check with independent methods when this case arises in practice.
| Selection | Formula form | Value | Interpretation |
|---|---|---|---|
| C(5,2) | 5! / (2! 3!) | 10 | Pairs from 5 items |
| C(10,3) | 10! / (3! 7!) | 120 | Three-person groups from 10 |
| C(12,4) | 12! / (4! 8!) | 495 | Committees of 4 from 12 |
| C(52,5) | 52! / (5! 47!) | 2598960 | Five-card hands |
What is nCr?
nCr is another way to write the number of combinations when choosing r items from n distinct items. It is read as "n choose r" and counts groups, not arrangements. In practice, this concept is central to combinations because it determines the core relationship between the input variables. Understanding this helps users interpret results more accurately and apply them to real-world scenarios in their specific context.
How do I know if a problem is combinations or permutations?
Ask whether swapping the order changes the outcome. If the answer stays the same after reordering, combinations are the right model; if the order creates a new result, use permutations. The process involves applying the underlying formula systematically to the given inputs. Each variable in the calculation contributes to the final result, and understanding their individual roles helps ensure accurate application.
How do you calculate combinations by hand?
Start with C(n,r) = n! / (r! (n-r)!) and cancel terms before multiplying to keep the arithmetic manageable. Many people also use the symmetry rule to replace r with n-r when that makes the calculation shorter. The process involves applying the underlying formula systematically to the given inputs. Each variable in the calculation contributes to the final result, and understanding their individual roles helps ensure accurate application.
What is a good real-world example of combinations?
A committee selection is one of the clearest examples because the final set of people matters, not the order in which they were named. Card hands and lottery picks are also classic real-world combination problems. In practice, this concept is central to combinations because it determines the core relationship between the input variables. Understanding this helps users interpret results more accurately and apply them to real-world scenarios in their specific context.
What are the limitations of the combinations formula?
It assumes no replacement and no importance of order. If repeats are allowed or if positions are labeled, you need a different counting rule. This is an important consideration when working with combinations calculations in practical applications. The answer depends on the specific input values and the context in which the calculation is being applied. For best results, users should consider their specific requirements and validate the output against known benchmarks or professional standards.
Who discovered combinations?
Combination counting developed gradually across many mathematical traditions rather than being attributed to one single inventor. Work on binomial coefficients and counting methods appears in historical mathematics from several cultures long before modern notation was standardized. This is an important consideration when working with combinations calculations in practical applications. The answer depends on the specific input values and the context in which the calculation is being applied.
How often should I recalculate combinations?
Recalculate whenever either n or r changes. Because the formula is sensitive to both inputs, even a one-item difference can materially change the final count. The process involves applying the underlying formula systematically to the given inputs. Each variable in the calculation contributes to the final result, and understanding their individual roles helps ensure accurate application. Most professionals in the field follow a step-by-step approach, verifying intermediate results before arriving at the final answer.
Pro Tip
Always verify your input values before calculating. For combinations, small input errors can compound and significantly affect the final result.
Did you know?
The mathematical principles behind combinations have practical applications across multiple industries and have been refined through decades of real-world use.