Calculate permutations where order matters: standard nPr, repetition allowed (n^r), circular arrangements, and multiset item permutations.
Click "Calculate Permutations" to compute arrangements.
A track coach selects 4 runners out of a 10-person squad to run a 4Ć100m relay, where running position (1st leg, 2nd leg, 3rd leg, anchor) is critical: calculating total distinct team lineups requires evaluating āāPā = 10! / (10 - 4)! = 5,040 arrangements. A security engineer evaluates 4-digit PIN code combinations where digits can repeat: 10ā“ = 10,000 possible passwords. An event coordinator seating 8 delegates around a circular banquet table calculates distinct relative seating arrangements: (8 - 1)! = 7! = 5,040.
A permutation is an arrangement of a set of items where the order of selection matters. Reordering the same subset of items produces a distinct permutation (for example, the code 1-2-3 is distinct from 3-2-1).
The primary formula for selecting r items from a total pool of n distinct items without replacement is nPr = n! / (n - r)!. When replacement is allowed, the formula is n^r. When arranging indistinguishable items (multisets), the formula divides total factorials by group factorials. This tool calculates permutations across all four modes using BigInt precision. The following sections explain permutation formulas, circular symmetry reductions, and practical applications in security, sports, and logistics.
When inputs are submitted, the engine executes exact BigInt factorial arithmetic, ensuring zero floating-point rounding errors regardless of result magnitude.
1. Standard Permutations Without Repetition (nPr):
nPr = n! / (n - r)! = n Ć (n - 1) Ć (n - 2) Ć ... Ć (n - r + 1)
Constraint: 0 ⤠r ⤠n.
2. Permutations With Repetition Allowed:
Each of the r selection slots has n available choices:
Total = n Ć n Ć ... Ć n (r times) = n^r
3. Circular Permutations:
For n distinct objects arranged in a closed loop or round table, rotating the circle by 1 position yields equivalent relative orderings. Dividing by n rotations gives:
Circular = n! / n = (n - 1)!
4. Multiset / Indistinguishable Items Permutations:
For a total of N = nā + nā + ... + n_k items where group 1 contains nā identical items, group 2 contains nā identical items, etc.:
Multiset = N! / (nā! Ć nā! Ć ... Ć n_k!)
Classic example: Arranging the letters of "MISSISSIPPI" (N=11: 1 M, 4 I, 4 S, 2 P) yields 11! / (1! Ć 4! Ć 4! Ć 2!) = 34,650 distinct words.
Password and PIN security analysis. Cybersecurity analysts calculate total password space size N^L for alphanumeric character sets to measure brute-force cracking resistance.
Sports lineups and race finishing order. Race officials calculate total podium finish combinations (1st, 2nd, 3rd place) among 20 marathon runners: āāPā = 20 Ć 19 Ć 18 = 6,840.
DNA sequence alignments and genetics. Bioinformaticians compute distinct nucleotide sequence permutations (A, C, G, T) to model genetic mutation spaces.
Logistics and traveling salesperson routes. Logistics planners evaluate route sequencing options for delivery trucks visiting n customer stops.
Remember: If order does NOT matter (e.g. choosing a 4-person committee where all members have equal status), use our Combination Calculator (nCr) instead.
For multiset word anagrams (like "MISSISSIPPI"), select Mode 4 and enter the counts of each repeated letter separated by commas (e.g. 1, 4, 4, 2).
For single factorials ($n!$), pair this tool with our Factorial Calculator. For basic event likelihoods, use our Probability Calculator.
The calculation engine operates client-side in JavaScript using BigInt specifications. Permutation āāāPā ā evaluates in under 1 millisecond.
| Feature | This Tool | Hand Factorials | Scientific Calculator |
|---|---|---|---|
| Max n Limit | n = 1000 (BigInt) | n = 10 practical | n = 99 (Float overflow) |
| Order Matters | Yes (nPr) | Yes | nPr key |
| Repetition Allowed | Yes (n^r mode) | Manual power | x^y key |
| Circular Mode | Yes ((n-1)! mode) | Manual subtraction | Not listed |
| Multiset Mode | Yes (N! / ān_i!) | Manual factorials | Not listed |
| Privacy | Client-side browser | Paper | Local device |
| Cost | Free | Free | Free |
In permutations (nPr), order matters (e.g. 123 ā 321). In combinations (nCr), order does not matter (e.g. {1,2,3} = {3,2,1}). Consequently, nPr is always greater than or equal to nCr.
When selecting all n items (r = n), nPn = n! / (n - n)! = n! / 0! = n! / 1 = n!. Setting 0! = 1 ensures formula consistency.
Since digits can repeat, the total count is 10ā“ = 10,000 PIN codes (0000 through 9999).
Combination Calculator ā Calculates nCr combinations where order does not matter.
Probability Calculator ā Computes single, independent, and conditional event probabilities.
Factorial Calculator ā Evaluates exact BigInt factorials and Stirling approximations.