Math · free · step by step
Permutation and Combination Calculator
Work out nPr and nCr, with or without repetition, as exact whole numbers with the formula steps, and see every arrangement for small cases.
Step by step
Worked examples
Permutation and combination examples
| Question | Type | Answer |
|---|---|---|
| Arrange 5 books on a shelf | 5P5 | 120 |
| Gold, silver, bronze among 8 runners | 8P3 | 336 |
| Choose a 3-person committee from 10 | 10C3 | 120 |
| 5-card poker hands | 52C5 | 2,598,960 |
| 6 from 49 lottery | 49C6 | 13,983,816 |
| 4-digit PIN codes | 10^4 | 10,000 |
| 3 scoops from 5 flavours (repeats allowed) | 7C3 | 35 |
More math
Other math tools
- Scientific CalculatorTrig, logs, powers, n!, nCr with history and exact answers
- Fraction CalculatorAdd, subtract, multiply and divide fractions with steps
- Matrix CalculatorDeterminant, inverse, multiply and RREF with steps
- Statistics CalculatorMean, median, mode, standard deviation and regression
- Binary ConverterBinary, decimal, hex and octal with steps
- Complex Number Calculatora + bi, polar form, powers and roots with steps
- Normal Distribution CalculatorNormal curve probabilities, z-scores and inverse normal
- Binomial Distribution CalculatorP(X = k), P(X ≤ k) and more for n trials
- Poisson Distribution CalculatorProbabilities of counts with average rate λ
- Prime Factorization CalculatorPrime factors, factor trees and divisors of any number
- GCD and LCM CalculatorGreatest common factor and least common multiple with steps
- Significant Figures CalculatorCount, round and calculate with significant figures
- Equation SolverQuadratic, cubic and simultaneous equations with steps
- Graphing CalculatorPlot functions, circles, polar and parametric curves
- Derivative CalculatorDerivatives with every step shown
- Integral CalculatorIntegrals with steps, definite and indefinite
- Ohm’s Law CalculatorVolts, amps, ohms and watts
Questions
Permutation and Combination Calculator FAQ
Free, private and works offline: everything is worked out in your browser.
What is the difference between a permutation and a combination?
In a permutation the order matters (a race finish, a PIN); in a combination it doesn’t (a team, a lottery draw). Choosing 3 from 10: there are 720 ordered arrangements but only 120 groups, because each group of 3 can be ordered 3! = 6 ways.
How do you calculate nPr?
nPr = n! ÷ (n − r)!. Cancelling leaves the r biggest numbers multiplied: 10P3 = 10 × 9 × 8 = 720.
How do you calculate nCr?
nCr = n! ÷ (r! (n − r)!), the number of ways to choose r items from n when order doesn’t matter. 10C3 = 720 ÷ 6 = 120, and a 5-card poker hand from 52 cards: 52C5 = 2,598,960.
What if repeats are allowed?
If order matters and items can repeat (like PIN codes), there are nʳ: a 4-digit PIN has 10⁴ = 10,000 possibilities. If order doesn’t matter and repeats are allowed (like choosing 3 scoops from 5 flavours), use (n + r − 1)Cr = 35.
What are my chances in a 6 from 49 lottery?
There are 49C6 = 13,983,816 possible draws, so one ticket has a 1 in 13,983,816 chance of the jackpot.
How big can the numbers be?
n and r can be up to 1,000, and answers are exact however many digits they have (1000! has 2,568 digits). Small cases also list every arrangement or group so you can see what is being counted.