Permutation and Combination Calculator
MathCalculate permutations (nPr) and combinations (nCr) instantly. Enter n and r to find arrangements and selections with full formula breakdown.
Reviewed by the thecalcu.com team ยท Last updated June 19, 2026
Permutations (nPr) โ order matters
Combinations (nCr) โ order doesn't matter
Factorials Used
What is a nPr nCr?
The Permutation and Combination Calculator computes nPr (permutations) and nCr (combinations) for any total number of items n and selection size r, instantly returning both the number of ordered arrangements and the number of unordered selections. Permutations count arrangements where order matters, like ranking the top 3 finishers out of 10 racers, while combinations count selections where order doesn't matter, like choosing 3 people for a committee out of 10 candidates. This distinction trips up more students and professionals than almost any other concept in combinatorics, and getting it backwards silently produces the wrong answer in probability, statistics, and computer science problems. Enter n and r once and this tool gives you both figures side by side so you can see exactly how much larger nPr is than nCr for the same inputs.
Why Use a Permutation and Combination Calculator?
Manually computing factorials for anything beyond single digits gets error-prone fast, 10! alone is 3,628,800, and the arithmetic for nPr or nCr involves dividing large factorials against each other, which is easy to fumble by hand or even in a basic calculator app. This tool is built for two recurring situations: verifying homework or exam answers in a statistics or discrete math course, and quickly working out real-world counting problems like "how many ways can I arrange 5 books on a shelf" or "how many 4-person teams can I form from 12 people." Both come up often enough, in classrooms, coding interview prep, and probability puzzles, that having instant, correct answers saves real time and catches silly arithmetic slips before they compound into a wrong final answer.
How to use this nPr nCr calculator
- Set "Total Items (n)" to the size of your full set, for example, 10 people or 10 objects.
- Set "Items Chosen (r)" to how many you're selecting or arranging from that set.
- Read the "Permutations nPr" result if the order of selection matters (rankings, arrangements, sequences).
- Read the "Combinations nCr" result if only the selection matters, not the order (committees, groups, unordered picks).
- Adjust n or r using the sliders to explore how quickly both values grow, try increasing r toward n to see the gap between nPr and nCr shrink.
Formula & Methodology
Permutations: P(n, r) = n! / (n โ r)! Combinations: C(n, r) = n! / [r! ร (n โ r)!] Where: - n = total number of items in the set - r = number of items being chosen or arranged - n! = n factorial, the product of all positive integers up to n (with 0! = 1) Worked example: For n = 10, r = 3: P(10, 3) = 10! / 7! = 10 ร 9 ร 8 = 720 permutations C(10, 3) = 10! / (3! ร 7!) = (10 ร 9 ร 8) / (3 ร 2 ร 1) = 720 / 6 = 120 combinations Notice that C(10,3) = P(10,3) / 3!, confirming the general relationship nCr = nPr / r!.
Common Mistakes to Avoid
- Applying nPr when the problem doesn't care about order. If the question asks "how many ways to pick a committee," that's nCr, using nPr will overcount by a factor of r!.
- Forgetting that 0! = 1. This trips up manual calculations at r = 0 or r = n, where people sometimes assume the factorial term vanishes to 0 instead of 1.
- Confusing "combination lock" language with mathematical combinations. A lock code where order matters is a permutation problem despite the name.
- Entering r greater than n. You can't choose or arrange more items than exist in the set, the result is undefined, not a large number.
- Mixing up which value is n and which is r. n is always the total pool size; r is always the smaller selection size, and swapping them gives a nonsensical or undefined result.
Quick Reference
| n | r | nPr | nCr |
|---|---|---|---|
| 5 | 2 | 20 | 10 |
| 6 | 3 | 120 | 20 |
| 10 | 3 | 720 | 120 |
| 10 | 5 | 30,240 | 252 |
If you're working through a broader probability problem, follow up with the Probability Calculator or the Statistics Calculator for related distribution and summary-stat work. For number-theory adjacent problems, the GCF and LCM Calculator is a common next stop.
Frequently Asked Questions