What actually makes a password strong: length, randomness and entropy
Most of the password advice people grew up with, such as mixing symbols, changing every 90 days and never writing it down, has been withdrawn by the bodies that issued it. What replaced it is simpler and rests on one idea: a password is as strong as the number of guesses an attacker needs.
Strength is measured in guesses
If a password is chosen at random, the number of possibilities is the size of the alphabet raised to the power of the length. Entropy expresses that as a number of bits, and each additional bit doubles the work of guessing:
entropy = length × log2(alphabet size)
| Randomly generated | Bits |
|---|---|
| 8 lowercase letters | 38 |
| 8 characters from all 94 printable symbols | 52 |
| 12 characters from all 94 | 79 |
| 16 characters from all 94 | 105 |
| 4 words from a 7,776-word list | 52 |
| 6 words from a 7,776-word list | 78 |
Two things stand out. Adding four characters does far more than adding symbols to a short password. And six ordinary words, chosen at random, match a twelve-character string of symbols while being much easier to type and remember.
The word "random" is doing the work
The table applies only to passwords chosen by a random process. People are not random. Summer2026! has eleven characters from four classes and would score about 72 bits by the formula. Its real strength is a small fraction of that, because it follows the pattern nearly everyone uses: a capitalised word, a year, a symbol at the end. Guessing tools try such patterns first, along with every password from past breaches and the common substitutions (@ for a, 0 for o, 3 for e).
This is why a generator matters, and why the generator must use a cryptographically secure source. In a browser that means crypto.getRandomValues, not Math.random, whose output is predictable. The Password Generator on this site uses the secure source and runs locally, so the result is not sent anywhere.
How many bits are enough?
It depends on what the attacker can do.
- Online guessing against a login form is slow and can be rate limited. A site that locks or delays after repeated failures makes even 30 bits impractical to brute-force, though not to guess if the password is a common one.
- Offline guessing happens after a database of password hashes is stolen. There is no limit except hardware. Against fast hashes, a single graphics card tries billions of candidates per second, and anything under about 60 bits should be assumed crackable. Proper password hashing slows this by many orders of magnitude, but users cannot know how a site stores their password.
A reasonable personal rule: 80 bits or more for anything important, which is 13 or more random characters or six or more random words, and more for the password that protects all the others.
Reuse is the bigger risk
For most people the real danger is not that a password is guessed but that it is reused. When one site is breached, attackers try the leaked email and password pairs on every other popular service, an attack called credential stuffing. A strong password offers no protection there. A unique password for each site does, and the only practical way to have dozens of unique, random passwords is a password manager. Then only two things need memorising: the manager's own password and the one for your primary email account.
What current guidance says
The United States standards body NIST revised its guidance, and other national agencies have taken a similar line. In summary, a service that accepts passwords should:
- Favour length. Require a sensible minimum and allow long passwords and passphrases, including spaces, up to at least 64 characters.
- Drop composition rules. Demanding an uppercase letter, a digit and a symbol produces predictable patterns, not strength.
- Stop forcing periodic changes. People respond to rotation by incrementing a number. Require a change only when there is evidence of compromise.
- Check new passwords against lists of breached and common passwords and reject matches.
- Allow pasting into password fields, so that password managers work.
- Avoid security questions and password hints. The answers are guessable or discoverable.
- Rate limit sign-in attempts.
If you build the login form
How passwords are stored decides what happens on the day the database leaks.
- Hash with a function designed for passwords: Argon2id, scrypt or bcrypt, with a unique salt per user. A general-purpose hash such as SHA-256 is built for speed, and speed is what an attacker wants.
- Do not silently truncate. bcrypt reads only the first 72 bytes of its input, which matters for long passphrases; be aware of the limit of whatever you use.
- Do not log passwords, including in request logs and error reports.
- Compare in constant time, and return the same message for "no such user" and "wrong password".
- Offer multi-factor authentication. A second factor turns a stolen password from a breach into an inconvenience, and passkeys remove the password altogether.
Practical recommendations
- Use a password manager and let it generate a unique random password of 16 or more characters for every account.
- For the few you must type or remember, use five or six words picked at random by a generator or with dice. Do not choose the words yourself.
- Turn on multi-factor authentication for email, banking and the password manager first.
- Change a password when a service reports a breach, not on a calendar.
- Treat any password you have used on more than one site as already compromised.