esc
Calculators

Permutation and combination calculator:
nPr and nCr, exact

Type how many items there are and how many you pick. You get the number of ordered arrangements (permutations) and unordered selections (combinations), exact to the last digit.

Combinations (nCr)2,598,960Permutations (nPr): 311,875,200
Permutations nPr (order matters)
311,875,200
Combinations nCr (order doesn’t matter)
2,598,960
Permutation formula
nPr = n! ÷ (n − r)! = 52! ÷ 47!
Combination formula
nCr = n! ÷ (r! (n − r)!) = 52! ÷ (5! × 47!)
  • Order matters for permutations (a race podium, a PIN), not for combinations (a lottery draw, a poker hand). Every combination of r items can be arranged in r! orders, so nPr = nCr × r!.

How to use Permutation and combination calculator

  1. 01Type nHow many items in total.
  2. 02Type rHow many you choose.
  3. 03Read nPr and nCrTick repetition if needed.
File character arranging marked pages

Order matters, or it doesn’t.

Permutations count ordered picks: nPr = n! ÷ (n − r)!. Combinations ignore order: nCr = n! ÷ (r!(n − r)!), which is nPr divided by the r! ways to arrange each pick. With repetition allowed the counts are nʳ and C(n + r − 1, r). Big-integer arithmetic keeps the result exact; truly enormous counts are shown in scientific notation with their number of digits.

At a glance

Price
Free. No sign-up, no watermark.
Privacy
Your text stays in your browser. Nothing is uploaded.
Works in
Chrome, Edge, Firefox and Safari, on phones and computers

Questions

How many 5-card poker hands are there?

Order doesn’t matter in a hand, so it is 52C5 = 52! ÷ (5! × 47!) = 2,598,960. If order mattered (dealing five cards to five seats) it would be 52P5 = 311,875,200.

How many 4-digit PINs are possible?

Digits can repeat and order matters, so it is a permutation with repetition: 10⁴ = 10,000. Tick “can be chosen more than once” with n = 10 and r = 4.

Why is nCr equal to nC(n − r)?

Choosing r items to take is the same as choosing the n − r items to leave behind, so 10C3 and 10C7 are both 120.

Is what I type sent anywhere?

No. The calculation runs in your browser and nothing you type leaves your device.