Calculator · math
Combinations Calculator
How many ways you can choose from a set, with and without regard to order.
Your numbers
The result
Combinations (order does not matter)
120
Permutations (order matters)
720
Runs in your browser · Nothing you type is stored
Embed this on your site
Free to embed. The attribution link stays with the widget, and the calculator keeps working exactly as it does here.
<iframe src="https://thedigitalstash.net/embed/combinations-calculator" title="The Digital Stash calculator" width="100%" height="720" style="border:0;max-width:100%" loading="lazy"></iframe>
Understanding the Combinations Calculator
The Combinations Calculator is a tool designed to determine how many unique ways a specific number of items can be selected from a larger set. It functions based on the principles of combinatorics, which is the branch of mathematics focused on counting, arrangement, and configuration. Users provide the total number of items available and the number of items they wish to select. The tool then calculates the result based on whether the order of selection is relevant to the outcome.
The Mathematical Method
The calculator employs two distinct formulas depending on whether the sequence of selection matters.
When order is irrelevant, the result is known as a combination. The formula for combinations is nCr = n! / (r! * (n - r)!). In this notation, n represents the total number of items, r represents the number of items to be chosen, and the exclamation mark denotes a factorial, which is the product of an integer and all the positive integers below it.
When order is relevant, the result is known as a permutation. The formula for permutations is nPr = n! / (n - r)!. This method accounts for every possible sequence, meaning that selecting item A followed by item B is treated as a distinct outcome from selecting item B followed by item A.
Worked Example
To illustrate how these calculations function, consider a set containing five distinct coloured balls: red, blue, green, yellow, and white. You wish to choose three balls from this set.
If order does not matter (a combination), you are interested only in which three colours end up in your group. The calculation is 5! / (3! * (5 - 3)!), which simplifies to 120 / (6 * 2). This results in 10 unique combinations. These might include red, blue, and green, or red, blue, and yellow, and so on.
If order does matter (a permutation), you are concerned with the sequence in which the balls are picked. The calculation is 5! / (5 - 3)!, which simplifies to 120 / 2. This results in 60 unique permutations. In this scenario, picking red first, then blue, then green is counted as a different result than picking green first, then blue, then red.
Interpreting the Results
The numerical output represents the total number of possible subsets that can be formed under your chosen constraints. A higher number indicates a greater degree of variety in how the items can be grouped or arranged. If the result is one, it signifies that there is only a single way to select all items from the set or no way to select any items at all, depending on the variables provided.
Assumptions and Limits
This calculator operates under two primary constraints. First, it assumes that every item in the set is distinct. This means there are no duplicate items within the source group. Second, it assumes that no repetition is allowed. Once an item has been selected, it cannot be selected again for the same grouping.
The limits of the calculator are dictated by the processing capacity of the interface. Very large factorials grow at an exponential rate. When the values entered for n or r are excessively high, the resulting factorials may exceed the numerical capacity of standard computing systems. For most practical applications involving small to moderate sets, the tool remains accurate and reliable.
Who This Tool Is Not For
This calculator is not suitable for those working with scenarios involving replacement or identical items. If you are solving problems where an item can be chosen more than once, or where the set contains multiple objects that are indistinguishable from one another, this tool will not provide the correct answer. The formulas for these scenarios involve different mathematical structures, such as combinations with repetition or permutations of multisets, which require distinct logic not present in this calculator.
Furthermore, this tool is not intended for advanced statistical modelling that requires the calculation of probability distributions. While the results can be used as the denominator in a simple probability fraction, the calculator does not perform statistical analysis, hypothesis testing, or complex algorithmic modelling. It is strictly a counting tool for finite, distinct sets. Professionals needing to calculate complex event outcomes or those working with weighted sets will require more advanced software.
More tools like this
50/30/20 Budget Calculator
Split take-home pay into needs, wants and savings using the 50/30/20 framework or your own shares.
Run itAd ROI Calculator
Return on ad spend, profit ROI and the break-even ROAS for your margin.
Run itAge Calculator
Age in years and months on any date, plus total days lived.
Run it