To count number and letter combinations, multiply the number of choices for each position. A letter has 26 choices and a digit has 10, so 3 letters followed by 3 digits gives 26 × 26 × 26 × 10 × 10 × 10 = 17,576,000 combinations. A 4-digit PIN has 104 = 10,000, and an 8-character code from A–Z and 0–9 has 368 = 2,821,109,907,456.
Describe the code as a pattern (L for letter, D for digit, X for either) or as a length and character set. The calculator gives the exact count, the entropy in bits, and how long it takes to try every combination at 1,000 guesses per second. Turn off repeats to count codes where no character appears twice.
How number and letter combinations calculator works?
To count number and letter combinations, the number and letter combinations calculator multiplies the choices for each position. The calculator reads a pattern (L = letter, D = digit, X = either) or a length and character set, multiplies the number of choices at each position, and shows the total with the time needed to try every code. LLL-DDD gives 26³ × 10³ = 17,576,000 combinations.
- Pick the mode
A pattern such as LLDD-LLL, or a length with a character set.
LLL-DDD - Count choices
Letters give 26 (or 24 without I and O, or 52 with case), digits give 10, X gives 36.
26 · 26 · 26 · 10 · 10 · 10 - Multiply
Repeats allowed: multiply all choices. No repeats: each pick removes 1 option.
17,576,000 - Show the scale
The total is shown in full, in short form, and as time at 1,000 guesses per second.
17.6M · 4.9 h
Totals use exact integer math (BigInt), so 20-character codes show every digit.
Number and letter combinations calculator formula
The number and letter combinations formula is the product rule. With repeats, combinations = n₁ × n₂ × … × nₖ (or nᵏ for 1 character set); without repeats, combinations = n! ÷ (n − k)!.
Formula
Where
- ni
- choices at position i: 10 digits, 26 letters, 36 for both
- k
- code length
- C
- total combinations
Worked example
Order matters in both formulas: AB12 and 21BA are different codes.
Number and letter combinations calculator conversion chart
The number and letter combinations conversion chart lists totals for lengths 1–8 over 4 character sets. A 4-character code has 10,000 digit combinations, 456,976 letter combinations, and 1,679,616 letter-or-digit combinations.
| Length | Digits (10) | Letters (26) | A–Z + 0–9 (36) | a–z, A–Z, 0–9 (62) |
|---|---|---|---|---|
| 1 | 10 | 26 | 36 | 62 |
| 2 | 100 | 676 | 1,296 | 3,844 |
| 3 | 1,000 | 17,576 | 46,656 | 238,328 |
| 4 | 10,000 | 456,976 | 1,679,616 | 14,776,336 |
| 5 | 100,000 | 11,881,376 | 60,466,176 | 916,132,832 |
| 6 | 1,000,000 | 308,915,776 | 2,176,782,336 | 56,800,235,584 |
| 7 | 10,000,000 | 8,031,810,176 | 78,364,164,096 | 3,521,614,606,208 |
| 8 | 100,000,000 | 208,827,064,576 | 2,821,109,907,456 | 218,340,105,584,896 |
| Code | Pattern | Combinations |
|---|---|---|
| 4-digit PIN | DDDD | 10,000 |
| 6-digit PIN | DDDDDD | 1,000,000 |
| 3 letters + 3 digits plate | LLL-DDD | 17,576,000 |
| 3 letters + 4 digits plate | LLL-DDDD | 175,760,000 |
| UK plate (2 letters, 2 digits, 3 letters) | LLDD-LLL | 1,188,137,600 (before UK letter limits) |
| 6 characters A–Z, 0–9 | XXXXXX | 2,176,782,336 |
| 8 characters A–Z, 0–9 | XXXXXXXX | 2,821,109,907,456 |
Combinations with and without repeats
With repeats allowed, the count is nk; without repeats, it is n × (n − 1) × … × (n − k + 1). 4 digits with repeats: 104 = 10,000. 4 different digits: 10 × 9 × 8 × 7 = 5,040. Order matters in both, because 1234 and 4321 are different codes. Strictly, these counts are permutations; "combinations" is the everyday word for them. If order does not matter, as in a lottery draw, divide the no-repeat count by k! (4! = 24 gives 210 sets of 4 digits).
Why longer codes beat bigger alphabets
Each extra character multiplies the total by the size of the character set. Going from 6 to 8 characters (A–Z, 0–9) multiplies the count by 36 × 36 = 1,296; switching 6 characters from 36 to 62 symbols multiplies it by only about 26. That is why security guides ask for length first. For random codes and passwords, use the number and letter generator.
Frequently asked questions
How many 4-digit combinations are there?
There are 10,000 4-digit combinations, from 0000 to 9999.
How many combinations of 3 letters and 3 numbers are there?
17,576,000: 26 × 26 × 26 × 10 × 10 × 10.
How many 6-character combinations of letters and numbers are there?
With A–Z and 0–9, 2,176,782,336 (366).
How many combinations of 4 letters are there?
456,976 (264) with repeats, or 358,800 with no letter repeated.
What is the formula for letter and number combinations?
Multiply the choices at every position: 26 for a letter and 10 for a digit. LLDD = 26 × 26 × 10 × 10 = 67,600.
How many 8-character combinations of letters and numbers are there?
There are 2,821,109,907,456 combinations of 8 characters from A–Z and 0–9 (36⁸).
How many combinations of 2 letters and 2 numbers are there?
There are 67,600 combinations of 2 letters and 2 numbers in a fixed LLDD order.
More number and letter tools