How Long Should a Password Be?
How many characters you need for email, banking, WiFi, and everything else, with the strength math shown so you can check it.
Part of: How to Create a Strong Password
At least 16 random characters for most accounts. That meets NIST's 15-character minimum and CISA's 16-character recommendation and gives about 104 bits of strength. Use 20 characters, or a seven-word passphrase, for your email and password manager.
On this page
The short answer by use
| Use | Length | Notes |
|---|---|---|
| Most online accounts | 16 random characters | About 104 bits. Meets NIST's 15 and CISA's 16. |
| Email and password manager | 20 random characters, or a 7-word passphrase | These protect everything else, so give them more margin. |
| Passwords you type from memory | 6 to 7 random words | About 77 to 90 bits and easier to type. |
| WiFi network | 20 or more characters | WPA2 and WPA3 Personal allow 8 to 63. |
| API keys and tokens | 256 bits | Use the API key generator; nobody needs to type these. |
Why length matters most
Every character you add multiplies the number of possible passwords by the size of the character set. Going from 12 to 16 characters with all 94 printable characters multiplies the possibilities by 944, about 78 million. Adding symbols to a letters-and-digits password, by contrast, raises the per-character strength from about 5.95 bits to 6.55 bits.
| Length | Lowercase only (26) | Letters and digits (62) | All printable ASCII (94) |
|---|---|---|---|
| 8 | 38 | 48 | 52 |
| 10 | 47 | 60 | 66 |
| 12 | 56 | 71 | 79 |
| 14 | 66 | 83 | 92 |
| 16 | 75 | 95 | 105 |
| 20 | 94 | 119 | 131 |
| 24 | 113 | 143 | 157 |
| 32 | 150 | 191 | 210 |
How long it takes to guess
The figures below assume the worst case: an attacker has stolen a database with a fast, unsalted hash and can try 10 billion guesses per second. Sites that use slow password hashing make real attacks far slower. Treat these as a floor, not a prediction.
| Length | Bits | Average time |
|---|---|---|
| 8 | 52 | 4 days |
| 10 | 66 | 85 years |
| 12 | 79 | 754,050 years |
| 14 | 92 | 6,663 million years |
| 16 | 105 | more than a trillion years |
| 20 | 131 | more than a trillion years |
These times only apply to random passwords. A made-up password of the same length can fall in seconds if it follows a common pattern.
What NIST and CISA recommend
- NIST SP 800-63B-4: at least 15 characters for a password used on its own, at least 8 when it's one factor of multi-factor sign-in. Sites should accept at least 64 characters.
- CISA: at least 16 characters, random, and unique to each account.
- WPA2 and WPA3 Personal WiFi: 8 to 63 printable ASCII characters.
If a site caps length below 15, use the maximum it allows and turn on two-factor authentication if it's offered.
Is there such a thing as too long?
For strength, no. In practice, some sites cut off or reject long passwords. If a site rejects a long password, try its stated maximum length, or use the password rules generator to match its rules exactly. Past about 128 bits (20 random characters from 94), extra length adds safety margin you're unlikely to need for an ordinary account.
Frequently asked questions
Is 8 characters long enough?
Not for a password used on its own. Eight random characters from all 94 printable characters is about 52 bits, which can be guessed in a few days on average at 10 billion guesses per second. NIST allows 8 only when the password is one factor of multi-factor sign-in.
Is a 12-character password secure?
A random 12-character password from all four character types is about 79 bits, which is fair but below NIST's 15-character minimum for a password used alone. Sixteen characters is a better default.
Is a longer password always better?
For random passwords, yes, each character adds strength. The catch is that some sites reject long passwords, so check the site's maximum.
Related guides and tools
Sources
- NIST SP 800-63B-4: Authentication and Authenticator Management, National Institute of Standards and Technology
- Use Strong Passwords, Cybersecurity and Infrastructure Security Agency
- Wi-Fi Protected Access (glossary), FreeRADIUS