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
- Formula
- C(5,2) = 5! / [2! · (5-2)!]
| Step | Detail |
|---|---|
| Type | Combination (order does not matter) |
| Formula | C(5,2) = 5! / [2! · (5-2)!] |
| Result | 10 |
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
Factorial
Calculate the factorial of a number (n!) — the product of all whole numbers from 1 to n. Exact results for large values using big-integer math.
CalculateMathProbability
Calculate the probability of an event from the favorable and possible outcomes. See the result as a percentage, a decimal and a fraction.
CalculateMathRatio
Simplify a ratio to its lowest terms, or solve a proportion to find a missing value. Enter two numbers to reduce A:B, or add a third to solve A:B = C:?.
CalculateMathExponent
Raise any number to a power. Enter a base and an exponent — including negative and fractional exponents — to get the result.
CalculateMathFractions
Add, subtract, multiply and divide fractions, with the result already simplified and shown as a decimal. Enter the numerators and denominators.
CalculateMathGeometric Mean
Calculate the geometric mean of a set of positive numbers — the nth root of their product. Useful for growth rates, ratios and returns.
Calculate