Permutations & Combinations Calculator (nPr, nCr)

StatisticsFreeNo sign-up

A combination calculator counts the ways to choose r items from n when the order does not matter: C(n, r) = n! ÷ (r!(n − r)!). Choosing 3 people from 10 gives (10 × 9 × 8) ÷ (3 × 2 × 1) = 120 combinations. If the order matters, as with first, second and third place, the permutation count is P(10, 3) = 720.

Combination and permutation calculator
Choose r of n different items when only the group matters, like a 3-person committee from 10 people. C(n, r) = n! ÷ (r!(n − r)!).
Try:
C(10, 3) combinations
120

There are 120 ways to choose 3 items from 10 when the order does not matter.
nCr120
Chance of one particular group1 in 120
Digits3
Pascal’s triangle, rows 6 to 10
n = 61615201561
n = 7172135352171
n = 818285670562881
n = 9193684126126843691
n = 101104512021025221012045101
Each number is the sum of the two above it: C(9, 2) + C(9, 3) = 36 + 84 = 120 = C(10, 3).
Same n = 10 and r = 3, counted five ways
Type Order matters? Repeats? Count
Combinations C(n, r) no no 120
Permutations P(n, r) yes no 720
Combinations with repetition no yes 220
Permutations with repetition n^r yes yes 1,000
Circular P(n, r) ÷ r rotations same no 240
P(n, r) = C(n, r) × r!: each group of 3 can be put in order in 6 ways.
Show steps
  1. Use the combination formula: C(n, r) = n! ÷ (r! × (n − r)!) = 10! ÷ (3! × 7!).
  2. Cancel 7! from the top and bottom: C = (10 × 9 × 8) ÷ (3 × 2 × 1).
  3. Top: 720. Bottom: 3! = 6.
  4. Divide: C(10, 3) = 120.
Exact: every value is computed with whole-number (BigInt) arithmetic, so even very large results have no rounding.
List all combinations (120)
ABCABDABEABFABGABHABIABJACDACEACFACGACHACIACJADEADFADGADHADIADJAEFAEGAEHAEIAEJAFGAFHAFIAFJAGHAGIAGJAHIAHJAIJBCDBCEBCFBCGBCHBCIBCJBDEBDFBDGBDHBDIBDJBEFBEGBEHBEIBEJBFGBFHBFIBFJBGHBGIBGJBHIBHJBIJCDECDFCDGCDHCDICDJCEFCEGCEHCEICEJCFGCFHCFICFJCGHCGICGJCHICHJCIJDEFDEGDEHDEIDEJDFGDFHDFIDFJDGHDGIDGJDHIDHJDIJEFGEFHEFIEFJEGHEGIEGJEHIEHJEIJFGHFGIFGJFHIFHJFIJGHIGHJGIJHIJ

Permutations & Combinations Calculator (nPr, nCr)
Embed this calculator on your site

Free to use on class pages, blogs and course pages. Copy the code below and paste it into your page:

How to use the permutations and combinations calculator

  1. Choose what you are counting: combinations (nCr), permutations (nPr), either one with repetition, circular arrangements, or the arrangements of a word with repeated letters.
  2. Enter n (how many items you have) and r (how many you choose), or type the word. Optionally, name your items (for example: red, blue, green) to see them in the list.
  3. Read the exact answer, then the comparison table that counts the same n and r in five ways. Open Show steps for the working and List all to see the outcomes themselves. Every answer is computed exactly, even with thousands of digits.

Permutation and combination formulas

Situation Formula Example
Combinations (order does not matter, no repeats) C(n, r) = n! ÷ (r!(n − r)!) C(10, 3) = 120
Permutations (order matters, no repeats) P(n, r) = n! ÷ (n − r)! P(10, 3) = 720
Combinations with repetition C(n + r − 1, r) 3 scoops from 10 flavors: C(12, 3) = 220
Permutations with repetition nr 4-digit PIN: 104 = 10,000
Circular arrangements (n − 1)! for all n; P(n, r) ÷ r for r of n 6 people at a round table: 5! = 120
Arrangements with repeated items n! ÷ (n1! n2! …) MISSISSIPPI: 34,650

Here n! (n factorial) means n × (n − 1) × … × 1, and 0! = 1. The only difference between the first two formulas is the extra r! in the combination formula: P(n, r) = C(n, r) × r!, because each group of r items can be put in order in r! ways.

When to use permutations or combinations

Ask two questions. Does order matter? A committee, a pizza’s toppings and a poker hand are combinations; a race podium, a password and a seating plan are permutations. Can an item be used again? Digits in a code can repeat (nr); people on a team cannot (nCr or nPr). For a round table, rotations of the same seating count once, so use the circular formula.

Worked examples

  • Small check: from 5 items, choose 2. C(5, 2) = 10 groups, P(5, 2) = 20 ordered pairs, twice as many because each pair has 2 orders.
  • By hand: C(8, 3) = (8 × 7 × 6) ÷ (3 × 2 × 1) = 336 ÷ 6 = 56, and P(8, 3) = 8 × 7 × 6 = 336.
  • Poker hands: 5 cards from 52 gives C(52, 5) = 2,598,960 hands.
  • Lottery: 6 numbers from 49 gives C(49, 6) = 13,983,816, so one ticket has a 1 in 13,983,816 chance of matching all six.
  • Letters of a word: MATH has 4! = 24 arrangements; BOOK has 4! ÷ 2! = 12 because the two O’s are identical; 2-letter arrangements from MATH are P(4, 2) = 12. MISSISSIPPI has 11 letters (I × 4, S × 4, P × 2, M × 1), so 11! ÷ (4! × 4! × 2!) = 39,916,800 ÷ 1,152 = 34,650.

Pascal’s triangle and combinations

Row n of Pascal’s triangle lists C(n, 0), C(n, 1), …, C(n, n). Row 5 is 1, 5, 10, 10, 5, 1. Each entry is the sum of the two above it, C(n, r) = C(n − 1, r − 1) + C(n − 1, r), and each row adds up to 2n, the number of subsets of n items. The calculator draws the last rows for n up to 20 and highlights your entry.

Combinations in probability

When every outcome is equally likely, probability = favorable outcomes ÷ total outcomes, and both counts are often combinations. From 6 students, a committee of 2 is chosen at random. There are C(6, 2) = 15 possible committees and only one of them is Ana and Ben, so the chance is 1/15. For repeated yes/no trials, C(n, k) gives the number of ways to place k successes, which is the heart of the binomial formula; see the binomial probability calculator and the probability calculator.

Common mistakes

  • Using nPr for a group. A team of 3 is the same team in any order, so use nCr.
  • Forgetting identical items. Divide by the factorial of each repeat count, as with BOOK and MISSISSIPPI.
  • Counting rotations at a round table. 6 people in a row have 720 orders, but only 120 around a table.
  • Choosing more than you have. Without repetition r cannot be larger than n; with repetition it can.
  • Multiplying out huge factorials. Cancel first: C(52, 5) needs only 52 × 51 × 50 × 49 × 48 ÷ 120.

Permutations and combinations practice quiz: 10 questions

Test yourself with 10 multiple-choice questions. Choose an answer and press Submit to see if you are right and why. Your score appears at the end.

Question 1 of 10
1. How many ways can a 4-person committee be chosen from 9 people?

Found a mistake? Let us know!

2. In how many ways can gold, silver and bronze be awarded among 7 runners?

Found a mistake? Let us know!

3. How many 3-letter codes can be made from the 26 letters if letters may repeat?

Found a mistake? Let us know!

4. How many distinct arrangements are there of the letters in LEVEL?

Found a mistake? Let us know!

5. In how many ways can 5 people sit around a round table?

Found a mistake? Let us know!

6. A shop has 4 flavors. How many ways can you choose 2 scoops if the same flavor may be picked twice and order does not matter?

Found a mistake? Let us know!

7. Which is equal to C(12, 9)?

Found a mistake? Let us know!

8. What is the sum of the numbers in row 6 of Pascal’s triangle (1, 6, 15, 20, 15, 6, 1)?

Found a mistake? Let us know!

9. A class of 10 picks 2 students at random. What is the probability that Maya and Jon are the two chosen?

Found a mistake? Let us know!

10. How are P(n, r) and C(n, r) related?

Found a mistake? Let us know!

Frequently asked questions

What is the permutations and combinations formula?

Permutations: P(n, r) = n! ÷ (n − r)!. Combinations: C(n, r) = n! ÷ (r!(n − r)!). For n = 10 and r = 3 they give 720 and 120.

How do you calculate permutations and combinations on a TI-84?

Type n, press MATH, move right to PRB, choose 2:nPr or 3:nCr, then type r and press ENTER. For 10 nCr 3 the screen shows 120.

How do you solve permutations and combinations without a calculator?

Write the formula, cancel the larger factorial, and multiply only the remaining factors. C(10, 3) = (10 × 9 × 8) ÷ (3 × 2 × 1) = 720 ÷ 6 = 120. Using C(n, r) = C(n, n − r) keeps the work short, so C(10, 7) is also 120.

Is permutations and combinations algebra?

It is part of combinatorics, the math of counting, and is usually taught in Algebra 2, precalculus and statistics courses alongside probability.

How do you find the permutations of letters in a word?

Count the letters n and divide n! by the factorial of each letter’s count. BOOKKEEPER has 10 letters with O × 2, K × 2 and E × 3, so 10! ÷ (2! × 2! × 3!) = 151,200 arrangements. Use the Letters of a word tab to do this for any word.

How are permutations and combinations used in probability?

They count the outcomes. The probability of an event is the number of favorable outcomes divided by the total number, such as 1 ÷ C(49, 6) for a lottery jackpot.

Related calculators

More statistics calculators

Browse all 206 calculators

Related to This Article

What people say about "Combination Calculator (nCr) and Permutation Calculator nPr"?

No one replied yet.

Leave a Reply