Combinations & Permutations Calculator
Calculate combinations C(n,r) and permutations P(n,r) with step-by-step formula explanations. Quickly find the number of ways to choose or arrange items from a set.
How to Use This Calculator
- Select whether to calculate Combinations, Permutations, or Both.
- Enter the total number of items (n) and the number to choose (r).
- Click Calculate to see results with full formula breakdown and factorial expansion.
Formula
Combinations (order does not matter):
Permutations (order matters):
Where n! = n × (n−1) × (n−2) × ... × 1 (factorial).
Examples
Frequently Asked Questions
What is the difference between combinations and permutations?
Combinations count selections where order does not matter (e.g., choosing a team). Permutations count arrangements where order does matter (e.g., ranking winners).
Why does C(n,r) = C(n,n−r)?
Choosing r items from n is the same as choosing which n−r items to leave out. So C(10,3) = C(10,7) = 120.
What if n is very large?
For n > 1000, results may overflow. This calculator limits n and r to 1000 and uses scientific notation for large results.
Can r be zero?
Yes. C(n,0) = 1 — there is exactly one way to choose nothing. Similarly, P(n,0) = 1.