Try it with your numbers
Show every step
Nearly every lost point on these problems comes from picking the wrong one, not from arithmetic. This page gives you a test that settles the choice, shows where the formulas come from, and covers the cases where the basic formulas stop working.
What is the difference between a permutation and a combination?
Take the letters A, B, C and D and pick three. If the three letters form a password, ABC and CBA are different passwords, so there are of them. If you only care which three letters were picked, then ABC, ACB, BAC, BCA, CAB and CBA are the same group. That leaves just four groups: ABC, ABD, ACD and BCD. Each group accounts for passwords, and .
The cleanest test is the swap test. Take any outcome, swap two of the chosen items, and ask whether you have produced a different outcome. A president and a treasurer from a club: swapping gives a different outcome, so this is a permutation. Two members to carry a banner: swapping changes nothing, so this is a combination.
The word “combination” in everyday speech misleads people. A combination lock does not care which digits you picked as a set. It cares about the order you enter them, so the math behind it is a permutation.
Quick check
Answer: 15 and 30
Why does the combination formula divide by r factorial?

Build the permutation first. To fill ordered slots from items, you have choices for the first slot, for the second, and so on down to for the last. By the fundamental counting principle, you multiply:
The factorial form appears when you multiply and divide by , which completes the product on top. Now notice what this list contains. Every group of items appears once for each way of ordering it, and there are orderings. So the list has each group exactly times, and dividing removes the repeats:
For 10 people and 3 prizes, ordered podiums, and groups of winners.
The product of any consecutive integers is divisible by . That is why is always a whole number. If your answer is a fraction, an arithmetic slip happened.
The “divide by ” argument has a hidden requirement: the chosen items must all be distinguishable. If some are identical, each group no longer appears exactly times, and the correction changes. That case is handled further down.
How do you decide between a permutation and a combination?
Ask whether the slots are different. If the positions have different meanings, the problem is a permutation. If the positions are interchangeable, it is a combination. Keywords help only as a first guess:
- Different slots, such as 1st, 2nd and 3rd place, officers, seats in a row, or digits of a code: permutation.
- Identical slots, such as a committee, a poker hand, pizza toppings, or a survey sample: combination.
- Words like “choose” or “select” appear in both kinds, so never decide from them alone.
The trap that costs the most points is a problem that mentions a group but then assigns roles inside it. “A team of 5 with a captain” is not a pure combination, because the captain slot is different from the other four. Read the whole sentence and mark every place where swapping two people would change the outcome.
Try this: List every way to pick 2 of 3 friends (A, B, C) for a duet. Then list every way to assign a lead singer and a backup singer from the same three. You should get 3 lists and 6 lists, and the ratio is .
How to calculate nPr and nCr fast, and check the result
Do not compute huge factorials. Write as descending factors starting at , and write as the same product over , then cancel before multiplying:
Here and , which leaves a short product. This is the number of possible poker hands.
Choosing items to take is the same as choosing to leave, so . Compute as .
Three quick checks catch most errors:
- The ratio must equal exactly .
- The result must be a whole number, and must match .
- Pascal’s rule must hold: . Pick one special person: either they are in the group or they are not.
Many handheld calculators fail at because the number is too large. For very large , work with logarithms instead. Since , the logarithm rules let you compare sizes or estimate digits without ever writing the full number.
Problems that need both: choose first, then arrange

Many exam problems chain a selection and an arrangement. Handle each stage with the right tool and multiply. Example: from 9 students, form a committee of 4, then name a chair and a secretary from within the committee.
Step 1: choose the committee, which is unordered: .
Step 2: assign the two offices inside it, which is ordered: .
Step 3: multiply, giving .
Always verify by reordering the stages. Name the chair and secretary first from all 9: . Then add the 2 remaining members from the other 7: . The total is , which matches. If two orderings of the stages disagree, one of them double counts or misses something.
For “at least one” conditions, count the complement. The number of groups with at least one woman equals all groups minus groups with no women. It is usually one subtraction instead of several cases.
Quick check
Answer:
Permutations and combinations with repeated items
The basic formulas assume every item is different and nothing is reused. Break either assumption and the count changes. First, repeated items inside an arrangement: the letters of MISSISSIPPI are 11 in total, with M once, I four times, S four times and P twice. Divide the orderings by the swaps of identical letters:
A combination view confirms this. Choose the 4 positions for the I’s, then 4 of the remaining 7 for the S’s, then 2 of the remaining 3 for the P’s, and the M takes the last spot: . Arrangements with repeats are really products of combinations.
Second, repeated choices. A 4-digit passcode where digits may repeat has possibilities, since each slot has all 10 digits available. Choosing 3 donuts from 5 flavors, where you may pick the same flavor twice and order does not matter, gives . This is the stars and bars count.
| No repeats | Repeats allowed | |
|---|---|---|
| Order matters | ||
| Order does not matter |
Seating people around a round table is a related special case. Rotations count as the same seating, so the answer is instead of .
Can n or r be negative or a fraction?
For counting, no. Factorials are defined for whole numbers 0 and up, and you cannot choose a negative number of objects. If , the answer is 0, since you cannot pick 5 items from a set of 3. The edge cases at the bottom are worth memorizing: and , because there is exactly one way to take nothing and one way to take everything.
The value is forced by counting. must equal 1, since there is one way to pick everything, so .
Algebra does stretch the idea. Using the descending-product form from earlier, define for any real number and whole number . Then , and . These values are not counts of anything. They are the coefficients in the binomial series for when the power is a fraction or negative.
How do permutations and combinations work in probability?
Basic probability with equally likely outcomes is favorable over total, and counting supplies both numbers. The rule that protects you: count the numerator and denominator the same way, both ordered or both unordered. Mixing them is the classic error.
Example: the chance of four of a kind in a 5-card hand. Total hands: . For four of a kind, choose the rank in 13 ways, take all four cards of it, then pick the fifth card from the other 48: hands. Then
You get the same answer ordered. In a 6-of-49 lottery, the draw order of the balls is irrelevant to winning, so the number of tickets is and a single ticket has a one in that many chance. Using would overstate the number of outcomes by times and make the odds look far worse than they are.
Quick check
Answer:
Where else do permutations and combinations show up?
Handshakes at a party of people number . That equals , the arithmetic series formula in disguise: the first person shakes hands, the next adds new ones, and so on. Running the problem backward leads to a quadratic. If there were 45 handshakes, then , so and
The positive solution is . If you want more practice with equations like this, try the quadratic formula practice problems.
Permutations also sit inside determinants. A 2×2 determinant has terms, one for each way to match rows with columns:
The term with the swapped columns gets a minus sign. A 3×3 determinant has terms, and each carries a plus or minus sign depending on whether its column order is an even or odd number of swaps away from the original. That is why the 3×3 expansion has exactly six products.
Practice problems
0 of 5 solved
- Evaluate and .
Answer: 210 and 35
Multiply three descending factors: . Divide by to remove the orderings: . - How many 4-digit codes can be made from the digits 0 to 9 if no digit may repeat?
Answer:
Order matters (1234 and 4321 are different codes) and digits cannot repeat, so use a permutation. . - How many distinct arrangements of the letters in BANANA are there?
Answer:
There are 6 letters: B once, A three times, N twice. Divide out the swaps of identical letters: . - A committee of 3 is chosen from 5 men and 4 women. How many committees contain at least one woman?
Answer:
Count all committees, then remove the ones with no women. All: . No women: . Answer: . - How many 5-card hands from a 52-card deck contain exactly 3 hearts and 2 spades?
Answer:
Choose the hearts and the spades separately, then multiply. Hearts: . Spades: . Total: .
Common questions
What is the main difference between a permutation and a combination?
A permutation counts arrangements where order matters, and a combination counts selections where order does not. For the same and , the permutation count is exactly times the combination count.
Is a permutation always bigger than a combination?
For the same and , it is at least as large. The two are equal only when is 0 or 1, because is 1 in those cases. For every larger the permutation count is bigger.
Is a combination lock a combination or a permutation?
It is a permutation. Entering 1-2-3 opens a different result from 3-2-1, so order matters, and digits can usually repeat, which gives possibilities.
How do you know when to use nCr or nPr on a calculator?
Run the swap test: exchange two chosen items and see whether the outcome changes. If it changes, use nPr. If it does not, use nCr.
What is the difference between nCr and nPr?
The only difference is the extra in the denominator of nCr. That factor cancels the repeated counting of the same group in different orders.
Can a combination or permutation have repeated items?
Yes. Arrangements with repeated letters are counted with , and selections with repeats allowed use . Codes with repeats allowed use .