Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Permutation With Repetition Calculator

Number of different items (n): enter 1 or more. Prefilled example: 10.

Number of positions (r): enter 0 or more. Prefilled example: 4.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Number of different items (n): enter 1 or more.
  2. Number of positions (r): enter 0 or more.
  3. 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

  1. Rep=nr
Symbols used in the formula
SymbolMeaning
nNumber of different items
rNumber of positions
RepPermutations 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
  1. Rep=104=10,000

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.

Questions answered

Related calculators