Password Strength Calculator – Entropy, Crack Time and Length Needed
Enter a password to see its length, character classes, entropy in bits, the search space an attacker faces, the average offline and online crack time, and the length needed to reach a target.
Calculator InputsFormula v1.0
Use a throwaway example rather than a password you actually rely on.
Entropy (bits) = length × log₂(alphabet size), where the alphabet is the character classes the password actually uses; search space = alphabet^length; average crack time = search space ÷ 2 ÷ guesses per second
Password entropy
Moderate: 11 characters from an alphabet of 94
• Entropy describes only a truly random password. A word plus predictable substitutions has far less effective strength than this figure implies, which is why generated random strings resist cracking and memoirable phrases often do not.
• Nothing is submitted to a server: the measurement runs in your browser. Even so, avoid typing a password you actively rely on, because the page cannot vouch for your device.
Step-by-Step Mathematical Working
Formula and method
Entropy (bits) = length × log₂(alphabet size), where the alphabet is the character classes the password actually uses; search space = alphabet^length; average crack time = search space ÷ 2 ÷ guesses per secondEntropy measures how large a search space the password represents, assuming it was drawn uniformly at random. Every character added multiplies that space by the alphabet size, so length dominates: going from 12 to 16 characters adds roughly 26 bits and turns a crack time measured in years into one measured in centuries.
Variables
- Password
- The string being assessed; it is measured in the browser and is never sent anywhere
- Alphabet size
- Number of distinct characters available from the classes present: 26 lowercase, 26 uppercase, 10 digits, 32 symbols
- Guesses per second
- Attack rate, roughly 10⁴ online against a throttled login and 10¹¹ to 10¹² offline against a fast hash
Worked example
A 16-character password using lowercase, uppercase, digits and symbols has an alphabet of 94 and 16 × log₂(94) = 104.9 bits of entropy, giving an average offline crack time of roughly 1.1 billion years at 10¹¹ guesses per second.
Who this calculator is for
Anyone who wants a concrete number instead of a vague strength meter, and administrators choosing a sensible minimum length for a password policy.
Complete guide to the password strength calculator – entropy, crack time and length needed
Every figure below comes from this calculator itself. The method is Entropy (bits) = length × log₂(alphabet size), where the alphabet is the character classes the password actually uses; search space = alphabet^length; average crack time = search space ÷ 2 ÷ guesses per second, applied to the tool's default inputs and then stress-tested one input at a time.
What the Password Strength Calculator – Entropy, Crack Time and Length Needed works out
Password Strength Calculator – Entropy, Crack Time and Length Needed answers one specific question: Enter a password to see its length, character classes, entropy in bits, the search space an attacker faces, the average offline and online crack time, and the length needed to reach a target. It is written for anyone who wants a concrete number instead of a vague strength meter, and administrators choosing a sensible minimum length for a password policy.
The method is Entropy (bits) = length × log₂(alphabet size), where the alphabet is the character classes the password actually uses; search space = alphabet^length; average crack time = search space ÷ 2 ÷ guesses per second. The inputs are Password to assess, Entropy target (bits), Attack scenario. With the default values - Password to assess = Tr0ub4dor&3, Entropy target = 80 bits, Attack scenario = offline - the result is Password entropy: 72.1 bits. Changing Entropy target alone leaves the headline result at 72.1 bits, which tells you that another input is driving the answer. Confirm which quantity actually varies in your scenario before adjusting anything else.
Reading the output line by line
Alongside 72.1 bits this method reports 11 supporting quantities: Length: 11 characters; Character classes detected: lowercase, uppercase, digits, symbols; Alphabet size: 94 distinct characters; Entropy per character: 6.55 bits. Reading them together shows which part of the calculation is doing the work.
The arithmetic as executed: Detect the classes present: lowercase, uppercase, digits, symbols, giving an alphabet of 94. Entropy = length × log₂(alphabet) = 11 × 6.555 = 72.10 bits. Search space = 94^11 ≈ 10^21.7 combinations. Average crack time = search space ÷ 2 ÷ 1e+11 = 802.2 years. Reproduce the steps once by hand; if your numbers match, the model and your inputs are consistent.
How to interpret the answer
Entropy measures how large a search space the password represents, assuming it was drawn uniformly at random. Every character added multiplies that space by the alphabet size, so length dominates: going from 12 to 16 characters adds roughly 26 bits and turns a crack time measured in years into one measured in centuries.
In this case 72.1 bits together with length of 11 characters is a single scenario, not a forecast range. Move the input you are least sure of, and watch the two figures change in step.
Common mistakes to avoid
Reusing a strong password across sites, so one breach exposes every account it protects. Believing that predictable substitutions such as a to @ and o to 0 add real strength; cracking tools try those first. Reading the entropy figure as a guarantee when the password is a dictionary phrase, whose effective strength is far lower than its character count suggests. Storing passwords in plain text or a shared document instead of a password manager.
Read the inputs back once before trusting the figure: Password to assess, Entropy target (bits), Attack scenario and confirm each entry matches its label, including whether a quantity is entered in the unit the label names. Nudge Entropy target and confirm the output responds in the direction the formula implies - here 72.1 bits should shift smoothly rather than jump.
Limitations and responsible use
Entropy assumes random selection from the stated alphabet. A memorable phrase or a word with substitutions has far less effective entropy, and this arithmetic cannot detect that. The attack-rate assumptions are illustrative; real rates depend on the hashing algorithm, hardware and rate limiting. Do not type a password you already use somewhere important into any web page, including this one, even though this page performs no network request with it.
The figures above hold within those limits and not outside them. The formula, the substitution and the units are all printed so you can check the arithmetic yourself; whether the inputs describe your real situation is something only you can confirm. For a consequential decision, confirm the current term and any rules attached to it independently, because they change between editions.
Frequently asked questions
How many bits of entropy should a password have?
About 80 bits is a reasonable floor against an offline attack on a fast hash, and 100 bits or more is comfortable. Below 60 bits an offline attack becomes practical.
Is a longer password always stronger?
For a randomly generated password, yes: each extra character multiplies the search space by the alphabet size. For a human-chosen password, length helps far less because the added characters follow guessable patterns.
Does adding symbols help?
It raises the alphabet size, so each character carries about 0.6 bits more. Extra length buys more strength than extra character classes.
How long would it take to crack a 12-character password?
From a 94-character alphabet, 12 characters give about 78.7 bits of entropy and roughly 1.5 million years on average at 10¹¹ guesses per second. Shorter or non-random passwords fall far faster.
Related searches for this calculator
People also look for password strength calculator, password entropy calculator, how long to crack a password, password checker, strong password test and entropy bits calculator. Everything on this page is calculated in your browser from the formula shown above.
Related Technology Calculators
Explore another calculator in this subject.
Random Number and Password Generator
Generate cryptographically strong random integers in a range, unique lottery-style picks, or secure passwords with configurable length and character classes.
Hash Generator – MD5, SHA-1 and SHA-256 Digests of Any Text
Generate the MD5, SHA-1 and SHA-256 digest of any text or string, with the output length in bits and hex characters, and a clear explanation of which algorithms are safe to use.
Logarithm Calculator
Calculate the logarithm of a positive value to a valid positive base other than one.