Skip to content
Password Generator
01 · Learn

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:

Bits per character for common pools
PoolSize NBits per character
Digits103.32
Lowercase letters264.70
Lowercase and digits365.17
Upper and lower case525.70
Letters and digits625.95
Letters, digits and 26 symbols886.46
All printable ASCII, no space946.55
One word from the EFF large list7,77612.92
Bar chart of bits per character: digits 3.32, lowercase 4.70, letters and digits 5.95, 88-character set 6.46, one EFF word 12.92
One random EFF word is worth about two random characters from the full keyboard.

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.

Bits for the same length with different alphabets
LengthLowercase (26)Letters and digits (62)With 26 symbols (88)
837.647.651.7
1256.471.577.5
1675.295.3103.4
2094.0119.1129.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.

What a "one of each type" rule costs a random password (88-character set)
LengthWithout the ruleEvery type requiredLoss
425.84 bits (59,969,536 strings)22.01 bits (4,218,240 strings)3.83 bits
1277.51 bits77.05 bits0.46 bits
16103.35 bits103.11 bits0.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.

Worst-case time to exhaust 2^bits guesses
Bits100 per hour10⁴ per second10¹⁰ per second10¹² per second
401.3 million years3.5 years1.8 minutesabout 1 second
501.3 billion years3,570 years1.3 days18.8 minutes
601.3 trillion years3.7 million years3.7 years13.3 days
701.35 quadrillion years3.7 billion years3,740 years37 years
801.4 quintillion years3.8 trillion years3.8 million years38,300 years
1001.45 septillion years4.0 quintillion years4.0 trillion years40 billion years
1283.9 × 10³² years1.1 × 10²⁷ years1.1 × 10²¹ years1.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:

Smallest setting that reaches a target
Target bitsRandom characters (88-set)EFF words
6010 characters (64.6 bits)5 words (64.6 bits)
8013 characters (84.0 bits)7 words (90.5 bits)
10016 characters (103.4 bits)8 words (103.4 bits)
12820 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.

  1. 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.
  2. 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.

Run the password generator

Keep reading