Combinations vs Permutations

Order matters → permutations. Order doesn’t → combinations. Adjust for with/without replacement.

Author

Classical combinatorics (Pascal, Newton and successors)



Counting outcomes underpins probability, testing and design choices. Permutations count ordered selections; combinations count unordered selections. The right choice depends on two questions: (1) does order matter? (2) can you reuse items (replacement)? Getting this right prevents over/under-counting, bogus probabilities and wrong sample sizes.

How it works


Notation & basics

  • Factorial: n!. Falling factorial: n(r) = n!/(n−r)!.
  • Permutations (order): P(n,r) = n!/(n−r)!.
  • Combinations (unordered): C(n,r) = n!/[r!(n−r)!].
  • Link: P(n,r) = C(n,r) × r! (each unordered set can be ordered in r! ways).

The four common cases

Order matters?Replacement?Count
1YesNoP(n,r) = n!/(n−r)!
2YesYesn^r
3NoNoC(n,r) = n!/[r!(n−r)!]
4NoYesC(n+r−1, r) (combinations with repetition)

Quick intuition

  • If you’d treat “ABC” and “CBA” as different, use permutations.
  • If “ABC” and “CBA” are the same group, use combinations.
  • Replacement allowed? Think PIN codes (can reuse digits) vs lottery balls (without replacement).

Use-cases


Product & ops – SKU/option explosion, menu design, routing/scheduling possibilities.

Research & testing – number of test variants, multi-factor designs, sample-space sizing.

Security – password/PIN complexity, keyspace sizing.

Hiring & teams – ways to assign roles, select panels or rota patterns.

Risk & probability – lottery odds, card draws, defect sampling (hypergeometric vs binomial).

Pitfalls & Cautions


Dividing (or not) by r! incorrectly – causes  ×r! errors.

Forgetting replacement rules – using n^r when items can’t repeat, or P/C when they can.

Hidden constraints – “no adjacent duplicates”, “at least one from X” change the count.

Indistinguishable items – identical objects require stars-and-bars or partition methods, not plain P/C.

Over-relying on averages – probability conclusions fail if the sample space was miscounted.

Recent Mental Models

Click below to learn other mental models

  • The Idea Maze

    The Idea Maze

    Before building, map the space: the key forks, dead ends and dependencies—so you can choose a promising path and run smarter tests.

  • Thucydides Trap

    Thucydides Trap

    When a rising power threatens to displace a ruling power, fear and miscalculation can tip competition into conflict unless incentives and guardrails are redesigned.

  • Zero to One

    Zero to One

    Aim for vertical progress—create something truly new (0 → 1), not just more of the same (1 → n). Win by building a monopoly on a focused niche and compounding from there.