Definition
What permutations and combinations count
A permutation is an arrangement of items in which order matters. A combination is a selection of items without regard to their order. The number of possible outcomes also depends on whether the same item or type may be selected more than once.
- Permutation
- Order matters
- Combination
- Order does not change the selection
- Check for
- Repeated items or limits on reuse
Start by describing one outcome
An outcome might be a set of names, a sequence of characters, or a list of amounts by category. Write an example of what you would record, then consider what changes would produce a new record. If changing the first and last items matters, order matters. If the record contains just member names, exchanging their positions has no effect.
Inspect the choices for additional restrictions. A code may forbid a leading zero, or an assignment may exclude some participants from certain roles. The standard counts assume the same pool of eligible types at each step, except for items already used when replacement is off.
Count selections without repetition
An ordered selection fills one position at a time. There are initially as many choices as available items, then one fewer choice for the next position. Multiply the successive numbers of choices to count every possible assignment. A full arrangement uses every item and gives a factorial.
For an unordered selection, each distinct group generated by the ordered count appears in all possible orders. Dividing by the factorial of the selection size counts each group once. This argument requires distinct items, otherwise some rearrangements could be indistinguishable.
Count selections with repetition
For an ordered result, each position again permits the full set of types. Multiplication gives the number of sequences. This model suits a code in which every position permits the same characters and a character can be used multiple times.
For an unordered result, imagine storing a count next to each type. The counts must add to the selection size. You can picture the selections as marks in a row and the breaks between types as dividers. Choosing where the marks go among the marks and dividers counts the possible allocations, including types with zero selections.
Read an exact answer
Factorials and choice counts can outgrow ordinary decimal displays quickly. This calculator uses exact integers and shows the entire digit string, with a separate digit count. A rounded value can be handy for comparing magnitudes, but keeping the exact count matters if you use it in another integer calculation.
The interface supports up to 5,000 for either input. Very large results can occupy many lines. If the result seems unexpectedly large, review whether different orders and repeated selections should count. These two decisions often explain a large numerical difference between modes.
Step-by-step example
Choose three of ten distinct items without reuse, then choose three times from four types with reuse allowed.
| Step | Result |
|---|---|
| Ordered selections without reuse | 720 |
| Unordered selections without reuse | 120 |
| Ordered selections with reuse | 64 |
| Unordered selections with reuse | 20 |
Formulas used
n! = n × (n − 1) × … × 1, with 0! = 1
nPr = n! ÷ (n − r)!
nCr = n! ÷ [(n − r)! × r!]
- n
- number of distinct available items
- r
- number of items selected
- !
- factorial
- nPr
- number of ordered selections
- nCr
- number of unordered selections
Example: From ten distinct items, selecting three gives 720 ordered outcomes and 120 unordered outcomes.
Ordered = nʳ.
Unordered = C(n + r − 1, r) for at least one available type.
- n
- number of available item types
- r
- number of selections made
- C
- number of combinations without repetition
Example: Selecting three times from four types gives 64 ordered outcomes and 20 unordered outcomes.
When the answer can mislead
- A partially ranked outcome can require counting the ranked and unranked positions separately.
- If certain pairs are forbidden, the unrestricted count will include invalid outcomes.
- Treating identical copies as distinct can count the same visible arrangement several times.
Questions
How do I decide between a permutation and a combination?
Ask whether rearranging the same chosen items creates a different outcome. If choosing names for three different roles, those roles are positions and rearranging the names changes the assignment. If choosing three people as members of one committee, their order does not change the membership.
What does allowing repetition mean?
It means the same item type can be picked more than once. For ordered choices, each position has access to all the item types again. For unordered choices, the outcome records how many times each type appears, so moving a repeated type to another position does not create another outcome.
Why is zero factorial equal to one?
Factorial counts arrangements of distinct items. For zero items there is one arrangement, the empty arrangement. Equivalently, multiplying a list of zero factors has the value one. This rule keeps formulas for choosing all items or no items consistent at their endpoints.
Can I select more items than are available?
You can do this when repetition is allowed and at least one item type exists. With repetition off, each distinct item can be used just once, so a selection larger than the available set is impossible and the calculator flags it.
What if some objects already look identical?
The basic modes count each available item as distinct. Arranging all items in a collection with identical copies requires accounting for those copies separately. A multiset combination with repetition instead models unrestricted choices from a set of types, so it does not enforce a fixed inventory of each type.
Sources
Embed this calculator
Cite this calculator
Permutation and Combination Calculator. CalculatorLab. https://calculatorlab.site/calculators/permutation-combination-calculator/. Last updated . Accessed .