Password Entropy Calculator

Calculate entropy for random passwords and passphrases, then find how many characters or words you need to reach a target. Enter the generation rules. No password required.

Calculation mode
Character pool94 characters
Allowed character sets

A comparison target, not a security requirement.

Theoretical entropy
104.87bits

To reach 128 bits

20 characters needed

Add 4 characters.

Crack-time estimate

Offline
Over a trillion years
Online
Over a trillion years
Calculation assumptions

Theoretical entropy: 104.87 bits. 20 characters needed for 128 bits.

Calculate password entropy without entering a password

  1. Choose random characters or random words

    For a generated password, enter its length and select the character pool. For a passphrase, enter the word count and choose EFF long / Diceware, EFF short, or a custom word list size. The calculator compares these rules; it does not generate passwords.

  2. Set a target in bits

    Enter the entropy target you want to compare against. The default is 128 bits, which is a mathematical comparison point rather than a universal password requirement. The required length changes with your character pool or word list.

  3. See how much length to add

    Read the theoretical entropy and the minimum character count or word count for your target. If the current settings fall short, use the result button to apply the required count. For example, a 16-character password from a 94-character pool needs four more random characters to reach 128 bits.

Match the pool to your generator

Selecting Lowercase, Uppercase, Numbers, and Symbols gives 94 possible characters at each position. Adding Space makes 95. These options define what can be selected; they do not require every character type to appear in the result. With Custom, enter all allowed characters. Duplicates count once, spaces count, and Unicode characters are counted as code points.

Use sample mode for illustration

Password sample accepts a made-up example of up to 256 printable ASCII characters. It shows length, detected character classes, and an illustrative entropy value. It does not identify common passwords or predictable patterns, so it does not report actual strength or crack time.

How to calculate password entropy

Password entropy measures uncertainty about a password before it is known. For equally likely outcomes, H = log₂(N), where N is the number of possibilities. Each extra bit doubles that space. The formulas below assume independent, uniform random choices, with repeats allowed.

Random characters: H = L × log₂(R)

L is the password length and R is the number of distinct characters available at every position. With 94 allowed characters, each random position contributes about 6.55 bits. A 16-character password therefore has 16 × log₂(94) ≈ 104.87 bits. Use the full generator pool, even if a particular output happens to contain no symbols.

Random words: H = W × log₂(D)

W is the word count and D is the word list size. The EFF long / Diceware preset uses 7,776 entries, giving about 12.92 bits per word. EFF short uses 1,296 entries, giving about 10.34 bits per word. A custom list setting specifies only its size; every word must still be selected with equal probability. See EFF’s random word selection method.

Required length: round up target bits ÷ bits per choice

Divide your target by log₂(R) for characters, or log₂(D) for words, and round up to the next whole number. For a 128-bit target and a 94-character pool, 128 ÷ log₂(94) ≈ 19.53, so you need 20 characters. With a 7,776-word list, the same target needs 10 words.

What the crack-time estimate assumes

For this uniform model, the calculator approximates average guesses as 2^(H − 1), then divides by a fixed guessing rate. Offline uses 100 billion guesses per second; Online uses 1,000 guesses per second. These are calculation assumptions, not measurements of a particular account, hash algorithm, or attacker.

An online attack tries guesses against a login service. An offline attack tests guesses against stolen password hashes. Rate limits, hashing cost, and hardware can change the time substantially. The displayed time is an illustrative average, not a countdown or a guarantee.

When these formulas need a different model

Rules such as “at least one symbol,” “no repeated words,” or unequal selection probabilities change the distribution. Do not treat the result as exact for those generators. Choosing a familiar sentence yourself also does not meet the random-word assumption.

Password length and Diceware entropy examples

The same length can produce different entropy values under different generation rules. These examples assume independent, uniform choices with replacement. Bits are rounded to two decimal places.

Random password, PIN, and passphrase examples
Randomly selected lengthPool or word listEntropy (bits)
8 digits10 digits26.58
12 characters94 characters78.66
16 characters94 characters104.87
20 characters94 characters131.09
4 words7,776 words51.70
6 words7,776 words77.55
8 words7,776 words103.40

How many characters or words do you need for 128 bits?

Use these counts to compare generation settings. They are minimums for the stated mathematical targets, not universal safety thresholds. A larger pool reduces the count needed; it does not remove the need for random selection.

Minimum length, rounded up to a whole character or word
Generation rulesFor 80 bitsFor 128 bits
Lowercase letters: 26 characters18 characters28 characters
Lowercase, uppercase, numbers: 62 characters14 characters22 characters
Letters, numbers, symbols: 94 characters13 characters20 characters
EFF long / Diceware: 7,776 words7 words10 words
EFF short: 1,296 words8 words13 words

For a password manager’s master passphrase, the word-list examples let you compare how many random selections a target requires. They do not evaluate the manager’s encryption or recovery settings. A PIN used behind device lockout controls also faces different attack conditions from a password protecting a stolen file.

Password entropy vs. password strength

A high bits value describes the generation rules you entered. It cannot establish that a password you invented follows those rules. An attacker can try familiar words, dates, and substitutions before attempting every possible combination. NIST’s discussion of password strength explains why entropy is difficult to estimate for human-chosen passwords.

Why password tools can give different results
ApproachWhat it usesWhat it tells you
This entropy calculatorLength and the generator’s character pool or word list sizeTheoretical bits and the length needed for a target
A pattern-based strength checkerThe entered password, dictionaries, and recognized patternsEstimated guessing effort under its model
A breached-password lookupA database of exposed passwordsWhether a password appears in that database

Why a zxcvbn score may disagree

zxcvbn estimates guesses using patterns such as dictionary words, repeats, and keyboard sequences. This calculator uses generation rules and does not run zxcvbn or check breach databases. A low pattern-based score and a large character-pool estimate can therefore appear for the same sample without measuring the same thing.

Increase random choices, then check the wider risks

For the same pool, adding independently selected characters or words increases theoretical entropy. Appending a fixed year or replacing a letter with a familiar symbol does not create the equivalent random choice. Password reuse, phishing, and account recovery risks also remain outside the result.

Password entropy questions

How many bits of entropy should a password have?

There is no single target for every use. Generation method, attack conditions, and what the password protects all matter. Use 80 or 128 bits to compare settings, then consider the requirements of the account or system. “Target reached” means the selected mathematical target was met; it is not a security certification.

What does 80 bits of password entropy mean?

For uniformly random generation, it means a space of 2^80 equally likely outcomes. Each additional bit doubles that space. Converting it into an estimated crack time still requires a guessing-rate assumption, so 80 bits alone does not tell you how many years an attack would take.

How many Diceware words do I need?

With the 7,776-word preset, four random words give about 51.70 bits and six give 77.55 bits. Reaching 80 bits needs seven words; reaching 128 bits needs ten. The shorter 1,296-word list needs more words for the same target. These counts apply to random selections, not a phrase you write yourself.

Do spaces add entropy to a passphrase?

A fixed space or hyphen between words adds no entropy because its position and value are already determined. In Random characters, selecting Space adds one possible character to the pool. It contributes only when each position is chosen randomly from that expanded pool.

Does adding symbols make a password stronger?

Allowing symbols in a random generator increases the character pool, which increases bits per position. A predictable edit to an existing password, such as changing “a” to “@,” does not justify recalculating it as a uniformly random password from a larger pool.

Can I calculate the entropy of a password I chose myself?

You can explore its detected character pool in Password sample, but the tool cannot recover the process that produced it. The sample result assumes random selection from detected ASCII character classes. It does not assess dictionary words, personal information, or common patterns, so the displayed value is illustrative.

Is this a Shannon entropy calculator?

For a uniform generation process, Shannon entropy reduces to the log₂ of the number of possible outcomes, which is the model used here. The tool does not calculate entropy from character frequencies within one sample. A string’s internal frequency distribution does not by itself establish resistance to guessing.

Why does the result say “Over a trillion years”?

The calculator caps its displayed crack time at that phrase for very large estimates. It still uses the stated fixed guessing rates. The message describes the mathematical model; it does not account for a leaked password, reuse, or a predictable selection process.

Does the calculator send or save my sample password?

The calculator processes the sample in temporary browser page state. It does not send it to a server, save it in browser storage, or include it in the URL. Use a made-up sample, or choose Random characters or Random words so you can calculate without typing any password.

Find the length for your entropy target

Compare a random character pool or word list and see how many selections you need.

Calculate required length

Free to use. No sign-up.