Calculator and Converter

Permutation and combination calculator

Counting selections is the job of this calculator.

Results

Enter your values to see the result.

About this tool

Enter the Total items (n) and the Chosen items (r), and it returns the number of permutations, where order matters, and combinations, where order does not. A typical case is working out how many ways a group can be picked for a committee versus ranked in a race.

How it is calculated
nPr = n! ÷ (n − r)!; nCr = n! ÷ (r! × (n − r)!)
Worked example
With Total items (n): 10; Chosen items (r): 3, the result is: Permutations (nPr): 720; Combinations (nCr): 120.
Good to know
Both values must be whole numbers from 0 to 170 and r cannot exceed n. Items are assumed distinct and chosen without replacement. Very large results are approximate because of number precision.

Frequently asked questions

What is the difference between permutations and combinations?

Permutations count ordered selections, so ABC and CBA are different. Combinations ignore order, so they are the same. Permutations are therefore always at least as large as combinations, by a factor of r factorial.

Why must r not be larger than n?

You cannot choose more distinct items than are available when nothing is replaced. If r exceeds n, the calculator shows an error instead of a number.

Does this allow items to be repeated?

No. Each item can be chosen only once, which is the standard nPr and nCr setup. Selections where the same item can be picked again use different formulas that this tool does not cover.

Related calculators