Permutation & Combination: formula
NIST/SEMATECH e-Handbook of Statistical Methods · OpenStax College Algebra 2e: counting principles
Repeated items, or choices with replacement, use different formulas. Very large values are shown approximately. Deciding whether order matters is the main source of mistakes, so restate the problem in words before choosing.
The displayed formulas distinguish selecting a group from assigning items to ordered positions. An item that can be selected repeatedly requires a different counting model from the distinct-item selection shown here.
Permutation & Combination: worked example
| n (total items) | 10 |
|---|---|
| r (items chosen) | 3 |
| Permutations (order matters) | 720 |
| Combinations (order doesn't matter) | 120 |
Enter n, the total number of items, and r, the number you choose, where r cannot exceed n. Use permutations when order matters, such as ranking finalists or arranging a password, and combinations when it does not, such as choosing a committee or a lottery ticket. The formulas use factorials: permutations are n factorial over n minus r factorial, and combinations divide that further by r factorial.
Permutation & Combination: changing n (total items)
| n (total items) | Permutations (order matters) | Combinations (order doesn't matter) |
|---|---|---|
| 8 | 336 | 56 |
| 9 | 504 | 84 |
| 10 (example) | 720 | 120 |
| 11 | 990 | 165 |
| 12 | 1,320 | 220 |
Permutation & Combination: compare input ranges
| Input | Tested from | To | Permutations (order matters): low input | Permutations (order matters): high input | Swing |
|---|---|---|---|---|---|
| r (items chosen) | 2 | 4 | 90 | 5,040 | 4,950 (688%) |
| n (total items) | 9 | 11 | 504 | 990 | 486 (68%) |
Permutation & Combination: individual input comparisons
| Input | Value | Permutations (order matters) | Combinations (order doesn't matter) |
|---|---|---|---|
| n (total items) | 8 | 336 | 56 |
| 9 | 504 | 84 | |
| 10 | 720 | 120 | |
| 11 | 990 | 165 | |
| 12 | 1,320 | 220 | |
| r (items chosen) | 1 | 10 | 10 |
| 2 | 90 | 45 | |
| 3 | 720 | 120 | |
| 4 | 5,040 | 210 | |
| 5 | 30,240 | 252 |
Permutation & Combination: combined input changes
| n (total items) / r (items chosen) | 1 | 3 | 5 |
|---|---|---|---|
| 8 | 8 | 336 | 6,720 |
| 9 | 9 | 504 | 15,120 |
| 10 | 10 | 720 | 30,240 |
| 11 | 11 | 990 | 55,440 |
| 12 | 12 | 1,320 | 95,040 |
Permutation & Combination: which assumptions move the result?
Permutation & Combination: values and definitions
| Quantity and definition | Value used |
|---|---|
| n (total items) | 10 |
| r (items chosen) | 3 |
| Permutations (order matters) | 720 |
| Combinations (order doesn't matter) | 120 |
Permutation & Combination: half and double r (items chosen)
| r (items chosen) | Permutations (order matters) |
|---|---|
| 1.5 | 90 |
| 3 | 720 |
| 6 | 151,200 |
Common error: Defaulting to permutations because the formula sounds more thorough. Using it for a situation where order doesn't matter inflates the count, often substantially, because it separately counts arrangements a combination treats as the same outcome.
Statistics & Probability calculators: Simple Probability Calculator, Z-Score Calculator, Confidence Interval Calculator, Sample Size Calculator, Binomial Probability Calculator, Normal Distribution Probability Calculator.
Whether order matters is the entire decision between these two formulas, and it's easy to answer wrong because the two situations can look superficially similar. Choosing 3 people from 10 for identical unnamed committee seats is a combination; choosing 3 people from 10 for president, vice president and secretary is a permutation, because swapping two people between those roles produces a different outcome.
A permutation distinguishes order; a combination counts a selected group independently of its order. If it does, use permutations; if the result is identical either way, use combinations.
Compute the chance of an outcome on the probability and binomial pages, and factorials on the factorial calculator. The expected value page evaluates bets, and the Bayes theorem calculator updates probabilities. The exponent page gives counts with replacement.
Permutation & Combination Calculator: quantities and terminology
What is the difference between a permutation and a combination?
A permutation counts ordered arrangements. A combination counts selections with no assigned order. Rearrange the same chosen items: if that creates a different outcome, use the ordered count.
Otherwise those arrangements belong to one selection.
How many ways can I choose 3 items from 10?
Choosing three from ten gives 120 unordered selections. Ranking those same three gives six arrangements per selection. Therefore the ordered count is 120 × 6 = 720, assuming distinct items and no reuse.
When does order matter?
Order matters for ranked finishing places and assigned seats. Exchanging two people changes the outcome. A PIN also assigns positions, although repeated digits can be allowed; that repetition rule needs a counting model different from choosing distinct items without reuse.