Permutation & Combination Calculator
Calculate nPr and nCr with exact BigInt precision. Supports n up to 20.
How to Use
- Step 1: Enter n (total number of items, max 20).
- Step 2: Enter r (number of items to choose or arrange).
- Step 3: Instantly see nPr, nCr, and all factorial values.
About Permutation & Combination Calculator
Permutations and combinations are fundamental concepts in combinatorics. A permutation (nPr) counts the number of ways to arrange r items from n, where order matters — for example, the number of ways to assign 1st, 2nd, and 3rd place from 10 competitors. A combination (nCr) counts ways to choose r items from n where order does not matter — like picking 3 members from a group of 10.
The formulas are: nPr = n! / (n-r)! and nCr = n! / (r! × (n-r)!). This calculator uses JavaScript's BigInt for exact integer arithmetic, avoiding floating-point rounding errors that affect standard Number for large factorials. Values of n up to 20 are supported (20! = 2,432,902,008,176,640,000).
The step-by-step formula display shows all intermediate factorial values so you can follow the calculation manually or verify your work.
You may also find our Scientific Calculator and Random Number Generator helpful.
Frequently Asked Questions
What is a permutation (nPr)?
A permutation is an arrangement of r items from n items where order matters. nPr = n! / (n-r)!
What is a combination (nCr)?
A combination is a selection of r items from n items where order does NOT matter. nCr = n! / (r! × (n-r)!)
What is the difference between P and C?
Permutations count arrangements (ABC ≠ BAC), combinations count selections (ABC = BAC). nCr = nPr / r!
Why is n limited to 20?
20! = 2.43 × 10¹⁸, which is safely within 64-bit integer range. Values above 20 would require arbitrary-precision arithmetic beyond standard use cases.
What is 10C3?
10C3 = 10! / (3! × 7!) = 120. This means there are 120 ways to choose 3 items from 10 without regard to order.
Was this tool helpful?
More Tools
Related Math & Calc
Statistics Calculator
Scientific Calculator
Percentage Calculator
BMI Calculator
You Might Also Like