Combinations Calculator
Calculate combinations (nCr) and permutations (nPr) instantly.
n is the total number of available items (whole number, 0 to 300).
r is how many items you choose (whole number, 0 to n; up to 300 with replacement).
10C3 = 120. 10P3 = 720.
Combination Result
10C3 = 120
Permutation Result
10P3 = 720
n!
3,628,800
r!
6
(n − r)!
5,040
Formulas
Combination
nCr = n! ÷ (r! × (n − r)!)
Permutation
nPr = n! ÷ (n − r)!
Factorial
n! = n × (n − 1) × ... × 1
Combination With Replacement
(n + r − 1)Cr
Permutation With Replacement
n^r
Variable Explanations
n
Total number of available items.
r
Number of items selected or arranged.
!
Factorial operator.
nCr
Combinations where order does not matter.
nPr
Permutations where order matters.
n − r
Items not selected.
With replacement
Items can repeat.
Without replacement
Items cannot repeat.
Combinations vs Permutations
Combinations
Combinations count selections where order does not matter.
Choosing Alice and Bob is the same as choosing Bob and Alice.
Permutations
Permutations count arrangements where order matters.
First Alice then Bob is different from first Bob then Alice.
Worked Examples
5C2
Formula: 5! ÷ (2! × 3!)
Answer: 10
5P2
Formula: 5! ÷ 3!
Answer: 20
Choosing 3 winners from 10 people
Formula: 10C3
Answer: 120
Arranging 3 podium places from 10 runners
Formula: 10P3
Answer: 720
Committee selection
Formula: Order does not matter
Answer: Combination
Password example
Formula: Order matters, characters can repeat
Answer: Permutation with replacement (n^r)
Choosing a 5-card hand from a standard 52-card deck
Formula: C(52, 5) = 52! ÷ (5! × 47!)
Answer: 2,598,960
Cards are dealt without replacement and order does not matter: the same five cards in any order are one hand.
Choosing 3 items from 10 types, repetition allowed
Formula: C(10 + 3 − 1, 3) = C(12, 3)
Answer: 220
With replacement the same type can be chosen more than once, and order still does not matter.
Factorials and Counting Principles
Common Use Cases
Common Mistakes
Frequently Asked Questions
Related tools