๐Ÿงฎ Password Entropy Calculator

Last updated: May 17, 2026

๐Ÿงฎ 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.

โ€”
bits of entropy
โ€”
Password Length
โ€”
Effective Charset Size (N)
โ€”
Possible Combinations
โ€”
Bits per Character
โ€”
Character Set Breakdown
Crack Time (1B guesses/s)
โ€”
Crack Time (1T guesses/s)
โ€”
โ€”

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.

FAQ

What is password entropy and why does it matter?
Password entropy, measured in bits, quantifies how unpredictable a password is. It is calculated as H = L ร— logโ‚‚(N), where L is the password length and N is the number of unique characters in the set it draws from. Higher entropy means exponentially more guesses are needed to crack the password โ€” every additional bit doubles the attacker's workload.
Is my password sent to a server when I use this calculator?
No. The entire calculation runs in JavaScript inside your browser. No data is transmitted anywhere. You can disconnect from the internet and the tool will still work perfectly.
Why does my 'complex' password score lower than a long simple one?
Because entropy scales linearly with length but only logarithmically with charset size. Doubling your character set (say, from 26 to 52) adds just 1 bit per character. Doubling your password length doubles the total entropy. A 16-character lowercase passphrase often beats an 8-character 'complex' password โ€” this is the core insight behind modern passphrase advice.
What do the crack-time estimates assume?
The estimates model a worst-case offline attack where the attacker has your hashed password and can guess at 1 billion or 1 trillion hashes per second (representing consumer GPU rigs and nation-state clusters respectively). They test half the keyspace on average. These assume the password was chosen randomly โ€” human-chosen passwords with predictable patterns crack much faster.
What entropy level is considered 'safe' for a regular account?
Security researchers generally consider 60 bits acceptable for everyday accounts (email, social media) when combined with good server-side hashing like bcrypt or Argon2. For financial accounts or anything sensitive, aim for 80+ bits. For master passwords on a password manager, target 100+ bits โ€” that is effectively uncrackable with current technology.
Why do the manual charset checkboxes change my result?
By default, the calculator auto-detects which character types appear in your password and uses only those. The checkboxes let you override this โ€” useful if you know a site restricts your password to certain characters, or if you want to model what the entropy would be if you added another character type without retyping the whole password.