A password entropy calculator measures how hard a randomly made password is to guess, in bits. Enter the length and the size of the character set, or the number of words in a passphrase, and it gives the entropy, the number of possible passwords and the time it would take an attacker, at a guessing speed you choose, to try half of them.
How to use the password entropy calculator
- Choose random characters or random words.
- Enter the length and the size of the set.
- Optionally set the guesses per second.
- Press Calculate.
What entropy means
Password strength estimates how many trials an attacker would need, on average, to guess a password [1]. For a random password of L symbols from a set of N, the number of possible passwords is N raised to the power L [1]. The entropy is H = log₂(N^L) = L × log₂ N, measured in bits [1]. The logarithm can be to any base, with base 2 giving bits [1]. The calculator shows both numbers.
Counting the guesses
On average, an attacker will have to try half of the possible passwords before finding the right one [1]. A password with 42 bits of entropy would need 2⁴² attempts, which is 4,398,046,511,104, to try all possibilities [1]. Enter a set of 64 symbols and a length of 7 to see that 42-bit case: the calculator gives 4,398,046,511,104 possible passwords. Each extra bit doubles the work.
The character sets
The page mentions the 94 printable ASCII characters [1]. Other common sets are 26 lowercase letters, 52 letters in both cases, 62 letters and digits and 10 digits, which are standard counts that we list ourselves. An 8-character password from all 94 characters has 8 × log₂ 94, about 52.4 bits, and 6.1 × 10¹⁵ possibilities. The same length from lowercase letters only has about 37.6 bits.
Entropy per symbol
Each symbol adds log₂ N bits. A lowercase letter adds 4.7 bits, a letter or digit 5.95, and a printable ASCII character 6.55. To reach a target entropy H, the page gives the length as L = ⌈H ÷ log₂ N⌉, the next whole number above the quotient [1]. For 80 bits from 94 characters, that is ⌈80 ÷ 6.55⌉, which is 13 characters. The calculator works in the other direction, from the length to the bits.
Passphrases
A passphrase made of random words has entropy of the number of words times log₂ of the size of the word list, which follows from the same rule when each word is one symbol, and is our own working. Four words from a list of 7,776 words give 4 × 12.92, about 51.7 bits. Six words give 77.5 bits. Use the second mode to compare a passphrase with a string of random characters of the same strength.
Why it is not the whole story
The formula holds only if each symbol is produced independently, at random [1]. A password that a person chooses, such as a name with a digit at the end, has much less entropy than the length suggests, because some choices are far more likely than others. The page on entropy notes that a measure like this fails to capture the number of guesses needed if the keys are not chosen uniformly [2]. The calculator is for random passwords made by a generator.
Time to guess
The time depends on how fast an attacker can try passwords, which varies enormously with how the password is stored. At a billion guesses per second, half of the 8-character ASCII passwords can be tried in about 35 days. Enter your own figure for the speed to see the time for your case. The speed is an assumption, and a slow hash makes the attack far slower.
Length advice
The page says that NIST recommends passwords of a minimum of 15 characters [1]. Because each added character multiplies the work by N, length is the most powerful way to add strength. A long random passphrase, or a password from a manager, is better than a short complex one. Use different passwords for different sites, and turn on two-factor authentication where it is offered.
Using the calculator
Make your password with a generator, not by hand, and then enter its length and set to see its strength. If you use a password manager, aim for a long random password for each site. For a master password, a passphrase of six random words is a practical choice, which you can check here. Never enter your actual password into a website.
Quick reference
Six random lowercase letters give 28.2 bits, eight random letters and digits 47.6 bits and twelve random printable characters 78.7 bits. A four-word passphrase from a 7,776-word list gives 51.7 bits, and six words 77.5. Each additional bit doubles the number of guesses an attacker needs.
Targets
Aim for at least 60 bits for an account that is protected by a slow hash and two-factor login, and for 80 bits or more for a master password.
Common mistakes
- Using human-made passwords. The formula is for random ones.
- Counting a symbol set you did not use. Use the set that the generator draws from.
- Ignoring how the password is stored. The guessing speed depends on it.
- Entering your real password. Check the settings, not the password itself.
What next
Use this often? Add Password Ent to your Home screen.
Frequently asked questions
What is a password entropy calculator?
A tool that measures the strength of a random password in bits.
What is the formula for password entropy?
H = L × log₂ N, where L is the length and N the number of possible symbols.
How many bits is an 8-character password?
About 52.4 bits if its characters are random printable ASCII.
How long should a password be?
NIST recommends a minimum of 15 characters.
Does the formula work for passwords I made up?
No. It holds only when each symbol is chosen at random.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.