Math Tools
Permutation and Combination Calculator
Calculate nPr and nCr values for counting arrangements and selections.
Permutation and Combination Calculator
Calculate nPr and nCr values for counting arrangements and selections.
Permutation counts arrangements where order matters: nPr = n! / (n - r)!
Expression
5P2
Result
20
Recommended Study Tool
Working through probability and counting problems?
A scientific calculator or probability study guide can help with permutations, combinations, factorials, and exam-style counting questions.
This section may contain affiliate links.

Permutation vs combination
Use permutations when order matters, such as ranking winners, arranging seats, or assigning positions. Use combinations when order does not matter, such as choosing a team, selecting a committee, or picking lottery numbers.
What is a permutation and combination calculator?
A permutation and combination calculator is a counting tool that helps you solve nPr and nCr problems quickly. It is useful when you want to know how many possible arrangements or selections can be made from a larger set of items.
In probability, statistics, combinatorics, exams, and everyday counting problems, these formulas appear often. Instead of working through factorial expressions by hand, you can enter n and r to get the result instantly.
Permutation and combination formulas
Permutation formula
nPr = n! / (n - r)!
Use this formula when order matters.
Combination formula
nCr = n! / (r! × (n - r)!)
Use this formula when order does not matter.
Worked examples for permutation calculations
These examples show how the selected counting method works.
| Expression | Meaning | Result |
|---|---|---|
| 5P2 | Arrange 2 items from 5 where order matters | 20 |
| 6P3 | Arrange 3 items from 6 where order matters | 120 |
| 10P2 | Arrange 2 items from 10 where order matters | 90 |
Permutation vs combination table
This comparison table shows how the results change when order matters versus when it does not.
| n | r | nPr | nCr |
|---|---|---|---|
| 5 | 2 | 20 | 10 |
| 6 | 3 | 120 | 20 |
| 7 | 2 | 42 | 21 |
| 10 | 3 | 720 | 120 |
Which should you use: permutation or combination?
The simplest way to choose between permutation and combination is to ask whether changing the order creates a new outcome. If order changes the result, use permutation. If the same selected group counts once no matter how it is arranged, use combination.
| Situation | Does order matter? | Use |
|---|---|---|
| Ranking winners | Yes | Permutation |
| Choosing a committee | No | Combination |
| Arranging seats | Yes | Permutation |
| Selecting lottery numbers | Usually no | Combination |
| Creating ordered passwords | Yes | Permutation |
How to calculate permutation and combination step by step
First, identify the total number of available items, which is n. Then identify how many items are being selected, which is r. The key question is whether order matters in the final result.
If order matters, use the permutation formula nPr. If order does not matter, use the combination formula nCr. This calculator applies the correct formula automatically after you choose the calculation type.
When to use permutations
Permutations are used when the arrangement itself matters. For example, if you are awarding first, second, and third place, the order of winners changes the outcome, so permutation is the correct method.
Other examples include arranging books on a shelf, setting passwords from selected characters, assigning seats, ranking contestants, or assigning different roles from the same group of people.
When to use combinations
Combinations are used when you only care which items are chosen, not the order in which they appear. For example, choosing 3 students for a committee uses combinations because the same group counts only once.
Other examples include selecting lottery numbers, choosing pizza toppings, forming a team, picking exam questions from a list, or choosing a subset from a larger group.
Permutation and combination calculator FAQ and common questions
What is the difference between permutation and combination?
A permutation counts arrangements where order matters, while a combination counts selections where order does not matter.
What is the formula for nPr?
The permutation formula is nPr = n! / (n - r)!. It is used when order matters.
What is the formula for nCr?
The combination formula is nCr = n! / (r! × (n - r)!). It is used when order does not matter.
When should I use permutation instead of combination?
Use permutation when changing the order creates a different outcome, such as ranks, positions, arrangements, or seatings.
Can r be greater than n?
No. You cannot choose more items than are available, so in standard nPr and nCr problems, r cannot be greater than n.
Related math calculators
Explore related tools for arithmetic, algebra, geometry, statistics, and sequences.
Average Calculator
Find the average or mean of a list of numbers.
Statistics Calculator
Calculate key descriptive statistics from a dataset.
Mean, Median, Mode, Range Calculator
Find mean, median, mode, and range for a list of numbers.
Standard Deviation Calculator
Calculate standard deviation and measure spread in data.
Probability Calculator
Calculate simple probabilities and outcomes.