# Password Entropy Calculator — Bits & Time to Crack

Source: https://passwordgeneratorlab.com/password-entropy-calculator/

> Calculate the entropy of randomly generated passwords, passphrases and PINs, and see how long guessing would take in five realistic attack scenarios.

## Key facts

- Entropy in bits = length × log₂(number of possible choices per position).
- Each extra bit doubles the possibilities; on average an attacker must search half of them.
- One more random character from 94 adds about 6.55 bits (log₂ 94); enabling symbols (62 → 94 characters) adds only about 0.6 bits per character.
- Entropy only describes randomly generated secrets, not passwords people invent.

Last reviewed 9 November 2026

## What entropy means

Entropy measures how many equally likely outcomes a random process can produce, counted in bits: each bit doubles the possibilities. If every position of a secret is picked uniformly from *N* options and there are *L* positions, the entropy is **L × log₂(N)**.

An attacker who knows exactly how the secret was made — the character set, the length, the wordlist — still has to try, on average, half of all 2^(bits) possibilities. That's what the time estimates above show.

## Length beats complexity

Adding symbols to a random password grows *N* from 62 to 94, adding about 0.6 bits per character. Adding one more character adds about 6.55 bits. Both help, but length helps far more — which is why modern guidance focuses on length. The [password length guide](https://passwordgeneratorlab.com/guides/password-length/) turns this into recommended lengths, with guessing times for 8 to 20 characters.

## When entropy doesn't apply

The formula assumes a **random** choice. A password a person invents — `Summer2026!` — has 11 characters from a 94-character set, so the formula claims 72 bits, yet it sits near the top of every cracking list. For human-chosen passwords, use the [strength checker](https://passwordgeneratorlab.com/password-strength-checker/), which models how attackers actually guess.

## About the attack speeds

Real speeds depend on the hashing algorithm, hardware and budget. Rate-limited online attacks are slowest; offline attacks on a stolen database with a fast, unsalted hash are fastest. The five scenarios are round numbers that span that range — treat the results as orders of magnitude, not promises.

## Sources

- [NIST SP 800-63B-4, Digital Identity Guidelines: Authentication and Authenticator Management (2025)](https://pages.nist.gov/800-63-4/sp800-63b.html)
- [OWASP Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)

## Frequently asked questions

### How many bits of entropy is enough?

For a password stored in a password manager, 80 bits or more is comfortable against offline attacks; our default 20-character password has about 131. For things protected by rate limiting, such as a phone PIN, far less is acceptable.

### Why does your generator sometimes show slightly less than L × log₂(N)?

When it requires every character type, passwords missing a type are excluded. We count the remaining possibilities exactly, which is a little fewer than the simple formula.

### Do quantum computers change this?

Grover's algorithm could in theory halve the effective bits of a brute-force search, but practical attacks on passwords remain limited by hashing and rate limits. A long random password stays a strong choice.

## Related guides

- [How are passwords cracked?](https://passwordgeneratorlab.com/guides/how-are-passwords-cracked/) — How attackers really get passwords: phishing, credential stuffing, online guessing and offline cracking of stolen hashes, and what length and randomness change.
- [How long should a password be?](https://passwordgeneratorlab.com/guides/password-length/) — Password length explained with real numbers: how each extra character changes guessing time, what NIST recommends, and sensible lengths for every situation.
- [Diceware: make a passphrase with real dice](https://passwordgeneratorlab.com/guides/diceware-passphrase/) — How to roll a Diceware passphrase with five dice and the EFF wordlist, how many words you need, how to avoid bias, and when a generator does the same job.

## More generators

- [Password generator](https://passwordgeneratorlab.com/) — Random passwords with full control over length and characters.
- [Passphrase generator](https://passwordgeneratorlab.com/memorable-password-generator/) — Memorable word-based passphrases from the EFF wordlist.
- [PIN generator](https://passwordgeneratorlab.com/pin-generator/) — Uniform random numeric PINs, 4–12 digits.
- [Wi-Fi password generator](https://passwordgeneratorlab.com/wifi-password-generator/) — WPA2/WPA3 passphrases that are easy to type on any device.
- [Bulk password generator](https://passwordgeneratorlab.com/bulk-password-generator/) — Up to 100 independent passwords at once.
- [Password policy generator](https://passwordgeneratorlab.com/password-policy-generator/) — Passwords that meet Entra ID, Active Directory, AWS IAM, PCI DSS and NIST rules.
- [Password strength checker](https://passwordgeneratorlab.com/password-strength-checker/) — Check how guessable a password is — entirely on your device.
- [API key generator](https://passwordgeneratorlab.com/api-key-generator/) — Random 128–512-bit keys, tokens and secrets for developers.
