A Four-Digit PIN Has 10 000 Values and People Use About Twenty
Gepubliceerd op 16-11-2026 · 3 min leestijd · Dagelijkse calculators
Daniel Okonkwo — Front-enddeveloper en techredacteur bij OneKitly
Webprestaties · Bestandsformaten
Getoetst aan 2 bronnen
When repeats are allowed and order matters, the count is simply the number of symbols raised to the number of slots. Four decimal digits give ten to the fourth, or 10 000 codes. Six digits give a million. Keeping four slots but allowing the 26 letters as well as the digits gives 36 to the fourth, 1 679 616 — a 168-fold gain from widening the alphabet rather than lengthening the code. The theoretical count is only half the story, though: analyses of leaked PIN data have repeatedly found that a handful of codes, led by 1234, account for a quarter of everything in use.
Ten choices four times over is 10 000. Adding two digits reaches a million; using letters as well as digits reaches 1 679 616 with the same four slots.
Length beats alphabet in the long run
Widening the alphabet multiplies the total once per slot; adding a slot multiplies it by the whole alphabet. Going from 10 symbols to 36 across four slots gains a factor of 168, while going from four slots to eight with only 10 symbols gains a factor of 10 000. That is why advice moved from demanding punctuation to demanding length: each extra character is worth more than any amount of extra symbol variety, and it is far easier to remember one more word than one more rule about capital letters.
The count is an upper bound, never a guarantee
Ten thousand codes would take an attacker three hours at one guess per second, and a card blocks after three. But an attacker who tries 1234, 1111 and 0000 has spent those three attempts on the codes people actually pick, which is why banks reject the obvious sequences at the point of choosing rather than trusting the arithmetic. Every counting formula assumes uniform choice, and human choice is never uniform — dates, repeats and keypad patterns cluster into a tiny corner of the space.
| Code | Symbols | Possible values |
|---|---|---|
| 4 digits | 10 | 10 000 |
| 6 digits | 10 | 1 000 000 |
| 4 letters or digits | 36 | 1 679 616 |
| 8 letters | 26 | 208 827 064 576 |
Uitgewerkt met onze eigen calculator
Calculator voor permutaties met herhaling
Gegeven
- n (aantal voorwerpen)
- 10
- r (lengte van het rijtje)
- 4
Resultaat
- Aantal cijfers
- 5
Deze cijfers komen uit de calculator hieronder, ze zijn niet met de hand ingetypt — ze worden opnieuw berekend telkens als de tool verandert.
Reken het door met je eigen cijfers →Veelgestelde vragen
- How is this different from a combination lock?
- The lock is misnamed. A padlock with four wheels of ten digits has 10 000 settings and the order of the wheels matters, which makes it a permutation with repetition and not a combination at all. A true combination would treat 1-2-3-4 and 4-3-2-1 as the same, and no lock does. The word stuck in ordinary use long before the mathematical terms were fixed, and it is now one of the few cases where everyday language and the field disagree outright.
- Does adding a symbol help more than adding a digit?
- Adding one more position always beats widening the alphabet by a few characters. Going from 36 symbols to 62 by allowing capitals multiplies a four-slot code by about 8.8; adding a fifth slot to the 36-symbol alphabet multiplies it by 36. The only case where a wider alphabet wins is when the length is fixed by something external — a keypad with four wheels, a field limited to eight characters — and then the alphabet is all you have.
Artikelen die je misschien interesseren
Alle gidsen →Vergelijkbare tools
Bronnen
Een fout in dit artikel gezien?