Skip to content · 跳到主要内容

Permutation Combination Calculator

Calculate ordered permutations and unordered combinations without replacement

Permutations nPr
--
--
Combinations nCr
--
Set size n
--
Subset size r

Selections with and without order

Enter a set size n and a subset size r. Permutations count ordered arrangements; combinations count selections where order does not matter. Both calculations are without replacement.

nPr = n! ÷ (n − r)!
nCr = n! ÷ (r!(n − r)!)

Worked example

A 10-person club picks 3 members for a photo lineup. If the seats matter — lead, middle, end — that is 10P3 = 10 × 9 × 8 = 720 ordered arrangements. If the club instead just chooses a 3-person committee, 10C3 = 720 ÷ 3! = 120, because each committee of three people can be arranged 6 ways that the combination count deliberately ignores.

The one-question decision test

Ask: if I swap two of the selected items, is that a different outcome? A podium finish, a passcode and a batting order all say yes — use permutations. A hand of cards, a lottery draw and a committee all say no — use combinations. The two counts are always related by nPr = nCr × r!, so one can be derived from the other when only one is known.

How fast the numbers grow

Factorials explode: 20! already exceeds 2.4 quintillion, which is why permutation counts feel absurd for even modest sets. Both formulas also require r ≤ n — selecting more items than the set contains is undefined, and the page will not pretend otherwise. For r = 0 or r = n, the combination count is exactly 1: there is precisely one way to take nothing or everything.

Frequently Asked Questions

Can an item be selected more than once?

No. These formulas count selections without replacement.

Why are combinations never larger than permutations?

Every unordered selection corresponds to multiple ordered arrangements, so combinations divide out the r! orderings.

Can r equal zero?

Yes. Choosing zero items has one empty arrangement and one empty combination.

Last reviewed: October 5, 2026 · How we calculate · Sources: Published formula reference; verify domain-specific assumptions before making a decision