Permutations and combinations are the heart of combinatorial mathematics.
What is a permutation & combination calculator?
A permutation and combination calculator counts ways to pick r items from n distinct items. Permutations P(n,r) treat order as different, so AB and BA are separate. Combinations C(n,r) ignore order. It also shows n! and variants with repetition when your exam formula calls for them. Enter n and r to read all counts at once.
How to use the Permutation & Combination Calculator
- Enter n, the total number of distinct items available.
- Enter r, how many items you choose or arrange.
- Read P(n,r) for ordered arrangements.
- Read C(n,r) for unordered selections.
- Check n! and repetition rows if your problem allows reuse.
About this calculator
Permutations and combinations are the heart of combinatorial mathematics. Whenever you need to count 'how many ways can this happen', one of these tools will be the answer. The distinction is simple but important: permutations care about order, combinations don't. Picking 3 winners for gold, silver and bronze medals from 10 athletes is permutations -- swapping who gets gold and silver matters. Picking 3 friends to invite to a movie from 10 candidates is combinations -- the order you list them doesn't change the group.
This calculator handles both, plus the related factorial calculations, plus the 'with repetition' versions which come up often in passwords, license plates and dice rolls. The formula links combinations and permutations elegantly: C(n,r) = P(n,r) / r! -- because each combination of r items can be re-ordered in r! different ways, all counted as permutations. So combinations are always smaller (or equal when r = 0 or r = n).
Real-world applications are everywhere. Lottery odds use combinations -- the order of numbers doesn't matter. Lock combinations actually need permutations -- order matters despite the name. Card games use a mix: poker hands are combinations (order of cards in your hand doesn't matter), but the number of ways to deal a sequence of cards is permutations. In statistics, the binomial coefficient C(n,k) is the same as the combination formula and counts the number of ways an event can happen k times in n trials. To put these counts to use in probability calculations, head to the [[probability]] calculator. For algebraic equations the [[quadratic]] calculator helps, and geometry calculators ([[cone]], [[cylinder]], [[sphere]]) often involve volume and surface formulas with similar polynomial structure.
Formula for permutations and combinations
P(n,r) = n! / (n − r)!
C(n,r) = n! / (r! × (n − r)!)
With repetition: ordered n^r, unordered C(n + r − 1, r)- n is the total number of distinct objects
- r is the number of objects chosen or arranged
- n! is n factorial, the product 1 × 2 × … × n
Permutation and combination example: 10 choose 3
How many ways pick 3 students from 10 for president, vice-president, and secretary? Order matters, so use P(10,3) = 10 × 9 × 8 = 720. How many ways pick any 3 for a study group where roles do not matter? Use C(10,3) = 10! / (3! × 7!) = (10 × 9 × 8) / (3 × 2 × 1) = 120.
Enter n = 10 and r = 3. Permutations should read 720 and combinations 120. Factorial 10! is 3,628,800 on the same screen. If order did not matter but you only wanted the officer count, 720 is the answer; for the unordered trio, 120 is correct. Mixing the two formulas is the most common mistake on JEE-style counting questions.
When n equals r, P(n,n) equals n! because every item is used and order still matters across all positions.
Common uses
- Class 11/12 Mathematics permutation and combination problems
- Probability calculations for poker, lottery and card games
- Counting distinct passwords or PIN possibilities for security analysis
- Tournament seeding and team selection counts
- Inventory and combinatorial design in operations research
Frequently asked questions
When do I use permutations vs combinations?
Use permutations when order matters -- ranking, podium positions, sequence of letters, racing positions. Use combinations when order doesn
What is 0!?
By definition, 0! = 1. This makes formulas like C(n,n) = n!/(n! × 0!) = 1 work correctly -- there
Why does the calculator show 'too large to display' for big n?
Factorials grow extremely fast. 20! is already 2.4 × 10^18, and 170! is the largest factorial JavaScript can represent. Beyond n = 170 the answer overflows, so we show scientific notation or
What does 'with repetition' mean?
With repetition allowed, the same item can be picked multiple times. Choosing a 4-digit PIN allows the same digit to repeat, so it
How does this connect to Pascal's triangle?
Pascal
Related calculators
- Math Calculator
- Percentage Calculator
- Fraction Calculator
- Exponent Calculator
- Logarithm Calculator
- Nth Root Calculator
- Ratio Calculator
- Pythagorean Theorem
Maintained by J Jaya Prakash · Last updated: October 2026