Password Entropy Explained: How Strong Is Your Password, Really?
How password strength is actually measured: the entropy formula, a crack-time table for random passwords and passphrases, why human-chosen passwords score far lower, and current NIST rules.
By Abdessamad Bettal··6 min read
Key takeaways
- For a randomly generated password, entropy = length × log₂(alphabet size). Each bit doubles the attacker's work.
- A random 12-character password from all 94 printable ASCII characters has 78.7 bits; six words from the 7,776-word EFF Diceware list have 77.5 bits — about the same strength, but far easier to type.
- The formula only applies to passwords chosen by a random generator. Human-chosen passwords have much less entropy than their length suggests, because attackers guess common patterns first.
- Aim for ≥ 80 bits for important accounts and ≥ 128 bits for keys and secrets that must resist offline attack for decades.
- NIST SP 800-63B (2025 revision) requires at least 15 characters for passwords used without MFA, and prohibits forced composition rules and periodic resets.
"Use at least one uppercase letter, a number and a symbol" produces passwords like Summer2026! — which satisfies every rule and is cracked in minutes. Password strength isn't about which characters appear; it's about how many guesses an attacker needs. Entropy is the way to count that.
The formula
If a password is chosen uniformly at random from N possible symbols, L times, the number of possible passwords is N^L. Entropy expresses that in bits:
H = L × log₂(N) bits
12 characters from 94 printable ASCII symbols:
H = 12 × log₂(94) = 12 × 6.555 = 78.7 bitsEvery additional bit doubles the search space. On average an attacker finds the password after searching half of it, so the expected work is 2^(H−1) guesses. The symbols don't have to be characters — for a passphrase, N is the number of words in the list and L is the number of words.
| Alphabet | Size (N) | Bits per symbol |
|---|---|---|
| Digits 0–9 | 10 | 3.32 |
| Lowercase a–z | 26 | 4.70 |
| Letters + digits | 62 | 5.95 |
| Printable ASCII | 94 | 6.55 |
| Words, 642-word list (our generator) | 642 | 9.33 |
| Words, EFF Diceware list | 7,776 | 12.92 |
Notice that adding a character to the length gains more than adding character classes. Going from lowercase to full ASCII raises bits per symbol from 4.7 to 6.6 (×1.4); going from 12 to 16 characters multiplies total bits by 1.33 — and both together compound.
How long would it take to crack?
Crack time depends on how fast an attacker can test guesses, which depends on how the password was stored. Two reference speeds, for an attacker who has stolen a password database:
- 100 billion guesses/second — a fast, unsalted hash such as MD5 or SHA-1 on a small GPU rig.
- 10,000 guesses/second — a properly tuned slow hash like bcrypt or Argon2id, where each guess is deliberately expensive.
| Randomly generated password | Entropy | Fast hash (10¹¹/s) | Slow hash (10⁴/s) |
|---|---|---|---|
| 8 lowercase letters | 37.6 bits | 1 second | 121 days |
| 8 printable ASCII | 52.4 bits | 8.5 hours | 9,658 years |
| 12 lowercase letters | 56.4 bits | 5.5 days | 151,198 years |
| 12 letters + digits | 71.5 bits | 511 years | 5 billion years |
| 12 printable ASCII | 78.7 bits | 75,405 years | 7.5 × 10¹¹ years |
| 16 printable ASCII | 104.9 bits | 5.9 × 10¹² years | 5.9 × 10¹⁹ years |
| 4 EFF Diceware words | 51.7 bits | 5.1 hours | 5,793 years |
| 6 EFF Diceware words | 77.5 bits | 35,027 years | 3.5 × 10¹¹ years |
| 8 words, 642-word list | 74.6 bits | 4,572 years | 4.6 × 10¹⁰ years |
Two lessons stand out. First, how the site stores your password matters as much as the password: the same 8-character password goes from 8.5 hours to nearly ten thousand years. Second, around 75–80 bits a randomly generated secret is out of reach of offline attacks even against fast hashes, with a large margin for faster hardware.
Why your own password has less entropy than you think
The formula assumes every symbol was picked at random. Humans don't do that. Tr0ub4dor&3 is 11 characters from a 94-symbol alphabet — 72 bits by the formula — but it's a dictionary word with predictable substitutions, a capital first letter and a symbol-plus-digit suffix. Cracking tools try exactly those patterns first; the well-known estimate from XKCD #936 puts it at about 28 bits.
Attackers order their guesses by likelihood:
- Passwords from previous breaches — billions of real passwords are public.
- Dictionary words, names, sports teams, dates, keyboard walks (
qwerty,1qaz2wsx). - Mangling rules: capitalise the first letter, append
1,!or a year, swapa→@,o→0,e→3. - Combinations of two or three words.
- Only then, brute force.
Entropy only measures the generator, not the output. A password-strength meter that estimates human-chosen passwords has to model these patterns (Dropbox's open-source zxcvbn is the best-known example). The only way to get the formula's number is to let a random generator choose for you.
Passwords vs passphrases
A passphrase is a sequence of randomly chosen words: amber-quarry-velvet-noted-ripple-anchor. Each word drawn from an N-word list adds log₂(N) bits. With the classic EFF Diceware list (7,776 words — one for each combination of five dice), every word is worth 12.9 bits, so six words give 77.5 bits, on par with a random 12-character password.
Our passphrase generator uses a curated list of 642 short, distinct, easy-to-type words, worth 9.33 bits each. That means you need more of them: 8 words for ~75 bits, 9 words for ~84 bits. The generator shows the exact entropy for whatever settings you choose, so you never have to guess.
Passphrases win when you have to type or remember the secret: your password manager's master password, your laptop login, a disk-encryption passphrase. For everything else, let a password manager generate and store a random 16–20 character password you never see.
How much entropy do you need?
| Use | Target | Example |
|---|---|---|
| Online account behind a password manager | ≥ 80 bits | 16 random characters |
| Password manager master password | ≥ 80 bits | 6+ Diceware words or 9 words from our list |
| Disk / backup encryption passphrase | ≥ 90 bits | 7 Diceware words |
| API keys, tokens, encryption keys | 128–256 bits | 32 random bytes from a token generator |
| Wi-Fi (WPA2/WPA3) passphrase | ≥ 70 bits | 12+ random characters or 6 Diceware words |
What NIST says now
The 2025 revision of NIST SP 800-63B, the U.S. government's digital identity guideline that much of the industry follows, codified what entropy math has implied for years:
- Passwords used as the only authentication factor must be at least 15 characters; at least 8 when combined with MFA.
- Systems should allow passwords of at least 64 characters and accept all printable characters, including spaces and Unicode.
- No composition rules — don't force a mix of uppercase, digits and symbols.
- No mandatory periodic changes — only force a reset when there's evidence of compromise.
- Check new passwords against a blocklist of breached and common passwords.
- Allow paste and password managers.
Generating strong secrets
Use a cryptographically secure random number generator — in browsers that's crypto.getRandomValues, never Math.random(). And avoid the modulo bias of random() % N, which makes some characters slightly more likely. Our password generator uses the browser's CSPRNG with rejection sampling, so every character is exactly equally likely, and shows the resulting entropy live. Everything is generated locally; nothing is sent or stored.
Frequently asked questions
How many bits of entropy is a strong password?
+
Around 80 bits or more for important accounts, which a random 13-character ASCII password or 6 Diceware words provides. Cryptographic keys and API tokens should have 128 bits or more.
How do you calculate password entropy?
+
For a randomly generated password, multiply the length by log2 of the alphabet size. A 16-character password from 94 printable ASCII characters has 16 × 6.555 = 104.9 bits. This only applies to random passwords, not ones a person invented.
Is a passphrase more secure than a password?
+
At equal entropy they are equally strong. Passphrases are easier to remember and type, so they suit master passwords and device logins. Six words from the 7,776-word Diceware list give about 77.5 bits, comparable to a random 12-character password.
Does adding symbols make a password stronger?
+
Slightly, if the password is random: it raises the alphabet from 62 to 94 symbols, adding about 0.6 bits per character. Adding length helps more. For human-chosen passwords, a predictable symbol like a trailing exclamation mark adds almost nothing.
What is the minimum password length according to NIST?
+
The 2025 revision of NIST SP 800-63B requires at least 15 characters for passwords used as the only authentication factor, and at least 8 characters when the password is combined with multi-factor authentication.
Tools used in this guide
Password Generator
High-entropy passwords with a live strength meter
DICEWARE · WORDSPassphrase Generator
Memorable word-based passphrases, diceware style
TOKEN · 256-BITAPI Key Generator
Random tokens in hex, Base64, or prefixed formats
ARGON2 · MEMORY-HARDArgon2 Hasher
The password-hashing competition winner, memory-hard
Encoding vs Encryption vs Hashing: The Difference, With Examples
Encoding, encryption and hashing all turn data into gibberish, but only one keeps secrets. Learn the difference with real Base64, AES and SHA-256 examples and when to use each.
6 MIN READKDF · PASSWORDSArgon2id vs bcrypt vs scrypt vs PBKDF2: Password Hashing in 2026
Which password hashing algorithm should you use? A practical comparison of Argon2id, bcrypt, scrypt and PBKDF2 with OWASP-recommended parameters, hash formats, pitfalls and migration steps.
6 MIN READJWT · WEB SECURITYHow to Decode a JWT — and 7 Security Mistakes That Get Tokens Forged
What's inside a JSON Web Token, how to decode and verify one safely, and the real-world JWT vulnerabilities — alg:none, key confusion, weak secrets — with the fix for each.
6 MIN READ