Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Full Permutation


Press ▶ Play to auto-build all permutations, or Step ▶ to advance one ball at a time. Switch between balls / letters and adjust n to change the number of items.
● BallsA Letters
n =3?
Speed
P(3) = 3! = 6Press Play or Step to beginSOURCE (n = 3)123BUILD AREA#1#2#3
Building all permutations
P(3) = 3! = 3 × 2 × 1 = 6
Each step builds the family of permutations starting with one fixed item. With n items there are n such families, each containing (n−1)! arrangements. Steps appear here as they unfold.





Key Terms



Key Terms

Full permutation — an arrangement of all nn distinct items in a line, where order matters and every item is used exactly once. The count is n!n!.

Factorial $n!$ — the product n×(n1)×(n2)××2×1n \times (n-1) \times (n-2) \times \cdots \times 2 \times 1. The number of full permutations of nn distinct items.

Position — a slot in the arrangement, numbered #1\#1 through #n\#n from left to right in the build area.

Step / first-item group — the family of permutations that share the same item in position #1\#1. With nn items there are nn such groups, each containing (n1)!(n - 1)! permutations.

Permutation prefix — the part of the arrangement already filled at any moment during the build. A landed ball is part of the prefix; the source row dims items already used.

$P(n)$ notation — alternative writing for the count of full permutations: P(n)=n!P(n) = n!.

Getting Started

The tool opens with n=3n = 3 items and is ready to build. The scene is split into three areas:

• A source row at the top showing the available items.

• A build area in the middle with nn empty slots labeled #1\#1 through #n\#n.

• A completed section below, where every finished permutation is recorded and organized by which item went into position #1\#1.

To run the visualization:

• Press ▶ Play to auto-build all n!n! permutations.

• Press Step ▶ to advance one ball at a time.

• Press to step backward through the animation.

• Adjust the Speed slider to control how fast play advances.

The badge in the top right shows the formula P(n)=n!P(n) = n! together with the total, and a live status line such as "Step X (item name): k / (n-1)!" while building, or "Complete · n! / n!" when done.

The Build Area

The build area is where one permutation at a time is constructed. Five things to watch:

Empty slot outlines with dashed borders, labeled #1,#2,,#n\#1, \#2, \dots, \#n from left to right. The label tells you the position number.

• When a ball is in flight from the source row to a slot, a dotted guide line in that ball's color traces the trajectory.

• Each ball lands in its assigned slot and stays put until the permutation completes.

• In the source row above, every item already placed in the current permutation (plus the one currently in flight) is dimmed to indicate it's out of play.

• When all nn slots are filled, a flash ring briefly pulses around the build area. The completed permutation is then copied to the appropriate row in the completed section below, and the build area resets for the next permutation.

Adjusting n

The n stepper in the control bar changes the number of items. The visual handles:

n = 3 — produces 3!=63! = 6 permutations, displayed in 22 columns per first-item group.

n = 4 — produces 4!=244! = 24 permutations, displayed in 33 columns per first-item group.

n = 5 — produces 5!=1205! = 120 permutations, mini balls shrink to fit a wider grid.

Changing nn resets the build state: the source row repopulates, the build area gets a new set of slot outlines, the completed section empties, and the formula in the top-right header updates to P(n)=n!P(n) = n! for the new value.

Counts grow fast — by n=5n = 5 you're already at 120120 permutations, and the formula 5!=5×4×3×2×15! = 5 \times 4 \times 3 \times 2 \times 1 reads out in the right-panel header. For n=7n = 7 you would be looking at 5,0405{,}040 arrangements; for n=10n = 10, over three million.

Grouping by First Item

The most important pedagogical feature: the completed section organizes permutations into first-item groups. Every permutation that starts with the same item appears in the same row.

There are exactly nn groups (one per item) and each group holds exactly (n1)!(n - 1)! permutations. So the total count is:

n×(n1)!=n!n \times (n - 1)! = n!


This is the visual proof of the factorial formula. Pick any item to put in position #1\#1: that's nn choices. For each choice, the remaining n1n - 1 items fill the other n1n - 1 slots in any order: (n1)!(n - 1)! ways. Multiply.

Each group row in the completed area has:

• A tinted background in a faint version of the group's color.

• A colored accent stripe on the left edge.

• A left-side avatar showing the first item: a colored circle with the item's number in balls mode, or the letter in letters mode.

• Mini permutation cards, each one a full arrangement starting with that item.

Transport Controls

The control bar offers four transport buttons plus a speed slider:

(Step back) — walks the animation one step backward. Useful for re-examining a single permutation or pausing mid-build.

Step ▶ (Step forward) — advances one ball into one slot. Stop after each step to read the partial arrangement.

▶ Play / ⏸ Pause — runs the animation continuously until all n!n! permutations are built, then auto-pauses.

↺ Reset — clears the completed section and starts over from the first permutation.

The Speed slider controls how fast play advances. At higher speeds the fly and land timings shrink proportionally; at slower speeds you can clearly see each ball travel from source to slot and follow the dotted guide line in detail.

Mode Switch

The Mode switch at the start of the control bar toggles how each item is rendered:

Balls mode (default) — items appear as colored circles. The first-item avatar in each completed group is a circle with the item's number. Best for tracking position and group membership visually.

Letters mode — items appear with letter labels (A, B, C, …). The first-item avatar in each completed group is just the letter, colored to match. Best for reading off the sequence in each permutation and matching it to algebraic notation like (A,B,C)(A, B, C).

The encoding is consistent across the source row, the build slots, the flying ball, every mini permutation card in the completed grid, and the right-panel narration. Switching modes mid-animation is safe — the build state preserves; only the rendering changes.

Right Panel and Progress

The right panel narrates the build as it unfolds. Initially empty, it adds a StepRow for each first-item group as soon as a permutation in that group either starts building or completes.

Each StepRow shows:

• The first item as a chip plus its name — for instance, *First item: A* or the equivalent in balls mode.

• A progress counter like k/(n1)!k / (n - 1)! that tracks how many permutations in this group have completed.

• A short narration explaining the structure: *Position 1 is locked to A. The remaining n1n - 1 positions are filled with B or C or … in (n1)!=M(n - 1)! = M ways.*

• A status marker (current, done) that updates as the group progresses.

When all groups complete, every StepRow shows *(n1)!/(n1)!(n-1)! / (n-1)! \checkmark* and the overall counter in the header reaches n!/n!n! / n!.

What Is a Full Permutation

A full permutation of nn distinct items is an arrangement of all nn items in a line, where order matters and no item repeats. The number of such arrangements is the factorial of nn:

P(n)=n!=n×(n1)×(n2)××2×1P(n) = n! = n \times (n - 1) \times (n - 2) \times \cdots \times 2 \times 1


Examples of full permutations:

• Arranging 55 books on a shelf: 5!=1205! = 120 orderings.

• Lining up 44 runners for a relay: 4!=244! = 24 lineups.

• Listing the order of finish in a race with 66 distinct competitors: 6!=7206! = 720 rankings.

The full permutation is the simplest of the five permutation scenarios — no repeated items, no partial selection, no circular structure. Every item used, every position distinct, every order counted separately.

For deeper coverage of full permutations and the other four scenarios, see the full permutation section on the permutations theory page.

Deriving n! Step by Step

The factorial formula follows from the multiplication principle of counting. Build the permutation one position at a time:

Position $\#1$: any of the nn items can go here. nn choices.

Position $\#2$: any of the remaining n1n - 1 items. n1n - 1 choices.

Position $\#3$: any of the remaining n2n - 2 items. n2n - 2 choices.

\dots

Position $\#n$: only 11 item left. 11 choice.

Multiply the choices at each step:

n×(n1)×(n2)××1=n!n \times (n - 1) \times (n - 2) \times \cdots \times 1 = n!


The tool visualizes the equivalent split: fix the first item (nn ways), then permute the rest ((n1)!(n - 1)! ways), giving n×(n1)!=n!n \times (n - 1)! = n!. Every row in the completed section is one of those nn first-item families.

Factorials grow extremely fast: 5!=1205! = 120, 10!3.610! \approx 3.6 million, 20!2.4×101820! \approx 2.4 \times 10^{18}. This is why full permutations of even moderately large sets are uncountable in practice — you need the formula, not enumeration.

Related Concepts

Partial permutation without repetition — select and arrange only rr of the nn items. Formula n!(nr)!\frac{n!}{(n - r)!}. Reduces to n!n! when r=nr = n.

Permutation with identical items — when some items in the collection are indistinguishable. Divides n!n! by the factorial of each repeat group's size.

Permutation with repetition — items can be reused. Formula nrn^r for rr positions filled from nn items.

Circular permutation — arrange nn items around a circle where rotations are identical. Formula (n1)!(n - 1)!.

Combinations — selection where order doesn't matter. The companion concept; full permutations divide n!n! by 11 to keep all orderings, combinations divide further to remove ordering.

Multiplication principle — the foundational counting rule behind n!n!. If choice AA has aa options and choice BB has bb options, the combined choice has a×ba \times b options.

Combinatorics calculator — to compute n!n! for arbitrary nn, see the full permutation calculator.