No repetition, order does not matter: C(5,2)
- Input
- n=5, r=2
- Expected output
- C(5,2) = 10
Choosing 2 letters out of A,B,C,D,E with no repeats and order ignored gives 10 possible pairs: AB, AC, AD, AE, BC, BD, BE, CD, CE, DE.
combinations and combinatorics
A combination counts how many subsets of size r exist inside a set of n items, without caring about order. This page shows the formula, compares it side by side with permutation (where order matters), and covers the case where repetition is allowed.
Choosing 2 letters out of A,B,C,D,E with no repeats and order ignored gives 10 possible pairs: AB, AC, AD, AE, BC, BD, BE, CD, CE, DE.
The same 5 letters, but now AB and BA count as different results; the total doubles from 10 to 20 because each pair has 2! = 2 possible orders.
Choosing 3 flavors out of 5, repeats allowed (like 2 scoops of chocolate and 1 of strawberry), adds up to 35 possible combinations, 3.5 times more than the 10 combinations without repetition for the same n and r.
A combination is a choice of r elements out of n where order does not matter. The formula is C(n, r) = n! / (r! · (n − r)!), read "n choose r". Example: picking 2 fruits from apple, pear and grape gives C(3, 2) = 3 groups (apple and pear, apple and grape, pear and grape). In the calculator, enter n and r and the Combination mode shows the exact result and the working step by step.
Ask whether reordering the chosen items produces a different outcome: ranking a podium (1st, 2nd, 3rd place) is permutation, because position matters; forming a 3-person committee out of 10 candidates is combination, because only the final group matters, not who was picked first.
Because choosing r items to include is the same as choosing n-r items to leave out; C(5,2)=10 equals C(5,3)=10 by that symmetry, and the tool uses this property to simplify the calculation, always multiplying using the smaller of r and n-r.
It happens when r is greater than n: there is no way to choose, say, 7 items from a set of 5 without repetition, so the combination (and permutation) result without repetition is zero by definition, a different case from an input error.
Up to n=1000 and r=1000, with the result capped at 10^100 to keep the display practical; combinations with both n and r large at once (like C(1000,500), which has 300 digits) already exceed that ceiling and come back flagged as overflow instead of the full number.
Choose r of n, no order. E.g. team, lottery.
C(n, r) = n! / (r! · (n − r)!)
120
Multiplies the total. Use 1 (Powerball: 26).
Click a cell to use n and k.
All calculations stay in your browser. No data is sent to any server.