How Strong Is My Password? Entropy and Cracking Time
Password entropy explained with real numbers: why length beats complexity, how long guessing takes, passphrases, password managers, breaches and 2FA.
What “strength” actually measures
An attacker who has stolen a database of password hashes does not type guesses into a login form. They run software that hashes candidate passwords and compares the results, offline, as fast as their hardware allows. Password strength is a measure of how many guesses that takes.
For a password picked uniformly at random from a set of characters, the count is easy: with a set of N characters and length L there are N^L possible passwords. Entropy expresses that in bits:
Entropy (bits) = L × log2(N). Each bit doubles the number of possibilities. On average an attacker finds the password after searching half of them.
Some useful values of log2(N): digits only (10) give 3.32 bits per character; lowercase (26) 4.70; upper + lower + digits (62) 5.95; and the 89-character set used by the Toolywise password generator 6.48.
A table of guessing times
Guessing speed depends almost entirely on how the site stored the password. The two columns below use clearly hypothetical rates to show the range: 10 billion guesses per second, the order of magnitude of a GPU rig attacking a fast unsalted hash such as MD5 or SHA-1, and 10,000 per second, more like a deliberately slow algorithm such as bcrypt or Argon2. Times are the average (half the keyspace).
| Password | Entropy | At 10 billion/s | At 10,000/s |
|---|---|---|---|
| 6-digit PIN | 19.9 bits | under 1 second | 50 seconds |
| 8 lowercase letters | 37.6 bits | 10 seconds | 121 days |
| 8 chars, upper + lower + digits | 47.6 bits | 3 hours | 346 years |
| 8 chars, all four sets (89) | 51.8 bits | 2 days | 6,000 years |
| 12 lowercase letters | 56.4 bits | 55 days | 151,000 years |
| 12 chars, all four sets | 77.7 bits | 391,000 years | effectively never |
| 16 lowercase letters | 75.2 bits | 69,000 years | effectively never |
| 16 chars, all four sets | 103.6 bits | effectively never | effectively never |
Two lessons stand out. First, the storage method matters as much as the password: the same 8-character password survives centuries against a slow hash and two days against a fast one. You don’t control how a website stores your password, so plan for the bad case. Second, every row below about 60 bits falls quickly to an offline attack on a fast hash, while rows above about 75 bits are out of reach no matter how the password was stored.
Online attacks against a live login form are far slower, because sites rate-limit and lock accounts. That is why a 6-digit PIN is acceptable on a phone that wipes itself after a few attempts and hopeless as a website password.
Why length beats complexity
Adding a character multiplies the search space by N. Adding a character type only raises N a little. Compare three ways to strengthen a 12-character password made of upper, lower and digits (71.5 bits):
- Add symbols (62 → 89 characters): 77.7 bits, +6.2.
- Add one more character instead: 77.4 bits, +6.0, with no awkward symbols.
- Add four characters: 95.3 bits, +23.8.
Symbol requirements also backfire in practice. People satisfy them predictably, with a capital first letter, a digit or year at the end and ! as the symbol, and cracking tools try those patterns first. That is why NIST’s current digital identity guidelines (SP 800-63B) tell services not to impose composition rules or force periodic changes, and to focus on length and on blocking known-compromised passwords instead.
The formula only works for random passwords
Summer2026! is 11 characters from the full set, which the formula would rate at over 70 bits. Its real strength is tiny, because it is a dictionary word, a year and a symbol in the most common order. Entropy is a property of the process that made the password, not of the string. A meter that only counts character types will happily overrate human-chosen passwords; only let the formula reassure you about passwords a machine generated.
Passphrases: strength you can remember
A passphrase is several words picked at random from a list. Its entropy is words × log2(list size). The well-known Diceware list has 7,776 words (12.9 bits per word), so six Diceware words give 77.5 bits, about as strong as 12 random characters from all four sets and much easier to type on a phone.
The words must be chosen randomly. A line from a song, or four words you like, is a phrase an attacker can guess from much smaller lists.
How the Toolywise generator works
- Randomness: every character or word is chosen with crypto.getRandomValues, the browser’s cryptographically secure generator, using rejection sampling so that no character is more likely than another. Math.random is never used.
- Character sets: 26 uppercase, 26 lowercase, 10 digits and 27 symbols (!@#$%^&*()-_=+[]{};:,.<>?/~), 89 in total. “Avoid ambiguous characters” removes I, l, 1, O, 0 and o, leaving 83.
- At least one of each: if a set is ticked, the generator redraws until the password contains at least one character from it. This shaves a fraction of a bit off the formula’s figure, which is negligible at normal lengths.
- Passphrases: words come from the EFF large wordlist (7,772 words after removing four hyphenated ones), about 12.9 bits per word — the same list Diceware-style generators use. Capitalising every word adds nothing (it is not random); adding a digit to a random word adds log2(10) + log2(word count) bits, and the meter counts exactly that.
- The meter: entropy is computed with the formula above. Under 40 bits is labelled Weak, 40–60 Fair, 60–80 Strong and 80 or more Very strong. The crack-time estimate assumes 10 billion guesses per second and half the keyspace.
With a 7,772-word list, the default of 5 words plus a digit is about 70 bits, which the meter calls Strong. Six words with a digit reach about 84 bits (Very strong). If the passphrase protects a password manager or full-disk encryption, use 6–7 words.
Breaches and reuse matter more than cleverness
The guessing tables assume the attacker starts from nothing. In reality the most common way into an account is a password that leaked from a different site. Attackers take lists of leaked email and password pairs and try them everywhere, an attack known as credential stuffing. A 20-character random password offers no protection if you used it on a site that was breached.
- Use a password manager. It generates a unique random password for every site, remembers them and only fills them on the right domain, which also blunts phishing.
- Make the master password a long passphrase you can type from memory: 7 or more random words from a large list.
- Turn on two-factor authentication, preferably passkeys or a hardware key, otherwise an authenticator app. SMS codes are better than nothing but can be intercepted or ported to another SIM.
- Change a password when a service reports a breach, not on a calendar schedule.
Checking a password you already use
Don’t type a real password into a website that promises to rate it, unless you trust that the check happens entirely on your device. The generator’s meter only rates passwords it created, because the entropy formula is meaningless for one you invented. To find out whether an existing password has appeared in a breach, password managers and services such as Have I Been Pwned use a k-anonymity check: your device hashes the password with SHA-1, sends only the first five hex characters, and compares the returned list of matching hashes locally, so the password itself never leaves your machine. If it shows up, change it everywhere you used it.
If you are curious why sites must store passwords with slow algorithms, try the hash generator: it computes MD5 and SHA-256 instantly, which is exactly the problem. Fast hashes are great for checking file integrity and terrible for passwords, because the attacker gets the same speed. OWASP’s password storage guidance recommends Argon2id, scrypt, bcrypt or PBKDF2 for that reason.
Sources
Results are estimates for planning and education, not tax, legal, financial or medical advice. Check important decisions with a qualified professional.