How it’s calculated
Use permutations when the order of the chosen items matters (a podium of 1st, 2nd and 3rd place) and combinations when it does not (a committee of 3 people). Results are computed exactly with big integers, so even enormous counts have no rounding error.
| Without repetition | With repetition | |
|---|---|---|
| Permutations | n! ÷ (n − r)! | nʳ |
| Combinations | n! ÷ (r! × (n − r)!) | (n + r − 1)! ÷ (r! × (n − 1)!) |
Example: choose 3 people from 10 for a committee (combinations, no repetition) = 10! ÷ (3! × 7!) = 10 × 9 × 8 ÷ 6 = 120. If the 3 people take distinct roles (permutations), it is 10 × 9 × 8 = 720.
Frequently asked questions
What is the difference between a permutation and a combination?
In a permutation the order matters (ABC and CBA are different). In a combination it does not (ABC and CBA are the same group). So there are always at least as many permutations as combinations.
When do I allow repetition?
When the same item can be picked more than once, for example the digits of a PIN code (permutations with repetition: 10⁴ = 10,000) or scoops of ice cream from a set of flavors.
What is 0! and what is C(n, 0)?
0! is defined as 1, and there is exactly one way to choose nothing, so C(n, 0) = P(n, 0) = 1.
Why is a big result shown as 1.23457 × 10ᵏ?
Counts grow very quickly. Results too large for a normal number are written out in full (with commas) up to 60 digits, and in scientific notation beyond that.
Embed this calculator
Add this free calculator to your own website. Copy the code below into your page’s HTML:
Need this calculator branded, changed or built around your own prices?See custom business solutions →
Sources
- Algebra and Trigonometry 2e, §13.5 Counting Principles (permutations and combinations without repetition) — OpenStax
- Combinatorics and Graph Theory §1.6 Choice with Repetition (n^k with replacement; C(k + n − 1, k) combinations with repetition) — LibreTexts (Guichard)
- CS280 Handout 22: r-permutations with repetition (nʳ) and r-combinations with repetition C(n + r − 1, r) — Cornell University
Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.
Added · Last updated · How we check our calculators
Spotted a mistake or missing option? Report a problem· Suggest a calculator