Guide

What actually makes a password strong: length, randomness and entropy

Published · 7 minute read

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 generatedBits
8 lowercase letters38
8 characters from all 94 printable symbols52
12 characters from all 9479
16 characters from all 94105
4 words from a 7,776-word list52
6 words from a 7,776-word list78

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.

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:

If you build the login form

How passwords are stored decides what happens on the day the database leaks.

Practical recommendations

  1. Use a password manager and let it generate a unique random password of 16 or more characters for every account.
  2. 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.
  3. Turn on multi-factor authentication for email, banking and the password manager first.
  4. Change a password when a service reports a breach, not on a calendar.
  5. Treat any password you have used on more than one site as already compromised.

Tools used in this guide

More guides