Password Entropy Calculator
Calculate the entropy of a randomly generated password from its length and character set, with crack times at several attack rates.
Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.
What the Password Entropy Calculator does
This password entropy calculator will calculate the entropy of a randomly generated password from its length and character set, with crack times at several attack rates. Fill in all 3 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for choosing a generated password length that meets a bit-strength requirement. People using this often want the atbash cipher next.
How to use it
- Enter the length of the password.
- Choose the character set it was randomly drawn from — not the characters it happens to contain.
- Adjust the guess rate if you have a specific attack scenario in mind, or leave the default for a fast offline attack.
- Read the entropy in bits and compare the three crack-time rows, which differ by many orders of magnitude.
How it works
Entropy measures how many equally likely possibilities a secret could have been, expressed in bits so the numbers stay manageable. Each bit doubles the search space. A password drawn uniformly from 62 characters carries log₂(62) ≈ 5.95 bits per character, so a 16-character one has about 95 bits — meaning roughly 2⁹⁵ candidates, which no amount of hardware will search.
The crucial restriction, and the reason most password strength meters are misleading, is that this formula only applies to randomly generated strings. It assumes every possibility is equally likely. Your own password is not drawn that way: you picked a word you know, capitalised the first letter because the rule demanded it, and put the digits at the end. Attackers model all of that explicitly, with wordlists, mangling rules and Markov models, so the effective entropy of a human-chosen password is typically a fraction of what this calculation would claim. That is why this page states the caveat as an output row rather than burying it.
The three crack-time rows show how completely the answer depends on the attack scenario. A rate-limited login endpoint might allow a thousand guesses a second before locking; an offline attack against unsalted fast hashes on rented GPUs reaches tens of billions; bcrypt or Argon2 with sensible parameters deliberately drags the rate down to tens of thousands. The same password is unbreakable in one scenario and gone in an afternoon in another, which is why the choice of password hash matters at least as much as the password itself.
For context on the thresholds: 128 bits is the conventional floor for a key that must stay secret indefinitely, and nothing in the foreseeable future searches that space. Around 80 bits is comfortable for a password behind a properly slow hash. Below about 50 bits you are relying entirely on rate limiting, and below 40 the secret is effectively public to anyone with an offline copy of the hash.
When to use it
- Choosing a generated password length that meets a bit-strength requirement.
- Comparing the strength of different character sets at the same length.
- Explaining to a team why password hashing choice dominates the crack time.
- Working out the minimum length for 128 bits of entropy.
Common mistakes to avoid
- Applying this to a password you invented. The figure will be wildly optimistic.
- Counting the character set as only the characters actually used. If the generator could have produced any of 95, the entropy is based on 95.
- Quoting a crack time without the guess rate. The rate changes the answer by a factor of a million or more.
Frequently asked questions
How many bits of entropy do I need?
128 or more for anything long-lived, such as an encryption key or an API secret. Around 80 is comfortable for a password protected by a slow hash. Below 50 you are depending entirely on rate limiting to survive.
Why is my own password weaker than this says?
Because the formula assumes uniform randomness and you are not a random number generator. Dictionary words, names, dates, keyboard patterns and the predictable places people put capitals and digits are all modelled by cracking tools, which collapses the real search space enormously.
What guess rate should I assume?
It depends on the hash. Unsalted MD5 or SHA-1 on modern GPUs reaches well into the tens of billions per second; bcrypt at a sensible cost factor is tens of thousands; a rate-limited online login might be a few per second. The rows on this page cover that span.