Permutation and Combination Calculator (nPr, nCr)
NEWCount permutations and combinations with or without repetition, factorials and arrangements of repeated letters, exactly for n up to 1000. List the actual selections for small sets.
Runs 100% in your browser — your input is never uploaded or stored on our servers.
Count the selections
Whole numbers from 0 to 1000. Results are exact; very long numbers are shown in scientific notation with every digit one click away.
Arrangements with repeated items
How many different orders exist when some items are identical? The formula is n! divided by the factorial of each repeat count.
List the arrangements
Up to 20 items, r up to 20. Items are told apart by position, so a repeated name counts as a different item. Ordered results are shown as (a, b), unordered ones as {a, b}.
6 results.
- {A, B}
- {A, C}
- {A, D}
- {B, C}
- {B, D}
- {C, D}
Quick Examples
Typical inputs and the results this tool produces.
Overview
Permutations count ordered selections and combinations count unordered ones. Enter n, the number of items to choose from, and r, the number you pick, to see four counts side by side: nPr, nCr, ordered selections with repetition (n^r) and unordered selections with repetition, C(n + r − 1, r), plus n!.
The numbers are computed with exact big-integer arithmetic for n and r up to 1000, so even 1000! with its 2,568 digits is exact. Long values are shown in scientific notation, and every digit is one click away.
A second section counts arrangements when some items are identical, such as the 34,650 ways to order the letters of MISSISSIPPI. A third section lists the actual selections from your own items, up to 500 at a time. All of it runs in your browser.
Why use this tool?
- nPr, nCr and both repetition cases at once
- Exact results for n up to 1000
- Arrangements of words with repeated letters
- Lists real selections from your items
- Runs in your browser, nothing is sent
Features
Four counts at once
Permutations, combinations, and both with repetition, each with its formula filled in.
Exact big numbers
BigInt arithmetic gives every digit of results such as 100! or C(1000, 500).
Repeated letters
Type a word or a list of repeat counts to get n! / (k₁! · k₂! · …).
List the selections
See the actual pairs, triples or orderings of your own items, up to 500 results.
Scientific notation
Long results show a 10-digit mantissa and the power of ten, plus the digit count.
Copy results
Copy the counts with their formulas, or the full list of selections.
How to Use
Enter n and r
n is how many items you choose from, r is how many you pick.
Read the counts
Pick the card that matches your question: does order matter, and can items repeat?
Handle repeated items
Type a word or the repeat counts to count distinct arrangements.
List the selections
Enter your items and r to see the actual arrangements, then copy them.