Possible Combinations Calculator

Calculate the number of combinations (C(n,r)) and permutations (P(n,r)) for selecting r items from a set of n items.

RESULT
--
n (Total)
--
r (Chosen)
--
n!
--
Formula Used
--

What Are Combinations?

A combination is a selection of items from a larger set where the order does not matter. For example, choosing 3 fruits from a basket of 10 different fruits. The key distinction from permutations is that {apple, banana, cherry} is the same combination as {cherry, apple, banana}.

Combinations are used extensively in probability theory, lottery calculations, committee formation, and any scenario where you need to count the number of ways to select a subset from a larger set without regard to arrangement.

Formulas

C(n, r) = n! / (r! × (n - r)!)
P(n, r) = n! / (n - r)!

With repetition allowed:

C(n+r-1, r) = (n+r-1)! / (r! × (n-1)!)
P(n, r) with repetition = nr

Combinations vs Permutations

FeatureCombinationPermutation
Order matters?NoYes
ExampleLottery numbersPIN codes
C(5,3) vs P(5,3)1060
Formulan!/(r!(n-r)!)n!/(n-r)!

Frequently Asked Questions

When should I use combinations vs permutations?

Use combinations when the order of selection does not matter (e.g., choosing team members, lottery draws). Use permutations when order matters (e.g., arranging books on a shelf, creating passwords, ranking contestants).

What does "with repetition" mean?

With repetition means items can be selected more than once. For example, when creating a 4-digit PIN, each digit (0-9) can be repeated. Without repetition, once an item is selected, it cannot be chosen again.