Skip to content
Contania

Permutations and Combinations

Combinations and permutations count how many ways you can choose or arrange items. The difference is whether the order matters. Pick the type and enter n and r.

Your numbers

Result

Result
10
Formula
C(5,2) = 5! / [2! · (5-2)!]
Calculation
StepDetail
TypeCombination (order does not matter)
FormulaC(5,2) = 5! / [2! · (5-2)!]
Result10
Advertisement

Combination vs permutation

In a combination the order does not matter — {A, B} is the same as {B, A}: C(n,r) = n! / [r! (n-r)!]. In a permutation the order does matter — AB differs from BA: P(n,r) = n! / (n-r)!. So permutations are always greater than or equal to combinations. For n=5, r=2: nPr = 20, nCr = 10.

How to choose

Ask: does order change the outcome? A podium or a password depends on order → permutation. Picking a committee or a lottery set does not → combination. Spotting that is the key step in any counting problem.

Frequently asked questions

Sources

  • Combinatorics — permutations and combinations

Embed this calculator

Copy the code and paste it into your site or blog. Credit with a link back to Contania is included, and the height adjusts itself.

<iframe src="https://contania.app/embed/math/combinations-permutations" title="Permutation and Combination Calculator (nPr, nCr)" width="100%" height="720" loading="lazy" style="border:1px solid #e5e0d8;border-radius:12px;max-width:640px"></iframe>
<script>window.addEventListener("message",function(e){if(e.data&&e.data.type==="contania:embed-height"){var f=document.querySelector('iframe[src="https://contania.app/embed/math/combinations-permutations"]');if(f){f.style.height=e.data.height+"px"}}});</script>

Related calculators