Free Online Permutation and Combination Calculator, nPr and nCr
Work out permutations and combinations exactly, with or without repetition. All four counts are shown side by side, because the hard part is not the arithmetic but knowing whether order matters and whether repeats are allowed. Answers stay exact at sizes where an ordinary calculator silently rounds.
The sum runs in your browser. Nothing you type is sent anywhere.
🎲 Which one do you need?
Two questions decide it. Answer them and the matching count is highlighted on the right.
All four counts for your n and r. The one matching your two answers is marked.
| Order matters? | Repeats? | Formula | Count | The sort of question |
|---|
| When | Calculation | Actions |
|---|
Number formatting
Rounding only changes what you see. The sum itself always runs at full precision, so a rounded number never feeds into the next step.
Display
Full screen hides the page around the tool. Press Escape, or the button in the bar, to come back.
History
Your data
Settings, history and saved setups live in this browser and nowhere else. There is no account and no server, which also means clearing them here is final.
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
How to Work Out a Permutation or a Combination
Three steps, and the first one is the whole problem.
What to Know Before You Pick a Formula
The two questions that decide which of the four you need.
Key Features & Capabilities
What it does, and what it deliberately does not.
About Permutations and Combinations
Counting problems have a reputation for being hard, and the reputation is earned in a specific place. The arithmetic is not hard. What is hard is deciding which of four formulas applies, and every calculator that offers an nPr button next to an nCr button has quietly left you to do that part alone.
There are only two questions, and both are yes or no. Does the order matter? Can the same thing be chosen more than once? Those two answers pick one of four counts, and the four are not close to each other. With forty nine things and six picks they range from about fourteen million to about fourteen billion. So this page asks the two questions in plain words, shows all four answers side by side, and marks the one your answers point to, with an example of the sort of problem each is for.
The three that catch people out are worth naming. Order with repetition is the easy one, n to the power of r, which is a PIN code. Order without repetition is nPr, which is the first three finishers in a race. No order and no repetition is nCr, the lottery ticket. The fourth, no order but repetition allowed, is the one almost nobody remembers: three scoops of ice cream from ten flavours where you may repeat a flavour and the order in the bowl does not count. Its formula is a combination in disguise, n plus r minus one choose r, and it is 220 rather than the 120 or 1000 you might guess.
On the arithmetic there is one decision worth explaining. The textbook formula for a combination is a factorial divided by two factorials, and following it literally is a bad idea: a thousand choose five hundred would build a two and a half thousand digit number, then another, then divide, and an ordinary calculator would have overflowed several steps earlier. Multiplying and dividing in alternation keeps every intermediate value no larger than the answer itself, which is 300 digits, so the result comes out exactly and quickly.
Frequently Asked Questions
Order, repetition, lottery odds and the awkward cases.
Every Other Math Tool
35 more tools in this set. All free, all in your browser.