This permutation and combination calculator (also used as an nCr calculator, nPr calculator, or "choose" calculator) returns both ordered arrangements and unordered selections for any n and r you enter. If you need to know how to calculate permutations or how to calculate combinations for a problem, enter the two numbers below and the result panel shows the P(n, r) and C(n, r) values with the factorial breakdown.
- Enter n, the total number of items in the set. If you have 10 candidates for 3 open roles, n = 10. If you are drawing from a 52-card deck, n = 52 (use the worked tables below when n exceeds the calculator cap of 20).
- Enter r, the number of items being chosen or arranged. For 3 roles chosen from 10 candidates, r = 3. r must be less than or equal to n when drawing without replacement.
- Decide whether order matters. If swapping two picks gives a different outcome (first, second, third place in a race), use the permutation. If swapping does not change the result (three names pulled for a committee), use the combination.
- Decide whether replacement applies. If the same item can be picked more than once (digits in a PIN, letters in a password), you are dealing with a "with replacement" problem. If each pick removes the item from the pool (cards dealt, people seated), it is "without replacement."
Read the two result cards side by side. The permutation count is always larger than or equal to the combination count, and the ratio between them is exactly r!. A large permutation number means the arrangement carries a lot of information (unique passwords, race results). A large combination number means there are many possible groups (poker hands, lottery tickets) even when the order of the picks is irrelevant.
n is capped at 20 in the widget because factorials grow extremely fast: 20! = 2,432,902,008,176,640,000, which is the largest exact integer most calculators track. For n above 20, use the formulas further down the page or work in scientific notation.