Home / Statistics & Probability / Permutation Calculator

STATISTICS & PROBABILITY COUNTING

Permutation Calculator

How many ways can r items be arranged in order from n? Get P(n, r) exactly — however large the count grows — with the falling-product steps, permutations with repetition, circular arrangements, and the distinct arrangements of a word with repeated letters.

Exact counts of any sizeRepetition & circular modesRepeated-letter words counted

Arrangements Where Order Matters

Three counters, one for each shape of ordering problem. All counts use exact whole-number arithmetic — no rounding, however big they get.

A · Permutations — P(n, r)

n items, arrange r of them in order. Without repetition each item is used once (podium finishes, rankings). With repetition every position can reuse all n (PINs, codes).

B · Circular Permutations — Around a Circle

Seating around a round table, beads on a ring: rotations of the same arrangement count as one. Enter n, and optionally r if only some of the items go around the circle.

C · Repeated Items — Words With Repeated Letters

Arranging items when some are identical: the letters of MISSISSIPPI, coloured balls with repeats, anagrams that are genuinely different. Type the word or string; spaces are ignored and characters are counted exactly as typed.

Everything is worked out in your browser. Nothing you enter is stored or sent anywhere.

Quick Answer

Example: gold, silver and bronze among 10 runners can be awarded in P(10, 3) = 720 ways — 10 choices for gold, 9 for silver, 8 for bronze. If only the three medallists mattered and not their order, it would be a combination: 120. Permutations count arrangements; that is the whole idea.

How to Use the Permutation Calculator

  1. Section A is the main counter. Enter n (total items) and r (positions to fill), and say whether an item can be used more than once. You get the exact count, the falling-product steps, the combination count for the same n and r, and — for small counts — every arrangement listed.
  2. Section B handles circles. For round tables and rings, enter n (and r only if not everyone is seated). Rotations of the same arrangement count as one.
  3. Section C handles identical items. Type a word like MISSISSIPPI and get the number of genuinely different arrangements of its letters, with the repeat counts shown.

The Permutation Formula

P(n, r) = n! ÷ (n − r)!

Nobody computes it with raw factorials — it cancels to a falling product of exactly r terms: P(10, 3) = 10 × 9 × 8 = 720. The product tells the story directly: 10 candidates for the first position, then 9 remain for the second, then 8. Each position multiplies the count by its number of remaining choices — the fundamental counting principle in one line. Arranging all n items is the special case r = n, where the product runs all the way down: P(n, n) = n!.

That is also how this calculator computes — term by term, in exact whole-number arithmetic — so P(100, 50) comes out as a precise 94-digit number, not an approximation.

Permutations With Repetition: n^r

When an item can be used again — digits in a PIN, letters in a code, symbols on a slot machine — nothing is used up, and every position independently offers all n choices:

n^r

A 4-digit PIN: 10⁴ = 10,000 codes, against only P(10, 4) = 5,040 if digits could not repeat. A 3-letter code from 26 letters: 26³ = 17,576. Two consequences worth remembering: with repetition, r may exceed n (a 6-digit PIN from 10 digits), and the count grows much faster than the no-repetition count — which is exactly why longer codes are stronger, and why "no repeats" rules quietly weaken them.

Circular Permutations: Arranging Around a Circle

Seat people around a round table and something changes: rotating everyone by one seat produces the same arrangement — nobody's neighbours changed. Each circular arrangement corresponds to exactly r rotations in a line, so the count divides by r:

P(n, r) ÷ r  — and when everyone is seated, (n − 1)!

Six people at a round table: 5! = 120 arrangements, not 720. The (n − 1)! form has a picture to match: fix one person's seat to break the rotation, then arrange the remaining n − 1 freely. If the circle can also be flipped over — a necklace or a ring of beads — mirror images count as the same too, and the count halves again (Section B shows that row when it applies).

Repeated Items: When Some Items Are Identical

The letters of MISSISSIPPI are 11 characters, but they are not 11 different items: I appears 4 times, S appears 4 times, P twice. Swapping two identical letters changes nothing, so the naive 11! massively overcounts. The fix divides by the factorial of every repeat count:

11! ÷ (4! × 4! × 2!) = 34,650 distinct arrangements

The same idea counts distinct arrangements of coloured balls in a row, anagrams that are genuinely different words, and signal flags with duplicates. Section C does it for any word or string you type, and shows the frequency table it divided by — so you can see exactly which repeats cost how much.

Worked Examples

Example 1 — A race podium

Twelve runners, three medals: P(12, 3) = 12 × 11 × 10 = 1,320 possible podiums. The medals make the order matter — swap gold and bronze and it is a different result.

Example 2 — A PIN

Four digits, repeats allowed: 10⁴ = 10,000 PINs, from 0000 to 9999. Forbid repeated digits and it drops to P(10, 4) = 5,040 — barely half.

Example 3 — A round table

Six friends, one round table: (6 − 1)! = 120 seatings. In a row of six chairs it would be 720 — the circle removes exactly the six rotations of each arrangement.

Example 4 — A word

BANANA: 6 letters with A × 3 and N × 2, so 6! ÷ (3! × 2!) = 60 distinct arrangements — not 720.

Permutation vs Combination: One Factor of r!

QuestionPermutationCombination
Does the order of the pick matter?YesNo
Formulan! ÷ (n − r)!n! ÷ (r! (n − r)!)
Typical examplesPodium finishes, passwords, seating orders, race resultsCommittees, card hands, lottery numbers, pizza toppings
10 items, choose 3720120

The bridge between them is one line: P(n, r) = C(n, r) × r! — choose the group (combination), then arrange it (r! orders). This page is the permutation side of that bridge, done in depth: repetition, circles and repeated items. Combinations get the same depth on their own page; here the combination count appears as one comparison row in Section A so the factor of r! is always in view.

Common Mistakes to Avoid

  • Using permutations when the roles are identical. A 3-person committee from 10 is 120, not 720 — nobody is "first" on a committee.
  • Forgetting that repetition changes the formula entirely. Codes and PINs are n^r, not P(n, r). A 4-digit PIN is 10,000, not 5,040.
  • Counting rotations as different seatings. Around a circle, divide by r — or use (n − 1)!. A round table is not a row of chairs.
  • Treating identical items as distinct. BANANA has 60 arrangements, not 6! = 720. Every repeat count must be divided out.
  • Letting r exceed n without repetition. You cannot award 7 distinct medals from 5 runners. If your problem allows it, items are being reused — switch the mode.

What This Calculator Does Not Do

  • It is not a full combination calculator — combinations appear as a single comparison row; groups, repetition and listing get their own page.
  • It does not handle restrictions ("two people must sit together", "no vowels adjacent") — split those into cases: count with the restriction glued or placed first, then multiply or subtract.
  • It does not list arrangements when there are more than 200 — the list would be a book, not a readout.
  • Inputs in Sections A and B are capped at n, r ≤ 1,000, and Section C at 200 characters; the counts stay exact throughout.

Frequently Asked Questions

Quick answers about permutations — the formula, repetition, circles, and words with repeated letters. Tap a question to open it.

What is a permutation?

An arrangement of items where the order matters. Choosing Ann, Luis and Marta for gold, silver and bronze is a permutation — swap the medals and it is a different outcome. Choosing the same three people for a committee is a combination, because there the order carries no meaning. Permutations answer “which arrangement?”, combinations answer “which group?”.

P(n, r) = n! ÷ (n − r)!, which cancels to a falling product of r terms: P(10, 3) = 10 × 9 × 8 = 720. Read it as choices per position — 10 candidates for the first position, 9 left for the second, 8 for the third. The calculator multiplies it out in exact whole numbers, so even P(100, 50) is given to all 94 digits.

Order. The counts differ by exactly the orderings of each group: P(n, r) = C(n, r) × r!. For 3 from 10, that is 720 arrangements versus 120 groups — six orderings (3!) per group. If your outcomes have distinct roles or positions, it is a permutation; if only membership matters, a combination.

An arrangement where items can be used again — digits in a PIN, letters in a code. Each of the r positions independently offers all n choices, so the count is n^r: a 4-digit PIN has 10^4 = 10,000 possibilities. Repetition is also the only mode where r can be larger than n — a 6-digit PIN from 10 digits.

P(12, 3) = 12 × 11 × 10 = 1,320. Twelve choices for first, eleven remaining for second, ten for third — and because the places are distinct, every one of those 1,320 outcomes is a genuinely different result.

An arrangement around a circle, where rotations of the same arrangement count as one — seating at a round table, beads on a ring. The count is P(n, r) ÷ r, and when everyone is included it simplifies to (n − 1)!: six people at a round table have 5! = 120 seatings, not 720. Fix one person’s seat in your mind and the rest is an ordinary arrangement of n − 1.

Divide the factorial of the total letters by the factorial of each letter’s repeat count. MISSISSIPPI has 11 letters with I × 4, S × 4 and P × 2, so its distinct arrangements number 11! ÷ (4! × 4! × 2!) = 34,650 — far fewer than the 39,916,800 you would get if all 11 letters were different.

Only with repetition. Without repetition you cannot arrange more items than exist — there are not 7 distinct medal winners among 5 runners. With repetition nothing is used up, so a 6-position code from 10 digits (r > n) is fine: 10^6 = 1,000,000.

Exactly 1. There is one way to arrange zero items — the empty arrangement — just as there is one way to choose nothing. The formula agrees: P(n, 0) = n! ÷ n! = 1. It is the same convention that makes 0! = 1.

Related Calculators

More free calculators on MyDayCalculator:

Your privacy: everything you enter stays on your device. The calculator does not store or send your information anywhere.

A quick note: most counting errors are not arithmetic errors — they are order errors. Decide first whether order matters, and the formula chooses itself.

Last reviewed: November 2026.

Scroll to Top