How to use the Permutation & Combination Calculator
- Enter the total number of items n.
- Enter how many you choose, r.
- Tick “items can repeat” if the same item can be picked again.
What does this tool do?
Permutations count ordered arrangements: picking a president, secretary and treasurer from 10 people is P(10, 3) = 720. Combinations ignore order: choosing any 3 people for a committee is C(10, 3) = 120.
With repetition, a 4-digit PIN from 10 digits has 10⁴ = 10,000 permutations. Combinations with repetition — like picking 3 scoops from 10 flavours where repeats are allowed — use C(n + r − 1, r).
Worked examples from the calculator
A 6-from-49 lottery: C(49, 6) = 13,983,816 possible tickets, so one ticket has about a 1 in 14 million chance. If the order of the balls mattered, there would be P(49, 6) = 10,068,347,520 sequences, exactly 720 (6!) times more, because each set of six can be arranged 720 ways.
A 4-digit PIN, where digits can repeat and order matters: 10⁴ = 10,000 possibilities. With “Items can repeat” ticked, the calculator also gives combinations with repetition, C(10 + 4 − 1, 4) = 715, which counts how many different multisets of four digits there are if order doesn't matter (like choosing 4 scoops from 10 flavours).
Limits and exact answers
n and r can be any whole numbers up to 10,000, and results are calculated exactly with big integers. Answers up to 40 digits are shown in full; longer ones are shown in scientific notation (for example 1.234567890 × 10^56) with the total number of digits underneath. Without repetition you can't choose more items than you have, so r larger than n gives a clear error. The working (the factorial formula used) is shown under the result.
Related: Probability Calculator
Why use it?
- Both answers at once.
- Handles repetition.
- Exact big-number arithmetic.
Use cases
- Probability homework and exam revision.
- Lottery and card odds.
- Counting passwords, PINs and codes.
- Planning tournament pairings and seating arrangements.
Common mistakes
- Using permutations when order doesn't matter (a committee, a lottery ticket), which overcounts.
- Forgetting to allow repetition for PINs and codes, where digits can repeat.
The formula
Privacy
The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved. There's no account to create and nothing to install.
Frequently asked questions
How do I know whether order matters?
If swapping two chosen items gives a different outcome (positions, rankings, codes), use permutations. If it's the same group, use combinations.
Content last updated . See how M2Toolkit works.