Permutations and Combinations Calculator
Calculate permutations (nPr), combinations (nCr) and factorials for any n and r, with the formulas and exact results — ideal for probability and stats.
By CalcLumen · Reviewed by Igor Zagorodnyi · Updated · How we check our math
Permutations and combinations count how many ways you can pick r items from a set of n. The difference is order: permutations (nPr) treat different arrangements as distinct, while combinations (nCr) do not. Enter n and r and this calculator returns both, along with the factorials that define them.
For example, picking 2 people from 5 gives 20 permutations (nPr) because first and second place are different, but only 10 combinations (nCr) because a pair is the same regardless of order. The formulas are nPr = n! / (n − r)! and nCr = nPr / r!, which is why the factorials are shown too.
How to use the permutations and combinations calculator
- 1Enter n, the total number of items to choose from.
- 2Enter r, how many you are selecting. It must be a whole number from 0 up to n.
- 3Read nCr for order-independent selections and nPr for ordered arrangements.
- 4Check n! and r! if you want the underlying factorial values.
Permutations & combinations questions, answered
What is the difference between a permutation and a combination?+
A permutation counts arrangements where order matters, so AB and BA are two outcomes. A combination counts selections where order does not matter, so AB and BA are the same one outcome. That is why nPr is always greater than or equal to nCr.
How is nCr calculated?+
nCr equals n! divided by r! times (n − r)!. Equivalently, this tool computes the permutation nPr first, then divides by r!. For n = 5 and r = 2 that gives 20 ÷ 2 = 10 combinations.
Why does it say “too large”?+
Factorials grow extremely fast. Beyond 170! the result exceeds the largest number JavaScript can represent, so any output that overflows is shown as “too large” rather than an inaccurate figure.
Related calculators
Find X% of a number, what percent one number is of another, and the percentage increase or decrease between two values, with the formula shown for each.
Calculate your grade point average from your course grades and credit hours on the standard 4.0 scale, with your total quality points.
Find your weighted course grade from assignment scores and weights, or the score you need on the final to hit your target.
Add, subtract, multiply and divide fractions and mixed numbers, with the result simplified to lowest terms, shown as a decimal and worked step by step.