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.

Related Mental Models

Click below to learn other mental models

  • Network Effects

    Network Effects

    A product becomes more valuable as more participants join and interact. Design for liquidity and quality, not just user count.

  • COPE Framework

    COPE Framework

    Create once, publish everywhere by structuring content and separating it from presentation so one source feeds many channels.

  • Law of Diminishing Returns

    Law of Diminishing Returns

    Each extra unit adds less benefit beyond a point; invest until marginal benefit ≈ marginal cost.

Preparing reader…