Sumfinder All calculators

Math & Everyday

Permutations and Combinations Calculator

How many ways to choose or arrange r things from n, worked out.

Two questions sound alike and have different answers: how many groups of r can be taken from n, and how many ordered arrangements are there. This works out both — nCr and nPr — with the factorials written out, so you can see why choosing 2 from 5 is 10 while arranging 2 of them is 20.

How this is worked out

A permutation is n! ÷ (n − r)!, which multiplies the top r numbers together. For 5 and 2 that is 5 × 4 = 20. A combination divides that by r!, the orders of the chosen things, so 20 ÷ 2 = 10. The page shows both, plus the factorials involved.

Good to know

  • Ask yourself whether order matters before picking the formula. Seats on a committee are combinations; seats in a row are permutations.
  • nCr and nPr are equal when r is 0 or 1, because there is only one order for nothing or one thing.
  • Factorials grow quickly: 10! is over 3.6 million, so keep n modest unless you want a long number.

What this assumes

  • All the things are different, and each is used at most once.
  • A combination ignores the order — picking A then B is the same as B then A.
  • A permutation counts every order separately — AB and BA are two different arrangements.

Common questions

What is the difference between nCr and nPr?

nCr counts groups, nPr counts orders. Choosing 2 from 5 gives 10 groups, but arranging 2 of the 5 gives 20 orders, because each pair can be in two orders.

Why is 0! equal to 1?

It is the convention that makes the formulas work: there is exactly one way to arrange nothing, and one formula then agrees with the other.

Estimate only. Figures come from the numbers you enter and the standard rates shown on the page. Check anything that matters against the official figure before you rely on it.