Smart Unit ConvertersSmart Unit Converters

Permutation & Combination Calculator

Calculate nPr (arrangements) and nCr (selections) for combinatorial problems.

?What is the Permutation & Combination Calculator?

A permutation and combination calculator computes the number of ways to arrange or select r items from a set of n. Permutations (nPr) count ordered arrangements — first, second, third place on a podium — while combinations (nCr) count unordered selections — which 3 people are on a committee. These are the foundational building blocks of probability, combinatorics, and discrete mathematics, and they appear everywhere: lottery odds, card-game probabilities, password strength, statistical sampling, and genetics.

The Formula

nPr = n! / (n − r)!. nCr = n! / [r! × (n − r)!]. nCr = nPr / r!.

Permutations count ordered arrangements: the first spot has n choices, the second has n − 1, and so on for r spots — giving n × (n − 1) × (n − 2) × … × (n − r + 1) = n! / (n − r)!. Combinations divide by r! because we are no longer counting orderings within the chosen group. That is why nCr is always smaller than nPr (except when r = 0 or r = 1, where they are equal).

Practical Examples

1

Ten sprinters racing for gold, silver, and bronze: 10P3 = 720 ordered outcomes (different medals mean different outcomes).

2

Picking 3 people out of 10 for a committee: 10C3 = 120 combinations (committee members are unordered).

3

Lottery drawing 6 numbers from 49: 49C6 = 13,983,816 possible tickets — one reason winning is so unlikely.

4

A 4-digit PIN with no repeated digits: 10P4 = 5,040 possibilities — stronger than it sounds, but still brute-forceable.

5

Seating 8 dinner guests in a row: 8P8 = 8! = 40,320 different arrangements.

6

Poker hand: 5 cards drawn from 52: 52C5 = 2,598,960 possible hands — the denominator for all basic poker probability calculations.

Frequently Asked Questions

A permutation cares about order — picking Alice then Bob is different from picking Bob then Alice. A combination does not — {Alice, Bob} is the same regardless of order. If the problem rewards positions (1st, 2nd, 3rd), use permutation. If it only cares about membership (chosen or not chosen), use combination.