A combination and permutation calculator counts how many ways you can choose r items from n. Combinations ignore order, permutations count it. Choosing 2 from 5 gives 10 combinations but 20 permutations, since each pair can be arranged two ways.
Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.
Saved results (0)
How to Use the Combination and Permutation Calculator
- Enter the total items, n.
- Enter how many you choose, r, which cannot exceed n.
- Read the number of combinations, where order does not matter.
- See the number of permutations, where order does.
Here is what each result means:
| Result | What it means |
|---|---|
| Combinations (nCr) | Ways to choose r from n, ignoring order. |
| Permutations (nPr) | Ways to choose and arrange r from n. |
| Order matters? | Yes for permutations, no for combinations. |
What Is a Combination or Permutation?
Combinations and permutations both count ways to choose r items from a group of n, but they differ on order. A combination ignores order, so picking apple then banana is the same as banana then apple. A permutation counts order, so those two orders are different. That single difference is why permutations are always at least as many as combinations.
Choosing 2 from 5 gives 10 combinations but 20 permutations, because each pair can be arranged in 2 orders. These counts are the backbone of probability, from lottery odds to card hands, and they build directly on the factorial.
The word combination in everyday speech, as in a combination lock, actually describes a permutation, since the order of the digits matters. In mathematics the two words are kept strictly apart: order matters for a permutation and never for a combination. Keeping that distinction clear is the key to choosing the right count.
How Does the Calculator Work?
It uses the standard formulas, both built from factorials.
- Compute the permutations as n! divided by (n minus r)!.
- Divide by r! to get the combinations, removing the orderings.
- Report both exactly with big-integer arithmetic.
Both formulas rest on the factorial; the factorial calculator computes the pieces they use. Because the counts can grow into very long numbers, the tool works with big integers so that even a large lottery or card problem stays exact rather than rounding.
Combination and Permutation Example
Choose 2 from 5.
Calculation: permutations are 5! / 3! = 120 / 6 = 20. Combinations divide by 2! to remove orderings: 20 / 2 = 10. So there are 10 ways to pick a pair and 20 ways to pick and arrange it. The same idea scales up: a 6-from-49 lottery has nearly 14 million combinations, which is why the odds of any single ticket are so long.
Combinations vs Permutations
The choice between them comes down to whether order matters.
| Question | Use |
|---|---|
| How many teams of 3? | Combinations, order ignored |
| How many podium finishes? | Permutations, order counts |
| Lottery numbers? | Combinations, order ignored |
| A 4-digit code? | Permutations, order counts |
Ask whether reordering the same items counts as a new outcome. If yes, use permutations; if no, use combinations.
Why Permutations Are Larger
Every combination hides several permutations, one for each ordering.
| Choose r | Orderings per combination |
|---|---|
| 2 | 2! = 2 |
| 3 | 3! = 6 |
| 4 | 4! = 24 |
| 5 | 5! = 120 |
Permutations equal combinations times r!, so as r grows the gap between them widens quickly.
What Affects the Counts
The Size of N
More items to choose from raises both counts, often steeply.
How Many You Choose
The counts are largest when r is near half of n for combinations, and rise with r for permutations.
Whether Order Matters
Counting order multiplies the total by r!, so permutations far exceed combinations for larger r.
When to Use a Combination and Permutation Calculator
Probability
Count favorable and total outcomes for lottery, card or dice problems.
Planning and Design
Work out how many teams, committees or arrangements are possible.
Passwords and Codes
Count the possible orderings of digits or characters.
Common Mistakes
1. Using the Wrong One
If reordering makes a new outcome, use permutations; if not, combinations.
2. Choosing More than the Total
You cannot pick more items than you have, so r cannot exceed n.
3. Forgetting to Divide by R!
Combinations remove orderings by dividing the permutations by r!.
4. Allowing Repeats by Accident
These formulas assume no repeats. Choosing with replacement uses different formulas.
5. Rounding Large Counts
Big counts must stay exact. This tool uses big integers, so no precision is lost.
Accuracy and Limitations
The counts are exact for whole numbers in range; only very long results are shortened for display.
What it calculates accurately
- Exact combinations and permutations
- The role of order
- Large counts with big integers
What it does not do
- Choosing with repetition
- Circular or restricted arrangements
- Probabilities directly
- Values above the input cap
How We Count Your Choices
Frequently Asked Questions
What is the difference between a combination and a permutation?
A combination ignores order, so the same items in any order count once. A permutation counts order, so each arrangement is separate. Permutations are always at least as many as combinations.
How do you calculate combinations?
Use n! divided by r! times (n minus r)!. It counts ways to choose r items from n when order does not matter. Choosing 2 from 5 gives 10 combinations.
How do you calculate permutations?
Use n! divided by (n minus r)!. It counts ways to choose and arrange r items from n. Choosing 2 from 5 gives 20 permutations.
When should I use combinations?
Use combinations when order does not matter, such as picking a team, a committee, or lottery numbers. Rearranging the same choice does not count as a new outcome.
When should I use permutations?
Use permutations when order matters, such as ranking finishers, arranging letters, or setting a code. Each different order is a separate outcome.
Why are permutations larger than combinations?
Because each combination can be arranged in r! orders. Permutations equal combinations times r!, so the gap grows as r increases.
Can r be larger than n?
No. You cannot choose more items than are available, so r must be at most n. Choosing all n gives one combination.
Do these allow repeated items?
No. These formulas assume each item is chosen at most once. Choosing with repetition, where an item can repeat, uses different formulas.
Is my information saved?
No. The calculation runs in your browser and nothing you enter is stored or sent anywhere, unless you choose Save, which keeps the result only on this device.
Sources
- Combination (Wikipedia).
- Combinations and permutations (Maths Is Fun).
- Permutation (Wikipedia).
Related Guides
Related Calculators
Looking for more math tools?
Explore all math calculatorsThis calculator finds combinations and permutations exactly using big-integer arithmetic, so even large counts are exact. Combinations ignore order; permutations count order. The number chosen cannot exceed the total. Spotted an error? Let us know.
Author
Shakeel Muzaffar is the Founder and Editor-in-Chief of MultiCalculators.com, bringing over 15 years of experience in digital publishing, product strategy, and online tool development. He leads the platform's editorial vision, ensuring every calculator meets strict standards for accuracy, usability, and real-world value. Shakeel personally oversees content quality, formula verification workflows, and the platform's commitment to publishing tools that are genuinely useful for students, professionals, and everyday users worldwide.




