Permutation & Combination Calculator
Quickly compute nPr, nCr, or both. Enter whole numbers for n and r, then click Calculate.
What Is a Permutation and Combination Calculator?
A permutation and combination calculator helps you count outcomes without listing every possibility by hand. This is useful in probability, statistics, exam preparation, coding interviews, and everyday decision-making scenarios like team selection or password generation.
At a high level:
- Permutation (nPr) counts arrangements where order matters.
- Combination (nCr) counts selections where order does not matter.
Core Formulas You Should Know
Without Repetition
When each item can be used only once:
- Permutation: nPr = n! / (n - r)!
- Combination: nCr = n! / (r!(n - r)!)
Rule: for this mode, r must be less than or equal to n.
With Repetition
When items can be chosen more than once:
- Permutation with repetition: nr
- Combination with repetition: C(n + r - 1, r)
This is useful in contexts like PIN-style choices, repeated sampling, and choosing flavors where duplicates are allowed.
How to Use This Calculator
- Select the operation: permutation, combination, or both.
- Enter n (total available choices).
- Enter r (number you pick or arrange).
- Enable Allow repetition if your problem allows repeated use of the same item.
- Click Calculate to see the result.
The calculator uses exact integer arithmetic for very large outputs, so results remain accurate for big values that would overflow in typical floating-point calculations.
Examples
Example 1: Permutation (Order Matters)
You want to award gold, silver, and bronze from 10 finalists. Here order matters, so use permutation without repetition:
10P3 = 720.
Example 2: Combination (Order Doesn't Matter)
You select 3 committee members from 10 people. Order does not matter:
10C3 = 120.
Example 3: Combination with Repetition
Pick 4 donuts from 6 flavors, where multiple donuts can be the same flavor:
C(6 + 4 - 1, 4) = C(9,4) = 126.
Common Mistakes to Avoid
- Using permutation when the task is actually a selection (combination).
- Forgetting that order changes the count dramatically.
- Setting r > n in no-repetition mode.
- Confusing “repetition allowed” and “repetition not allowed” formulas.
Where This Appears in Real Life
- Data science: feature selection and probabilistic modeling.
- Security: evaluating brute-force search spaces for key or PIN formats.
- Operations: scheduling and assignment possibilities.
- Education: counting outcomes in probability and combinatorics coursework.
Quick Interpretation Guide
If your result is huge, that often means the underlying process has a very large search space. In practical terms, this can indicate high randomness potential (good for security) or high complexity (important for algorithm design and decision planning).
Final Takeaway
Use permutation when sequence matters and combination when it does not. Toggle repetition based on whether reusing items is allowed. With the calculator above, you can test scenarios instantly and avoid manual formula errors.