Permutation Calculator
Calculate permutations P(n, r) — the number of ordered arrangements of r items from n.
Calculate combinations C(n, r) — the number of ways to choose r items from n without regard to order.
| r | C(10, r) | P(10, r) | Ratio P/C |
|---|---|---|---|
| 0 | 1 | 1 | 1 |
| 1 | 10 | 10 | 1 |
| 2 | 45 | 90 | 2 |
| 3 (current) | 120 | 720 | 6 |
| 4 | 210 | 5,040 | 24 |
| 5 | 252 | 30,240 | 120 |
| 6 | 210 | 151,200 | 720 |
| Type | Formula | Description |
|---|---|---|
| Combination | C(n,r) = n! / (r!(n-r)!) | Order does not matter, no repetition |
| Permutation | P(n,r) = n! / (n-r)! | Order matters, no repetition |
| Combination (rep) | C(n+r-1, r) | Order does not matter, with repetition |
| Permutation (rep) | n^r | Order matters, with repetition |
The Combination Calculator computes C(n, r), also written as "n choose r" or ⁿCᵣ. Combinations count the number of ways to select r items from a set of n items when the order of selection does not matter.
Combinations are fundamental in probability, statistics, and combinatorics. They answer questions like "How many 5-card poker hands can be dealt from a 52-card deck?" or "How many ways can a committee of 3 be formed from 10 people?"
This calculator computes the exact result using the formula C(n,r) = n! / (r!(n−r)!) and handles large numbers efficiently by simplifying before multiplying to avoid arithmetic overflow.
Computing combinations by hand requires factorial division that quickly overflows. This calculator handles the simplification for large values of n and r.
C(n, r) = n! / (r! × (n−r)!)
Where:
- n = total items
- r = items chosen
- ! = factorialResult: 120
C(10,3) = 10! / (3! × 7!) = (10×9×8) / (3×2×1) = 720/6 = 120. There are 120 ways to choose 3 items from 10.
The probability of a specific combination outcome is 1 / C(n, r). This underpins lottery odds, card game probabilities, and sampling theory.
When items can be chosen more than once, the formula is C(n+r−1, r). For example, choosing 3 scoops from 5 flavors with repetition gives C(7, 3) = 35.
To avoid overflow, compute C(n, r) by multiplying r terms of n×(n−1)×...×(n−r+1) and dividing by r! simultaneously, or use the identity C(n, r) = C(n, n−r) to pick the smaller denominator.
Mastering this concept provides a strong foundation for advanced coursework in mathematics, statistics, and related quantitative disciplines.
Last updated:
A combination is a selection of items where order does not matter. Choosing {A, B, C} is the same as {C, B, A}. The count of such selections is given by C(n, r).
Combinations ignore order; permutations consider order. C(5,3) = 10 but P(5,3) = 60. Each combination corresponds to r! permutations.
C(n, r) is also called the binomial coefficient because it appears in the expansion of (a+b)ⁿ. It is a cornerstone of probability theory and combinatorics.
Lottery odds are 1 / C(n, r). For a 6/49 lottery, the odds are 1 / C(49, 6) = 1 / 13,983,816 ≈ 1 in 14 million.
Pascal's triangle arranges binomial coefficients in a triangle where each entry is the sum of the two entries above it. Row n gives all C(n, r) values.
No. You cannot choose more items than are available. C(n, r) = 0 when r > n by convention.
Calculate permutations P(n, r) — the number of ordered arrangements of r items from n.
Calculate the factorial of any non-negative integer (n!). See step-by-step multiplication and related values.