Permutation Combination Calculator
Calculate ordered permutations and unordered combinations without replacement
Calculate ordered permutations and unordered combinations without replacement
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.
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.
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.
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.
输入集合总数 n 和子集数量 r。排列数统计有序安排,组合数统计不考虑顺序的选取。两种计算都按不重复抽取处理。
一个 10 人俱乐部要挑 3 人站排拍照。如果位置有意义——领头、居中、收尾——那是 10P3 = 10 × 9 × 8 = 720 种有序排列。如果只是选一个 3 人委员会,则是 10C3 = 720 ÷ 3! = 120,因为每三个人的委员会都有 6 种站法,而组合计数刻意把它们视为同一种。
问自己:交换两个已选对象,算不算新结果?领奖台名次、密码、击球顺序都算——用排列。一手牌、开奖号码、委员会都不算——用组合。两个计数永远满足 nPr = nCr × r!,知道其一就能推另一个。
阶乘是爆炸式增长:20! 已经超过 2.4 × 10¹⁸,所以哪怕集合不大,排列数也常常大得离谱。两个公式都要求 r ≤ n——选出的对象比集合还多是未定义的,页面不会假装算给你看。当 r = 0 或 r = n 时,组合数恰为 1:什么都拿或全拿,各只有一种方式。
No. These formulas count selections without replacement.
Every unordered selection corresponds to multiple ordered arrangements, so combinations divide out the r! orderings.
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
最近复核:2026 年 10 月 5 日 · 我们的计算方法 · 来源:公式用于参考;涉及专业决定时请核对适用条件