Password entropy explained: how many bits is strong enough?
7 min read · 7 sections
A password with 40 bits of entropy falls in under two minutes to an attacker making ten billion guesses a second. At 80 bits the same attacker needs about 3.8 million years. Password entropy is the number that separates those two outcomes, and it is easy to compute once you know what it counts.
I count bits, not symbols. When I audit a password policy or explain a result from the password generator, I turn everything into bits first, because bits can be compared across a random string, a passphrase and a PIN. The next sections show how the number is built, which shortcuts people take that distort it, and how many bits are enough for each job.
One bit is one doubling
Entropy in bits is the base-2 logarithm of the number of equally likely possibilities. A password worth 10 bits is one of 1,024 equally likely strings, 20 bits is about a million, 30 bits about a billion. Every added bit doubles the number of guesses an attacker may need, and on average they find the answer after trying half of them.
That is why the scale is so steep. Going from 40 to 80 bits does not make a password twice as strong. It multiplies the work by 2⁴⁰, roughly a trillion. A meter that grows in even steps hides this, which is one reason I show the bits and not just a coloured bar.
The formula: length times log₂ of the pool
For a password in which every character is drawn independently and uniformly from a pool of N characters, entropy is length × log₂(N). Sixteen lowercase letters give 16 × 4.70 = 75.2 bits. The per-character values to remember:
| Pool | Size N | Bits per character |
|---|---|---|
| Digits | 10 | 3.32 |
| Lowercase letters | 26 | 4.70 |
| Lowercase and digits | 36 | 5.17 |
| Upper and lower case | 52 | 5.70 |
| Letters and digits | 62 | 5.95 |
| Letters, digits and 26 symbols | 88 | 6.46 |
| All printable ASCII, no space | 94 | 6.55 |
| One word from the EFF large list | 7,776 | 12.92 |
The formula only holds when the choice really is random. A human who "picks something random" does not draw uniformly, and the number you compute from the pool overstates what the password is worth. The generator draws with crypto.getRandomValues and rejects biased values, which is what makes the formula true for its output.
Length buys more than variety
People ask whether adding a symbol or adding a character helps more. For a fixed budget of typing, a longer string almost always wins, and the table shows why. All values assume random characters.
| Length | Lowercase (26) | Letters and digits (62) | With 26 symbols (88) |
|---|---|---|---|
| 8 | 37.6 | 47.6 | 51.7 |
| 12 | 56.4 | 71.5 | 77.5 |
| 16 | 75.2 | 95.3 | 103.4 |
| 20 | 94.0 | 119.1 | 129.2 |
Sixteen lowercase letters (75.2 bits) come close to twelve characters from the full set (77.5 bits, or 77.05 when every type is required). Twenty lowercase letters reach 94.0, well beyond twelve of anything. So when a site lets you go long, go long; when it caps the length, widen the alphabet instead. The same trade-off drives the site-rule settings I describe in how long a password should be.
Required character types remove strings
"Must contain upper case, lower case, a digit and a symbol" sounds like it adds strength. For a random generator it does the opposite: it throws away every string that misses a class. The exact count comes from inclusion and exclusion over the classes, and the tool uses it whenever "require every selected type" is on.
| Length | Without the rule | Every type required | Loss |
|---|---|---|---|
| 4 | 25.84 bits (59,969,536 strings) | 22.01 bits (4,218,240 strings) | 3.83 bits |
| 12 | 77.51 bits | 77.05 bits | 0.46 bits |
| 16 | 103.35 bits | 103.11 bits | 0.24 bits |
At length 4 the rule removes about 93 % of all strings. At 16 it is a rounding error. The honest conclusion is that composition rules cost almost nothing on a long random password and a lot on a short one, and that they were never what protected anyone. NIST's current guidance for verifiers says not to impose them; the details are in the length guide and in the NIST text.
From bits to time: four attack speeds
Bits mean little until they are tied to a guessing speed. I use four, taken from the reference scenarios in the zxcvbn paper plus one multi-GPU case. Worst case is 2^bits guesses divided by the speed; on average the attacker finds it in half that time.
- Online, throttled: 100 guesses per hour, a login form with rate limiting.
- Offline, slow hash: 10⁴ guesses per second, a bcrypt-type hash after a leak.
- Offline, fast hash: 10¹⁰ guesses per second, an unsalted fast hash after a leak.
- Multi-GPU rig, fast hash: 10¹² guesses per second.
For scale, security researchers measured a single RTX 4090 at about 300 billion NTLM guesses per second and about 200 thousand per second on bcrypt, as reported by TechSpot. Those speeds are assumptions to reason with, not predictions, and hardware only gets faster.
| Bits | 100 per hour | 10⁴ per second | 10¹⁰ per second | 10¹² per second |
|---|---|---|---|---|
| 40 | 1.3 million years | 3.5 years | 1.8 minutes | about 1 second |
| 50 | 1.3 billion years | 3,570 years | 1.3 days | 18.8 minutes |
| 60 | 1.3 trillion years | 3.7 million years | 3.7 years | 13.3 days |
| 70 | 1.35 quadrillion years | 3.7 billion years | 3,740 years | 37 years |
| 80 | 1.4 quintillion years | 3.8 trillion years | 3.8 million years | 38,300 years |
| 100 | 1.45 septillion years | 4.0 quintillion years | 4.0 trillion years | 40 billion years |
| 128 | 3.9 × 10³² years | 1.1 × 10²⁷ years | 1.1 × 10²¹ years | 1.1 × 10¹⁹ years |
How many bits is strong enough?
The answer depends on where the attacker can guess. The site's own login form throttles guesses, so the online column is the one that matters for a password that only ever faces that form. Once a hash leaks, throttling is gone and the offline columns apply. These are the targets I give people, and they are my judgement, not a standard.
- Under 45 bits: falls to a determined offline attack in hours or less. Acceptable only behind strict lockout, as with a short PIN.
- 60 bits: fine for a throttled login protected by a second factor. A fast-hash leak plus a GPU rig still gets there in days.
- 80 bits and up: my target for anything that guards other secrets, such as a password-manager master password or a disk-encryption passphrase, where an offline attack is the realistic threat.
- 100 bits and up: what the generator gives you by default with sixteen random characters. Beyond this, extra length is margin.
The tool labels results the same way: below 28 Very weak, 28 to 45 Weak, 45 to 60 Fair, 60 to 80 Strong, 80 and above Very strong. Translating a target into a setting is simple division:
| Target bits | Random characters (88-set) | EFF words |
|---|---|---|
| 60 | 10 characters (64.6 bits) | 5 words (64.6 bits) |
| 80 | 13 characters (84.0 bits) | 7 words (90.5 bits) |
| 100 | 16 characters (103.4 bits) | 8 words (103.4 bits) |
| 128 | 20 characters (129.2 bits) | 10 words (129.2 bits) |
Six words give 77.55 bits, just under 80, so I round up to seven for a master password. How the word counts work is covered in the passphrase guide.
What entropy does not tell you
Entropy describes a method, not a string. Two limits matter in practice.
- It assumes randomness. "Summer2024!" has eleven characters and four types, so a pool-based meter credits it with 11 × 6.57 = 72.3 bits. An attacker who tries common words with a year and a symbol needs about two million guesses, which is 20.9 bits. The gap between those two numbers is the whole reason I wrote a guide on checking passwords safely.
- It ignores reuse. A 103-bit password that you also use on a site that later leaks is worth nothing on every other site. Credential stuffing never guesses; it replays.
The practical routine is short: let a generator draw the password, trust the bits it computes from the settings rather than from the characters that happen to appear, store it in a password manager, and add a second factor where offered.
Quick answers
How many bits of entropy is a strong password?
For a login that throttles guesses and has a second factor, about 60 bits is reasonable. For a password-manager master password or a disk-encryption passphrase, I aim for 80 bits or more, because an offline attack on a leaked hash cannot be throttled.
How is password entropy calculated?
For a random password it is the length multiplied by log2 of the number of possible characters. A passphrase of random words from a 7,776-word list is the word count multiplied by 12.925 bits.
Do special characters make a password stronger?
Each symbol widens the pool, so a character from the 88-character set is worth 6.46 bits against 4.70 for a lowercase letter. Adding length usually gains more: four extra lowercase letters add 18.8 bits.
Why does a meter say 72 bits for Summer2024! when it is far weaker?
Meters that count character types assume every character is random. Common words, years and a trailing symbol are patterns an attacker tries first, which puts the real figure near 21 bits.