Skip to main content

Calcu.fit

Permutation and Combination Calculator: nPr & nCr

Use this free permutation and combination calculator to count the number of ways to arrange or choose items. Enter the total number of items (n) and the number you’re choosing (r), and get both permutations (nPr), where order matters, and combinations (nCr), where order doesn’t. You can also include repetition and see the step-by-step working. No signup needed.

Permutation and Combination Calculator

Calculate permutations, combinations, factorials and arrangements with or without repetition.

Example: 2,2 means two pairs of identical items.

Calculation Results

Formula & Steps

Permutation vs Combination

PermutationOrder matters
CombinationOrder does not matter
Factorialn! = n × (n−1) × ... × 1
Zero Factorial0! = 1

Useful Examples

10P3720
10C3120
5P220
5C210
52C52,598,960
6 people circular120

How to Use This Permutation and Combination Calculator

  1. Enter n, the total number of items to choose from.
  2. Enter r, the number of items you’re selecting or arranging.
  3. Choose whether repetition is allowed (can the same item be used more than once?).
  4. Click Calculate to see nPr, nCr, and the steps.

For arrangements of items with repeated elements (like the letters in a word), use the “arrangements with identical items” option.

What You’ll See in Your Results

  • Permutations (nPr) and combinations (nCr)
  • The formula with your numbers filled in
  • Factorial values used in the calculation
  • A comparison showing how order changes the count

Permutations vs. Combinations

The key question is: does the order matter?

 PermutationCombination
Order matters?YesNo
Also calledAn arrangementA selection or group
SymbolnPr, P(n, r)nCr, C(n, r), “n choose r”
ExampleFirst, second, and third place in a raceA team of 3 chosen from a group
CountsMore (every order is different)Fewer (every order is the same)

Example with the letters A, B, and C, choosing 2:

  • Permutations: AB, BA, AC, CA, BC, CB = 6
  • Combinations: AB, AC, BC = 3

Each combination can be arranged in r! ways, so nPr = nCr × r!.

The Formulas

Factorial: n! = n × (n − 1) × (n − 2) × … × 1, with 0! = 1

Permutations: nPr = n! ÷ (n − r)!

Combinations: nCr = n! ÷ [ r! × (n − r)! ]

With repetition allowed:

CaseFormula
Permutations with repetitionnʳ
Combinations with repetition(n + r − 1)! ÷ [ r! × (n − 1)! ], which equals C(n + r − 1, r)

Arrangements of items with identical elements: n! ÷ (n₁! × n₂! × … )

Circular arrangements of n distinct items: (n − 1)!

Factorial Reference

nn!
01
11
5120
6720
75,040
840,320
9362,880
103,628,800
12479,001,600
151,307,674,368,000
202,432,902,008,176,640,000

Factorials grow very quickly, which is why counts become huge even for modest numbers.

Permutation and Combination Examples

Example 1: Permutation (Order Matters)

How many ways can 3 of 10 runners finish first, second, and third?

10P3 = 10! ÷ 7! = 10 × 9 × 8 = 720

Example 2: Combination (Order Doesn’t Matter)

How many ways can you choose 3 people from 10 for a committee?

10C3 = 10! ÷ (3! × 7!) = 720 ÷ 6 = 120

The permutations (720) are 6 times the combinations (120), because each group of 3 can be ordered in 3! = 6 ways.

Example 3: Choosing and Arranging

n, rnPrnCr
5, 22010
8, 333656
10, 45,040210
12, 31,320220

Example 4: A Sports Team

Choose a team of 5 from 12 players: 12C5 = 792.

If the players also take 5 distinct positions, the order matters: 12P5 = 95,040.

Example 5: A Card Hand

How many different 5-card poker hands are there from a 52-card deck?

52C5 = 2,598,960

For a 2-card hand: 52C2 = 1,326.

Example 6: A Lottery

In a lottery where you pick 6 numbers from 49, the number of possible tickets is:

49C6 = 13,983,816

So the chance of matching all six with one ticket is about 1 in 14 million, or roughly 0.0000072%. See our Probability Calculator.

Example 7: Mixed Groups

A committee of 5 is formed from 6 men and 4 women, with 3 men and 2 women:

6C3 × 4C2 = 20 × 6 = 120

At least one woman in a committee of 4 chosen from 6 men and 4 women:

Total 10C4 = 210, and no women is 6C4 = 15, so 210 − 15 = 195.

Example 8: Handshakes

12 people each shake hands once with every other person: 12C2 = 66 handshakes.

Repetition Allowed

Permutations with Repetition

A 4-digit PIN with digits 0 to 9, repeats allowed: 10⁴ = 10,000.

A 3-letter code from 26 letters, repeats allowed: 26³ = 17,576.

Permutations Without Repetition

A 4-digit PIN with no repeated digit: 10P4 = 5,040.

A 3-letter code with no repeated letter: 26P3 = 15,600.

4-digit numbers that can’t start with 0 and have no repeats: 9 × 9 × 8 × 7 = 4,536.

Combinations with Repetition

Choose 3 scoops of ice cream from 5 flavors, flavors can repeat, order doesn’t matter:

C(5 + 3 − 1, 3) = C(7, 3) = 35

The Multiplication Principle

For a license plate with 3 letters followed by 4 digits, repeats allowed: 26³ × 10⁴ = 175,760,000.

Arrangements of Words (Identical Letters)

When some items are identical, divide by the factorial of each repeated count.

WordCalculationArrangements
ABC3!6
ABCD4!24
LEVEL (L ×2, E ×2)5! ÷ (2! × 2!)30
BANANA (A ×3, N ×2)6! ÷ (3! × 2!)60
MISSISSIPPI (I ×4, S ×4, P ×2)11! ÷ (4! × 4! × 2!)34,650

Circular Arrangements

When items are arranged around a circle, rotations count as the same, so the number is (n − 1)!

  • 6 people at a round table: 5! = 120
  • 8 people at a round table: 7! = 5,040

Useful Relationships

  • nC0 = 1 and nCn = 1
  • Symmetry: nCr = nC(n − r). For example, 20C3 = 20C17 = 1,140.
  • nPr = nCr × r!
  • nPn = n! (7P7 = 5,040)
  • Sum of all subsets: the number of subsets of n items is 2ⁿ. For 8 toppings, there are 2⁸ = 256 possible pizzas (including the plain one).
  • Pascal’s triangle: each row lists the combinations. Row 6 is 1, 6, 15, 20, 15, 6, 1, which are 6C0 through 6C6.

How to Decide: Permutation or Combination?

Ask these questions:

  1. Does changing the order create a different result? If yes, use a permutation. If no, use a combination.
  2. Can items repeat? If yes, use the repetition formulas.
  3. Are some items identical? If yes, divide by the factorial of each repeated count.

Clue words:

PermutationCombination
arrange, order, rank, schedulechoose, select, pick, group
first, second, thirdcommittee, team, hand
code, password, PINsubset, sample

Where Permutations and Combinations Are Used

  • Probability and statistics: counting outcomes and calculating chances
  • Computer science: algorithms, passwords, and search problems
  • Games and gambling: card hands, dice, and lotteries
  • Scheduling and planning: arrangements of tasks or people
  • Genetics: counting gene combinations
  • Business: product combinations and testing options
  • Everyday decisions: choosing outfits, teams, and menu items

Common Mistakes

  • Using a permutation when order doesn’t matter (or the reverse).
  • Forgetting that r can’t be larger than n in the standard formulas (without repetition).
  • Missing the repeated items in word arrangements.
  • Mixing up “with” and “without” repetition.
  • Adding instead of multiplying independent choices.
  • Overcounting when groups are identical (such as dividing teams that have no labels).
  • Not simplifying the factorials, which makes hand calculation harder than needed.

Permutation and Combination Calculator vs. Other Tools

  • Probability calculator: the likelihood of events.
  • Scientific calculator: keys for nPr, nCr, and factorials.
  • Standard deviation calculator: measures the dispersion of data.
  • Prime factorization calculator: breaking down numbers into prime factors.
  • GCD and LCM calculator: greatest common divisor and least common multiple.
  • Random number generator: selecting numbers within a specific range.

Frequently Asked Questions (FAQ)

What is the difference between a permutation and a combination?

In a permutation, order matters. In a combination, it doesn’t. Choosing first, second, and third place is a permutation, and choosing a team of three is a combination.

nPr = n! ÷ (n − r)!. For 10P3, that’s 10 × 9 × 8 = 720.

nCr = n! ÷ [r! × (n − r)!]. For 10C3, that’s 720 ÷ 6 = 120.

Ask whether changing the order gives a different outcome. If it does, use a permutation. If not, use a combination.

 “n choose r,” the number of ways to choose r items from n, when order doesn’t matter.

By definition, 0! = 1.

If items can be reused, use nʳ for permutations. If some items are identical, divide n! by the factorial of each repeated count, as in 11! ÷ (4! × 4! × 2!) for MISSISSIPPI.

 (n − 1)!, because rotations are considered the same. Six people give 5! = 120 arrangements.

 Not in the standard formulas without repetition, since you can’t choose more items than you have. With repetition allowed, r can be larger.

52C5 = 2,598,960.

The number of possible tickets is nCr. For choosing 6 from 49, it’s 49C6 = 13,983,816, so one ticket has about a 1 in 14 million chance.

 Yes. It’s free, with no registration and no limits.

It uses exact integer arithmetic, so results are exact for the values you enter. Very large factorials may be shown in scientific notation.

Disclaimer

This calculator is for general informational and educational purposes. Results depend on the values and options you choose, and you should confirm that the problem fits the formula used. Check important calculations independently.