🔄 Permutation & Combination Calculator

Calculate nPr (permutations) and nCr (combinations) with step-by-step solutions

Enter Values

Allow Repetition

Items can be reused

Quick Examples

🔢

Enter values to calculate

Choose n and r to see permutations or combinations

Permutation (nPr)

P(n,r) = n! / (n-r)!

Order matters: arrangement of items

P(5,3) = 5!/(2!) = 120/2 = 60

Combination (nCr)

C(n,r) = n! / (r! × (n-r)!)

Order doesn't matter: selection of items

C(5,3) = 5!/(3!×2!) = 120/(6×2) = 10

Understanding Permutations and Combinations

Permutations and combinations are fundamental concepts in probability and statistics. They help us count the number of ways to arrange or select items from a set.

Key Differences

🔄 Permutations (nPr)

Order matters! Different arrangements of the same items count as different permutations.

Example: P(3,2) from {A,B,C}

AB, AC, BA, BC, CA, CB (6 permutations)

🎯 Combinations (nCr)

Order doesn't matter! Different arrangements of the same items count as the same combination.

Example: C(3,2) from {A,B,C}

AB, AC, BC (3 combinations)

Real-World Applications

🎲

Probability

Calculating odds in games, lotteries, and gambling

Chance of winning lottery: C(49,6)

🔐

Password Security

Number of possible password combinations

8-character password: 94^8 permutations

🃏

Card Games

Poker hand probabilities, card distributions

Poker hands: C(52,5)

🧬

Genetics

Gene combinations in offspring

Genetic trait combinations

📊

Statistics

Sampling methods, survey design

Selecting samples from population

🏆

Tournaments

Match scheduling, ranking possibilities

Number of possible rankings

When to Use Repetition

✅ With Repetition

  • Passwords (characters can repeat)
  • Combination locks (numbers can repeat)
  • Multiple-choice tests (answers can repeat)
  • Sampling with replacement

❌ Without Repetition

  • Lottery numbers (unique numbers)
  • Sports team lineups (unique players)
  • Card hands (unique cards)
  • Sampling without replacement

Factorial Reference

nn!Value
00!1
11!1
22!2
33!6
44!24
55!120
66!720
77!5,040
88!40,320
99!362,880
1010!3,628,800

💡 Key Takeaways

  • Permutation (nPr): Use when order matters (arrangements, sequences, rankings)
  • Combination (nCr): Use when order doesn't matter (selections, groups, hands)
  • With Repetition: Items can be reused (passwords, codes)
  • Without Repetition: Each item used once (lottery, teams)

Explore More Helpful Tools