Combinations (nCr)
Order does not matter.
C(10, 3) = 10! / (3! × 7!)
Exact nCr and nPr counts with or without repetition. Inputs: 0 to 10,000; displays exact results up to 1,000 digits.
A combination counts selections when order does not matter. A permutation counts arrangements when order matters. Choose whether an item can be used more than once to match your problem.
Enter whole numbers from 0 to 10,000. Exact counts with more than 1,000 digits are not displayed.
How many distinct items or types are available?
How many items are chosen, or how many positions are filled?
Order does not matter.
C(10, 3) = 10! / (3! × 7!)
Order matters.
P(10, 3) = 10! / (7)!
Check: nPr = nCr × r! because each selected group can be arranged in r! orders.
Let n be the number of distinct item types and r the number selected or positions filled. Without repetition, r cannot be greater than n. With repetition, an item can be used again.
Combination: nCr = n! / (r! × (n − r)!). Order is ignored.
Permutation: nPr = n! / (n − r)!. Order creates a different arrangement.
Combination: C(n + r − 1, r), when n is greater than zero. Order is ignored.
Permutation: n^r. Each of the r positions can use any of n item types.
For example, choosing 2 people from 5 gives 5C2 = 10 groups and 5P2 = 20 ordered pairs. If the 5 item types can repeat, the counts become C(6, 2) = 15 combinations and 5² = 25 permutations.
nCr counts groups where order does not matter. nPr counts arrangements where changing the order creates a different result.
Allow repetition when an item type can be selected again, such as a digit appearing more than once in a PIN. Leave it off when each available item can be used at most once.
Without repetition, no: there are not enough distinct items. With repetition, it is valid because the same type can be used more than once.
There is exactly one way to choose or arrange nothing, so nC0 and nP0 are both 1. This follows the convention 0! = 1.
Inputs are limited to whole numbers from 0 to 10,000, and a count with more than 1,000 digits is hidden to keep the page responsive and readable. The calculator never rounds or shortens an exact count.