Skip to content
Sumly

Permutation & Combination Calculator

nPr and nCr, with or without repetition, as exact numbers.

In

A poker hand is a combination: the same five cards in any order are one hand. A PIN is a permutation with repetition: 1-2-3-4 and 4-3-2-1 are different, and digits can repeat.

Out

Combinations

2,598,960

Formula: n! ÷ (r! (n − r)!)

Permutations (order counted)311,875,200
Chance of one specific outcome1 in 2,598,960
Digits in the exact answer7

How the Permutation and Combination calculation works

Combinations count groups where order doesn't matter: C(n, r) = n! ÷ (r! (n − r)!). Permutations count arrangements where order matters: P(n, r) = n! ÷ (n − r)!.

With repetition allowed, arrangements number nʳ, since every pick has n choices. Groups with repetition are counted with the stars-and-bars formula, C(n + r − 1, r).

Every result is calculated with exact big integers, so the answer stays exact even when it runs to thousands of digits. The chance line assumes every outcome is equally likely.

Worked example

A poker hand is 5 cards from a 52-card deck, with order ignored and no repeats. That gives C(52, 5) = 2,598,960 hands, so any particular hand has a 1 in 2,598,960 chance. If order mattered, there would be 311,875,200 arrangements.

The tool above opens with these numbers. Change them to run your own scenario, or press Reset to come back to this example.

Frequently asked questions

A plain calculator that you can type into, with a running history.

Trig, logs, powers, roots and factorials, in degrees or radians.

Three percentage questions, answered instantly.

How far apart two values are, when neither is the starting point.

Solve a proportion for the missing value, or simplify a ratio.

Round to decimal places or the nearest 5, 10 or 0.05, with five rounding rules.

  • permutation
  • combination
  • ncr
  • npr
  • probability
  • math