18-character random password

A random 18-character password using upper and lower case, digits and symbols has about 116 bits of entropy.

Strength of 18 random characters

Character setPoolCombinationsEntropyAvg. time at 10 billion guesses/s
Digits only (PIN)101.00 × 10^1860 bits1.6 years
Lowercase262.95 × 10^2585 bits46,707,465 years
Lower + upper527.73 × 10^30103 bitsover a trillion years
Letters + digits621.83 × 10^32107 bitsover a trillion years
All four sets866.62 × 10^34116 bitsover a trillion years

The guessing rate is an assumption for illustration (a fast offline attack on a weak hash); real attacks can be far slower or faster. Times apply only to truly random passwords like these.

How entropy is calculated

bits = length × log₂(pool size) = 18 × log₂(86) ≈ 115.7

Each extra character multiplies the number of possibilities by the pool size. Going from 18 to 20 characters with all sets multiplies the search space by 86² = 7,396.

Other lengths