Utility Tools

How to Create a Secure Password: Entropy Math, Length & Character Mix Rules

Understand password security math: Learn how password entropy bits are calculated, why length beats complexity, and how to create uncrackable passphrases.

October 08, 2026 6 min read Bhadresh Kotadiya
How to Create a Secure Password: Entropy Math, Length & Character Mix Rules
Summarize with:

When creating account passwords, users are often forced to follow complex rules like adding special symbols, numbers, and capital letters. However, NIST Special Publication 800-63B guidelines emphasize that password length dominates character complexity when defending against brute-force GPU cracking.

Direct Answer: Password entropy measures how unpredictable a password is, expressed in bits. It is calculated as E = L × log₂(R), where L is the password length and R is the size of the character pool it draws from. A 16-character password mixing upper/lowercase letters, digits, and symbols (a 95-character pool) has roughly 105 bits of entropy — effectively uncrackable with current hardware — while an 8-character password from the same pool has only about 52.6 bits, which falls to a fast GPU cluster in hours to days.

The Password Entropy Formula

Entropy (in bits) = L × log₂(R)

  • L — the number of characters in the password.
  • R — the size of the character pool available to each position:
Character Pool Pool Size (R) log₂(R)
Digits only (0–9) 10 3.32
Lowercase letters only (a–z) 26 4.70
Lowercase + uppercase (a–z, A–Z) 52 5.70
Lowercase + uppercase + digits 62 5.95
Full printable ASCII (letters, digits, symbols) 95 6.57

Each additional character type in the pool adds only a fraction of a bit per position; each additional character in the password adds a full multiple of log₂(R) bits. That's why length scales security far faster than adding more symbol types.

Worked Example: Calculating Entropy Step by Step

Take the password Tr0ub4dor&3. Count the characters: T-r-0-u-b-4-d-o-r-&-3 — that's L = 11. Because it mixes uppercase, lowercase, digits, and a symbol, assume the full printable ASCII pool, R = 95.

  1. Look up log₂(95) ≈ 6.5699
  2. Multiply by length: 11 × 6.5699 ≈ 72.3 bits of entropy

Compare that to a 16-character random string like K9#mX2!pL7$vR4@q drawn from the same 95-character pool:

16 × 6.5699 ≈ 105.1 bits

Adding five more characters — without changing the character pool at all — added roughly 33 bits, which is the difference between "crackable by a determined attacker" and "not crackable with any foreseeable hardware."

Entropy vs. Estimated Crack Time

The table below assumes an attacker has already stolen a password hash and is running an offline brute-force search at 100 billion guesses per second (a realistic ceiling for a fast, unsalted hash like MD5 on modern GPUs), exhausting the full keyspace of 2^E:

Entropy Example Time to Exhaust Keyspace @ 100B guesses/sec
~28 bits 5-char full-ASCII password ~2.7 milliseconds
~40 bits 6-char full-ASCII password ~11 seconds
~52.6 bits 8-char full-ASCII password ~3.1 hours
~72.3 bits 11-char mixed password ~1,500 years
~80 bits Recommended minimum for online accounts ~383,000 years
~105 bits 16-char full-ASCII password ~12.8 trillion years

These numbers assume a fast, unsalted hash. Properly salted and stretched hashes (bcrypt, scrypt, Argon2id) push real-world crack times far higher even at moderate entropy — see our companion guide on how password crackers actually work for the hash-speed comparison.

Why Length Beats Complexity: NIST SP 800-63B

NIST's Digital Identity Guidelines (SP 800-63B) reversed decades of "add more symbols" advice for two evidence-based reasons:

  1. Composition rules produce predictable patterns. Forcing @ for a or 3 for e doesn't add real entropy, because attackers' rule-based mangling tools already test these substitutions by default. A "complex" 8-character password like P@ssw0rd! is one of the first thousand guesses a modern cracker tries.
  2. Periodic forced resets weaken passwords. Users asked to change passwords every 90 days tend to make minimal, guessable edits (Summer2025! → Autumn2025!). NIST now recommends against mandatory periodic rotation, reserving password changes for confirmed compromise.

Instead, NIST recommends allowing passwords up to at least 64 characters and encouraging long passphrases over short, complex strings.

Passphrase Entropy: A Different Calculation

A multi-word passphrase like correct horse battery staple is not secure because of per-character brute force — an attacker who suspects it's four dictionary words will search the word list, not the character space. Its real security comes from how randomly the words were chosen, calculated with the diceware method:

Entropy = (number of words) × log₂(word list size)

A standard Diceware list has 7,776 words (log₂(7,776) ≈ 12.9 bits per word). A six-word passphrase randomly selected from that list has:

6 × 12.9 ≈ 77.5 bits of entropy

That's comparable to an 11–12 character random password, and far easier to remember correctly — provided the words are chosen by a random process (dice rolls or a cryptographically secure generator), not picked by a human, since human-selected phrases cluster around common idioms and are far weaker than the raw math suggests.

Practical Rules for Building Strong Passwords

  • Prioritize length. A 16+ character password beats an 8-character "complex" one even if the shorter one uses more symbol types.
  • Use a password manager and generator rather than memorized patterns, so each account gets an independent, high-entropy string.
  • Use random passphrases for anything you must type from memory, generated via diceware or a trusted tool — not phrases you invent yourself.
  • Never reuse passwords across sites. Entropy is irrelevant if a password leaks from one breached service and is replayed elsewhere via credential stuffing.
  • Check real-world exposure, not just theoretical entropy — a 105-bit password that also appears in a leaked breach corpus is not safe, because dictionary attacks try known-leaked passwords before brute force.

Generate cryptographically random, high-entropy passwords with our password generator, check exactly how many bits of entropy your own password has with the password strength checker, compute password hashes for testing with the hash generator, and encode tokens safely using the Base64 encoder/decoder.

Frequently Asked Questions

What is a good minimum entropy for passwords?

Aim for at least 80 bits for ordinary online accounts. For master passwords protecting a password manager or full-disk encryption key, target 100+ bits.

Does adding one symbol to a password meaningfully increase security?

Only slightly. Replacing one letter with a symbol multiplies the keyspace for that single position, not the whole password. Adding one extra character to the password length multiplies the entire keyspace by R, which is almost always the bigger security gain.

Is a longer password always better than a more complex one?

For brute-force resistance, yes — length has a linear effect on the exponent in 2^(L·log₂R), while widening the character pool only affects the base. A 20-character lowercase-only password can out-entropy a 10-character password using all 95 printable characters.

How is entropy different from the "crack time" shown by online checkers?

Entropy is a theoretical measure of keyspace size. Crack time estimates translate that keyspace into real-world seconds based on an assumed guess rate and hash algorithm. The same entropy value can mean very different real crack times depending on whether the target hash is fast (MD5) or deliberately slow (bcrypt/Argon2id).

Should I still avoid dictionary words entirely?

Not necessarily — diceware-style passphrases are literally built from dictionary words. What matters is that the selection of words (or characters) is unpredictable to an attacker, not that the words themselves are unusual.


References: NIST SP 800-63B (Digital Identity Guidelines: Authentication and Lifecycle Management).

Free Calculator

Put this guide into action

Stop guessing — use our Password Strength Checker to run real numbers, compare scenarios, and get instant results you can trust.

Use Free Password Strength Checker
Bhadresh Kotadiya

Bhadresh Kotadiya Founder, EasyToolio (B.Tech in Computer Engineering)

Full-Stack Architecture, Web Performance & Technical SEO

Bhadresh Kotadiya is a full-stack software engineer with a B.Tech in Computer Engineering and the founder of EasyToolio. He builds the site and its calculators himself, working mainly with PHP, Laravel and Linux servers, and writes the technical guides on EasyToolio: developer tools, web performance, SEO, security and networking, and device and speed tests. He is the person to contact about how a tool works or if a calculation looks wrong.

Try Tool Password Strength Checker
Use Tool

Continue Reading

AI ADVISOR & COACH

Ask AI Advisor

Ask AI