Permutations & Combinations Calculator
Count ordered and unordered selections.
Result
How it is calculated
Both counts select r items out of n distinct items. Permutations count ordered selections: nPr = n! ÷ (n − r)! = n × (n−1) × … × (n−r+1). Combinations ignore order, so they divide by the r! ways to reorder the same group: nCr = nPr ÷ r!. The tool multiplies only the r needed terms rather than computing full factorials, and rounds n and r to whole numbers first. It returns nothing if n or r is negative, or if r is larger than n. Items are distinct and cannot repeat; selections with repetition use different formulas. Very large results are shown rounded because they exceed exact integer precision.
Worked example
Choose 3 items from 10. Permutations: 10 × 9 × 8 = 720 ordered ways. Combinations: divide by 3! = 6, so 720 ÷ 6 = 120. Out of 720 ordered lists, each unordered group of 3 appears 6 times, which leaves 120 distinct groups. nPr = 720 and nCr = 120.
Common mistakes
- Using combinations for a race podium or a PIN. When first, second and third place differ, order matters, so you need nPr, not nCr.
- Using permutations for a lottery or a committee, where only the group matters. That overcounts by a factor of r!.
- Entering r larger than n. You cannot pick 5 different items from 3, so the tool gives no result.
- Applying the formulas when items can repeat, like a 4-digit code where digits may be reused. That count is simply 104, not nPr.
About this calculator
This calculator finds both permutations (nPr = n!/(n−r)!), the number of ways to arrange r items from a set of n where order matters, and combinations (nCr = n!/(r!(n−r)!)), the number of ways to choose r items where order does not matter. The difference is exactly r! — combinations divide out the r! ways each same group could be ordered.
These are foundational tools in probability and statistics — used to compute lottery odds, card and dice game probabilities, the number of possible committees or teams, and password/combination-lock possibilities. Students use nPr and nCr constantly in probability coursework, while statisticians and data scientists use them when computing binomial probabilities and sampling scenarios. Enter n and r to get both values instantly.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)