Combinations vs Permutations: When Order Matters

Published Apr 13, 2026 · 6 min read

The key question: does order matter?

Permutation (Order Matters)

P(n,r) = n! / (nβˆ’r)!

Use when: password digits, race finishing order, seating arrangements. How many 3-digit codes from digits 1-9? P(9,3) = 504.

Combination (Order Doesn't Matter)

C(n,r) = n! / (r!(nβˆ’r)!)

Use when: lottery numbers, team selection, pizza toppings. How many ways to choose 3 toppings from 10? C(10,3) = 120.

Quick Decision Guide

Try it: Use our Permutation & Combination Calculator to calculate P(n,r) and C(n,r) for any values.
πŸ“š Sources: Khan Academy NIST