Part of the Maths & Statistics suite · 235 calculators

Permutations with Repetition Calculator

How many ordered sequences of length r you can build from n symbols when repeats are allowed — passwords, PINs, number plates and DNA.

If every position can hold any of n symbols independently, the count is simply n multiplied by itself r times: nʳ.

Results update as you type
Results
Possible sequences
10,000
Entropy
Without repetition P(n, r)
In scientific notation
Time to try them all at 1 billion/second
Reviewed September 2026. Pure mathematics: the result does not depend on where you are. Terminology follows the national curriculum (maths, brackets, decimal point).
No account required · Google Analytics off unless allowedCalculator arithmetic runs in your browserResults update as you type
All calculations run 100% in your browser. The calculator code does not submit your figures to GlobalCalc to obtain a result.
About permutations with repetition

How the permutations with repetition calculator works

If every position can hold any of n symbols independently, the count is simply n multiplied by itself r times: nʳ. A four-digit PIN is 10⁴ = 10,000; an eight-character password from 95 printable ASCII characters is 95⁸, about 6.6 quadrillion.

The calculator also reports the bits of entropy — log₂ of the count — which is how password strength is properly measured.

Formula: arrangements = nʳ; entropy = r × log₂ n bits

Worked examples

InputsPossible sequencesNote
A 4-digit PIN10,00010,000 — 13.3 bits
An 8-character password from 95 characters6.6342e156.6 × 10¹⁵
A 6-character alphanumeric code2,176,782,3362.18 billion

Frequently asked questions

How many 4-digit PINs are there?

10,000 — every value from 0000 to 9999.

What is entropy in bits?

log₂ of the number of possibilities. Each bit doubles the search space; 4-digit PINs carry 13.3 bits, which is nothing.

How strong is an 8-character password?

From the full 95-character printable set, about 52 bits — crackable by a determined attacker. Length beats complexity: a 5-word passphrase carries more.

What is the difference from nPr?

nPr forbids reuse. Here every position is independent, so nʳ is always the larger count.

Does this measure a real password's strength?

Only if it was generated uniformly at random. A password a person chose carries far less entropy than its length suggests.

Where these figures come from

Last checked: September 2026. Formulas are fixed by mathematics and do not change with tax years or regulations.