TechCompare LogoTechCompare

What is password entropy? How to measure password strength in bits

Entropy is the technically correct way to measure password strength, but remember that human-chosen passwords always have lower entropy than their length suggests. Randomness generators give you the entropy you paid for. Humans don't.

Password entropy measures password strength in bits, representing the logarithm (base 2) of the number of possible combinations. A truly random 8-character password from a 95-character set has log2(95^8) ≈ 52 bits of entropy. Adding one bit of entropy doubles the attacker's work. 2^28 (28 bits) is trivial. 2^50 (50 bits) is moderate. 2^80 (80 bits) is strong against any attacker.

By TechCompare · Updated

Security domain
Fundamentals
How passwords and hashing work
Topic focus
Password entropy
password-entropy

How this is calculated

Entropy calculation assumes the password is truly random. Human-chosen passwords have far less entropy than their length suggests because humans are bad at randomness. The password 'Tr0ub4dor&3' looks strong but was generated by a human following predictable patterns (capitalize first letter, common substitutions 0→o, 4→a, & for a, append a symbol and number). Its actual entropy against a targeted attack is much lower than the theoretical 52 bits. The only way to get full entropy is to generate passwords randomly, either from a password manager or with dice for passphrases. This is why password managers that generate random strings give you more security per character than human-chosen passwords of the same length.

Verdict

Entropy in bits is log base 2 of the keyspace, so a truly random 8-character password from 95 printable ASCII characters carries about 52 bits. The trap is human patterns. 'Tr0ub4dor&3' looks strong but follows predictable rules (capitalize first, 0 for o, 4 for a, append a symbol and number), so a targeted attack extracts far fewer bits than the math suggests. Only a password manager or dice gives you the entropy the character count implies.

More Passwords scenarios

Password length guide
Password length is the single most important factor in password strength.
View details ➜
Passphrase vs password
A password is a short string of mixed character types (like Kx9$mQ2!pR).
View details ➜
Password manager guide
A password manager is a single encrypted vault that generates, stores, and autofills strong unique passwords for every account you have.
View details ➜

Frequently asked questions

How do I calculate password entropy in bits?
Take the log base 2 of the keyspace: bits = length × log2(character set size). A random 8-character password from 95 printable ASCII characters works out to about 52 bits. Every added bit doubles the attacker's work, which is why small length increases shift crack time from days to centuries.
Is 50 bits of entropy enough?
For an online service with rate limiting, 50 bits is fine. For an offline hash an attacker can hammer at full speed, 50 bits falls eventually and 80-plus bits is the durable bar. Context decides: a forum password behind a login throttle and the master password to an encrypted vault face completely different attacks, so the entropy they need differs too.
Why is my 'strong-looking' password's entropy lower than the math says?
Because the calculation assumes randomness and humans aren't random. Tr0ub4dor&3 looks like 52 bits but follows predictable rules - capitalize first letter, 0 for o, 4 for a, symbol and digit tacked on at the end - and targeted cracking dictionaries know every one of those habits. True entropy only comes from a generator or dice.