Technology in terms you understand. Sign up for the Confident Computing newsletter for weekly solutions to make your life easier. Click here and get The Ask Leo! Guide to Staying Safe on the Internet — FREE Edition as my thank you for subscribing!

# How Can Four Random Words Possibly Be More Secure Than 16 Random Characters?

## Time for some very big numbers.

Passphrases are just as secure as passwords -- perhaps even more so -- and are easier to remember if needed.

Question: I keep hearing about passphrases and how using four words (like “correct horse battery staple”) can be just as secure, if not more so, than 16 random characters. How’s that possible if hackers need only get four things right to get into my account instead of 16?

In short, because there are many more words than there are characters.

At first blush, even that might not seem like enough, but it gets even better.

Buckle up for some really big numbers.

## Passphrases are better

There are as many, or more, combinations of four or five random words as there are 16 random characters. Given that they can be just as secure and significantly easier to remember, passphrases can be a useful approach to password-based security.

## Random characters

First let’s look at how hard it is to break passwords of varying lengths.

Let’s say that, if you include upper and lower case, digits, and an assortment of, say, 10 arbitrary special characters to choose from, you end up with 72 possible characters to choose from for each character of your password.1

• a-z: 26
• A-Z: 26
• 0-9: 10
• Special: 10

So, an eight-character password, each character of which can have any of 72 different values, has a total of 72^8 (72 multiplied by itself eight times) or 722,204,136,308,736 (~ 7.2 × 10^14) different possibilities. That’s just over 722 trillion possible eight-character passwords.

For a 12-character password, the numbers are 72^12 or 19,408,409,961,765,342,806,016 (~1.9 × 10^22) possible passwords.

For 16, it’s 521,578,814,501,447,328,359,509,917,696 (~5.2 × 10^29), and for 20, it’s 14,016,833,953,562,607,293,918,185,758,734,155,776 (~1.4 × 10^37).

It’s easiest to compare the orders of magnitude: 10^14, 10^22, 10^29, and 10^37. Eight-character passwords are considered crackable by brute force (using a computer to try every possible password) in a few seconds, 12-character passwords in a few months, 16-character passwords in a few million years, and 20 characters in numbers larger than I can comprehend.2

## Random words

Now we can look at passphrases and see if we can compare apples to apples (spoiler: it’s not easy).

First, we have to start with figuring out how many words are in the English language.3 Sources differ, but the approximate numbers I see thrown about are:

• 1,000,000 total, perhaps ever.
• 600,000 words in the Oxford English Dictionary (traditionally the largest dictionary).
• 170,000 words in use.
• 30,000 words in a common individual’s vocabulary.

We’ll run with those last two numbers, since few of us are prone to using obscure, old-fashioned words.

A four-word passphrase would then be on the order of:

• 30,000^4  = 810,000,000,000,000,000 (8.1 × 10^17) if we’re talking about words in our common vocabulary.
• 170,000^4 = 835,210,000,000,000,000,000 (8.3521 × 10^20) drawing from all words currently in use.

Five words would result in:

• Common vocabulary: 24,300,000,000,000,000,000,000 (2.43 × 10^22)
• All current words: 141,985,700,000,000,000,000,000,000 (1.419857 × 10^26)

If you focus on just the orders of magnitude (10^17, 10^20, 10^22, 10^26), these numbers don’t look that impressive, compared to the random-character numbers.

And this is where most people stop and give up on passphrases.

But so far, we’re comparing apples to oranges.

## Random words for real

What the comparison above overlooks is simply this: passwords are case sensitive, and most phrases have inter-word characters. That might be as simple as a space between two words, although not all services allow spaces in passwords (though I would hope that most explicitly asking for a passphrase would allow for spaces). In reality any character supported by the service can be used to separate the words — I often use underscore (_) in place of space.

Yes, you can use passwords like “correcthorsebatterystaple”, and the calculations above would apply if all of the cracking was happening against only all lower-case passphrases with all the words smooshed4 together.

On the other hand, if you add simple variations like capitalization and spacing — “Correct Horse Battery Staple” — the number of possible passphrases resulting from the various combinations of words explodes. Every word takes on multiple variants depending on length and capitalization, and every passphrase takes on even more possibilities as we vary the characters separating the words.

And that’s the real, more meaningful, comparison.

Unfortunately, it’s also difficult to quantify with hard numbers. We have to make some very gross assumptions.

Let’s say the average length of a word is five characters. If we alter capitalization for all possible combinations (“aaaaa”, “Aaaaa”, “AAaaa”, and so on) we get 2^5 or 32 possible variations. Suddenly our word list increases by a factor of 32. Our 30,000 common vocabulary becomes a little over a million words, exceeding even the OED’s list.

A four-word passphrase would then result in 1,099,511,627,776,000,000,000,000 (~1 × 10^24) combinations. Five words would be 1,125,899,906,842,624,000,000,000,000,000 (~1.1 × 10^29), putting it on a par with 16-character random passwords.

And that’s not even factoring in inter-word spacing or adding one or more “archaic” words that might have special meaning to you.5

## Do this

Passphrases are perfect when you have to remember them on your own (i.e., without a password manager).

The real takeaway here is not to let invalid comparisons fool you. A four- or five-word random passphrase is plenty secure and significantly easier to remember. Spice it up a little with your own easy-to-remember capitalization and spacing rules (e.g., “correcT?horsE?batterY?staplE”), and they’re near perfect.

Don’t forget: password strength doesn’t matter if your password is compromised through a data breach at a service you use, malicious keystroke logger on your computer, or a successfully executed phishing attempt. Be sure to stay safe by using a different password or passphrase on every site.

Something else you can do to stay safe: Subscribe to Confident Computing! Less frustration and more confidence, solutions, answers, and tips in your inbox every week.

## Footnotes & References

1: Yes, I’m assuming the US English character set here. The order of magnitude doesn’t change much if you use another Roman-ish set. Similarly, some services let you choose from more than 10 special characters and others limit you to less.

2: Literally. The charts I looked at stopped at 18 characters, where the cracking time was measured in quadrillions of years, which is already multiple eons. Via Are Your Passwords in the Green? Be sure to scroll down to the 2023 table. It stops at 18-character passwords, which take 18 billion years.

3: If you’re using a different language, your numbers will certainly be different.

4: Technical term, that. OK, it should be “concatenated” — but I’m told not everyone knows that word, exemplifying the difficulty of measuring vocabulary.

5: Grandiloquent Word of the Day is a great source.

## 20 comments on “How Can Four Random Words Possibly Be More Secure Than 16 Random Characters?”

1. When you said smooshed together, I had a picture of tightly kerned text, another technical word not everyone knows.
My definition of kerning:
Smooshing and unsmooshing of text.

2. I let my password manager create a unique 12-character password with upper & lower case, numbers and special characters for every site that needs a password. Regrettably there are still sites that limit length to 8 upper/lower case and numbers only. For my master password to access the password manager I use a line from a centuries-old, obscure poem my Dad used to read to us kids until we could recite it with him. Hard to forget, and uses non-current English words and words with archaic spelling scattered throughout. Of course I also use multi-factor wherever it’s available.

3. WOW! That’s a lot of math! That makes perfect sense to me! I will definatly change some of my passwords going foward. Not bad advice to my rather simplistic outlook.

4. But. The hacker doesn’t know or care if a user is concatenating words as such or simply characters. Regardless of the combinatorics of English words (or words in any other language–the hacker doesn’t know or care about that, either), the pass phrase is still composed of characters. Pass phrases are a subset of character-based authentication strings, and for that reason are just as hard to guess as any other string of the same length. Their advantage, in my mind, is just that they are far easier to remember. And I think Frederick St John has exactly the right idea–his pass phrase is not random, but it’s long, and we’d have to know a lot about him to try to guess it.

One other thing, though. We speak of ‘random’ words. But the example offered here “correcthorsebatterystaple”, is not random. It’s the same example that Randall Munroe used in the XKCD comic dealing with the same subject. I imagine there are thousands of people using that exact pass phrase, because copying somebody else’s is way easier than coming up with a new. Random isn’t easy.

• My point is simply that pass phrases make it easier to make longer passwords. And length, as you point out, trumps everything.

And most sites like my own use “correct horse battery staple” specifically because Mr. Munro did such a good and simple job of explaining why passphrases are better in a 4 panel comic. It’s become internet lore, of a sort, and should never actually be used. It’s an example, nothing more.

• When it comes to four words, random is easy. CoffeeWristwatchLampWD40. I came up with those instantly just looking at objects on my desk.

The end result of my effort is that going forward, all the sites I have an account for have 16-character passwords with 2FA enabled. I’ll be very satisfied with that until site passkeys become ubiquitous.

Ernie (Oldster)

6. Very informative article. However, many applications requiring you to set up a password are very specific as to min. and max. characters, alpha numeric characters, special signs (#@& etc.) and upper and lower case letters. In these instances, which are frequent, how would one set up a passphrase? Thank you.

• As best you can within those limitations, or simply revert to long random passwords.

7. Leo,
I have long appreciated the knowledge you share.
I have one Windows 11 computer connected to the Internet.
I’m concerned about the potential for hackers getting to my data on that computer.
Thank you.

• When in doubt, yes, but the advice is mostly about online accounts. Your computer presents a different set of vulnerabilities. The one protected by password is simply someone walking into your house and using your computer. (It can also be used for some forms of remote access, but those are prevented by your router.)

More important for protecting your computer is good security software, not opening unexpected attachments, and just general good security hygiene and skepticism. Internet Safety: 7 Steps to Staying Safe Online is a good start.

8. Hi Leo, while I accept the point of your article I think your maths is a little suspect. A dictionary word (of any length) is only a very small subset of all the combinations of characters of a similar length. Also you cite 30,000 or 170,000 words in use, but those numbers include every length from 1 to say 15 letters, the number of 5 letter words will be much much smaller. Any word of any length will always have a considerably smaller number of combinations than random characters of the same length. I agree, of course, that 3 or 4 words will be far easier to remember than random characters but that only matters if you are not using a good password manager.

• Those numbers are rough estimates and since it’s a meaningless passphrase, it doesn’t matter much the frequency of those words in the dictionary as a dictionary can’t be used against a passphrase like that. All of your web passwords can be random as they are encrypted and managed by yout password manager, but some passwords like the password to yout password manager need to be something you can remember. Of course, you can create a text file to hold those passwords, but that would need a memorizable password.

9. Your title “How can four random words be more secure than 16 random characters?” implies that they can, which is impossible as the possible password combinations using 16 random characters would include all of the possible passwords using four random words, assuming the 16 random characters available include all of the upper and lower case letters plus spaces, dashes, underscores, etc.

• The example Leo gives, CorrectHorseBatteryStaple contains 25 characters which is much better than a password of 20 characters using 20 characters.
For 25 alpha characters the total number of possible combinations is 52^25 (52 with 25 zeros)
If the password is 20 characters long including numbers ans special characters , then the total number of possible combinations is 95^20.
The 25 character password is much more difficult to crack.

10. Got it now. I misunderstood the recommendation as I was thinking the password alternatives were of the same length. If they were then I think I’d be correct. If so you are somewhat comparing apples and oranges. But you have a valid viewpoint.

11. Hi Leo

I have a question somewhat related to this topic.

For websites that do not allow entering wrong passwords after a few attempts, do we still bother to use a very strong password since hackers cannot do the brute force attacks anyway. A moderately strong password would be sufficient and as secure as a very strong one. Am I correct?

Thanks
Narin