How to use the Permutation & Combination Calculator
- 1
Enter n
The total number of distinct items available.
- 2
Enter r
How many items you choose or arrange.
- 3
Pick the right tile
Order matters? Use nPr. Order doesn’t matter? Use nCr. Repeats allowed? Use the repetition tiles.
- 4
Read long results
Very long answers show the first 10 digits and the total number of digits.
Features
nPr and nCr together
Both counts update as you type, so you can compare them directly.
With repetition
Shows nʳ arrangements and C(n + r − 1, r) selections when items can repeat.
No overflow
Exact big integers — 100C50 shows all 30 digits.
Sensible edge cases
If r > n, nPr and nCr are 0; r = 0 gives 1.
Live results
No button to press; the answer follows your typing.
Private
All counting runs in your browser.
Who uses it — and for what
Students
Check JEE, SAT, GCSE and board-exam counting problems.
Game and lottery players
Find the true number of possible draws or hands.
Security learners
Count possible PINs and passwords to compare their strength.
Team organisers
See how many squads, line-ups or fixtures are possible.
Order matters — or not
A permutation counts arrangements where order matters: the number of ways to award gold, silver and bronze among 10 runners is 10P3 = 10 × 9 × 8 = 720. A combination counts selections where order doesn’t matter: choosing 3 people for a committee from 10 is 10C3 = 120, because each group of 3 can be ordered 3! = 6 ways and 720 ÷ 6 = 120.
nPr = n! ÷ (n − r)! · nCr = n! ÷ (r! (n − r)!)
With repetition
When items can be reused, arrangements are nʳ — a 4-digit PIN from 10 digits has 10⁴ = 10,000 possibilities. Combinations with repetition (like choosing 3 scoops from 10 ice-cream flavours, repeats allowed) are C(n + r − 1, r). All results are calculated with exact big-integer arithmetic, so lottery-sized numbers like 49C6 = 13,983,816 and even 100C50 are shown in full.
Every result is calculated in your browser the moment you type, so you can change a number and see the effect instantly — ideal for checking homework, worksheets and exam practice. Results are shown to a sensible number of decimal places; very large or tiny values switch to scientific notation.
Step-by-step: deciding which formula to use
Most counting mistakes come from choosing the wrong formula, not from the arithmetic. Ask two questions:
- Does the order or position matter? A president, vice-president and secretary are different roles — yes. A three-person committee — no.
- Can the same item be used twice? PIN digits — yes. People — no.
Worked example with 8 club members:
- Elect a president, vice-president and secretary: order matters, no repeats → 8P3 = 8 × 7 × 6 = 336.
- Choose a 3-person committee: order doesn’t matter, no repeats → 8C3 = 336 ÷ 3! = 56.
- Give each of 3 prizes to any member, one person may win several: order matters, repeats allowed → 8³ = 512.
- Buy 3 doughnuts from 8 flavours, repeats allowed, order irrelevant → C(10, 3) = 120.
Enter n = 8, r = 3 and all four numbers appear at once — a quick way to see how the same situation changes as the rules change.
Common exam mistakes
- Using nPr for groups. If swapping two chosen items gives the same outcome, it is a combination.
- Repeated letters. The arrangements of MISSISSIPPI are not 11! but 11! ÷ (4! × 4! × 2!) = 34,650, because the identical S’s, I’s and P’s can swap without creating a new word. This tool assumes all n items are different, so handle repeated letters with the Factorial Calculator.
- Circular seating. n people round a table have (n − 1)! arrangements, not n!, because rotating everyone gives the same seating.
- Adding instead of multiplying. Choosing 2 boys from 5 and 1 girl from 4 is 5C2 × 4C1 = 10 × 4 = 40; use “and → multiply, or → add”.
- Forgetting nCr = nC(n − r). It is a great shortcut: 20C18 is just 20C2 = 190.
Handshakes and round-robins
If 20 people each shake hands once with everyone else, the number of handshakes is 20C2 = 190. A league where 20 teams play each other home and away needs 20P2 = 380 matches. The difference is exactly whether order (home vs away) matters.
Real-world counting
Lotteries quote odds from combinations: 6 numbers from 49 gives 13,983,816 tickets, so one ticket has about a 1 in 14 million chance. Password policies use the repetition formula: length matters more than complexity, because nʳ grows fastest in r. Geneticists, quality-control engineers and card players all lean on nCr, and the binomial probabilities in the Probability Calculator are built from it. To generate actual random selections rather than count them, try the Lottery Number Generator.
Worked examples
Choosing a playing XI from 15
n = 15, r = 11 → nCr = 1,365 possible teams. Once the XI is picked, its 11 players can bat in 11! = 39,916,800 orders (n = 11, r = 11 gives that nPr). Note 15C11 equals 15C4 = 1,365 — choosing who plays is the same as choosing the four who sit out.
Poker hands
n = 52, r = 5 → nCr = 2,598,960 different five-card hands, while nPr = 311,875,200 counts the same cards dealt in a particular order. The ratio is 5! = 120.
PIN and password space
Four lowercase letters with repeats: n = 26, r = 4 → nʳ = 456,976. Letters plus digits: n = 36 → 1,679,616. A 4-digit PIN: n = 10 → 10,000. Each extra symbol in the alphabet multiplies the count.
Pro tips
- nPr is always nCr × r!, so if you know one you can check the other.
- If nCr looks wrong, try nC(n − r) — the two must match.
- For n above 5,000 the page asks you to use a smaller value, to keep the browser responsive.
Glossary
- Permutation
- An arrangement of items where the order matters.
- Combination
- A selection of items where the order does not matter.
- Binomial coefficient
- Another name for nCr, written (n over r); it is the coefficient in the expansion of (a + b)ⁿ.
- Multiset
- A collection that may contain repeated items, counted by the combinations-with-repetition formula.
Frequently asked questions
What is the difference between nPr and nCr?
nPr counts ordered arrangements; nCr counts unordered selections.
How many lottery combinations are in 6 from 49?
13,983,816.
What is 0!?
1, by definition.
What happens if r is bigger than n?
Without repetition you cannot pick more items than exist, so nPr and nCr show 0. With repetition, both repetition tiles still give valid counts.
Why does 10C0 equal 1?
There is exactly one way to choose nothing — the empty selection — so nC0 = 1 for every n.
Can I count arrangements with identical items?
Not directly. Divide n! by the factorial of each group of identical items, as in the MISSISSIPPI example.
Last updated 2026-11-28 · Built by Vinayak Agarwal · Part of Math & Science (42 tools)