SwiftTools

Password Combination Calculator

Enter a password length and character pool, and this password combination calculator returns the total number of possible passwords, its entropy in bits, and the worst-case time to brute-force it — the math behind why length beats complexity.

Your password space
combinations = pool ^ length · entropy (bits) = length x log2(pool) · worst-case crack time = combinations / attack speed

This counts every possible string in the space, assuming each character is chosen independently and uniformly. A human-chosen password like a common word is far easier to guess than its pool size suggests — use the Password Generator for a truly random one.

How the password combination calculator works

Each position in a password can hold any character from the pool, so the total count is pool raised to the power of length: combinations = N^L. Entropy converts that count into bits, entropy = L x log2(N), which makes astronomically large spaces easy to compare — 80 bits is the level most security guidance treats as comfortable for general use.

Worked example: a 12-character password from letters plus digits (pool 62) allows 62^12 = about 3.23 x 10^21 combinations, with entropy of 12 x log2(62) = 71.5 bits. At 10 billion guesses per second, exhausting the full space takes about 10,223 years — roughly 10 millennia worst case, about half that on average. A 4-digit PIN, by contrast, is only 10^4 = 10,000 combinations.

Common mistakes: assuming a longer password made of a common word is as strong as its pool size suggests (dictionary attacks cut the real space drastically), counting only the characters you used rather than the pool they came from, and adding symbols while shortening the password — one extra character multiplies the space by the whole pool, which usually beats widening the pool at the same length.

combinations = pool ^ length · entropy (bits) = length x log2(pool) · crack time = combinations / attack speed

Related tools

Also try the Password Generator for a random password, the Password Strength Checker to test a password you already use, and the Passphrase Generator for memorable multi-word passwords.

Password combination calculator FAQ

How many possible passwords are there for a given length?

Pool raised to the power of length. A 12-character password from 62 characters (letters plus digits) allows about 3.23 x 10^21 combinations; an 8-character one from the same pool allows about 2.18 x 10^14.

What is password entropy?

Entropy in bits is length times log-base-2 of the pool size. It compresses huge combination counts into one comparable number: 71.5 bits for a 12-character, 62-character-pool password, versus 13.3 bits for a 4-digit PIN.

How many combinations does an 8-character password have?

It depends on the pool: 26^8 = about 209 billion for lowercase only, 62^8 = about 218 trillion for letters plus digits, and 94^8 = about 6.1 quadrillion for all printable ASCII characters.

Is length or complexity more important?

Length, usually. Adding one character multiplies the space by the whole pool — 62 times for letters plus digits — while adding symbols to the same length only widens the pool from 62 to 94, about a 1.5-times gain per character.

How long would it take to crack my password?

Divide combinations by attack speed. The 12-character, 62-pool example takes about 10 millennia worst case at 10 billion guesses per second offline, but an online attack limited to 1,000 guesses per second would take vastly longer — while a leaked hash attacked by a fast cluster is much quicker.

Does this calculator measure my actual password strength?

No — it measures the size of the space your rules allow, assuming random, uniform choices. A human-chosen password like a name plus a digit sits in a far smaller effective space than its pool size suggests.

What is a good entropy target?

Around 80 bits is a comfortable general target: for example, 14 characters from a 62-character pool (about 83 bits) or 16 characters from a 94-character pool (about 105 bits). Longer is better, and a password manager removes the need to remember them.