Permutation & Combination
Free online permutation & combination. Calculate nPr and nCr with factorial detail. Accurate and easy to use.
60
P(5, 3) = 5! / (5 − 3)!
Expanded
5 × 4 × 3 × 2 × 1 / 2 × 1
10
C(5, 3) = 5! / (3! × (5 − 3)!)
Expanded
5 × 4 × 3 × 2 × 1 / (3 × 2 × 1 × 2 × 1)
Embed this tool
Copy and paste the code below into your website to embed this tool for free. An attribution link to The Util Box is required.
<iframe src="https://www.theutilbox.org/embed/permutation-combination" width="600" height="500" frameborder="0" style="border: none; max-width: 100%;" title="Free Permutation & Combination tool from The Util Box"></iframe> <!-- Free tool by The Util Box — https://www.theutilbox.org/tools/permutation-combination --> <a href="https://www.theutilbox.org/tools/permutation-combination">Permutation & Combination by The Util Box</a>
Frequently Asked Questions about Permutation & Combination
Permutation & Combination Calculator — nPr and nCr
This permutation and combination calculator handles the two counting questions that look alike and mean completely different things. Give it n items and r selections and it returns both nPr and nCr, with the factorials expanded so you can see where the numbers come from.
The distinction is order. A permutation counts arrangements where order matters — 7 ways to award three distinct medals to three runners. A combination counts selections where it does not — the same three runners in the same three positions, but the order of the winners no longer counts, so there is only one way to pick them.
The Formulas
| Count | Formula |
|---|---|
| Permutation (nPr) | n! / (n − r)! |
| Combination (nCr) | n! / (r! × (n − r)!) |
The only difference between the two is the r! in the denominator — which is
exactly the factor that accounts for the r! ways of ordering a selection that the combination throws away. The
expanded view writes each factorial out as a product, so 10! appears as
10 × 9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1.
Honest Limits
- Large results are rounded. The factorials are computed as IEEE-754 double-precision numbers, which hold about fifteen to seventeen significant digits, so 100! is displayed with its last digits rounded rather than exact.
- The input is capped at n = 100, and the constraint
0 ≤ r ≤ nis enforced. - Only plain permutations and combinations. There are no circular arrangements, no arrangements with repetition, no multiset coefficients and no derangements.
- No probability is attached to the counts, so the tool tells you how many outcomes there are but not how likely any of them is.
Related Calculators
- Factor Finder — the factorials broken into prime factors.
- GCD & LCM Calculator — when the counts share common factors.
- Prime Number Checker — for the factors in the denominator.
- Decimal to Fraction — the ratio between two counts.
- Number Sequence Generator — for the combinatorial sequences themselves.
- Rounding Calculator — for when a count needs to be approximate.
- Scientific Calculator — for the general arithmetic.
The calculation runs entirely in your browser and works offline.