keepcalculator

06 Numbers and Powers

Password Length: How Long for Safer Accounts

Card No. 06·40575 · Updated · Standard formula, shown below

Longer passwords are the single most effective habit for protecting your accounts, and the current best practice is to use passphrases of at least 15-16 characters, ideally 20 or more. This article explains why length matters more than complexity, how password cracking actually works, and how to create and manage long passwords without losing your sanity.

Why Length Matters More Than Complexity

For decades, the standard advice was to create passwords with uppercase letters, lowercase letters, numbers, and symbols, like P@ssw0rd!. That advice is now outdated. The problem is that humans are predictable: when forced to add symbols, they put a ! at the end and a 0 instead of an o. Attackers know this and build their cracking dictionaries to include these common substitutions.

Length, on the other hand, increases the search space exponentially. Every additional character multiplies the number of possible combinations by the size of the character set. A 12-character password using uppercase, lowercase, and digits (62 possible characters) has 62^12 ≈ 3.2 × 10^21 combinations. A 16-character password using only lowercase letters (26 possible characters) has 26^16 ≈ 4.3 × 10^22 combinations – that’s more than 13 times more combinations, even though it’s all lowercase. And a 20-character lowercase passphrase has 26^20 ≈ 1.9 × 10^28 combinations, which is astronomically larger.

In practice, this means that an attacker trying to crack a password hash offline (by guessing millions of combinations per second) will give up on a 16-character passphrase long before they succeed, while a short but complex password might fall in minutes or hours.

How Password Cracking Works

To understand why length is so effective, you need to know how attackers steal and crack passwords. When a website is breached, the attackers often get a file of password hashes – mathematical fingerprints of the passwords. They can’t read the passwords directly, but they can guess passwords, hash them, and compare the results to the stolen hashes.

Modern cracking tools like Hashcat use powerful GPUs to try billions of guesses per second. They start with:

  • Common passwords and leaked password lists (e.g., “123456”, “password”, “qwerty”)
  • Variations of those with common substitutions (e.g., “P@ssw0rd”)
  • Dictionary words with numbers appended (e.g., “summer2024”)
  • Then they move to brute force – trying every combination of characters in order of length.

For a short password (say, 8 characters), brute force can cover the entire space in a matter of days or even hours, depending on the character set. For a 12-character password, it could take centuries. For 16+ characters, it’s effectively impossible with current technology. That’s why security experts now recommend length over complexity.

How to Choose a Long Password (Passphrase)

The best way to create a long password is to use a passphrase – a sequence of random words or a sentence that is easy for you to remember but hard for a computer to guess. Here are some methods:

  1. Random word method: Pick 4-5 random words, like correct horse battery staple (a famous example from an XKCD comic). Make sure the words are not a common phrase or a quote.
  2. Sentence method: Create a sentence that only you would think of, like My dog Buster eats 3 meals a day! – that’s 31 characters.
  3. Add a twist: Add a number or symbol in the middle, e.g., correct horse battery 7 staple – but avoid putting it at the end, which is predictable.
  4. Use a password manager: Let the manager generate a truly random 20-character password (e.g., k9#Lp2!xQz8$Vr5@Nm7) and store it securely. You only need to remember the master password.

Avoid using personal information (birthdays, names, pet names) because attackers can find that on social media and will try it first.

Common Problems and Misconceptions

One common misconception is that a long password must be hard to remember. That’s not true – a passphrase of 4-5 random words is easy to remember, yet it’s far stronger than a short random string. Another misconception is that changing passwords frequently makes you safer. In fact, frequent changes often lead to weaker passwords (people just increment a number) and can encourage reuse. The current guidance is to change a password only if you suspect it’s been compromised.

Another problem is that some websites still impose a maximum length (e.g., 12 characters) or disallow spaces. If you encounter this, use a password manager to generate a random 12-character password with mixed characters – that’s the best you can do within the site’s limits. Also, be aware that some sites truncate passwords silently, so test that your full passphrase works.

Password Managers and Multi-Factor Authentication

Password managers are the practical solution to the “I can’t remember 50 long passwords” problem. They store all your passwords in an encrypted vault, protected by one master password. You only need to remember that one master password (make it a long passphrase). The manager can generate and fill in unique, long passwords for every site.

However, a password manager is only as secure as your master password and your device. If you use a weak master password, an attacker who gets your vault file could crack it. Also, if you lose your master password, you lose access to everything – so write it down and store it in a safe place.

Multi-factor authentication (MFA) adds another layer: even if an attacker gets your password, they still need the second factor (like a code from your phone). Use MFA wherever it’s offered, especially for email and financial accounts. But remember: MFA is not a substitute for a long password; it’s an additional safeguard.

Costs and Trade-offs of Long Passwords

The main cost of long passwords is usability. Typing a 20-character passphrase on a phone or a keyboard is slower, and you’re more likely to make a typo. That’s why password managers are so valuable – they eliminate the need to type long passwords manually.

Another trade-off is that some legacy systems (like older banking sites or corporate VPNs) may not support long passwords or special characters. In those cases, you have to work within their constraints. Also, if you use a passphrase that is a sentence, be careful not to use a famous quote or a line from a song – those are in cracking dictionaries.

There’s also the risk of lockout: if you forget your long password and don’t have a recovery method, you could lose access to your account. That’s why it’s important to set up recovery options (like a backup email or phone number) and to write down your master password in a secure place.

Alternatives to Long Passwords

While long passwords are the foundation, there are newer alternatives that may eventually replace them:

  • Passkeys (WebAuthn): Instead of a password, you use a cryptographic key stored on your device, unlocked by a fingerprint, face scan, or PIN. Passkeys are phishing-resistant because they don’t require you to type anything.
  • Hardware security keys: A physical USB/NFC device that authenticates you. Even if an attacker has your password, they can’t log in without the key.
  • Biometrics: Fingerprint or face recognition for unlocking devices – but these are often used in combination with a password, not as a replacement.

These alternatives are growing, but they have their own adoption challenges. For now, using a long passphrase with a password manager is the most practical and secure approach for most people.

Frequently Asked Questions

How long should my password be in 2024?

Security experts (like NIST) recommend at least 15 characters for passwords, and 20 or more for passphrases. If the site allows it, aim for 16-20 characters. Anything under 12 characters is considered weak, regardless of complexity.

Is a 12-character password with symbols stronger than a 20-character lowercase passphrase?

No. A 20-character lowercase passphrase has 26^20 ≈ 1.9 × 10^28 combinations, while a 12-character password with uppercase, lowercase, digits, and symbols (say 94 characters) has 94^12 ≈ 4.7 × 10^23 combinations. The 20-character passphrase is about 40,000 times stronger, even though it’s easier to remember.

Should I change my passwords regularly?

Only if you suspect a breach. Frequent forced changes lead to weaker passwords and reuse. Instead, use unique passwords for each account and enable MFA. If a site you use is breached, change that password immediately.

Can I use a sentence as my password?

Yes, but make it a unique sentence that isn’t a famous quote or song lyric. For example, My first car was a blue 1998 Honda is 35 characters and easy to remember. Avoid common sentences like “I love my dog” because they’re in cracking dictionaries.

What if a website limits password length to 12 characters?

Use a password manager to generate a random 12-character password with mixed case, numbers, and symbols. That’s the strongest you can do within that limit. Also, consider contacting the site to request they increase the limit – it’s a security concern.

Is it safe to write down my passwords?

Writing down passwords can be safe if you store the paper in a secure, private place (like a locked drawer). The risk of someone physically stealing your password list is generally lower than the risk of reusing passwords online. However, a password manager is more practical and secure.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →