A strong random password is long, unique, and generated by a machine rather than invented by a person. Length matters more than anything else. A random 16-character password drawn from upper and lower case letters, digits, and symbols has about 95^16 possible combinations — roughly 10^31. At a billion guesses per second, checking them all would take far longer than the age of the universe. A random 8-character password from the same set has about 6.6 quadrillion combinations, which sounds large until a modern cracking rig is pointed at it: at a billion guesses per second, it falls in about 77 days — and a rig doing a trillion guesses a second finishes the job in under two hours. The difference between 8 and 16 characters is not double the security. It is a difference of many orders of magnitude.
The reason people still use weak passwords is not ignorance. It is memory. Human brains cannot remember dozens of random strings, so people reuse passwords, or they pick patterns: a name, a year, a word with a digit at the end. Attackers know this. The most common passwords in every leaked database are the same short list: 123456, password, qwerty, and their variants. A password that a person can remember easily is a password that a cracking program can guess easily, because both the person and the program are drawing from the same small pool of predictable choices. The fix is to stop memorizing passwords and start generating them.

How password strength is measured
Password strength is measured in bits of entropy. Entropy is the logarithm, base 2, of the number of possible passwords. Each character drawn at random from a set of N symbols adds log2(N) bits. A lowercase letter adds about 4.7 bits, because log2(26) is 4.7. A character from the full set of 94 printable ASCII symbols adds about 6.55 bits. A 12-character random password from the full set has about 78.6 bits of entropy. A 16-character one has about 104.8 bits. Each added character multiplies the search space, which is why length is the strongest lever available. To put the odds in familiar terms, the percentage calculator turns a one-in-a-quadrillion chance of a lucky guess into a percentage too small to matter.
The math only works if the characters are truly random. A 12-character password made of a dictionary word plus a year — "Sunshine2026" — has far less entropy than its length suggests. Attackers do not try every combination in order. They try dictionary words first, then common names, then dates, then patterns with digits and symbols appended. A password built from a word and a year falls to a dictionary attack in seconds, whatever its length. The same applies to keyboard patterns like "qwerty123" and to substitutions like "P@ssw0rd", which every cracking dictionary already contains. Random means random: each character chosen independently, with no pattern a human would pick.
NIST, the National Institute of Standards and Technology, updated its guidance in its Digital Identity Guidelines to reflect this. It recommends long passwords, at least 8 characters and preferably much longer, and it dropped the old advice to change passwords on a fixed schedule. Forced rotation pushes people toward weak, predictable changes — "Password1" becomes "Password2" — and the evidence shows it does more harm than good. The current advice is to pick a long, random, unique password for each account and change it only if there is evidence of a breach.
How long is long enough
The right length depends on the threat. For an online account with rate limiting — a website that locks the account after a few wrong guesses — even a 10-character random password is effectively unbreakable, because the attacker gets a handful of tries, not billions. For an offline attack, where a stolen password database lets the attacker guess as fast as their hardware allows, length matters much more. A fast cracking setup can test billions of password hashes per second against weak hash functions, and hundreds of thousands per second against slow ones. Turning a crack time quoted in seconds into years is a unit conversion, and the unit converter handles it in one step. Comparing hardware speeds is easier with the average calculator, which averages the published guesses-per-second figures across rigs. The defense is to make the search space so large that even billions of guesses per second are not enough.
As a practical rule: 12 characters is the minimum for anything important, 16 characters is the standard recommendation for email, banking, and password manager accounts, and 20 or more characters is appropriate for the password manager's master password and for encryption keys. A 16-character random password from the full printable set is beyond the reach of any offline attack that will exist in the foreseeable future. There is no real downside to going longer — a password manager types it for you — so erring on the side of length costs nothing.
The character set matters less than the length. Adding symbols to a password helps, but adding four more characters helps far more. A 16-character password of lowercase letters alone has about 75 bits of entropy — weaker than a 16-character mixed password at 105 bits, but still far beyond any practical attack. The practical takeaway is to use all four character types when a site allows it, and not to worry when a site restricts the set, as long as the password is long and random.
Random strings vs. passphrases
A passphrase is a sequence of random words: "correct horse battery staple" is the famous example. Four random words from a list of 2,048 words give 2,048^4 combinations, or about 44 bits of entropy — comparable to an 8-character random password. Five words give about 55 bits, six words about 66 bits, and seven words about 77 bits, matching a 12-character random string. Passphrases are easier to type and to remember than random strings, which makes them a good choice for the few passwords that must be typed by hand, such as a master password or a Wi-Fi password.
The words must be random, though. A phrase from a book, a song lyric, or a sentence that makes sense has far less entropy than its word count suggests, because attackers try common phrases too. The safe way to build a passphrase is to pick words from a published word list with dice or a generator, not to invent a sentence. A generator that picks words uniformly at random from a large list produces a passphrase with known entropy. A human picking words that feel random does not — people favor common words and avoid odd ones, which shrinks the search space.
For most accounts, a random string is the better choice, because it never needs to be typed or remembered. The password manager fills it in. For the master password — the one password that must be remembered — a passphrase of six or seven random words is the standard recommendation. It is long enough to be strong and structured enough to be memorable.
How to generate one
The safest way to generate a password is to use a tool built for it: a password manager's generator, or the operating system's built-in generator. These use the device's cryptographic random number generator, which draws from hardware entropy sources and is designed for exactly this purpose. They also let the length and character set be specified, and they avoid ambiguous characters when asked. A password manager generates the password, stores it, and fills it in on the site — the whole flow takes seconds, and the password never needs to be seen or remembered.
What not to use is anything predictable. Do not use a random number generator seeded from the time of day. Do not use an online password generator that sends the password over the network, unless it is a reputable tool that generates locally in the browser. Do not use a pattern based on the site name, such as a base password with the site's letters appended — one breach exposes the pattern for every account. And do not use personal information: names, birthdays, addresses, and pet names are the first things an attacker tries, and much of that information is public.
A quick check for any password: search for it in a breach database. The service Have I Been Pwned maintains a database of hundreds of millions of breached passwords, and its password check reports how many times a given password has appeared in a breach, without revealing the password itself. Any password that appears even once should be replaced. A random 16-character password will not appear at all.
One password per account
Uniqueness matters as much as strength. A strong password reused across ten sites is only as safe as the weakest of those sites. When one site is breached — and breaches happen to large, well-run companies every year — the stolen passwords are tried against every other major site within hours, in an attack called credential stuffing. A reused password turns one breach into ten compromised accounts. A unique password per account limits the damage to the one breached site.
This is the problem a password manager solves. It stores a different random password for every account and fills them in automatically. The user remembers one master password and, ideally, protects the manager with a second factor. The common objection is the single point of failure: if the manager is breached, everything is lost. Reputable managers encrypt the vault on the device with the master password, so the company itself cannot read the contents, and a breach of their servers exposes encrypted data that is useless without the master password. The risk of a well-designed manager is far lower than the risk of reusing passwords across dozens of sites.
Two-factor authentication: the second layer
A strong password is the first layer. Two-factor authentication is the second. It requires something the user has — a phone app, a security key, or a texted code — in addition to something the user knows. Even if a password is stolen, the account stays protected, because the attacker does not have the second factor. Every important account offers it: email, banking, social media, cloud storage, and password managers themselves. It should be turned on everywhere it is offered.
Not all second factors are equal. A hardware security key is the strongest, because it cannot be phished — it only responds to the real site. An authenticator app is next: it generates codes that change every 30 seconds and are not sent over any network. A texted code is the weakest of the three, because phone numbers can be hijacked and texts can be intercepted, but it is still far better than no second factor at all. The order of preference is security key, authenticator app, then text message. Any of them beats a password alone.
Recovery codes deserve the same care as passwords. When two-factor authentication is set up, most services provide backup codes for the case of a lost phone. Those codes should be printed or stored somewhere safe — a locked drawer, or the password manager itself — and never stored in plain text on the computer or in an email. A recovery code is a password by another name, and it should be treated like one.
Storing and sharing passwords
Passwords should never be stored in a spreadsheet, a notes app, a text file, or an email draft. Those are the first places an attacker looks on a compromised computer, and they are often synced to cloud services with weaker protection than the accounts they guard. A password manager's encrypted vault is the intended storage. For the small number of passwords that must be written down — the master password, for example — paper in a locked drawer is safer than a digital file, because it cannot be stolen remotely.
Sharing passwords is sometimes unavoidable, such as a shared household streaming account or a family member's emergency access. The safe way is the password manager's sharing feature, which shares access without revealing the password itself and allows the share to be revoked. The unsafe way is a text message or an email, both of which live forever in inboxes and backups. If a password has ever been sent by text or email, it should be changed and the new one shared properly.
Frequently asked questions
How do I generate a strong random password? Use a password manager's generator or the operating system's built-in generator. Choose 16 characters or more, with upper and lower case letters, digits, and symbols. Let the tool pick the characters at random.
How long should a strong password be? At least 12 characters for most accounts and 16 or more for email, banking, and the password manager itself. Longer is always better, and a password manager removes the cost of length.
Is a passphrase as strong as a random password? It can be, if the words are picked at random from a large list. Six or seven random words give about the same strength as a 12-character random string. A sentence that makes sense is much weaker.
Should I change my passwords regularly? No, not on a fixed schedule. Current guidance from NIST is to change a password when there is evidence of a breach, not every 90 days. Forced rotation leads to weak, predictable passwords.
What is the best way to store passwords? In a password manager with a strong master password and two-factor authentication. Never in a spreadsheet, notes app, or email.
Do I still need two-factor authentication with a strong password? Yes. A strong password protects against guessing. Two-factor authentication protects against theft, phishing, and breaches. The two layers cover different attacks.
Length, randomness, and uniqueness are the whole recipe. Generate a long random password for every account, store it in a manager, turn on two-factor authentication, and never reuse a password. The rest is detail — and the detail is handled by the tools, which is exactly the point.