Permutation & Combination Calculator
Calculate permutations and combinations.
Permutations
720
Combinations
120
Permutation & Combination Calculator (nCr & nPr)
Solve complex probability problems instantly. Calculate exactly how many ways you can select or arrange items from a larger group (nCr and nPr) without manual factorial math.
If you are trying to calculate the odds of winning the lottery, figure out how many different starting lineups a coach can make from a basketball roster, or determine how many unique passwords can be generated from a set of characters, you are dealing with Combinatorics. Solving these problems manually requires massive, sprawling factorial multiplication that quickly breaks standard calculators. The Permutation & Combination Calculator instantly solves these complex probability equations (nPr and nCr), making it an essential tool for data scientists, statisticians, and students.
Permutation vs. Combination
The single most important rule in combinatorics is: Does the order matter?
If you have a lock with a 3-digit code, the order matters. The code 1-2-3 is entirely different from the code 3-2-1. This is a Permutation. Permutations always result in massive numbers because every slight reordering creates a new unique outcome.
If you are picking 3 people to be on a committee, the order does not matter. A committee of Alice, Bob, and Charlie is the exact same committee as Charlie, Alice, and Bob. This is a Combination. Combinations filter out the duplicates, resulting in much smaller numbers.
Understanding Factorial Math (!)
Both formulas rely on "Factorials," denoted by an exclamation point. `5!` means `5 × 4 × 3 × 2 × 1` (which equals 120).
The formula for a Combination (nCr) is: `n! / (r! × (n - r)!)`. The formula for a Permutation (nPr) is: `n! / (n - r)!`. While the formulas are elegant, attempting to calculate `52!` (the number of ways to arrange a deck of cards) results in a number so unimaginably huge (an 8 followed by 67 zeros) that a physical calculator will simply display an error. Our algorithmic tool is designed to handle these massive computations instantly.
How to Use the Calculator
You only need to input two numbers. First, input n (The total size of the pool you are choosing from). Second, input r (The number of items you are actively selecting).
For example, if you are picking 5 cards from a standard 52-card deck, `n = 52` and `r = 5`. The tool will calculate both the Permutation and the Combination simultaneously. If you are using this data to calculate standard deviations or variances within a dataset, proceed to our Standard Deviation Calculator.
With or Without Replacement
The standard formulas assume without replacement—meaning once you pick an item, it is removed from the pool (like dealing cards).
However, if you are calculating passwords, you can use the same letter multiple times. This is called a Permutation with replacement, and the math is much simpler: `n^r` (n to the power of r). If you have 10 possible numbers, and a 4-digit PIN code, there are `10^4` (10,000) possible combinations. Our calculator clearly separates these different probability types.
Expert Insights & FAQs
Quick answers to common questions about this utility.
Why is a combination lock actually a 'permutation lock'?
It is a mathematical joke. Because the specific order of the numbers is strictly required to open the lock (1-2-3 works, 3-2-1 fails), it is technically a permutation. If it were a true 'combination' lock, you could input the numbers in any order and it would open.
What does '0!' (Zero Factorial) equal?
Mathematically, 0! equals exactly 1. This is a fundamental rule required to make the permutation/combination formulas work when you select all available items (e.g., when n and r are the same number).
How do I calculate lottery odds?
Lotteries use Combinations (because the order the balls are drawn doesn't matter). If the game requires you to pick 6 numbers out of a pool of 49, you calculate '49 Choose 6' (nCr). The calculator will show there are 13,983,816 possible combinations, meaning your odds of winning are exactly 1 in 13.9 million.