Combinations by length and character set
Pick the length and the character types. A custom pool size, if filled, replaces the checkboxes.
- Character setslowercase 26 + uppercase 26 + digits 10 + symbols 32
- Pool size94
- Length12 characters
- Formula94^12
- Scientific notation4.76 × 10^23
- Digits in the full number24
- Full number475,920,314,814,253,376,475,136
- Entropy78.7 bits
How to calculate password combinations
Each position in a random password can hold any character from the pool, and characters may repeat. Multiply the pool size by itself once per position and you get the count. Twelve positions from a pool of 62 means 62 multiplied by itself 12 times.
The count above is for passwords where order matters and repeats are allowed, which is how passwords work. The textbook "n choose k" combination formula, where order does not matter, does not apply here.
To create one of those passwords instead of counting them, use the password generator. For very large powers by hand, the scientific calculator has an x^y key.
Combinations by length and character set
Each cell is the pool size raised to the length. Counts past 18 digits appear in scientific notation.
| Length | Digits (10) | Lowercase (26) | Letters (52) | Letters + digits (62) | All 94 |
|---|---|---|---|---|---|
| 4 | 10,000 | 456,976 | 7,311,616 | 14,776,336 | 78,074,896 |
| 6 | 1,000,000 | 308,915,776 | 19,770,609,664 | 56,800,235,584 | 689,869,781,056 |
| 8 | 100,000,000 | 208,827,064,576 | 53,459,728,531,456 | 218,340,105,584,896 | 6,095,689,385,410,816 |
| 10 | 10,000,000,000 | 141,167,095,653,376 | 144,555,105,949,057,024 | 839,299,365,868,340,224 | 5.39 × 10^19 |
| 12 | 1,000,000,000,000 | 95,428,956,661,682,176 | 3.91 × 10^20 | 3.23 × 10^21 | 4.76 × 10^23 |
| 16 | 10,000,000,000,000,000 | 4.36 × 10^22 | 2.86 × 10^27 | 4.77 × 10^28 | 3.72 × 10^31 |
| 20 | 1.00 × 10^20 | 1.99 × 10^28 | 2.09 × 10^34 | 7.04 × 10^35 | 2.90 × 10^39 |
PIN combinations: 4 and 6 digits
A PIN uses only the 10 digits, so the count is 10 raised to the number of digits. Every extra digit multiplies the count by 10.
| PIN length | Combinations | Range | Entropy |
|---|---|---|---|
| 4 digits | 10,000 | 0000 to 9999 | 13,3 bits |
| 5 digits | 100,000 | 00000 to 99999 | 16,6 bits |
| 6 digits | 1,000,000 | 000000 to 999999 | 19,9 bits |
| 8 digits | 100,000,000 | 00000000 to 99999999 | 26,6 bits |
From combinations to bits of entropy
Entropy is the base-2 logarithm of the number of possible passwords. One extra bit doubles the count, ten extra bits multiply the count by 1,024. Bits make very different setups easy to compare.
| Setup | Combinations | Entropy |
|---|---|---|
| 4-digit PIN | 10,000 | 13,3 bits |
| 8 lowercase letters | 208,827,064,576 | 37,6 bits |
| 8 characters from all 94 | 6,095,689,385,410,816 | 52,4 bits |
| 12 letters and digits (62) | 3.23 × 10^21 | 71,5 bits |
| 15 characters from all 94 | 3.95 × 10^29 | 98,3 bits |
| 6 words from 7,776 | 2.21 × 10^23 | 77,5 bits |
Why random matters more than the count
- Every count on the page assumes each character or word is chosen at random. A password a person makes up, such as a name plus a year, sits in a much smaller set of likely guesses.
- Length adds more than variety: going from 8 to 12 characters of 62 adds about 23.8 bits, while adding symbols to an 8-character password adds about 4.8 bits.
- A reused password loses its strength the moment another site leaks it, whatever the count.
- The page gives no time-to-crack figure, since cracking speed depends on how the site stores passwords and on the attacker's hardware.
Need a random pick for something other than a password? The random picker draws names or numbers from a list. All free online tools on Calterix run in the browser.
Back to the calculator
Main toolPassword generator: strong and randomRandom passwords and passphrases with an entropy meterRelated calculators
- Scientific calculator online: Sin, cos, log, roots, powers, and percent, in degrees or radians
- Random name picker, numbers and teams: Random names, numbers, and even teams
- Number base converter: Binary, octal, decimal, hex, and bases 2 to 36
Frequently asked questions
How many combinations does a 4-digit PIN have?
10,000 combinations, from 0000 to 9999, because each of the 4 positions can hold any of the 10 digits: 10^4.
How many password combinations are possible with 6 numbers?
1,000,000 combinations, or 10^6, when each of the 6 digits is picked from 0 to 9 and repeats are allowed.
How many 8-character passwords are possible?
With lowercase letters only, 26^8 = 208,827,064,576. With all 94 printable keyboard characters, 94^8 = 6,095,689,385,410,816, about 6.1 × 10^15.
What is password entropy?
Entropy is the base-2 logarithm of the number of possible passwords, measured in bits. Each extra bit doubles the count, so 15 random characters from 94 give about 98.3 bits.
How many combinations does a 6-word passphrase have?
With the 7,776-word Diceware list, 7,776^6, about 2.21 × 10^23 passphrases, or 77.5 bits. With a 393-word list the count drops to about 3.68 × 10^15.
Sources and method
- NIST Special Publication 800-63B, Digital Identity Guidelines: Authentication
- Diceware word list (7,776 words, five dice rolls per word)
Every calculation on this page was checked against hand-worked examples. See the Calterix methodology.