Permutation With Repetition Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter how many different items there are and how many positions you fill, when an item may be used more than once and order matters.
Result
Permutations with repetition (nʳ)
Permutations without repetition, n! ÷ (n − r)!
- Number of digits of nʳ
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Number of different items (n): enter 1 or more.
- Number of positions (r): enter 0 or more.
- Read the result: Permutations with repetition (nʳ); the panel also shows Permutations without repetition, n! ÷ (n − r)! and Number of digits of nʳ.
How this calculator works
When each of r ordered positions can take any of n items, repeats allowed, the multiplication principle gives n × n × … × n = nʳ arrangements.
Without repetition the count drops to P(n, r) = n! ÷ (n − r)!, because each item can be used only once (0 when r is larger than n).
The formula
| Symbol | Meaning |
|---|---|
| Number of different items | |
| Number of positions | |
| Permutations with repetition (nʳ) |
Worked example
| Number of different items (n) | 10 |
|---|---|
| Number of positions (r) | 4 |
| Permutations without repetition, n! ÷ (n − r)! | 5,040 |
|---|---|
| Number of digits of nʳ | 5 |
Permutations with repetition (nʳ) 10,000
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
How many 4-digit PIN codes are there?
Each of the 4 digits can be any of 10, so 10⁴ = 10,000, against 5,040 if no digit could repeat.
How many 3-letter strings can be made from 26 letters?
26³ = 17,576 with repeats allowed.