How This Permutations Calculator Works
A permutation counts arrangements: sequences where swapping two entries produces a different outcome. The calculator builds the count the way the counting principle teaches it — place by place. The first place can be filled n ways; each choice leaves n − 1 for the second, and so on down to the r-th place. Multiplying the choices gives P(n, r) = n! ÷ (n − r)!, and the running totals printed at each step are that multiplication made visible. Unordered selections belong to the combinations calculator; both counts feed the probability calculator, and plain factorials live in the factorial calculator.
Worked Example: A Podium of 10 Athletes
Gold can go to any of 10 athletes; silver then to any of the remaining 9; bronze to any of 8. Total podiums: 10 × 9 × 8 = 720. Compare the combinations view: choosing the 3 medallists (ignoring which medal) is C(10, 3) = 120, and each such trio can stand on the podium in 3! = 6 orders — 120 × 6 = 720, the same answer from the other direction. When two routes agree like this, the counting is almost certainly right; when a problem resists both, the issue is usually whether repetition is allowed. Our guide on what probability is shows how counts like 720 become probabilities.
Repetition Changes the Count
This calculator assumes no item is reused. If repetition is allowed — PIN digits, letters in a code — every place keeps all n choices and the count is n^r: a 4-digit PIN has 10⁴ = 10,000 possibilities, which our exponent calculator handles. If items repeat within the pool (the letters of LEVEL), divide n! by the factorial of each repeat count. The Khan Academy precalculus course covers all three variants with practice.
Common Mistakes
- Using permutations for committees: if the chosen items have no order or roles, it is a combination — the permutation count overstates by exactly r!.
- Expanding n! in full: cancel (n − r)! first; the falling product is the whole computation.
- Forgetting that r ≤ n: without repetition you cannot arrange more items than exist — the calculator refuses rather than guessing.