Skip to content

Online Safety

How long would it take to crack your password?

By Shreya Bhatt · · 9 min read

How long would it take to crack your password?

About our links: We earn a commission from some services we link to.

On this page
  1. Guessing first, brute force last
  2. Four attackers, four speeds
  3. What the five labels mean in hours and days
  4. Six passwords, scored
  5. Why length beats symbols
  6. Passphrases
  7. What the estimate can't see
  8. Do this first

Most charts that answer how long to crack a password assume the attacker tries every combination in order, starting at aaaa. Real attackers don't. They start with the passwords and habits people actually use, and only fall back to trying everything when those run out. So the answer comes from two numbers multiplied together: how many guesses your password needs when guessed the smart way, and how many guesses a second the attacker can make. Our password strength check works out both in your browser. Here is what goes into its numbers, and what they leave out.

Guessing first, brute force last

Brute force means trying every possible string of a given length. Guessing means trying likely strings first: leaked passwords, dictionary words, names, years, keyboard patterns, and the same with a capital letter or a symbol tacked on. Cracking software does the guessing part first because it pays off so often.

The check imitates that. It splits your password into the pieces a guesser would try first, works out what each piece costs in guesses, prices whatever is left one character at a time, and multiplies everything together. When there is more than one way to split the password, it keeps the split that needs the fewest guesses, as a good attacker would. Here is what each piece costs:

Piece the check looks for What it costs
One of 110 common passwords from public breach lists Its place on the list plus one: 2 guesses for 123456, up to 111
One of 417 everyday words and first names 400 to 816 guesses, depending on its place on the list
One of the 1,296 words on the EFF passphrase list 1,296 guesses
A keyboard run, such as asdfg or 1qaz 300 guesses per key in the run
A sequence, such as lmnop or 4321 52 guesses per character
A repeat, such as aaaa or abcabc The repeated chunk counted as random characters of the kinds it uses, times the number of repeats
A year from 1900 to 2049 150 guesses
Four digits that read as a month and day, such as 0105 732 guesses (366 days, month first or day first)
Six or eight digits that read as a full date 146,000 guesses (365 days, 100 years, four common formats)

Then the adjustments. A capital first letter, or all capitals, doubles a word's cost; any other mix of capitals multiplies it by four times the word's length. Look-alike swaps, such as 0 for o or @ for a, multiply it by four. Every piece doubles the total, because the attacker also has to guess how the pieces are joined. Each leftover character multiplies the total by the number of characters of its own kind: 26 for a letter of either case, 10 for a digit, 33 for a symbol or the space, and 100 for anything beyond the basic keyboard. When the leftovers mix kinds, the total is also multiplied by the number of ways those kinds could be arranged, because the attacker has to guess which kind sits where.

Four attackers, four speeds

The other half of the sum is speed, and it depends on where the attacker is standing.

An online attack goes through the real sign-in page, one guess at a time. The site can slow it down or stop it. NIST's digital identity guidelines, SP 800-63B, tell services to cap consecutive failed attempts on an account at 100 before disabling that way of signing in, so online guessing only threatens the weakest passwords.

An offline attack happens after a breach. The attacker has a copy of the stored passwords, scrambled by a hash function, and runs guesses against it on their own hardware, with no sign-in page to slow them down. Speed then depends on the hash. NIST tells services to salt and hash passwords with a scheme built to be slow, at a cost setting as high as practical. Some do, some don't, and you can't see which from the outside.

Attack Guesses the check assumes
Online, on a site that limits attempts 100 an hour
Online, on a site with no limit 10 a second
Stolen password file, slow hash such as bcrypt 10,000 a second
Stolen password file, fast hash, many graphics cards 10 billion a second

The check assumes the attacker hits your password halfway through the search, on average, so each time it shows is half the guesses divided by the speed. Anything past a hundred years shows as "centuries".

Privacy kit

Chosen from specifications, policies and published reviews; we have not tested these ourselves. More in the Privacy kit

What the five labels mean in hours and days

The labels follow the same orders of magnitude as zxcvbn, the open-source estimator Dropbox published. Here is each band against each speed:

Label Estimated guesses Limited site Unlimited site Slow hash Fast hash
Very weak under 1,000 under 5 hours under 50 seconds under a second under a second
Weak 1,000 to under 1 million 5 hours to 7 months 50 seconds to 14 hours under 50 seconds under a second
Fair 1 million to under 100 million 7 months to 57 years 14 hours to 2 months 50 seconds to 1 hour under a second
Strong 100 million to under 10 billion 57 years to centuries 2 months to 16 years 1 hour to 6 days under a second
Very strong 10 billion or more centuries 16 years or more 6 days or more half a second or more

Read the last column twice. Against a fast hash and a room full of graphics cards, nothing below Very strong lasts a second, and a password just over the Very strong line lasts half of one. The labels describe how a password holds up online and against a slow hash. For any account where you can't be sure how the site stores passwords, which is most of them, look at the fast-hash time as well as the label.

Six passwords, scored

All made up for this piece, and none worth using now that they are published.

  • qwertyuiop: 168 guesses, Very weak. It is on the common list. A site that limits attempts holds it for 50 minutes, one that doesn't for 8 seconds.
  • F00tb@ll: 304 guesses, Very weak. Plain "football" costs 38. The capital doubles that and the look-alike swaps multiply it by four, and it still falls in 15 seconds online with no limit.
  • dragon1985: 10,200 guesses, Weak. A common password and a year: 2 days on a limited site, 9 minutes on an unlimited one, under a second offline.
  • Tigger2019#: about 2.5 million guesses, Fair. A year on a limited site, a day on an unlimited one, 2 minutes against a slow hash, under a second against a fast one.
  • Jq7#mR2x: eight random characters of all four types, about 66 trillion guesses (46 bits), Very strong. Centuries on the first three rows, 55 minutes against a fast hash.
  • kjatzrwlqhxbmd: fourteen random lower-case letters, about 10 to the power 19.8 guesses (66 bits), Very strong, and centuries on all four rows.

Why length beats symbols

The check prices every leftover character by its own kind (a letter is one of 26, a digit one of 10, a symbol one of 33) and adds the guess of where each kind sits. Mixing kinds helps a little; adding characters keeps multiplying the count. Here is what random lower-case letters alone come to:

Random lower-case letters Bits Slow hash Fast hash
8 38 4 months 10 seconds
10 47 centuries 2 hours
12 56 centuries 2 months
14 66 centuries centuries
16 75 centuries centuries
20 94 centuries centuries

Compare Jq7#mR2x from the list above. Eight characters using all four types come to 46 bits in the check: more than eight lower-case letters (38), about the same as ten (47), and far short of fourteen (66). Put a # on the end of those fourteen letters and they reach 75 bits, since the symbol is one of 33 and could sit in any of 15 places.

Pricing characters by kind is how cracking tools approach the passwords people make up, which mostly share one shape: a capital at the front, letters, then digits or a symbol at the end. For a password a manager drew at random from the whole keyboard, the check lands a little below the true figure: a random 16-character password typically comes to about 98 bits there, against about 105 if every character is one of 95. Either way the lesson is the same, and it is why NIST now tells sites not to demand mixtures of character types and asks for at least 15 characters when a password is the only thing protecting an account.

Passphrases

A passphrase is several random words, and it gets its strength from length while staying easy to type. Our passphrase generator draws from the EFF's short list of 1,296 words, so each word adds 10.34 bits. Four words make 41 bits (about 2 minutes against a fast hash), five make 52 (about 2 days), six make 62 (about 8 years), and seven reach 72, which shows as centuries.

Those figures assume the attacker knows the word list, which is the safe assumption. The strength check reads passphrases the same way. When a password splits on one repeated separator (a space, full stop, hyphen, plus sign, slash or the _ character) into three or more words from its lists, it prices each word, 1,296 guesses for a word from the EFF list, multiplies by 6 for the choice of separator, and uses that reading when it comes out lower. A five-word example like tulip-gravy-plank-sneak-acorn comes to about 54 bits there, 13 days against a fast hash. That is the generator's 52 bits plus about 2.6 for the separator, so the two tools agree.

What the estimate can't see

  • Whether the password has already leaked. Attackers try breach lists before anything else, so a leaked password falls almost at once whatever its score. Your password manager's breach alerts, or Pwned Passwords at Have I Been Pwned, which sends only the first five characters of a hash of what you type, will tell you.
  • Reuse. A password used on five sites is only as safe as the worst of the five.
  • Phishing. A 100-bit password typed into a fake sign-in page is gone immediately. Passkeys and security keys are the fix there, as our YubiKey vs passkey guide explains.
  • Your own habits. The lists are short, so a password built on a word, name or place that isn't on them scores higher than it should. Treat a high score on anything you invented yourself with suspicion.

Do this first

  1. Give your email account and your password manager a passphrase of six or more random words from the generator.
  2. For everything else, let a password manager create random passwords of 16 characters or more, which the check almost always shows as Very strong and centuries on every row. The one built into your phone or browser is fine; NordPass is one standalone option. We mention it based on its published features and published reviews, not our testing.
  3. Change any password you made up yourself and used on more than one site, starting with the accounts that hold money.
  4. Turn on two-step sign-in or a passkey for email first, so that even a cracked password isn't enough.

Your next three steps

  1. See how long your current password pattern would last in the password strength check; it runs in your browser.
  2. Move every account to its own password in a manager such as NordPass.
  3. Put a security key on your email first, then the bank, and keep a second key as the backup.