Skip to content
K Knidox Search…
Math · Combinatorics

Combinations & Permutations Calculator

nCr and nPr — counting selections with and without order.

Combinations ₙCᵣ
120order doesn’t matter

Permutations ₙPᵣ = 720 (order matters)

Use a combination when order doesn’t matter and a permutation when it does. To choose 3 from 10, ₁₀C₃ = 10! ÷ (3! · 7!) = 120; if order matters, ₁₀P₃ = 10! ÷ 7! = 720 — exactly 3! = 6 times larger.

Does order matter?

That single question decides which formula to use. A combination (ₙCᵣ) counts selections where order is irrelevant — choosing 3 toppings from 10. A permutation (ₙPᵣ) counts arrangements where order matters — the top 3 finishers in a race. Both are built from factorials.

ₙCᵣ = n! ÷ (r! · (n−r)!) ₙPᵣ = n! ÷ (n−r)!

combinations ignore order; permutations count it, so ₙPᵣ = ₙCᵣ × r!

Worked example

Choose 3 from 10, with order ignored — ₙCᵣ where n = 10, r = 3:

  1. 1
    Write the formula. ₁₀C₃ = 10! ÷ (3! · 7!). Cancel the 7! to get (10 × 9 × 8) ÷ 3!.
  2. 2
    Compute top and bottom. Top: 10 × 9 × 8 = 720. Bottom: 3! = 6.
  3. 3
    Divide. 720 ÷ 6 = 120. If order mattered, ₁₀P₃ = 720 — exactly 3! = 6 times larger.

Small combinations (ₙCᵣ)

Pascal’s triangle: each value is the number of ways to choose r items from n. Rows are symmetric.

n \ r012345
2121
31331
414641
515101051

The link, and common cases

Permutations = combinations × r!. Every combination can be ordered in r! ways, so ₙPᵣ = ₙCᵣ × r!. Permutations are always at least as many as combinations.

ₙCᵣ = 1 at the edges. Choosing all n items, or choosing none, can be done exactly one way — which is why ₙC₀ = ₙCₙ = 1.

Symmetry. ₙCᵣ = ₙC₍ₙ₋ᵣ₎: choosing which 3 to take is the same as choosing which 7 to leave, so ₁₀C₃ = ₁₀C₇ = 120.

Lottery — combination or permutation?
Combination. The order the numbers are drawn does not change a winning ticket.
What does ₙCᵣ = 1 mean?
There is exactly one way — for example choosing all n items, or choosing none.
Can r be larger than n?
Not without repetition. Choosing more items than exist gives zero arrangements here.
How are nCr and nPr related?
ₙPᵣ = ₙCᵣ × r!. A permutation also orders the chosen items, so it is r! times larger than the matching combination.
Why is ₁₀C₃ the same as ₁₀C₇?
Choosing 3 to include is the same as choosing 7 to exclude, so ₙCᵣ = ₙC₍ₙ₋ᵣ₎ — both equal 120 here.
How do I choose between ₙCᵣ and ₙPᵣ?
Ask whether order matters. If it does not — like picking a committee — use a combination ₙCᵣ; if it does — like ranking finishers — use a permutation ₙPᵣ.