How to Count Selections When Order Does Not Matter
By Prince Yadav, Founder & Lead Developer.
Focus on the selected group
A combination counts which items are chosen, not the order in which they are listed. Choosing Alice and Ben is the same group as choosing Ben and Alice.
Use the standard formula
For selecting r distinct items from n without regard to order, the number is n! divided by r! times (n − r)!, with n and r as valid non-negative integers.
A simple example
Selecting two people from five gives 5 × 4 ÷ 2 = 10 groups. The division removes the duplicate orderings of each pair.
Know when order does matter
Passwords, race positions, and assigning different roles often require permutations instead. The words “choose a team” and “assign first and second” describe different counting tasks.
Check whether repeats are allowed
The basic formula assumes each item is selected at most once. Selecting the same type multiple times requires a different counting method.
Sanity-check the result
For a fixed group size, the number of combinations should be a whole number. Also, choosing r items is equivalent in count to leaving n − r items unchosen.
A quick decision check before counting
Imagine choosing 3 volunteers from a group of 8 for a committee. If the committee is the same regardless of the order in which the names are picked, use combinations: \(8C3 = 8!/(3!\,5!) = 56\). If the first, second, and third selections instead receive different roles, order changes the outcome and a permutation model is more appropriate.
Next, confirm whether a person or item can be selected more than once. Standard combinations assume a selection of distinct items without replacement. If repeats are allowed, or if the choices come from categories with different rules, the basic formula may not match the problem. State the selection rules in words before entering n and r; this catches more mistakes than checking the arithmetic alone.
Worked example: choose a group when order has no meaning
If you select two people from five for a committee, there are 5 × 4 = 20 ordered pairs, but each two-person group appears twice—once in each order. Divide by 2! to obtain 10 combinations: C(5,2) = 10. Before using a combination formula, ask whether swapping the selected items changes the outcome. A committee, hand of cards, or set of toppings usually ignores order; first and second place, passwords, or role assignments generally do not.
Related Calculators
Try the Calculator
Test the worked-example inputs in Combination Calculator, then change one input to see how the result responds.
Open Combination Calculator