๐งฎ Password Entropy Calculator
Measure the exact bit-entropy of any password โ mathematically, in your browser, never sent anywhere.
Your password is never transmitted. All math runs locally.
Password Entropy: The Mathematics of Unpredictability
Most people judge password strength by gut feel โ a capital letter here, a number tacked on the end, an exclamation mark to satisfy a registration form. But there is a precise, mathematical quantity that tells you exactly how hard a password is to guess: entropy, measured in bits. Understanding it changes how you think about security forever.
What Entropy Actually Means
In information theory, entropy quantifies uncertainty. When Claude Shannon published his landmark 1948 paper "A Mathematical Theory of Communication," he defined the entropy of a random variable as the average amount of information produced by its outcomes. For passwords, we borrow this concept to measure how many binary yes/no questions an attacker must answer to identify your specific password from all possible ones.
The formula is elegantly simple:
H = L ร logโ(N)
Where H is entropy in bits, L is the password length in characters, and N is the size of the character set the password draws from. A password of length 8 using only lowercase letters (N = 26) yields H = 8 ร logโ(26) = 8 ร 4.70 = 37.6 bits. Every extra bit doubles the number of guesses required โ so 37.6 bits means an attacker faces roughly 2^37.6, or about 220 billion, possible passwords.
Why Charset Size Matters So Much
Switching from lowercase-only (N = 26) to mixed case (N = 52) adds logโ(52) โ logโ(26) = 1 bit per character. Adding digits to make N = 62 adds another 0.26 bits per character. Adding 32 common symbols brings N to 94, adding roughly 0.60 bits per character. These gains seem small per character, but they compound across the entire password.
An 8-character password with N = 26 has 37.6 bits. The same length with N = 94 has 8 ร logโ(94) = 52.4 bits โ a difference of almost 15 bits. That means the larger charset produces 2^14.8 โ 28,000 times more possible passwords from the same eight keystrokes.
This is why security systems reward complexity: each character type you add multiplies the entire keyspace, not just the per-character count.
Length vs. Complexity: Which Wins?
Both matter, but length scales better. Here is a direct comparison:
- 8-char, all character types (N=94): 52.4 bits โ crackable in hours on modern GPU rigs
- 12-char, lowercase only (N=26): 56.4 bits โ already harder
- 16-char, lowercase only (N=26): 75.2 bits โ Very Strong territory
- 16-char, all types (N=94): 104.8 bits โ effectively uncrackable by brute force
A passphrase like "correct horse battery staple" (the famous XKCD comic example) has 28 characters, all lowercase plus spaces (N = 27). That yields 28 ร logโ(27) = 131 bits โ stronger than most complex 10-character passwords. Length wins the long game because entropy scales linearly with L but logarithmically with N. Doubling the charset size adds logโ(2N) โ logโ(N) = 1 bit per character; doubling the length doubles the total entropy.
The Attacker's Perspective: What Are They Actually Doing?
Entropy is not about online brute force where a server locks you out after three attempts. It models offline attacks โ when a password hash database is breached and an attacker can hash guesses locally at whatever speed their hardware allows. A high-end RTX 4090 GPU can test roughly 170 billion bcrypt-hashed passwords per second against a weak hashing scheme, or about 100,000 per second against bcrypt with a cost factor of 12.
Against a fast hash (MD5, SHA-1 without salting), 50 bits of entropy means an average crack time of 2^49 / 10^11 โ 5,600 seconds โ about 90 minutes. Against bcrypt at cost 12, the same 50-bit password survives for 2^49 / 10^5 โ 5.6 billion seconds, or about 177 years. This is why the hashing algorithm your service uses matters as much as your password strength.
But entropy calculators like this one assume the worst case: an attacker who knows exactly which character sets you used, who is only constrained by how many guesses per second their hardware supports. It is a conservative, mathematically honest model.
Where the Model Breaks Down
The entropy formula assumes your password is drawn uniformly at random from the charset. In practice, humans are terrible random number generators. "P@ssw0rd" has 62.4 bits by charset math (N = 94, L = 8) but sits in every attacker's dictionary. The actual entropy of humanly-chosen passwords is far lower than the formula suggests because we follow predictable patterns: capitalize the first letter, substitute vowels with numbers, end with a symbol.
Real-world password cracking tools like Hashcat and John the Ripper exploit this. They use rule-based transformations ("leetspeak," common suffixes, keyboard walks) to prioritize the fraction of the keyspace that humans actually use. A passphrase assembled from genuinely random dictionary words (using dice or a random number generator) retains its full theoretical entropy precisely because the selection was random.
This is why password managers are not just convenient โ they are mathematically optimal. A manager generating "x7Kq#mNp2@vR" with N = 94 has genuine entropy matching the formula. A human creating "MyDog$Fluffy99!" probably does not.
Practical Entropy Thresholds
Security researchers generally use these benchmarks:
- Below 28 bits: Trivially crackable in seconds even on consumer hardware.
- 28โ40 bits: Weak โ crackable in minutes to hours with modern GPUs.
- 40โ60 bits: Fair โ acceptable for low-stakes accounts with good server-side hashing, but not recommended for sensitive data.
- 60โ80 bits: Strong โ would require significant dedicated hardware and time; fine for most personal accounts.
- 80โ100 bits: Very Strong โ exceeds the capability of any single attacker operating today.
- 100+ bits: Extreme โ safe against coordinated nation-state-level attacks for the foreseeable future.
For context, AES-128 encryption uses a 128-bit key. A password with 128 bits of entropy would be as hard to brute-force as breaking AES itself โ computationally infeasible given the current laws of physics.
Using This Calculator Honestly
This tool gives you the theoretical upper bound on entropy โ the best-case scenario assuming your password was randomly chosen. If you typed it yourself, the real entropy is lower. Use it to understand what your password could achieve, and to compare the impact of adding length versus adding character types. The crack-time estimates assume an attacker is throwing raw guesses, not using dictionary or rule-based attacks.
The most useful action after running this calculator: if your entropy is below 60 bits, switch to a password manager and let it generate something at 100+ bits. Your intuition about "strong" passwords is almost certainly wrong โ the math does not lie.