Password Generator formula — how it actually works
Every password the Password Generator makes comes from two short lines of maths. There is no hidden step and no secret list of words: the tool counts how many characters are available, raises that count to the power of the length, and turns the result into bits. Once you can do those two lines, you can check any strength figure the tool shows you.
combinations = pool size ^ length entropy in bits = length × log2(pool size)
At a glance
Step one: count the pool
The pool is every character the tool is allowed to pick. With all four sets ticked it is 26 uppercase letters plus 26 lowercase letters plus 10 digits plus 27 symbols, which is 89 characters. The symbols are ! @ # $ % ^ & * ( ) - _ = + [ ] { } ; : , . < > ? / and ~, which is 27 in total. Untick a set and the pool shrinks: without symbols it is 62, letters only it is 52, and lowercase only it is 26.
Step two: raise the pool to the power of the length
The number of possible passwords is the pool size raised to the power of the length, because each of the length positions can hold any of the pool characters. For the default, that is 89 to the power of 16, which is 15,496,731,425,178,936,435,099,327,730,561 — about 1.5 followed by 31 zeroes. For a 12-character password it is 89 to the power of 12, which is 246,990,403,565,262,140,303,521, about 2.5 followed by 23 zeroes.
Step three: turn the count into bits
Counts that big are hard to compare, so the tool turns them into bits: entropy equals length times log base 2 of the pool size. Log base 2 of 89 is about 6.48, because 2 to the power of 6.48 is about 89, so each character adds about 6.48 bits. A 16-character password has 16 × 6.48, which is about 104 bits, and the tool rounds to the nearest whole bit when it shows the figure.
The table for the default pool of 89
At 8 characters the entropy is about 52 bits, at 12 characters about 78 bits, at 16 characters about 104 bits, at 20 characters about 130 bits, at 32 characters about 207 bits, and at 64 characters about 414 bits. The pattern is a straight line: every extra character adds the same 6.48 bits, so doubling the length doubles the bits. That is why going from 8 to 16 characters is worth far more than any clever choice of symbols.
Worked example: a 12-character password
Set the length to 12 with all four sets ticked. The pool is 89, the combinations are 89 to the power of 12, which is about 2.5 followed by 23 zeroes, and the entropy is 12 × 6.48, which is about 78 bits. A computer trying a billion guesses a second would need about 7.8 million years to try them all, which is why 12 characters is already strong and 16 is comfortable. An illustrative 12-character example of that shape would be 12 characters drawn from the same 89, but the tool will make a real one for you in one click.
The common mistake
People add the pool sizes instead of multiplying the bits, or they assume doubling the pool doubles the strength. It does not: doubling the pool from 45 to 89 adds only one bit per character, while adding one character adds 6.48 bits. Length is the lever that moves the answer; the pool is a useful extra, not the main event.
Frequently asked questions
What is the Password Generator formula?
Combinations = pool size to the power of length, and entropy in bits = length × log2(pool size). With the default pool of 89, each character adds about 6.48 bits.
How many characters are in the pool?
89 with all four sets ticked: 26 uppercase, 26 lowercase, 10 digits and 27 symbols.
How many bits is a 12-character password?
About 78 bits. 12 × 6.48 is 77.7, rounded to 78, and 89 to the power of 12 is about 2.5 followed by 23 zeroes.
Why does doubling the length double the bits?
Because entropy is length times a fixed number, about 6.48 bits per character, so twice the length gives twice the bits.
More guides on the Password Generator
- How to use the Password Generator — step by step
- Password Generator explained with worked examples
- Password Generator for beginners — start here
- Common mistakes people make with the Password Generator
- Password Generator vs doing it by hand — which is faster?
- Password Generator — the complete guide
- How to get an accurate result from the Password Generator
- Password Generator for students — with examples
- Password Generator for homeowners and DIYers
Try the Password Generator — free, in your browser.