Skip to content
CleverPunts
Sign in Join
Betting tools

Ask Sid about Permutations and Combinations

When the order matters and when it doesn't, why that changes the odds, and a calculator to try it on.

Clever Sid with a calculator

What are permutations & combinations?

Permutations (order matters)

Definition: A permutation is an arrangement of objects in a specific order. The order matters in permutations.

For example, the "Combination Lock."

  • It’s actually named wrong—it should be called a Permutation Lock. If your code is 4-2-1, you can’t enter 1-2-4 and expect it to open. The order is everything.
Combination Lock

Combinations (order doesn't matter)

Definition: A combination is a selection of objects where the order does NOT matter. Only the selection itself is important.

For example, choosing 2 letters from A, B, and C:

  • AB, AC, and BC are the only combinations
  • There are 3 total combinations - note that AB is the same as BA
  • Formula: C(3,2) = 3!/(2!×1!) = 6/(2×1) = 3
Choosing pizza toppings

Try these real-world examples

Click any example to run it in the calculator below.

Quick guide

Use permutations when: order matters (races, passwords, seating arrangements)

Use combinations when: order doesn't matter (lottery, team selection, choosing items)

Live calculator

1Input values

Calculation type
Please enter a value between 0 and 170
Maximum value: 170 (due to JavaScript number limits)
r must be less than or equal to n

2Results

Enter values and click Calculate to see results

How the numbers grow

Side by side

The formulas

1. Permutations without repetition: P(n,r)

When you select r objects from n total objects, and the order matters:

P(n, r) = n! / (n - r)! Where n! (n factorial) = n × (n-1) × (n-2) × ... × 2 × 1

Example: Choosing 3 people from 5 for 1st, 2nd, 3rd place: P(5,3) = 5!/(5-3)! = 120/2 = 60 ways

2. Combinations: C(n,r)

When you select r objects from n total objects, and the order does NOT matter:

C(n, r) = n! / (r! × (n - r)!) Also written as "n choose r" or ⁿCᵣ

Example: UK Lottery - choosing 6 numbers from 59: C(59,6) = 59!/(6!×53!) = 45,057,474 combinations

3. Permutations with repetition

When you can select the same item multiple times:

nr Where n = number of options, r = number of selections

Example: A 4-digit PIN with digits 0-9: 104 = 10,000 possibilities

4. Factorial: n!

The number of ways to arrange all n objects:

n! = n × (n-1) × (n-2) × ... × 2 × 1 Note: 0! = 1 by definition

Important notes

Key differences

  • Permutations vs Combinations: Permutations care about order (ABC ≠ BAC), combinations don't (ABC = BAC = CBA)
  • With vs Without Repetition: With repetition allows reusing items (only for permutations), without repetition doesn't
  • Relationship: For the same n and r, permutations ≥ combinations. P(n,r) = C(n,r) × r!
  • Factorial Growth: Factorials grow extremely fast! 10! = 3,628,800 and 20! = 2.4 × 1018

When to use which?

Use permutations when:

  • The order of selection matters
  • Examples: Race positions, passwords, seating arrangements, phone numbers

Use combinations when:

  • The order of selection does NOT matter
  • Examples: Lottery tickets, team selection, choosing toppings, committee formation

Limitations

  • Maximum n value is 170 as computers don't want to cope with more than that. The numbers just get silly.
  • Results larger than 10308 will display as "Infinity"
  • For very large calculations, consider using specialized mathematical software
  • Combinations with repetition are not included in this calculator (less common in practice)