Password Entropy Explained

The single number most password strength meters are built on โ€” what it measures, how to calculate it by hand, and where it falls short.

What Entropy Measures

Entropy measures how unpredictable a password is, expressed in bits. Each bit doubles the number of possible values an attacker would need to try. It answers one specific question: if this password were generated by picking each character independently and uniformly at random from a defined pool, how many possible passwords could have resulted?

The Formula

Entropy (bits) = length ร— logโ‚‚(pool size)

Where "pool size" is the number of distinct characters available at each position. A password using only lowercase letters has a pool of 26; adding uppercase, digits and symbols brings it to roughly 94.

Worked Example

A 16-character password using all four character types (uppercase, lowercase, digits, symbols โ€” pool of 94):

16 ร— logโ‚‚(94) = 16 ร— 6.55 โ‰ˆ 105 bits

This means there are roughly 2ยนโฐโต possible passwords matching that description โ€” an astronomically large number, larger than the number of atoms in the observable universe multiplied many times over.

Pool Size by Character Type

Character setPool sizeBits per character
Lowercase only (a-z)264.70
Lowercase + uppercase (a-zA-Z)525.70
Alphanumeric (a-zA-Z0-9)625.95
All types (a-zA-Z0-9 + symbols)~946.55
Digits only (0-9)103.32

Entropy Thresholds

EntropyRatingGuidance
< 28 bitsVery WeakCrackable in seconds to minutes โ€” change immediately
28-39 bitsWeakInadequate for any real account
40-59 bitsFairMarginal โ€” acceptable only for the lowest-risk, throwaway accounts
60-79 bitsStrongAdequate for most everyday accounts
80+ bitsVery StrongRecommended for high-value or sensitive accounts

Why Entropy Isn't the Whole Story

The formula assumes true randomness. It calculates the maximum possible unpredictability for a password of that length and pool โ€” not the actual unpredictability of a specific password a human chose.

Password123! has a pool of 94 characters and a length of 12, giving a theoretical entropy of ~79 bits โ€” "Strong" by the numbers. In reality, it's one of the most commonly used passwords in every breach database, crackable in milliseconds by any tool that checks common passwords first. The formula doesn't know that; it only knows length and pool size.

This is exactly why every generator on this site uses crypto.getRandomValues() for actual random selection โ€” entropy calculations are only meaningful when the password truly was generated with uniform randomness, which a human typing at a keyboard cannot reliably replicate.

Calculating Entropy for a Passphrase

The same formula applies, but the "pool" is the wordlist size and the "length" is the word count:

Entropy (bits) = word count ร— logโ‚‚(wordlist size)

A 5-word passphrase from a 7,776-word list: 5 ร— logโ‚‚(7776) = 5 ร— 12.9 โ‰ˆ 65 bits. See Password vs Passphrase for a full comparison.

Frequently Asked Questions

60+ bits is strong for everyday accounts; 80+ bits is recommended for high-value accounts. Below 40 bits should be treated as weak regardless of appearance.

No. Entropy is a theoretical measure based purely on length and pool size assuming true randomness. A password can have high theoretical entropy and still appear in breach databases.

Entropy assumes uniform random selection. A human-chosen password's real unpredictability is usually far lower than its theoretical entropy, because human choices cluster around familiar words and patterns that cracking tools specifically target.

Calculate the entropy of a real password

See the exact bits and pool size for any password, in your browser.

Use the Entropy Calculator โ†’

Related Guides