FreeAICalculator

Password Entropy Calculator

By • Updated

Check your password’s entropy in bits, its real-world strength and crack time, or generate a strong random password – all inside your browser.

Security analysis

🔒 Runs offline in your browser

Quick answer

Password entropy = length × log₂(character pool). A random 16-character password using all 94 keyboard characters has about 104.9 bits and would take longer than the age of the universe to brute-force. Aim for 80+ bits of truly random entropy; passwords built from words, names or dates are much weaker than the formula suggests.

What Is Password Entropy?

Password entropy tells you how hard a password is to guess, measured in bits. Each extra bit doubles the number of guesses: 40 bits means about 1 trillion possibilities, 80 bits about 1.2 septillion.

This calculator shows two numbers: the classic formula entropy and a real-world estimate that also catches common words, names, dates and keyboard patterns.

Password entropy calculator showing entropy bits, strength and crack time

Password Entropy Formula With Example

E = L × log₂(R)

L = length, R = size of the character pool: lowercase 26, uppercase 26, digits 10, symbols about 32 (94 in total on a standard keyboard).

Example: a random 12-character password with all four types

R = 26 + 26 + 10 + 32 = 94 → log₂(94) = 6.55

E = 12 × 6.55 = 78.66 bits

Why the Formula Can Overrate Your Password

The formula assumes every character was chosen at random. People don’t do that. "P@ssw0rd!" scores 59 bits by formula, but attackers try common words with letter swaps first, so it falls in seconds.

That is why this tool also uses zxcvbn, the open-source strength estimator built by Dropbox. It checks dictionaries, names, dates, repeats and keyboard walks and gives a realistic number of guesses. The lower of the two values is shown as your entropy.

💡 Expert tip

The formula is exact only for passwords made by a random generator. If you made the password up yourself, trust the real-world estimate – or switch to a generated password stored in a password manager.

How Crack Time Is Estimated

Average time = half of all possible guesses ÷ guesses per second. Speed depends on the attack:

AttackSpeed40 bits60 bits80 bits
Online, rate-limited100 / hour628 thousand years658 billion yearslonger than the age of the universe
Online, no limit10 / sec1.7 thousand years1.8 billion yearslonger than the age of the universe
Offline, slow hash10,000 / sec1.7 years1.8 million yearslonger than the age of the universe
Offline, fast hash10,000,000,000 / sec55 seconds1.8 years1.9 million years

Speeds follow the four scenarios used by zxcvbn. Real attackers can be faster or slower.

What Is a Safe Password Entropy Score?

BitsRatingGood for
Below 40Very weakNothing – change it
40 – 59WeakOnly sites with strong rate limits and 2FA
60 – 79FairEveryday accounts with 2FA
80 – 99StrongEmail, banking, work accounts
100+Very strongPassword manager master password, encryption

Password Entropy Chart

PasswordFormula bitsReal-world view
password37.6In every leaked-password list – cracked instantly
Admin12347.6Common word + digits – cracked in seconds
P@ssw0rd!59.0Predictable “leet” swaps – in common cracking rules
h8B!k9$zQ59.0Random – real strength close to the formula
kT7#qL2v!Rm9xW4p104.9Random, 16 characters – very strong

Type any of these into the calculator to see the gap between formula and real-world entropy. Don’t use them as passwords.

How Long Should a Password Be?

Minimum length of a random password to reach each target:

Characters used60 bits80 bits128 bits
Digits only (10)192539
Lowercase (26)131828
Letters + digits (62)111422
All keyboard (94)101320

Longer vs More Complex Passwords

Each extra random character adds 4.7 bits (lowercase) to 6.55 bits (all characters). Moving from 62 to 94 characters adds only about 0.6 bits per character. So 16 random lowercase letters (75.2 bits) beat 10 random characters from the full keyboard (65.5 bits). Length wins.

Passphrases and the xkcd Example

The famous xkcd comic "correct horse battery staple" picks 4 random words from a list of about 2,048 words: 4 × 11 = 44 bits. The letter-based formula would say 117+ bits, which is far too high, because attackers guess whole words.

With the larger Diceware list (7,776 words, 12.9 bits per word), 6 random words give about 77 bits and 7 words about 90 bits – easy to remember and very strong, as long as the words are truly random.

NIST Password Guidelines

NIST SP 800-63B (revision 4) tells websites to:

  • Require at least 15 characters for passwords used alone, and at least 8 when used with multi-factor authentication.
  • Allow passwords of at least 64 characters.
  • Check new passwords against lists of common, expected or breached passwords.
  • Not force composition rules (like "must include a symbol") or regular password changes.

Common Password Mistakes

  • Words with predictable swaps (a→@, o→0, s→$).
  • Names, birthdays, phone numbers or your city.
  • Keyboard walks like qwerty, asdf or 1qaz2wsx.
  • Reusing one password on many sites – one leak opens them all.
  • Adding "123" or "!" at the end – attackers try that first.

Calculate Entropy Manually or in Excel

  1. Count the length (L).
  2. Add up the pool size (R) for each character type used.
  3. In Excel or Google Sheets: =A1*LOG(B1,2) with L in A1 and R in B1.

To measure the password directly from text in A1: =LEN(A1)*LOG(94,2) (assuming all four character types).

How to Use This Calculator

  1. 1

    Type or paste a password

    In the Check tab, type a password. Nothing is sent anywhere – it is checked in your browser.

  2. 2

    Read both entropy values

    See the formula entropy (length × log2 of the character pool) and the real-world estimate that checks for words, names, dates and keyboard patterns.

  3. 3

    Check the crack times

    Compare how long an attacker would need online and offline, from rate-limited logins to GPU attacks on leaked hashes.

  4. 4

    Fix or generate

    Follow the tips, or use the Generate tab to create a random password with exactly known entropy.

Himanshu Grewal

Why I Built This Tool

Himanshu Grewal, Founder

Most entropy calculators only apply L × log₂(R), so "P@ssw0rd!" looks fairly strong. That gives people false confidence.

This version shows the formula and a real-world estimate side by side, gives crack times for four attack types, and can generate a random password when yours is weak. Nothing you type leaves your device. Ideas or issues? Contact me.

How This Tool Was Tested

  • Formula – 12 random characters from 94 = 78.66 bits, matching 12 × log₂(94).
  • Crack time – 40 bits at 10 billion guesses/s = 55 seconds on average (2³⁹ ÷ 10¹⁰).
  • Weak patterns – "password", "P@ssw0rd!" and "qwerty123" are flagged as very weak despite their formula score.
  • Privacy – the page makes no network request with your password; tested with the browser network panel.

Frequently Asked Questions

What is password entropy?

Password entropy measures how unpredictable a password is, in bits. Each extra bit doubles the number of guesses an attacker needs. For a random password it is length × log2(character pool size).

How do you calculate password entropy?

Use E = L × log2(R), where L is the length and R the number of possible characters (26 lowercase, 26 uppercase, 10 digits, about 32 symbols). Example: a random 12-character password using all 94 characters has 12 × 6.55 = 78.7 bits.

What is a good password entropy?

For important accounts aim for at least 80 bits of real (random) entropy; for a password manager master password or encryption key, 100 bits or more. Below 60 bits is weak against offline attacks.

Is 40 bits of entropy strong?

No. At 10 billion guesses a second (a fast hash on GPUs), 40 bits is cracked in about 55 seconds on average. Even with a slow hash it takes only about 1.7 years.

How long does it take to crack an 80-bit password?

At 10 billion guesses a second it would take about 1.9 million years on average, so an 80-bit random password is safe from brute force. It can still be stolen by phishing or malware.

Why does the calculator show two entropy numbers?

The formula assumes every character was picked at random. Real passwords often use words, names, dates and keyboard patterns, which attackers try first. The real-world estimate (from the zxcvbn library) looks for these patterns, so it is usually lower – and more honest.

Is password length more important than symbols?

Yes. Each extra random character adds about 6.5 bits; switching from letters and digits to all symbols adds only about 0.6 bits per character. A long passphrase usually beats a short complex password.

What does NIST recommend for passwords?

NIST SP 800-63B (revision 4) requires at least 15 characters for passwords used alone and 8 when used with multi-factor authentication, support for at least 64 characters, checking against lists of common or breached passwords, and no forced complexity rules or regular password changes.

How many bits is military-grade encryption?

"Military-grade" usually means AES-256, a 256-bit key. A random 40-character password from all 94 characters has about 262 bits.

Is this password entropy calculator safe to use?

Yes. All checks run in your browser. Your password is not sent to our server or stored. The pattern library is downloaded once and then works on your device. For extra safety, test a password similar to yours rather than the real one.

Cite this page:

Himanshu Grewal, "Password Entropy Calculator", Free AI Calculator, https://freeaicalculator.com/tools/password-entropy-calculator/