Password Entropy Calculator

Password strength is measurable: drawn uniformly at random, each character contributes bits of unpredictability that grow with length and the pool. Length beats decoration — twelve random characters outperform a dictionary word with one symbol appended. This page takes your length and character set, returns the bits, then estimates how long an offline attack would need, on average, at your chosen speed.

Enter values

Pick the pool the password actually draws from

Offline attacks on a hash run about 1 trillion guesses per second on a single modern GPU

Results update as you type.

Results

Password entropy
78.84 bits
Character pool
95 characters
Average time to crack at your guessing speed
8.6 thousand years

How is the Password Entropy calculated?

Three inputs: password length from 1 to 128 characters, a menu of seven pools — lowercase letters (26), uppercase (26), digits (10), both cases (52), lower plus digits (36), letters and digits (62), every printable character (95) — and the guessing speed per second, defaulting to one trillion. Length times log base 2 of the pool gives the bits. The middle row names the pool; the last turns the bits into an average crack time, from 'instantly' to 'beyond any practical timescale'.

Formula

bits = length × log₂(pool)

where length is the character count, pool the symbols each position may draw from, and log₂ the base-2 logarithm. The average attack needs half the keyspace, so average seconds = 2^(bits − 1) ÷ guesses per second. Doubling either length or pool size adds entropy; every extra bit doubles the search space.

Example

Twelve characters drawn from the full printable set give 12 × log₂(95) = 12 × 6.5699 ≈ 78.84 bits; against one trillion guesses a second the average wait comes out around 8,600 years. Drop to eight lowercase-only characters and the entropy is 8 × log₂(26) ≈ 37.60 bits — the same attack finishes in roughly a tenth of a second, which the page reports as instantly. Four more random characters had added about 26 bits, each bit doubling the work.

Things to remember

Bits assume genuinely random characters; real passwords are patterns, and attackers try dictionaries first, so the honest advice is length plus randomness rather than one forced symbol. The guessing speed is an assumption too: set it to your real threat model and re-read the verdict.

Frequently Asked Questions

How is password entropy actually calculated?

As length times log base 2 of the character pool. Eight lowercase-only characters give 8 × log₂(26) ≈ 37.60 bits, while twelve characters from all 95 printable symbols give 12 × log₂(95) ≈ 78.84. The formula assumes every position is chosen independently at random from that pool.

How many bits of entropy should a password have?

Roughly 60 bits for anything guarded by rate limits, and 80 bits or more for secrets an attacker can hash offline and grind at GPU speeds. The default 12-character full-charset password lands near 78.84 bits — decent — while eight lowercase characters at 37.60 bits fall short against a trillion guesses per second.

Why does length matter more than special characters?

Because entropy multiplies: adding one character adds log₂(pool) bits whatever the pool is, but swapping a letter for a symbol only raises the pool from 52 to 95, worth about 0.87 bits per character. Going from 8 to 12 characters of full charset adds the whole 26 bits — a sixteen-million-fold search.

What guessing speed should I assume for the estimate?

One trillion a second models an offline attack on a stolen hash at GPU speed — the page's default. Online logins with lockouts run far slower, often hundreds a second, so set the field to your real threat model: the same password taking thousands of years at GPU rates lasts far longer behind a lockout.

More Technology & Data calculators

See all 5 Technology & Data calculators