Permutation and combination calculator (nPr, nCr)

nPr and nCr, with or without repeats.

Combinations, nCr (order doesn’t matter)

120

Permutations, nPr (order matters)
720
Formulas
nPr = n! ÷ (n − r)!, nCr = n! ÷ (r! (n − r)!)

Runs in your browser. Nothing uploaded.

How to count permutations and combinations

  1. Enter n, the number of items to choose from, and r, how many you pick.
  2. Tick Repetition allowed if the same item can be picked more than once, like digits in a PIN.
  3. Read nCr (order doesn’t matter) and nPr (order matters).

Which one do I need?

Question Use
How many ways to arrange books on a shelf? Permutation
How many possible PINs or passwords? Permutation with repetition
How many ways to choose a committee? Combination
How many pizza toppings combos, allowing doubles? Combination with repetition

n choose k

nCr is also written C(n, r) or as n over r in brackets, read “n choose r”. These numbers make up Pascal’s triangle, and they are the coefficients when you expand (a + b)ⁿ.