Skip to content
Free tool

Password entropy calculator

Password entropy measures how many guesses an attacker needs, expressed in bits. For a randomly generated password it is length multiplied by log2(pool size): a 16-character password from an 86-symbol pool carries 103 bits. Every extra bit doubles the work required to break it.

16
Character sets (95 symbols)

entropy = 16 x log2(95)

105.1 bits

4.4 x 10^31 possible passwords

Very strong105.1 bits of entropy

Offline attack on a fast hash: 7 trillion years

Beyond the reach of brute force. Your risk is now phishing and reuse, not guessing.

Throttled login
10^21 years
GPU, fast hash
7 trillion years
GPU, PBKDF2 600k
10^18 years

The formula

For a secret chosen uniformly at random, entropy in bits is:

entropy = length x log2(pool size)

The pool size is how many distinct symbols each position could hold: 10 for digits, 26 for lowercase, 52 for mixed case, 62 with digits added, and 86 once you include a typical symbol set. For a passphrase the same formula applies with words in place of characters, so five words from a 1,296-word list gives 5 x log2(1296) = 51.7 bits. If the concept itself is new, start with the definition of password entropy.

The reason bits are used rather than raw combination counts is that bits keep the doubling visible. Every extra bit doubles the attacker's work. Going from 50 to 60 bits is a thousandfold increase, even though the numbers look adjacent.

Entropy of common secrets

Entropy examples for common secrets
SecretPoolEntropy
A 4-digit PIN10 digits13.3 bits
A 6-digit PIN10 digits19.9 bits
8 lowercase letters26 letters37.6 bits
8 mixed characters86 symbols51.4 bits
12 mixed characters86 symbols77.1 bits
16 mixed characters86 symbols102.8 bits
4 random words1,296 words41.4 bits
6 random words1,296 words62.0 bits
A 128-bit encryption key2 values per bit128.0 bits

The assumption that breaks everything

This formula is only valid when the secret was chosen at random. That single condition is where nearly every misuse of entropy comes from.

Consider Tr0ub4dor&3. Eleven characters from an 86-symbol pool calculates to 70.7 bits, which sounds excellent. Its real strength is closer to 28 bits, because an attacker does not guess character by character — they take a dictionary word, apply the standard substitutions, capitalise the first letter, and append a symbol and a digit. That is a search space of a few hundred million, not 1021.

The practical rule: if you chose it, you cannot use this formula. Use the pattern-aware strength checker instead, which estimates the cost of the shortcut rather than the cost of brute force.

How key stretching adds free entropy

Entropy is only half of the equation. The other half is how expensive each guess is, which is set by how the site hashes your password. Running PBKDF2 at 600,000 iterations slows an attacker by a factor of 600,000 — worth about 19 extra bits, at a cost to you of a fraction of a second.

That is why a well-designed system with a 60-bit password can be safer than a badly designed one with an 80-bit password. Read why MoolKey uses 600,000 iterations.

Password entropy FAQ

What is password entropy?
Password entropy is the number of guesses an attacker needs on average to find your password, expressed in bits. Each bit doubles that number. A password with 40 bits of entropy takes roughly a trillion guesses; one with 80 bits takes a trillion trillion. It is the only strength measure that means anything precise.
How do you calculate password entropy?
For a randomly generated password, entropy in bits equals length multiplied by log2 of the pool size. A 12-character password drawn from 86 possible symbols is 12 x log2(86) = 77.2 bits. For a passphrase, it is the word count multiplied by log2 of the wordlist size.
How many bits of entropy is enough?
Aim for at least 60 bits on ordinary accounts and 80 or more on anything valuable. Below 45 bits, an attacker with a stolen database and a GPU wins. Above 100 bits, brute force is off the table entirely and your risk shifts to phishing, malware, and reuse.
Does this formula work for a password I made up myself?
No, and this is the single most misused idea in password security. The formula assumes every character was chosen uniformly at random. A password you invented follows patterns an attacker models directly, so its real entropy is a small fraction of the calculated figure.
Why is entropy measured in bits?
Because bits make the doubling explicit. Adding one bit doubles the attacker's work; adding ten bits multiplies it by about a thousand. Expressing strength as a raw combination count produces numbers too large to compare, while bits stay in a readable range from roughly 10 to 256.

Make one account easier today.

Start with the password you keep reusing or the bank card that still shares a PIN. MoolKey is free, and you do not need to move everything at once.

Free forever Works offline Phone or computer