What makes a password strong: the math, the NIST rules and the habits
A strong password is not the one that looks most complicated. It is the one that takes the most guesses. This guide puts numbers on that, sums up the current NIST rules, and covers password managers and two-factor authentication.
Strength is the number of guesses
Attackers who steal a site's user database don't guess through the login page. They hash candidate passwords on their own hardware, millions per second, and compare them with the leaked hashes. So the measure that matters is how many guesses your password takes. For a randomly generated password, that number is given by its entropy: E = L × log₂(N), where L is the length and N is the number of characters possible in each position. The result is in bits, and every extra bit doubles the number of possibilities.
The formula only holds when a random generator picks the characters. Liverpool2025! passes the usual "uppercase, number, symbol" rules, but cracking tools try common words, place names, years and a trailing exclamation mark first, so it falls long before the formula says it should.
Length or more character types?
More character types raise N; more characters raise L. Upper and lowercase letters plus digits (62 characters) give 5.95 bits per character. Adding 25 symbols (87 characters) raises that to 6.44 bits, a gain of 0.49 bits per character. On a 16-character password, symbols add 16 × 0.49 = 7.9 bits. Two extra letters or digits add 11.9 bits.
That is why 18 letters and digits (107 bits) beat 16 characters with symbols (103 bits), and are easier to type on a phone.
Entropy and cracking time
"Mixed" means upper and lowercase letters, digits and 25 symbols. The last column is the average time to find the password (half of all possibilities) at an assumed 10 billion guesses per second against leaked hashes. Sites that use a deliberately slow function such as bcrypt or Argon2 make each guess far more expensive, but you can't check how every site stores yours.
| Random password | N | Bits | Average time |
|---|---|---|---|
| 4-digit PIN | 10 | 13.3 | instant |
| 6-digit PIN | 10 | 19.9 | instant |
| 8 lowercase letters | 26 | 37.6 | 10 seconds |
| 8 mixed characters | 87 | 51.5 | 1.9 days |
| 4 random words | 7,776 | 51.7 | 2.1 days |
| 12 mixed characters | 87 | 77.3 | 298,000 years |
| 6 random words | 7,776 | 77.5 | 350,000 years |
| 15 mixed characters | 87 | 96.6 | 196 billion years |
| 16 mixed characters | 87 | 103.1 | 17 trillion years |
The word rows use the EFF long wordlist, 7,776 words picked with five dice rolls each, so every word is worth 12.9 bits. Words you choose yourself are worth much less, because people pick predictably.
What NIST SP 800-63B-4 says
NIST published SP 800-63B-4 in final form on 31 July 2025, and as of November 2026 it has not been superseded. It is written for US federal agencies and widely used as a reference. Its password rules:
- At least 15 characters when the password is the only factor, and at least 8 when it is used together with a second factor.
- Sites should accept passwords of at least 64 characters, including spaces, and must verify the whole password rather than truncating it.
- Sites must not impose composition rules such as mixing character types, and must not force periodic changes. A change is required only when there is evidence of compromise.
- New passwords are checked against a blocklist: passwords from earlier breaches, dictionary words, and words tied to the service such as its name or the username.
- Password managers and autofill must be allowed, and pasting should be.
- Password hints and knowledge-based questions such as "mother's maiden name" are not allowed.
- Failed logins are limited to at most 100 consecutive attempts per account.
That limit is why a short PIN is acceptable on a phone that locks after repeated failures. A leaked database has no limit: attackers try as fast as their hardware allows, and length decides the outcome.
Password managers
Nobody can memorize a random 16-character password for every account, and nobody needs to. A password manager stores them and autofills each only on the domain it was saved for. If autofill doesn't appear on a login page that looks like your bank, check the address: it may be a copy. The ones already on your devices are Google Password Manager in Chrome and Android, and the Passwords app (iCloud Keychain) on iPhone and Mac. Both warn you when a saved password shows up in breach data.
That leaves one password to remember: the one for the account that unlocks the manager. Five or six random words from the EFF list (64.6 to 77.5 bits) are memorable and strong enough.
Two-factor authentication
With a second factor, a leaked password alone doesn't get anyone in, but the options differ. NIST classes codes sent by SMS or voice call as a "restricted" authenticator and asks sites to watch for signs such as a SIM change or a ported number. NIST also says that codes you type by hand, whether from SMS or an authenticator app, are not phishing-resistant, because a fake page can ask for the code and relay it to the real site. Only cryptographic authenticators such as security keys and passkeys are phishing-resistant, because they are bound to the real site's address.
In practice: a passkey or security key where offered, then an authenticator app, then SMS, which still beats no second factor. Keep the recovery codes in your password manager, because phones get lost.
Generating a random password on swift.id
- Open the Password Generator. It starts at 16 characters with all four character types ticked, using
crypto.getRandomValuesin your browser. - Drag the length to 16 or more; the tool goes from 8 to 64 characters. For your main email, 20 characters cost nothing when autofill types them.
- If a site rejects some symbols, untick Symbols and add 2 characters to the length.
- Tick Avoid similar characters when the password has to be typed from another screen, for example on a TV. The pool drops from 87 to 81 characters.
- Press Copy next to the password, paste it into the sign-up form, then save it in your password manager. Press Generate again if you need another one.