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

The numbers

LengthLetters and digitsWith symbols
8 characters3 hours
48 bits
2 days
52 bits
10 characters1 year
60 bits
39 years
64 bits
12 characters5,112 years
71 bits
297,918 years
77 bits
14 characters20 million years
83 bits
2 billion years
90 bits
15 characters1 billion years
89 bits
196 billion years
97 bits
16 characters76 billion years
95 bits
17 trillion years
103 bits
20 characters1 quintillion years
119 bits
978 quintillion years
129 bits
24 charactersover 1025 years
143 bits
over 1028 years
155 bits
32 charactersover 1039 years
191 bits
over 1044 years
206 bits

Average time for an offline attack on a stolen database of fast, unsalted hashes at 10 billion guesses per second (half the search space).

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.

Published 18 October 2026. Last reviewed 18 October 2026.

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

Related tools and guides