The formula
Entropy (bits) = length × log₂(pool size), for randomly chosen characters
Pool: lowercase 26, uppercase 26, digits 10, symbols 33
Passphrase entropy = words × log₂(list size); Diceware words give 12.9 bits each
Average crack time = 2^entropy ÷ 2 ÷ guesses per second
Worked example
- Tr0ub4dor&3: 11 characters using lowercase, uppercase, digits and symbols (pool 95).
- Raw entropy = 11 × log₂(95) = 72.3 bits, which looks strong. But it's a dictionary word (troubador) with predictable substitutions, so rule-based cracking tools would find it far sooner than brute force.
- A random 5-word Diceware passphrase has 5 × 12.92 = 64.6 bits of genuine entropy: about 45 years on average at 10 billion guesses per second.
What password entropy measures
Entropy, measured in bits, describes how unpredictable a password is. Each bit doubles the number of possibilities an attacker must try: a 40-bit password has about a trillion possibilities, and a 60-bit password a million times more. For a password made of truly random characters, entropy is the length times the base-2 logarithm of the number of possible characters. Using all 95 printable ASCII characters gives about 6.6 bits per character, so a random 12-character password has about 79 bits.
Why human passwords are weaker
The formula assumes every character is chosen at random, but people don't choose passwords that way. Attackers know this and try dictionary words, names, keyboard patterns like qwerty, dates and common substitutions such as @ for a and 0 for o, long before brute force. A password like P@ssw0rd2024 looks complex but appears in every cracking dictionary. The calculator lowers the score for common words, sequences and repeated characters, but no checker can catch everything: if you made it up yourself, assume it's weaker than the estimate.
Passphrases
A passphrase made of several random words is both strong and memorable. With the Diceware method, you roll dice to pick words from a list of 7,776, giving about 12.9 bits per word, so five words give about 65 bits and six give about 78. The key is that the words must be chosen randomly, not picked by you: a famous quote or song lyric is easy to guess. Password managers can generate random passphrases for you. The famous "correct horse battery staple" comic made this approach widely known.
How fast attackers guess
Crack time depends on how the attacker can test guesses. Online attacks against a login page are limited by rate limiting and lockouts to perhaps a few guesses per second. Offline attacks on stolen password databases are far faster: a modern GPU can test billions of guesses per second against fast hashes such as MD5 or SHA-1, but only thousands per second against slow, salted hashes such as bcrypt, scrypt and Argon2. The table shows how long the same password would last under each scenario.
How strong is strong enough?
For accounts protected by good online rate limiting, 40–50 bits may be enough, but because you can't know how a service stores passwords, aim for at least 60–70 bits for important accounts and 80 or more for password manager master passwords and encryption keys. More important than any single password is using a unique password for every site, since reused passwords leaked from one breach are tried everywhere else. Turn on two-factor authentication wherever it's offered.
Password managers
A password manager generates and stores long random passwords for every site, so you only need to remember one strong master passphrase. Most also warn you about reused and breached passwords and fill logins only on the correct website, which protects against phishing. Use a long passphrase of six or more random words for the master password and enable two-factor authentication on the manager itself.
Privacy and related tools
Your password is analysed entirely in your browser and never sent anywhere or stored, and the field is not included in shareable links. Even so, it's good practice not to type your real password into websites; test a similar pattern instead. For the counting behind entropy, see our permutation and combination calculator, and for the probability of random identifier collisions, the UUID collision calculator.