How long should a password be?
For a random password kept in a password manager, 16 characters. For one you remember, five or six random words. Here is why.
The answer
- Random password in a password manager: 16 characters or more.
- Password used as the only factor: at least 15, the NIST SP 800-63B-4 minimum since 31 July 2025.
- Password you type from memory: a passphrase of five or six random words.
- Wi-Fi network: 20 or more, because a captured handshake can be attacked offline.
- API keys and machine secrets: 32 characters or more.
The numbers
| Length | Letters and digits | With symbols |
|---|---|---|
| 8 characters | 3 hours | 2 days |
| 10 characters | 1 year | 39 years |
| 12 characters | 5,112 years | 297,918 years |
| 14 characters | 20 million years | 2 billion years |
| 15 characters | 1 billion years | 196 billion years |
| 16 characters | 76 billion years | 17 trillion years |
| 20 characters | 1 quintillion years | 978 quintillion years |
| 24 characters | over 1025 years | over 1028 years |
| 32 characters | over 1039 years | over 1044 years |
Two things stand out. First, each extra character multiplies the work, so length beats every other choice. Second, past about 14 random characters, offline guessing stops being possible at all. Beyond that point, the threats are phishing, malware and reuse, which length does not stop.
Why the length you remember is different
These figures assume the password is random. A password a person composes is not: a 16 character phrase from a song or a name with a year is guessed in a fraction of the time the table suggests. That is why a remembered password should be a passphrase of random words, not a sentence you thought of.
Questions
Is 12 characters enough?
For a random password, 12 characters with every type has about 77 bits and is beyond offline guessing. NIST now asks for 15 when the password is the only factor, so 16 is a better default.
Is a longer password always better?
Only if it is random. Length helps when each character is unpredictable. Repeating a word or adding a pattern adds length without adding much strength.
Sources
- SP 800-63B-4, section 3.1.1.2: Password Verifiers, National Institute of Standards and Technology. Checked 18 October 2026.