Skip to content
FiftyCalc Free calculators for all 50 states

Permutation and Combination Calculator

Test cases replayed : 3 of 3 match · Methodology · No outside source listed

Enter the number of items n and how many you choose r to get the number of ordered and unordered selections.

Result

Sample figures

Combinations nCr (order does not matter)—

Permutations nPr (order matters) —

  • Permutations with repetition nʳ—
  • Combinations with repetition C(n + r − 1, r)—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Permutation and Combination Calculator

Total number of items n (whole number): enter 0 or more. Prefilled example: 10.

Number chosen r (whole number): enter 0 or more. Prefilled example: 3.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Total number of items n (whole number): enter 0 or more.
  2. Number chosen r (whole number): enter 0 or more.
  3. Read the result: Combinations nCr (order does not matter); the panel also shows Permutations nPr (order matters), Permutations with repetition nʳ and Combinations with repetition C(n + r − 1, r).

How this calculator works

Permutations: nPr = n! ÷ (n − r)!, the number of ordered arrangements of r items taken from n. Combinations: nCr = n! ÷ (r!(n − r)!), the number of unordered groups.

With repetition allowed, ordered selections number nʳ and unordered ones C(n + r − 1, r).

nPr is computed for r up to 30 and nCr while the smaller of r and n − r is at most 30; results above about 9 × 10¹⁵ are rounded, as with any double-precision calculator.

Worked example

Total number of items n (whole number)10
Number chosen r (whole number)3
Permutations nPr (order matters)720
Combinations nCr (order does not matter)120
Permutations with repetition nʳ1,000
Combinations with repetition C(n + r − 1, r)220

Frequently asked questions

What is the difference between a permutation and a combination?

In a permutation the order counts (ABC and CBA are different); in a combination it does not (they are the same group).

How many 5-card poker hands are there?

52C5 = 2,598,960 combinations of 5 cards out of 52.

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

10P3 = 10 × 9 × 8 = 720.

Questions answered

Related calculators