Entropy: counting the guesses
Entropy measures unpredictability in bits. Each extra bit doubles the number of possibilities. For a password chosen truly at random, entropy = length × log₂(size of the character set).
A password of 8 characters picked randomly from the 94 printable ASCII characters has 8 × log₂(94) ≈ 52.4 bits. A 12-character one has about 78.7 bits and a 16-character one about 104.9 bits. Eight lowercase letters only have 8 × log₂(26) ≈ 37.6 bits.
The key word is random. These figures apply only when every character is chosen by a random generator. A password a person invents, such as "Summer2026!", has far less real entropy, because people follow predictable patterns that attackers try first.
What the numbers mean in practice
Suppose an attacker has stolen a database of password hashes and can test 10 billion guesses a second against a fast hash. This is a deliberately generous assumption for the attacker. On average they find the password after trying half the possibilities.
| Password | Entropy | Average time to guess at 10 billion/s |
|---|---|---|
| 8 random lowercase letters | ≈ 37.6 bits | about 10 seconds |
| 8 random characters (all types) | ≈ 52.4 bits | about 3.5 days |
| 12 random characters (all types) | ≈ 78.7 bits | about 750,000 years |
| 16 random characters (all types) | ≈ 104.9 bits | far beyond any practical attack |
Passphrases: easier to remember, just as strong
A passphrase picks several words at random from a large list. With a list of 7,776 words (the size used by the popular Diceware method), each word adds log₂(7,776) ≈ 12.9 bits. Four words give about 51.7 bits, comparable to 8 random characters. Six words give about 77.5 bits, comparable to 12 random characters.
Six random words are much easier to type and remember than 12 random symbols, which makes them a good choice for the few passwords you must memorise, such as a password-manager master password or a device login. The words must be chosen randomly by a tool or dice, not by you, and not a quotation or lyric.
Random is the important part. A phrase you made up, like a favourite film line, is far weaker than its length suggests.
Why length beats complexity
- Adding one more character to a random password multiplies the possibilities by the size of the character set, while adding a symbol to a short password changes the pool only a little.
- Forced rules (one capital, one number, one symbol) push people toward predictable choices such as a capital first letter and a number at the end.
- Recent guidance from standards bodies, such as the US National Institute of Standards and Technology, recommends allowing long passwords and screening against lists of breached passwords instead of forcing frequent changes or composition rules.
A practical checklist
- Use a password manager and generate a unique random password for every account, at least 14 to 16 characters.
- Use a long random passphrase of six or more words for the manager itself and for devices you must unlock by typing.
- Never reuse a password. Reuse is how one breached site leads to many hacked accounts.
- Turn on two-factor authentication, preferably with an authenticator app or a security key, for email, banking and anything that holds money.
- Change a password when you learn it was exposed, not on a fixed schedule.
- Generate passwords in a tool that runs locally in your browser and never sends them anywhere.
Frequently asked questions
How long should a password be?
For random passwords generated by a manager, 14 to 16 characters or more is a comfortable choice. For a passphrase you type, use at least six random words. Longer is always safer, within what the site allows.
Are symbols and numbers necessary?
Not if the password is long and random. They increase the character set a little, but length contributes much more. Some sites still require them, in which case let your manager include them.
Is it safe to write passwords down?
A paper list kept somewhere secure at home is safer than reusing weak passwords, because the main threat is online attack, not a burglar. A password manager is better still.
What is a password hash and why does it matter?
Sites store a one-way transformation of your password. Slow, modern hash functions make each guess expensive for an attacker, which is why the guess rates above change a lot depending on how the site stores passwords. You cannot see this as a user, so choose strong passwords for every site.
Try these tools
Password Generator
Generate strong random passwords with custom length and characters. Uses your browser’s cryptographic randomness; nothing is sent or stored.
Open toolPassphrase Generator
Generate memorable multi-word passphrases from a 512-word list with honest entropy in bits. Choose word count, separator, capitals and a number. Private.
Open toolHash Generator (SHA-256)
Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes for text or files. Verify downloads and checksums. Runs locally in your browser.
Open toolUUID Generator
Generate random version 4 UUIDs (GUIDs) in bulk. Copy one or hundreds, in uppercase or without hyphens. Uses your browser’s secure random generator.
Open toolKeep reading
How to win at Tic Tac Toe: the strategy that never loses
Tic Tac Toe is solved: perfect play always draws. Learn the best opening moves, how to set a fork and what to do as first or second player so you never lose.
Read guideLudo rules and winning tips
Learn the standard Ludo rules, how capturing and safe squares work, and the strategy tips that help you win more games against friends and the computer.
Read guideAre QR codes safe? How to scan without risk
QR codes can hide a link to a fake page. Learn what a QR code contains, the warning signs of a malicious one and how to scan and create QR codes safely.
Read guide