Password Entropy Calculator
Enter a password length and pick the character set to estimate its entropy in bits.
What the number means
Enter a length and a character set and the tool returns the search space in bits. The defaults are 12 characters drawn from letters and digits, a set of 62, which gives 71.45 bits. That figure is the base-two logarithm of the number of possible passwords, so it says an attacker facing a truly random 12-character string has about 271 candidates to try.
Deriving the formula
A password of length L drawn from a set of N symbols has NL possible strings if every character is independent and equally likely. Entropy is the base-two logarithm of that count, log2(NL) = L × log2(N). The multiplication is why length scales the figure linearly while each added symbol in the alphabet adds only a fraction of a bit.
The four logarithms are worth memorising: 26 gives 4.70 bits per character, 52 gives 5.70, 62 gives 5.95 and 95 gives 6.57. Jumping from lowercase to all printable symbols buys 1.87 bits per character, while going from 12 to 14 characters at 62 symbols buys 11.9 bits. Adding length is usually the cheaper move.
Why bits rather than a raw count. A 71.45-bit figure corresponds to 271.45 ≈ 3.2 × 1021 guesses, a number too large to read at a glance. Adding one bit doubles the work, so a 72-bit password is twice as hard as a 71-bit one, and the scale stays manageable no matter how long the password.
The four character sets
The tool offers 26 lowercase letters, 52 mixed case, 62 letters plus digits, and 95 printable ASCII characters. Real alphabets are not perfectly uniform, but for a randomly generated password the counts are accurate, and 95 is the full set of keys on a US keyboard excluding control characters.
Worked example at the defaults
Length 12, set size 62. log2(62) = ln(62) ÷ ln(2) = 4.1271 ÷ 0.6931 = 5.9542 bits per character. Multiply by 12: 12 × 5.9542 = 71.45 bits. That is the output at the defaults, and it clears the 60-bit mark usually treated as strong for online guessing.
Put a time on it. An offline attacker with a fast hash and a GPU rig might test 1010 guesses per second. Half the search space is 1.6 × 1021 guesses, which takes 1.6 × 1011 seconds, or roughly 5,100 years. Drop to 8 characters at the same settings and entropy falls to 47.63 bits, which the same rig exhausts in about 3.9 hours.
The four-character difference between 8 and 12 multiplies the work by 223.8, about 14 million times. That is the whole argument for length in one comparison: no symbol set compensates for four missing characters.
| Length | Lowercase (26) | Mixed (52) | Alnum (62) | Full ASCII (95) |
|---|---|---|---|---|
| 8 | 37.6 | 45.6 | 47.6 | 52.6 |
| 10 | 47.0 | 57.0 | 59.5 | 65.7 |
| 12 | 56.4 | 68.4 | 71.5 | 78.8 |
| 16 | 75.2 | 91.2 | 95.3 | 105.1 |
| 20 | 94.0 | 114.0 | 119.1 | 131.4 |
Read across the 12-character row and the spread is 22.4 bits from the weakest set to the strongest, a factor of about 5.6 million in guesses. Read down the alnum column and the same 12 extra characters from 8 to 20 add 71.5 bits, a factor of 3 × 1021. Length dominates.
What the estimate cannot see
- Dictionary words: “correcthorsebattery” is 21 characters but maybe 40 bits, not 125, because the words are guessable
- Substitutions: P@ssw0rd is not 8 random symbols, since leetspeak rules are baked into every cracking tool
- Keyboard walks: qwertyuiop looks long but sits near the top of every wordlist
- Reuse: a 71-bit password shared across ten sites is one breach away from worthless
- Dates and names: a birthday or surname drops the effective space to a few thousand candidates
The formula measures a random process, not a human one. If you generated the string with a password manager or dice, trust the figure. If you invented it, subtract heavily: a memorable phrase of four common words carries roughly 44 bits no matter how many characters it spans, because the attacker guesses word combinations rather than characters.
Entropy bands in practice
| Entropy | Guesses to crack | Verdict |
|---|---|---|
| Under 28 bits | Under 268 million | Instant on any hardware |
| 28–35 bits | 268 million to 34 billion | Minutes to hours offline |
| 36–59 bits | 34 billion to 5.8 × 1017 | Adequate online, weak offline |
| 60–79 bits | 5.8 × 1017 to 6 × 1023 | Strong for most accounts |
| 80–127 bits | 6 × 1023 and up | Strong against offline attack |
| 128+ bits | Astronomically large | Resists any foreseeable search |
The 60-bit line matters because it separates an online attacker, throttled to a few guesses per second by the login form, from an offline attacker holding a stolen hash and running billions of guesses per second. A 50-bit password survives the first scenario and fails the second, which is why the same password can feel safe on a bank site and be trivially broken in a leaked database.
Common mistakes
- Treating entropy as a strength guarantee: it is an upper bound that assumes true randomness
- Assuming symbols help more than length, when 62 symbols at 12 characters already beat 26 at 14
- Ignoring the hash: bcrypt with a work factor can turn a 40-bit password into a multi-year offline attack
- Counting a passphrase by characters instead of by the words an attacker would try
- Believing a password meter that scores P@ssw0rd highly because it sees four character classes
Entropy is not the strength ceiling
Entropy bounds the search, but the system around the password can lower the real cost or raise it. A slow hash such as Argon2 multiplies the attacker’s per-guess cost by thousands, so a 50-bit password behind Argon2 can outperform a 70-bit password behind unsalted SHA-256. Conversely, a breach that leaks a plaintext password makes the bit count irrelevant. Treat the number as one input to a decision, not the decision itself.
Choosing a target
For anything that matters, generate 16 characters from the full 95-symbol set, which gives 105 bits and leaves margin for a future where GPUs are faster. Where a site caps length at 12, use all four classes and accept 78.8 bits as the ceiling. Never reuse a generated string across sites, and store it in a manager so length stops competing with memory.
Frequently asked questions
What is password entropy?
A measure of password strength in bits, equal to the base-two logarithm of the number of possible strings. Each extra bit doubles the guesses an attacker needs, and 12 characters from 62 symbols gives 71.45 bits.
How is entropy calculated?
Multiply the password length by log2 of the character set size. For 12 characters and 62 symbols: 12 × 5.954 = 71.45 bits.
Why do random passwords matter?
The formula assumes each character is independent and equally likely. A human-chosen 12-character password with a word and a year may carry 30 bits rather than 71, because attackers try patterns first.
How many bits is a 12-character password?
56.4 with lowercase only, 68.4 with mixed case, 71.45 with letters and digits, and 78.8 with all printable symbols.
Is 71 bits of entropy enough?
For most accounts, yes. It is 3.2 × 1021 combinations, which at 1010 guesses per second takes about 5,100 years to search half the space.
How much does one extra character add?
About 5.95 bits at 62 symbols, which doubles the search space every 1.2 characters. Twenty characters at 62 symbols gives 119.1 bits.
Does a longer password always beat a more complex one?
Usually. Going from 26 to 95 symbols adds 1.87 bits per character, while adding two characters at 62 symbols adds 11.9 bits. Length wins unless the length is capped.
Why does my password manager show a different score?
Managers often estimate against a dictionary model rather than a pure random-character formula, so a long passphrase scores lower than L × log2N and a random string scores the same.
How long to crack a 71-bit password?
At one billion guesses per second, about 51,000 years for half the space; at ten billion, about 5,100 years. A leaked hash with a fast algorithm is what makes that number shrink, not the password itself.
Method and sources
- Password entropy = length × log₂(charset size).