Permutations are arrangements where order matters. As we discussed on the main combinatorics page, this is what distinguishes permutations from combinations.
Each scenario has specific formulas and real-world applications. Ready to dive into the details, or want to compare with combinations where order doesn't matter?
Mastering these permutation types gives you the tools to solve ordering problems across mathematics, computer science, and everyday scenarios. The key is recognizing which type fits your specific situation.
The Logic behind permutations
In combinatorics, we distinguish between several types of permutations based on different criteria, but they all share one key property: in every type, the order of arrangement matters ( and that is exactly what makes the difference between permutations and variations). In all different scenarios, the mechanism for creating a permutation is similar, and it is important to understand it. When creating an arrangement, we must make two decisions: 1. Which item to pick? 2. Where to place it in the arrangement?
Let us examine the simplest case. Imagine we need to arrange n different items (all distinct) in a row, without repetition. We can break it down into steps:
Step 1: Choose an item for the first position. There are n options. Step 2: Choose an item for the second position. Now there are n−1 options. Step 3: Choose an item for the third position. Now there are n−2 options. … and so on, until Stepn: Only one item remains, so there is just 1 option.
Each step reduces the number of choices (since repetition is not allowed). Because we must make all these choices in sequence, we apply the multiplication principle.
Thus, to calculate the total number of permutations, we multiply:
n×(n−1)×(n−2)×⋯×1,
which is the definition of a factorial.
For n distinct objects, the number of permutations is:
  n!=n×(n−1)×(n−2)×⋯×2×1.
To summarize:
* We start with n options. * Each choice reduces the number of remaining options by one. * We multiply the number of choices at each step.
This gives us n! total permutations.
Here is an example of simple permutation: creating 3 letter string.
You can see how the principle explained before is applied here. First, one of 3 letters is picked and for each scenario there are 2 different choices to select the second letter.Once the choice is made, only one letter left. The result is:
  3×2×1=6(n!)
Where n is total number of items.
Types of Permutations
Although in all types of permutations the order of arrangement matters, the key differences between them arise from other considerations: Can items be repeated? Are some items identical? Is the arrangement linear or circular? The table below summarizes these distinctions, showing how different scenarios lead to different counting formulas.
By addressing these additional questions, we can classify permutations into several types, each with its own counting method. Understanding these distinctions helps in correctly applying the appropriate formula for a given arrangement problem.
Permutation (Full)
Full Permutation applies when you arrange all distinct items in a specific order with no repetitions allowed.
Property
Full Permutation
Use all items
✓
Order matters
✓
Identical items
✗
Repetitions
✗
Linear arrangement
✓
Full Permutation — Examples: Arranging all books on a shelf, deciding the lineup of all players in a team, organizing all photos in an album, setting the order of speakers in a presentation, ordering all tasks in a workflow, ranking all competitors in a contest, scheduling all meetings in a day, sorting all files in a folder.
The intuition and logic we use for this kind of permutation has been explained pretty well in previous section and it works basically for all types of permutations. Just in case of full permutations (unlike in other types) no further modifications needed and the calculation is simple. Notation: In combinatorics, we use specific notation to represent different types of permutations. For arranging r objects selected from n distinct objects, the standard notation is P(n,r) or nPr. When applied to full permutations, apparently r=n (because we use all the items ), and the notation turns into :
Permutation with Identical Items applies when arranging all items where some identical elements appear multiple times in your collection. Classic examples include arranging all letters in words like "MISSISSIPPI" or organizing all colored balls when you have multiple balls of the same color.
Property
Permutation with Identical Items
Use all items
✓
Order matters
✓
Identical items
✓
Repetitions
✗
Linear arrangement
✓
Permutation with Identical Items — Examples: Rearranging letters in the word “BALLOON,” organizing colored balls where some colors repeat, sequencing identical files and unique ones in storage, arranging identical chairs and distinct tables in a layout, ordering repeated ingredients in a recipe list.
Where multinomial coefficient: counts distinct arrangements of n items split into groups of sizes n1,n2,…,nk. Use combinatorics calculator →
Partial Permutation without Repetition
Partial Permutation without Repetition applies when selecting and arranging only some items from a larger collection, with all items being distinct. Classic examples include choosing and ordering contestants from a group or selecting and arranging books from a library shelf.
Property
Partial Permutation without Repetition
Use all items
✗
Order matters
✓
Identical items
✗
Repetitions
✗
Linear arrangement
✓
Partial Permutation (without repetition) — Examples: Selecting and ordering finalists from a group of contestants, arranging a subset of books on a display, picking and sequencing players for a relay team, choosing and ordering questions for an interview, organizing a limited set of tasks for a project phase.
Where n! counts all arrangements, dividing by (n−r)! removes the unused positions. Use combinatorics calculator →
Permutation Notation
Notation
Permutation Notation
Three marks carry every count on this page: the exclamation that multiplies downward, the two-letter family that orders selections, and the same exclamation moved out front to count the restless. Each scenario section keeps its own Notation block for the variant spellings.
The choose-family marks (rn) and C(n,r) belong to the binomial coefficient; the set-size bars behind the counting arguments to cardinality.
n!
n factorial
The postfix count of complete rearrangements: n!=n×(n−1)×⋯×1, introduced in The Logic behind permutations above. The convention 0!=1 is load-bearing — it keeps every counting formula honest at the edges.
CasesThe mark binds tight — 2n! means 2⋅(n!), and (2n)! needs its brackets; stacked marks are different animals: (n!)! iterates, while n!! skips every second factor (the double factorial), not a repeat.
Do not confusePunctuation. A sentence ending on 5 with an exclamation and the operator in 5! share a glyph — and in programming ! negates; position and context carry the meaning.
P(n,r) · nPr
P n r; n permute r
The arrangement-count family: P(n,r)=(n−r)!n! orders r items chosen from n — functional P(n,r) in texts, subscripted nPr on calculator keys, as the Notation blocks of Permutation (Full) and Partial Permutation without Repetition above list.
CasesAnr — the Arrangements letter of French and Russian textbooks, same count in a different alphabet; the full case collapses the second argument: P(n,n)=P(n)=n!.
Do not confuseThe choose family. P(n,r) counts ordered selections, (rn) unordered ones — they differ by exactly the factor r!, and the binomial coefficient owns the other side of that ledger.
!n · Dn
subfactorial n; derangements of n
The factorial's mirror image: !n counts permutations that leave nothing in place — the prefix position is the entire distinction, as Derangement below explains. Dn is the older spelling, still common.
CasesThe two interchange freely — !5=D5=44; the prefix form reads badly mid-sentence, which is precisely what keeps the subscripted Dn alive in running text.
Do not confusen! read backwards. !4=9 while 4!=24 — position flips the meaning entirely, and a hasty transcription trades all arrangements for only the restless ones.
Permutation with Repetition applies when arranging items where you can reuse the same element multiple times during the arrangement process. Classic examples include creating PIN codes where digits can repeat, or forming passwords where letters can be used multiple times.
Property
Permutation with Repetition
Use all items
✓
Order matters
✓
Identical items
✗
Repetitions
✓
Linear arrangement
✓
Permutation with Repetition — Examples: Generating PIN codes from digits, creating letter sequences for passwords, arranging beads in a bracelet where colors can repeat, composing license plate numbers, assigning seats with multiple people allowed in the same category.
Circular Permutation applies when arranging items around a circle where rotations are considered identical arrangements. Classic examples include seating people around a round table or arranging objects in a circular pattern.
Property
Circular Permutation
Use all items
✓
Order matters
✓
Identical items
✗
Repetitions
✗
Linear arrangement
✗
Circular Permutation — Examples: Arranging guests around a round table, seating participants in a circular panel, ordering beads in a circular necklace, organizing tasks in a repeating cycle, setting positions for players in a circular game arrangement.
The total number of possible circular arrangements is
  Pcirc(n)=(n−1)!
If n is a total number of items to arrange then fixing one item reduces circular arrangements to (n−1)! linear ones. Use combinatorics calculator →
Derangement
A derangement is a permutation with an added constraint: no element appears in its original position. The other five permutation types vary the question of which arrangements to count — all items or a subset, with or without repetition, linear or circular. The derangement varies the constraint on the arrangement itself: same items, same order-matters property, same linear shape, with the extra requirement that every item must have moved.
The classical motivation is the hat-check problem. n guests check n hats, and the attendant returns them in a random order. In how many of those orderings does no guest receive their own hat? Each such ordering is a derangement of the n hats.
Notation
Two notations are in common use:
• !n — the subfactorial, the modern standard. The exclamation precedes the operand, mirroring the factorial in reverse. • Dn — an alternative notation, common in older texts.
It is derived by applying the inclusion–exclusion principle to the set of all permutations: start with n! total, subtract those that fix at least one specific position, add back those that fix at least two, and continue with alternating signs through all n positions. The full derivation lives on the inclusion–exclusion page; the permutations page uses the result.
The proportion of permutations that are derangements approaches a fixed limit rather than vanishing or filling the space — for any sufficiently large n, roughly 36.8% of all permutations of n items are derangements.
Small Values
The first few subfactorials:
• !1=0 — with one item, the only permutation leaves it in place • !2=1 — the swap • !3=2 • !4=9 • !5=44 • !6=265
Example
In the hat-check problem with 4 guests, the number of orderings in which no guest receives their own hat is
!4=4!k=0∑4k!(−1)k=24(1−1+21−61+241)=9.
Out of the 4!=24 possible orderings of the four hats, exactly 9 satisfy the no-fixed-point condition.
Permutations FAQ
What is a permutation?
+
An arrangement of items where the order counts. Listing three books on a shelf in a different sequence produces a different permutation, even though the same books are involved. This is the defining contrast with selections, where rearranging the chosen items changes nothing about the result.Read more →
What is the difference between permutations with and without repetition?
+
Without repetition each item can be used once, so the pool shrinks with every position filled and the count is a descending product. With repetition the full pool is available every time, so the count is one number raised to the power of the number of positions. A PIN allows repeats; seating people does not. Compare both on the permutation calculator.Read more →
How do you count arrangements when some items are identical?
+
Count as if every item were distinct, then divide by the factorial of each repeated group's size. The division removes the rearrangements among identical items, which produce no visibly different result. Arranging the letters of a word with repeated letters is the standard case where this correction is needed.Read more →
Why do you divide by n when counting circular permutations?
+
Because rotating the whole arrangement produces the same circular seating. Every distinct circle corresponds to n straight-line arrangements, one for each starting position, so the linear count overcounts by exactly that factor. Fixing one person in place and arranging the rest gives the same answer more directly.Read more →
What is the difference between nPr and n factorial?
+
Factorial arranges every item, while nPr arranges only r of them chosen from n. Factorial is the special case where r equals n, so all positions are filled. Reading nPr as a factorial of something is a common slip; it is a descending product that stops after r terms rather than continuing to one.Read more →