Permutation & Combination Calculator

๐Ÿงฎ Math & Algebra

Permutation & Combination Calculator

Find nPr or nCr instantly โ€” how many ways can you arrange or choose from a set.

Advertisement
๐Ÿ”ข
Permutation & Combination Calculator

Permutations count arrangements where order matters; combinations count selections where it doesn't.

Please enter valid n and r, with r โ‰ค n and both โ‰ฅ 0.
Permutations
0
Advertisement

Permutations vs. Combinations

Both count ways to select r items from a set of n โ€” the difference is whether order matters. A permutation treats different orderings as different outcomes (ABC โ‰  BCA). A combination treats them as the same outcome (ABC = BCA, since it's the same group).

The Formulas

Permutation: nPr = n! รท (n โˆ’ r)!
Combination: nCr = n! รท (r! ร— (n โˆ’ r)!)

Both use factorials โ€” n! means n ร— (nโˆ’1) ร— (nโˆ’2) ร— ... ร— 1. Combinations divide by an extra r! compared to permutations, since that's exactly how many different orderings of the same r items get collapsed into one combination.

How to Use This Calculator

Choose Permutation if the order of your selection matters (like assigning 1st, 2nd, and 3rd place), or Combination if it doesn't (like picking a 3-person committee where roles aren't distinguished). Enter n (your total pool) and r (how many you're selecting), then calculate.

When to Use Permutations

  • Assigning distinct positions or ranks (1st/2nd/3rd place, seating order)
  • Creating passwords or codes where digit order matters
  • Arranging items on a shelf where position is distinguishable

When to Use Combinations

  • Choosing a committee or team where roles aren't assigned
  • Lottery numbers (the order you draw them doesn't change your winnings)
  • Selecting a subset of items where only the group composition matters
๐Ÿ’ก Quick test: if swapping the order of your selection would create a "different" outcome, use permutation. If it's still the "same" outcome, use combination.

Worked Example

Choosing 3 winners from 10 entrants for 1st, 2nd, and 3rd place (order matters โ€” it's a permutation): 10P3 = 10!/(10โˆ’3)! = 10ร—9ร—8 = 720 possible outcomes. Choosing the same 3 people just as "the top 3" with no ranking (a combination): 10C3 = 720/3! = 120 possible groups.

Where This Fits

For broader probability work, pair this with our percentage calculator and ratio calculator.

Frequently Asked Questions

What's the difference between nPr and nCr?
nPr counts arrangements where order matters; nCr counts selections where order doesn't matter. nCr is always smaller than or equal to nPr for the same n and r, since it groups together all the different orderings of the same items.
Can r be larger than n?
No โ€” you can't choose or arrange more items than exist in the original set, so r must be less than or equal to n.
What does 0! equal?
By mathematical convention, 0! = 1, which is why nPn and nCn (selecting/arranging the entire set) always equal n! and 1 respectively.
What's a real-world example of a combination?
A lottery draw โ€” the numbers 7, 14, 22 win the same prize regardless of the order they were drawn in, making it a combination, not a permutation.
What's a real-world example of a permutation?
A race's 1st, 2nd, and 3rd place finishers โ€” the same three runners in a different order is a completely different outcome, making it a permutation.
Why do the numbers get so large so fast?
Factorials grow extremely quickly โ€” even modest values of n produce enormous numbers, which is why permutations and combinations are central to understanding probability in large systems.
Advertisement

Scroll to Top