Password Entropy Explained: How Many Bits Is Safe?
A password with 60 bits of entropy would take millions of years to crack offline — and most human-made passwords don't come close. Entropy measures unpredictability in bits, and it — not length alone, and not "complexity" tricks — decides how long a password survives a brute-force attack. Here is how to calculate it, with real numbers.
What Password Entropy Actually Measures
Entropy (measured in bits) quantifies how many equally likely possibilities an attacker must search through. For a randomly generated password the formula is simple:
Entropy (bits) = L × log₂(N)
where L is the password length in characters and N is the size of the character set it was drawn from. Each character set contributes a fixed number of bits per character:
| Character set | Symbols (N) | Bits per character | |---|---|---| | Lowercase only (a–z) | 26 | 4.70 | | Lowercase + digits (a–z, 0–9) | 36 | 5.17 | | Mixed case + digits (a–z, A–Z, 0–9) | 62 | 5.95 | | All printable ASCII (incl. symbols) | 94 | 6.55 | | Diceware word list (7,776 words) | 7,776 | 12.9 per word |
Two things follow immediately. First, adding a character to the length multiplies the search space far faster than adding symbol types: an extra lowercase letter adds 4.7 bits, while swapping an "a" for an "@" adds almost nothing unless the whole password was re-randomized. Second, entropy is only honest for randomly generated strings. "P@ssw0rd!" technically sits inside a 94-character set, but a human chose it from a tiny pool of predictable patterns, so its real entropy is far lower than the formula suggests.
Why Length Beats "Symbol Soup"
Compare three passwords using the table above:
| Password | Calculation | Entropy | Verdict |
|---|---|---|---|
| P@ssw0rd! (9 chars, human-made) | 9 × 6.55 nominal | ~59 nominal, ~20 real | Weak |
| kx9mq2tf (8 chars, random a–z0–9) | 8 × 5.17 | 41.4 bits | Fair |
| kx9mq2tfw4rd8hnm (16 chars, random a–z0–9) | 16 × 5.17 | 82.7 bits | Excellent |
Crack time depends on the attacker's hardware. A modern GPU rig can test roughly 100 billion (10¹¹) passwords per second against a fast hash like MD5, but only tens of thousands per second against bcrypt or Argon2. At 2⁴⁰ ≈ 1.1 trillion guesses, that is 11 seconds against MD5, but more than 15 hours against bcrypt at 20,000 guesses per second. At 2⁸⁰ ≈ 1.2 × 10²⁴ guesses, even the MD5 rig needs about 384,000 years.
The practical takeaway: aim for at least 60 bits for anything that matters, and 80 bits for accounts you cannot afford to lose.
Step-by-Step: Calculate a Password's Entropy
- Identify the character set N. Lowercase only = 26; add digits = 36; add uppercase = 62; include symbols = 94.
- Compute bits per character. log₂(26) ≈ 4.70, log₂(36) ≈ 5.17, log₂(62) ≈ 5.95, log₂(94) ≈ 6.55.
- Multiply by length. A 12-character lowercase password gives 12 × 4.70 = 56.4 bits. Add digits (N = 36) and it jumps to 62 bits without gaining a single character.
- For passphrases, multiply words, not characters. Each word drawn at random from the 7,776-word Diceware list adds 12.9 bits. Four random words = 51.6 bits; five = 64.5 bits; six = 77.5 bits. A "correct-horse-battery-staple" style phrase only works if the words were picked truly at random — "sun-moon-star-love" is a pattern, not entropy.
- Compare against targets. Under 40 bits: crackable in hours. 40–59: days to months against strong hashes, minutes against weak ones. 60–79: the practical sweet spot for daily accounts. 80 and above: reserve for master passwords and encryption keys.
Worked example: a 16-character random string from the 62-character set scores 16 × 5.95 = 95.2 bits — roughly the same as a seven-word Diceware passphrase (90.3 bits), but considerably harder to memorize.
Is 80 bits overkill for a normal website?
For most accounts, 60 bits is a reasonable floor and 80 is genuinely nice-to-have — a database breach will leak the hash long before either is brute-forced offline. Where 80+ really matters is passwords that protect other secrets: your password manager's master password, full-disk encryption, and any account with recovery powers over your email or 2FA.
Do "add a symbol and a capital" rules actually help?
Only marginally. Forcing "Password1!" into a 62-character set adds about one bit of nominal entropy, while the predictable pattern it creates can reduce real entropy. NIST's SP 800-63B guidelines dropped mandatory composition rules for exactly this reason and now recommend length plus screening against breached-password lists instead. A 14-character random string beats a 9-character "complex" one every time.
How does a password manager fit in?
A manager generates exactly what this math wants: uniform random characters from the full character set. A default 20-character generated password at 62 symbols reaches 119 bits — beyond any realistic attack — while you only need to remember one high-entropy master passphrase of five or six Diceware words.
The Practical Shortcut
Doing log₂ by hand gets old fast. The better workflow: generate the password with a proper random generator and let a tool do the counting and scoring. The Utilvy Password Generator creates uniform random passwords and passphrases of any length with instant entropy estimates, and its companion UUID Generator covers the same randomness needs for database keys and API tokens. Set it to 16+ characters once, and the entropy math takes care of itself.