Multiset permutation / anagram count calculator

Count distinct permutations when some items are identical (multinomial coefficient). Use text mode for anagrams (BANANA), or counts mode for category totals.

Runs locally in your browser. Exact uses BigInt within safe limits; Approx shows digit count and scientific notation when the exact integer is too large.

Other languages: en | ja | es

How to use (3 steps)

  1. Select Text (anagrams) or Counts (symbol + count).
  2. Choose Exact or Approx. Exact shows the full integer when safe.
  3. Copy a shareable URL to reproduce the same state.
Input mode

For word-level permutations (e.g., “Red, Red, Blue”), use Counts mode.

Text options

ASCII punctuation includes: !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~

Precision

Results

Exact value (Exact mode):
Digits:
Scientific notation:

Breakdown (counts)

Symbol Count

Random examples (small n)

Generates distinct permutations uniformly when n ≤ 30. Use a seed for reproducibility.

    FAQ

    What is a multiset permutation (anagram count)?

    It counts distinct arrangements when some items are identical, e.g., the number of unique anagrams of BANANA.

    What is the formula?

    If total items are n and repeated counts are n1..nk, then Count = n! / (n1! n2! … nk!).

    What is the difference from “permutations with repetition” (n^r)?

    Multiset permutations mean the duplicates are already present (BANANA). n^r means you can reuse items while choosing (PIN codes).

    Why is the result 1 when n = 0?

    There is exactly one way to arrange zero items: do nothing (the empty permutation).

    What if Exact is rejected?

    Switch to Approx to see a reliable digit count and scientific notation without building the huge integer.

    How can I compute this in Excel?

    Use factorials: =FACT(n)/PRODUCT(FACT(n1),FACT(n2),...). For large n, Excel may overflow; use Approx here instead.

    How it’s calculated

    Related