Permutation & Combination Calculator

Find the number of ways to choose r items from n, as permutations (nPr, order matters) and combinations (nCr, order does not matter).

Permutations nPr (order matters) — Combinations nCr (order does not matter) —
For reference
n! (n factorial)—

The value copied is the whole number with every digit (no commas). When a result has many digits, an approximation and the number of digits are shown, and you can open "Show all digits" to see every digit.

Permutations and combinations

Examples

When n or r is 0, or r is greater than n

How it is calculated, and the limits

Notes

Frequently asked questions

Should I use nPr or nCr?

Use nPr when order matters (rankings, arrangements, PIN codes) and nCr when order does not matter (choosing a committee, the set of winners in a draw).

Why is 0! equal to 1?

Defining it as 1 (there is one way to arrange nothing) keeps the formulas for nPr and nCr working when n = r or r = 0.

Why is nC0 equal to 1?

There is exactly one way to choose 0 items: choose nothing.