Skip to content

Permutation & Combination Calculator

nPr, nCr, factorials, and versions with repetition

Loading the tool…

Counts the ways to choose or arrange r items out of n: permutations (nPr), combinations (nCr), both with repetition, the factorial n! and circular arrangements. Use it to check probability and counting problems.

How to use

  1. Enter the number of items in n and the number chosen in r. Whole numbers from 0 to 10,000 are accepted.
  2. "Permutations", "Combinations", the versions with repetition, "Factorial" and the circular arrangements appear with one line of working each.
  3. Under "List the outcomes", choose "What to list" to see every outcome, optionally with your own "Item names".
  4. For words with repeated letters such as BANANA, enter the word or a list of counts under "Permutations with identical items".

How it works

Questions and answers

What is the difference between a permutation and a combination?
A permutation counts order and a combination does not. Choosing a president and a vice president from 5 people gives 5P2 = 20; choosing any 2 representatives gives 5C2 = 10.
How many ways are there to pick 6 numbers out of 49?
Enter n = 49 and r = 6. "Combinations" shows 13,983,816, because the order of the numbers does not matter.
Why is 0! equal to 1?
There is exactly one way to arrange nothing, so 0! is defined as 1. This keeps formulas such as nCn = 1 correct in every case.
When do I use combinations with repetition?
When the same item can be chosen more than once and order does not matter. Choosing 2 scoops from 3 flavors gives (3 + 2 − 1)C2 = 4C2 = 6.