For a password chosen at random, strength is arithmetic: how many passwords could the generator have produced? That count, written as a number of bits, is the entropy.
The formula
entropy in bits = length × log2(pool size)
The pool is the set of characters the password can use: 26 lowercase letters, 26 capitals, 10 digits and the symbols. Lowercase, capitals and digits together are 62; adding the 32 printable ASCII symbols makes 94. Each added bit doubles the number of possibilities.
Worked examples
| Password | Pool | Entropy | Average time at 10 billion guesses a second |
|---|---|---|---|
| 8 characters | 62 | 8 × 5.954 = 47.6 bits | about 3 hours |
| 12 characters | 62 | 12 × 5.954 = 71.5 bits | about 5,300 years |
| 12 characters | 94 | 12 × 6.555 = 78.7 bits | about 780,000 years |
| 16 characters | 94 | 16 × 6.555 = 104.9 bits | about 60 trillion years |
The time is half of 2^bits divided by the guess rate: on average an attacker finds the password halfway through the space. The rate of 10 billion a second is an assumption for a fast offline attack on a weakly stored password; online guessing against a login with rate limits is far slower, and a site that stores passwords with a slow hash slows an attacker too.
What this means for length
Length beats variety. Going from 8 to 12 characters of the same 62-character pool adds 24 bits (a factor of about 16 million); adding symbols to an 8-character password adds only about 5 bits. A common target for a random password is somewhere between 12 and 16 characters, and a password manager lets you use even longer ones because you never type them.
The condition that matters
The formula holds only if the password is truly random. “Summer2026!” has 11 characters but is built from a word, a year and a symbol, so an attacker’s list gets there in far fewer guesses than 2^72. Humans are bad at random; a generator that draws every character uniformly with a cryptographic random source is not.
Other habits that matter more than the last bit
Use a different password for every site, and let a manager remember them. A 16-character password reused on two sites is as weak as the weaker site.
Check it on your phone
Password Generator draws uniform random passwords of 8 to 64 characters on your phone, offline, and shows the strength in bits so you can compare it with this table.