Back to Blog
    Math

    Permutation vs Combination: nPr & nCr Formulas With Examples

    Y
    Ytools Team
    October 2, 2026 4 min read
    Share →
    Does order matter? Permutations vs combinations with the nPr and nCr formulas

    Permutations and combinations both count the ways to choose rr items from nn. The difference comes down to a single question — does the order of the chosen items matter? Answer that, and you know which formula to use.

    The one-question test: does order matter?

    • Yes, order matters → it's a permutation (an arrangement). Gold–silver–bronze is different from bronze–silver–gold.
    • No, order doesn't matter → it's a combination (a selection). A team of Asha, Ben and Chen is the same team in any order.

    Permutations (nPr)

    Formula

    nPr=n!(n−r)!{}^{n}P_{r} = \frac{n!}{(n-r)!}

    where n!=n×(n−1)×⋯×2×1n! = n \times (n-1) \times \dots \times 2 \times 1, and 0!=10! = 1.

    Example: gold, silver and bronze from 10 runners

    There are 10 choices for gold, then 9 for silver, then 8 for bronze: 10×9×8=72010 \times 9 \times 8 = 720. The formula agrees:

    10P3=10!7!=10×9×8=720{}^{10}P_{3} = \frac{10!}{7!} = 10 \times 9 \times 8 = 720

    Combinations (nCr)

    Formula

    nCr=(nr)=n!r! (n−r)!{}^{n}C_{r} = \binom{n}{r} = \frac{n!}{r!\,(n-r)!}

    nCr is read "n choose r" and is also called the binomial coefficient.

    Example: a 3-person committee from 10 people

    10C3=10!3! 7!=10×9×83×2×1=7206=120{}^{10}C_{3} = \frac{10!}{3!\,7!} = \frac{10 \times 9 \times 8}{3 \times 2 \times 1} = \frac{720}{6} = 120

    The committee {Asha, Ben, Chen} is one combination, even though it could be listed in 3!=63! = 6 orders.

    Seeing the difference: choosing 2 from {A, B, C}

    Choosing 2 letters from A, B, C: six permutations versus three combinations
    Choosing 2 letters from A, B, C: six permutations versus three combinations

    Listing everything makes the difference obvious. The permutations are AB, BA, AC, CA, BC, CB — six, because AB and BA count separately. The combinations are {A,B}, {A,C}, {B,C} — three, because order is ignored. Formulas: 3P2=3!1!=6{}^{3}P_{2} = \frac{3!}{1!} = 6 and 3C2=3!2! 1!=3{}^{3}C_{2} = \frac{3!}{2!\,1!} = 3.

    How nPr and nCr are connected

    Each combination of rr items can be arranged in r!r! orders, so

    nPr=r!×nCr{}^{n}P_{r} = r! \times {}^{n}C_{r}

    Check with the running example: 720=3!×120=6×120720 = 3! \times 120 = 6 \times 120 ✓. This means nPr is always at least as large as nCr.

    Another useful property: nCr=nCn−r{}^{n}C_{r} = {}^{n}C_{n-r}. Choosing 3 people for a committee from 10 is the same as choosing the 7 who are left out: 10C7=120{}^{10}C_{7} = 120.

    Quick decision guide

    Decision flowchart: if order matters use a permutation, otherwise use a combination
    Decision flowchart: if order matters use a permutation, otherwise use a combination
    SituationOrder matters?Use
    Ranking the top 3 in a raceYesnPr
    Electing a president and a vice-presidentYes (different roles)nPr
    Seating 4 people in 4 chairsYesnPr (4!=244! = 24)
    Picking a 5-a-side teamNonCr
    Dealing a 5-card poker hand from 52 cardsNonCr: 52C5=2,598,960{}^{52}C_{5} = 2{,}598{,}960
    Choosing 2 pizza toppings from 5NonCr: 5C2=10{}^{5}C_{2} = 10

    Tip: if the chosen items get different roles or positions, order matters.

    What if repetition is allowed?

    nPr and nCr assume each item can be chosen only once. If items can repeat, the counting changes. A 4-digit PIN using digits 0–9 with repetition allowed has 104=10,00010^4 = 10{,}000 possibilities — not 10P4=5,040{}^{10}P_{4} = 5{,}040, which would forbid repeated digits. (Despite its name, a "combination lock" code is really an ordered arrangement.)

    Common mistakes

    • Using nCr when positions or roles make order important.
    • Forgetting the r!r! in the denominator of nCr.
    • Using nPr or nCr when repetition is allowed.
    • Calculating huge factorials in full — cancel first: 10!7!=10×9×8\frac{10!}{7!} = 10 \times 9 \times 8.

    Use the nPr and nCr calculators

    Try your own values with the permutations (nPr) calculator and the combinations (nCr) calculator. For more practice on the combinations formula alone, see nCr formula with worked examples. nCr also appears in probability — the binomial probability calculator uses it — and the factorial calculator handles n!n! directly.

    FAQ

    What is the difference between a permutation and a combination? In a permutation the order of the chosen items matters; in a combination it doesn't.

    What is the nCr formula? nCr=n!r!(n−r)!{}^{n}C_{r} = \frac{n!}{r!(n-r)!}.

    What is the nPr formula? nPr=n!(n−r)!{}^{n}P_{r} = \frac{n!}{(n-r)!}.

    Is nPr always bigger than nCr? nPr is always greater than or equal to nCr, because nPr=r!×nCr{}^{n}P_{r} = r! \times {}^{n}C_{r} and r!≥1r! \ge 1. They are equal only when r=0r = 0 or r=1r = 1.

    What does 0! equal? 0!=10! = 1, which makes formulas like nCn=1{}^{n}C_{n} = 1 work.

    How many ways can I choose 3 from 10? 120 if order doesn't matter (10C3{}^{10}C_{3}); 720 if it does (10P3{}^{10}P_{3}).

    Further reading: Wolfram MathWorld — Permutation, Combination, Binomial Coefficient.