Password entropy calculator
Find out how many bits of entropy a password or passphrase has, and what that means in guessing time. Type a password, or describe a policy such as “16 characters, letters and numbers”. Everything is calculated in your browser.
The calculator detects which kinds of characters you used and assumes each one was picked at random from those sets.
0 bits of entropy
Enter a password or settings to see the result.
| Attack | Guesses a second | Average time to crack |
|---|
The formula
For a password picked at random, entropy in bits is:
E = L × log₂(N)
where L is the length (characters, or words in a passphrase) and N is the size of the pool each one is drawn from. The total number of possible passwords is NL, and log₂ turns that into bits. Each bit doubles the search: 50 bits is about a quadrillion possibilities, 80 bits is about a trillion trillion.
An attacker who tries guesses in a random order finds the password, on average, after trying half of them. So the average time to crack is 2E ÷ 2 ÷ guesses per second, which is what the table above shows.
Entropy per character
| Pool | Size | Bits per character or word |
|---|---|---|
| Digits only (0–9), such as a PIN | 10 | 3.32 |
| Lower-case letters (a–z) | 26 | 4.70 |
| Lower-case letters and digits | 36 | 5.17 |
| Upper and lower-case letters | 52 | 5.70 |
| Letters and digits | 62 | 5.95 |
| Letters, digits and the 33 printable ASCII symbols | 95 | 6.57 |
| Words from a 7,776-word Diceware list (per word) | 7,776 | 12.92 |
The table shows why length wins. Going from letters and digits (5.95 bits a character) to the full keyboard (6.57 bits) adds less than one bit a character. Adding one more character adds six. A four-digit PIN has just 13.3 bits, which is why phones and bank cards rely on locking out after a few wrong tries rather than on the PIN itself.
The attack speeds
- Online, rate-limited (10 a second): guessing against a live login page that slows down or locks out repeated failures.
- Online, unthrottled (1,000 a second): a poorly protected service, or an attacker spreading guesses across many IP addresses.
- Offline, slow hash (100,000 a second): a stolen database protected with bcrypt, scrypt or Argon2, attacked with a few graphics cards.
- Offline, fast hash (ten billion a second): a stolen database of unsalted MD5, SHA-1 or NTLM hashes on a single modern graphics card. Our password generator and strength checker use this pessimistic figure.
- Offline, large cluster (one trillion a second): a well-funded attacker with racks of graphics cards against a fast hash.
These are round figures for comparison, not benchmarks. Real speeds depend on the hash, its settings and the hardware, and they rise every year as graphics cards get faster, which is one more reason to leave a margin.
Entropy only counts if the password is random
The formula assumes every character was chosen by a fair random process. That is true for a password from a generator, and false for almost every password a person makes up. “Summer2026!” has 11 characters from all four sets, so the formula gives it about 72 bits. In practice it would be among the first few million guesses any cracking tool tries, which is closer to 22 bits. Cracking software works through leaked password lists, dictionary words with common substitutions, names, dates and keyboard patterns long before it tries random strings.
So treat the number for a password you typed as an upper limit. To get the full entropy, let a computer choose: our password generator picks every character or word with the browser’s secure random number generator, and its strength figure is exactly the entropy calculated here.
Questions
What is password entropy?
Entropy is a measure of how unpredictable a password is, counted in bits. A password with n bits of entropy is one of 2ⁿ equally likely possibilities, so each extra bit doubles the number of guesses an attacker needs in the worst case. On average an attacker finds it after trying half of them.
How do you calculate password entropy?
For a password chosen at random, entropy = length × log₂(pool size), where the pool is the number of characters (or words) each position is picked from. A 12-character password drawn from all 95 printable ASCII characters has 12 × log₂(95) ≈ 78.8 bits. A six-word Diceware passphrase has 6 × log₂(7,776) ≈ 77.5 bits.
How many bits of entropy is a good password?
As a rule of thumb, aim for at least 70 to 80 bits for anything an attacker could attack offline, such as a password manager’s master password or an encrypted file. For website accounts, where the service limits guessing and stores passwords with a slow hash, 60 bits of true randomness is already far beyond a practical attack. Under 40 bits is weak whatever the setting.
Why does my own password score lower in the strength checker?
This calculator gives the theoretical maximum: the entropy the password would have if every character had been picked at random from its pool. People do not pick passwords at random. Words, names, dates and keyboard patterns are tried first by cracking tools, so a human-chosen password is usually much weaker than its length and character mix suggest. Our password strength checker subtracts for those patterns.
Does adding a symbol at the end help?
Very little. Rules such as “one upper-case letter, one number and one symbol” are usually satisfied in predictable ways: a capital at the start and “1!” at the end. Attackers’ tools know these habits. Adding length, especially more random words or characters, increases entropy far more.
Nothing you type on this page leaves your device. The calculator is a few lines of JavaScript with no network requests, and it keeps working offline once the page has loaded.