Race placements: 10P3
Choose first, second, and third from 10 runners: n = 10, r = 3. Order matters and a runner cannot place twice, so \(10P3=10!/(10-3)!=10\times9\times8=720\). There are 720 possible podium orders.
Answer two plain-language questions; the matching rule is selected automatically.
Selected rule: Permutation without repetition, nPr.
Use this mode when objects themselves repeat, such as letters in a word. This is different from allowing a choice to be reused.
— or —
Enter n and r to compare permutation and combination results side by side.
Start with the outcome you mean. If swapping two selected items changes the outcome, order matters. If the same available item can fill more than one position, reuse is allowed. “Reuse allowed” does not mean the same thing as arranging identical objects such as the four I’s in MISSISSIPPI; use the repeated-objects mode for that case.
| Case | Order matters? | Reuse allowed? | Formula | Example |
|---|---|---|---|---|
| Permutation without repetition | Yes | No | \(nP r=\frac{n!}{(n-r)!}\) | Gold, silver, bronze from 10 runners |
| Combination without repetition | No | No | \(nC r=\frac{n!}{r!(n-r)!}\) | A 3-person team from 10 people |
| Ordered selection with replacement | Yes | Yes | \(n^r\) | A 4-digit PIN using 10 digits |
| Combination with repetition | No | Yes | \(\binom{n+r-1}{r}\) | 6 scoops chosen from 3 flavours |
Choose first, second, and third from 10 runners: n = 10, r = 3. Order matters and a runner cannot place twice, so \(10P3=10!/(10-3)!=10\times9\times8=720\). There are 720 possible podium orders.
Choose 3 of 10 people: n = 10, r = 3. Order does not matter and nobody is chosen twice, so \(10C3=10!/(3!7!)=(10\times9\times8)/(3\times2\times1)=120\). There are 120 distinct committees.
Using the same n and r, 10P3 is six times larger because every 3-person group has \(3!=6\) internal orders: \(720=120\times6\).
There are 10 choices for each of 4 positions: n = 10, r = 4. Order matters and digits may repeat, so \(10^4=10,000\). That includes codes such as 0000 and 1212.
Choose 6 scoops from 3 flavours: n = 3, r = 6. Scoop order does not matter and a flavour may be chosen repeatedly, so \(\binom{3+6-1}{6}=\binom{8}{6}=28\). There are 28 flavour-count combinations.
The calculator applies the four formulas in the guide above. Repeated-object arrangements use \(N!/(a!b!\dots)\), where the denominator contains one factorial for each repeated frequency. These definitions agree with the formula summary in OpenStax, Algebra and Trigonometry.
Exact integers are produced with JavaScript BigInt; scientific notation is derived from base-10 logarithms and is labelled approximate. Inputs are limited to whole numbers from 0 to 5,000, with a combined 5,000 limit for combinations with repetition and repeated-object totals. Those practical limits prevent very long loops and result rendering from freezing a phone. Calculations and entered text stay in your browser.
Editorial review: Formula implementation and examples checked by the Starlight Tools editorial team. Last reviewed: 14 July 2026.
nPr counts ordered selections, so AB and BA are different. nCr counts groups, so AB and BA are the same. For the same n and r without repetition, \(nPr=nCr\times r!\).
“n choose r” means the number of unordered groups of r distinct items that can be selected from n distinct items. It is written nCr or C(n,r).
Yes. nCr, C(n,r), and the binomial coefficient read “n choose r” are three notations for the same value.
Choosing the r items to include uniquely determines the n−r items left out. Counting either choice describes the same set of outcomes, so the values are equal.
By definition, \(0!=1\). There is exactly one way to choose or arrange zero items: the empty selection, so \(nC0=nP0=1\).
Not when each item can be used only once. When reuse is allowed, r may be greater than n: ordered selections use \(n^r\), and unordered selections use \(C(n+r-1,r)\).
For a word or multiset with N total objects and repeated frequencies a, b, and so on, the number of distinct arrangements is \(N!/(a!b!\dots)\). MISSISSIPPI gives \(11!/(4!4!2!)=34,650\).
There are 52! ways to order a deck—about 8×1067. Shuffle well and you likely create an arrangement the universe has never seen.
A room of n people has C(n,2) unique handshakes. With 10 people, that’s 45 greetings.
Each row of Pascal’s triangle lists combination counts: row n gives C(n,0)…C(n,n). Adding a row always sums to 2ⁿ.
A 6‑character code using 10 digits has 10⁶ possibilities. Add letters/symbols and order sensitivity explodes the search space.
Combinations with repetition use the classic “stars and bars” trick: C(n+r-1, r) counts ways to place r identical stars into n bins.