Password search-space calculator

Explore how the number of possible strings changes with alphabet size and length. Enter three numbers to calculate a mathematical model.

An illustration, not a recovery estimate

The model assumes every fixed-length string is equally likely, guesses never repeat, and a constant rate with no delays or limits. It cannot rate a real password or predict a service’s behavior. Do not enter a password, account, hash or file.

Set the assumptions

For example, decimal digits have an alphabet size of 10. A rate of 1,000 guesses per second is just an arithmetic example, not a measured speed.

Whole number, 1–1,000,000 possible symbols per position.
Whole number, 1–1,000 positions.
0.001–1e30. Decimal or scientific notation, up to 12 decimal places.

Calculations stay in this browser. These numeric values are not sent anywhere or saved by this calculator.

How the arithmetic works

With an alphabet of A symbols and a length of L, there are N = AL possible strings. A uniform target’s mean position in an enumeration without repeats is (N + 1) / 2. Divide either count by your hypothetical rate to obtain seconds.

For six positions with 10 choices each, N is 1,000,000. At an assumed 1,000 guesses per second, complete enumeration takes 1,000 seconds. The mean is 500,000.5 guesses, or 500.0005 seconds. The fractional mean is an average across all possible targets.

Why real passwords behave differently

NIST’s discussion of password strength explains that human choices are often predictable; an attacker need not try every string in a uniform order. Length and alphabet size therefore do not establish a human-chosen password’s strength.

An online service can limit failed attempts. Offline guessing depends on the stored password representation and the cost of checking each guess; NIST’s password-verifier guidance requires rate limiting and protective password storage. The same numeric rate should not be assumed for both settings.

This model also excludes phishing, stolen sessions and recovery-channel attacks. For a password you believe was exposed, follow the account-protection steps instead of treating a large result as reassurance.

If you are estimating recovery for your own file

The file format and its password-based key derivation affect the work needed for each guess. For example, 7-Zip documents repeated key-derivation work for encrypted 7z files. A rate assumed for another format is not a measured rate for your file. This calculator reads no file and measures no such work.

Correctly remembered constraints can reduce the set of possible passwords. An incorrect assumption about length or allowed characters can exclude the real password entirely. The displayed time therefore is not a success probability, a guarantee, or a quote for a recovery service.

Before estimating time, check your saved passwords, the sender’s original message and any accessible copy of the contents. The archive access guide explains these options. A mathematical estimate does not remove the need for the correct credential to decrypt a protected file.

Explanatory sources checked on 4 October 2026.