Everyone has been told to make a "strong" password. Almost nobody has been shown what strong actually means in time. So here is the whole answer, in one table: how long a random password of a given length and character set survives against a real password-cracking rig. No vague advice, just the numbers.

The short version, if you are in a hurry: length beats complexity. An 8-letter password falls in about 10 seconds. A 16-character password using every printable character survives about 59 trillion years. Everything in between is in the table below.

How the numbers are calculated

Two formulas do all the work. First, the number of possible passwords is the size of the character set raised to the length: a 12-character password drawn from 94 printable characters has 9412 possibilities, about 4.76 × 1023. Second, the entropy in bits is length × log2(character set size): that same password has about 78.7 bits of entropy.

To turn possibilities into time, divide by the attacker's guess rate and halve the result, because on average an attacker finds the password halfway through the search. The table below uses 10 billion guesses per second — a realistic rate for a modern cracking rig working offline against a fast hash. Every number in it was computed from those two formulas; nothing was estimated or borrowed.

These are average times. A full search takes twice as long; a lucky attacker can also find a password sooner. The point of the table is the scale, and the scale is what changes everything.

The full table: average time to crack a random password

Attack rate: 10 billion guesses per second, offline, against a fast hash. Times are averages (half the keyspace).

LengthLowercase only (26)Lower + upper (52)Letters + digits (62)All printable characters (94)
615 ms1 sec3 sec35 sec
810 sec45 min3 hours3.5 days
102 hours84 days1.3 years85 years
1255 days619 years5,100 years754,000 years
14102 years1.7 million years20 million years6.7 billion years
1669,000 years4.5 billion years76 billion years59 trillion years
2032 billion years33 quadrillion years1.1 quadrillion years4.6 sextillion years

Read the table down any column and the pattern is obvious: every two extra characters multiplies the time by roughly a thousand. Read it across any row and the second pattern shows: widening the character set helps, but nowhere near as much as adding length. A 12-character password of lowercase letters alone lasts 55 days; adding upper case, digits and symbols to the same 12 characters stretches it to 754,000 years — a big jump. But going from 12 to 16 characters in the full set jumps it from 754,000 years to 59 trillion. Length is the cheapest security you can buy.

What about faster hardware?

A serious attacker does not stop at 10 billion guesses a second. GPU clusters and specialised hardware push rates higher, so here is the same 12-character password against three rigs:

12 characters10 billion / sec100 billion / sec1 trillion / sec
Lowercase only55 days5.5 days13 hours
Lower + upper619 years62 years6 years
Letters + digits5,100 years511 years51 years
All printable characters754,000 years75,000 years7,500 years

Even a rig a hundred times faster — a trillion guesses a second — still needs 7,500 years for a random 12-character mixed password. At 16 characters it would need about 590 billion years. Hardware gets faster every year, but the maths grows faster: each added character multiplies the search space, while hardware improves roughly linearly. That is why a long password bought today stays strong for decades.

What this table does NOT cover

Honesty matters here, because the table only describes random passwords attacked by brute force. Three real-world cases break it completely:

  • Dictionary and pattern passwords. A password like "Password123!" or "Tr0ub4dor" is short, follows patterns attackers try first, and appears in breach lists. It falls in seconds whatever the table says, because attackers do not start from zero — they start from every password humans have ever used.
  • Passwords already leaked. If a password appears in a data breach, it is compromised instantly, whatever its length. No amount of entropy helps after the fact. This is the one case where changing the password — not making it longer — is the fix.
  • Slow hashes change the numbers. The table assumes a fast hash. Properly stored passwords use slow hashes like bcrypt or Argon2, which cut guess rates by orders of magnitude and make every time in the table far longer. A site storing passwords in plain text or a fast hash is the weak link, not your password.

Online guessing — trying passwords against a live login page — is a different world again: rate limits and lockouts make it so slow that even an 8-letter password is usually safe there. The table describes the worst case, a stolen password file attacked offline, which is the case worth planning for.

What to actually do with this

Three rules cover almost everything the table teaches:

  1. Make it at least 16 characters, randomly generated. At 16 mixed characters you are at about 105 bits of entropy — 59 trillion years against the rig in the table, and far beyond any plausible hardware improvement.
  2. Never reuse a password. Reuse is how one breach becomes ten compromised accounts, and length cannot fix it.
  3. Use a password manager. Nobody remembers forty random 16-character passwords. A manager does, and it also generates them.
🔐
Try It Yourself
Password Generator
Generate a random password of any length and character set, free, in your browser — nothing is sent anywhere.
→

If you want the same calculation for a specific password length and character set, the generator above shows the entropy of whatever it creates, so you can check your own password's numbers against this table directly.

📌 Key Takeaways
  • Password strength is entropy: length × log2(character set size). Every extra character multiplies the attacker's work.
  • Length beats complexity: 16 random characters outlast any realistic hardware, at any character set.
  • At 10 billion guesses a second, a random 12-character mixed password averages 754,000 years to crack; a full search takes about 1.5 million years.
  • Dictionary, pattern and leaked passwords fall instantly — the table only applies to random passwords.
  • Slow hashes (bcrypt, Argon2) make every number in this table far longer; fast hashes and plain-text storage are the site's problem, not yours.

Sources & method