Combinations and Permutations Calculator (nCr, nPr)
Calculate nCr, nPr, repeated-selection counts and n! exactly, even for large numbers.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Step 1: Open Combinations and Permutations Calculator (nCr, nPr) and add your input
Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.
- 2Step 2: What Combinations and Permutations Calculator (nCr, nPr) does
Calculate nCr, nPr, repeated-selection counts and n! exactly, even for large numbers.
- 3Step 3: Read the result and compare
The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.
- 4Step 4: Copy or save it
Copy the result or download it. For an important decision, confirm it with the official source or an adviser.
About this tool
Enter n and r. The calculator gives the number of combinations C(n, r), the number of permutations P(n, r), the counts when repeats are allowed and n!, all as exact integers.
Formulas
C(n, r) = n! ÷ (r!(n − r)!), the number of ways to choose r items when order does not matter. P(n, r) = n! ÷ (n − r)!, when order matters. With repetition allowed, combinations are C(n + r − 1, r) and ordered selections are nʳ.
Exact results
The numbers are computed with big integers, so there is no rounding. n! is shown in full for n up to 400.
Worked example
52 choose 5 is 2,598,960 poker hands. The ordered count P(52, 5) is 311,875,200.
Tips for best results
Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.
Quick facts
- Category: Math & Science
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in many languages.
- Content last reviewed:
Frequently asked questions
What is the difference between nCr and nPr?
nCr ignores order, nPr counts different orders separately.
What if r is larger than n?
Without repetition the answer is 0.
How big can n be?
Up to 5000 (n! is shown for n up to 400).
Are results rounded?
No, they are exact integers.
