What is Permutation & Combination Calculator?
Permutations and combinations are the two fundamental ways of counting how many ways you can select or arrange items from a larger set — a cornerstone of probability, statistics, and combinatorics.
A permutation, written P(n,r) or nPr, counts the number of ways to arrange r items chosen from n, where the order of selection matters. A combination, written C(n,r) or nCr, counts the number of ways to choose r items from n, where order doesn't matter. This calculator computes both using exact arbitrary-precision arithmetic, so results stay perfectly accurate even for large factorials.
When to Use This Calculator
- Count the number of possible arrangements, passwords, schedules, or ranking orders
- Find how many committees, teams, or selections can be formed from a group
- Calculate lottery, raffle, or contest odds by counting favorable outcomes
- Expand binomial expressions and read coefficients from Pascal's Triangle
- Solve probability and combinatorics homework problems step by step
- Check the total number of outcomes in games of chance before computing probabilities
Steps:
- Enter n, the total number of items in the set.
- Enter r, the number of items you're selecting.
- The calculator computes both P(n,r) and C(n,r) using the factorial formulas.
- Review the full step-by-step breakdown of each formula.
Formula
Permutation: P(n,r) = n! / (n-r)!
Combination: C(n,r) = n! / (r!(n-r)!)
Where n! (n factorial) = n × (n-1) × (n-2) × ... × 2 × 1
Use Cases
- Calculating lottery or raffle odds
- Solving probability and combinatorics homework
- Counting possible passwords, PINs, or arrangements
- Determining the number of possible committees, teams, or groupings
Key Benefits
- Computes both permutations and combinations in one place
- Exact results using arbitrary-precision arithmetic — no rounding errors on large numbers
- Full step-by-step breakdown of the factorial formulas
- Clear explanation of when to use each formula
Pro Tips
- Ask yourself "does the order matter?" first — that single question determines whether to use permutations or combinations
- For large n and small r, it's faster to compute C(n,r) as n×(n-1)×...×(n-r+1) / r! rather than using full factorials
- Committee, team, or group selection problems are almost always combinations
- Ranking, arranging, or ordering problems (like race results or seating) are almost always permutations
Common Mistakes to Avoid
- Using the permutation formula when order doesn't actually matter in the problem (or vice versa)
- Forgetting that r cannot exceed n
- Miscounting when a problem allows repetition — these formulas assume items are chosen without repetition
- Confusing nPr and nCr notation when reading a textbook or exam question
Key Terms Explained
- Factorial (n!): The product of all positive integers up to n
- Permutation: An ordered arrangement of a subset of items
- Combination: An unordered selection of a subset of items
- Binomial Coefficient: Another name for C(n,r), written as (n choose r)
Related Concepts
- Probability questions built from counted outcomes are answered by the Probability Calculator.
- The means, variance, and spread of counted data are computed by the Statistics Calculator.
- Chance experiments like flipping coins are simulated by the Coin Flip Simulator.
- Random number draws and their total outcome counts are generated by the Lottery Number Generator.
- Part-to-whole comparisons and shares are calculated by the Ratio Calculator.
Example
For n=10, r=3: P(10,3) = 10!/(10-3)! = 10 × 9 × 8 = 720 ways to arrange 3 items from 10 in order. C(10,3) = 10!/(3!×7!) = 720/6 = 120 ways to choose 3 items from 10 without regard to order.
Interpreting Your Results
Read the permutation P(n,r) as the number of ordered arrangements of r items drawn from n, where swapping two chosen items creates a new result. Read the combination C(n,r) as the number of unordered selections, where the same set of items counts once regardless of order. A larger result means more distinct outcomes are possible, which lowers the probability of any single outcome when everything is equally likely. When r is close to n, C(n,r) equals C(n, n-r) and stays small, while when r is in the middle, the count peaks.

