Tools · Updated 2026-11-15 · 3 min read
How many pattern lock combinations are there?
A 3×3 grid has 389,112 possible patterns. A 4×4 grid has 4,350,069,823,024. Draw one below to see where yours falls.
Draw with your mouse or finger. Nothing is sent anywhere.
- Dots in your pattern
- –
- Patterns with that many dots
- –
- Trying all of them at 0.45 s each
- –
- With a hardware gate
- Each guess needs your face or finger. Guessing can't be automated.
The numbers
Rules as on Android: every dot is used at most once, and a straight line can't jump over a dot that hasn't been used yet — it picks it up. We counted every valid pattern by computer (the method is below), and the 3×3 total matches the well-known 389,112.
| Dots | 3×3 grid | 4×4 grid |
|---|---|---|
| 4 | 1,624 | 16,880 |
| 5 | 7,152 | 154,680 |
| 6 | 26,016 | 1,331,944 |
| 7 | 72,912 | 10,690,096 |
| 8 | 140,704 | 79,137,824 |
| 9 | 140,704 | 533,427,944 |
| 10 | – | 3,221,413,136 |
| 11 | – | 17,068,504,632 |
| 12 | – | 77,129,797,424 |
| 13 | – | 285,415,667,080 |
| 14 | – | 811,404,606,344 |
| 15 | – | 1,577,602,537,520 |
| 16 | – | 1,577,602,537,520 |
| Total | 389,112 (4–9 dots) | 4,350,069,823,024 (4–16 dots) |
The last two rows of each grid are equal for a simple reason: once all but one dot are used, the final dot is forced.
Pattern, PIN or passphrase?
Counting possibilities is the easy part. Compare the minimums:
- A 5-dot 4×4 pattern: 154,680 options — fewer than a 6-digit PIN.
- A 6-digit PIN: 1,000,000 options.
- A 9-dot 4×4 pattern: 533,427,944 options — more than an 8-digit PIN (100,000,000).
- An 8-character passphrase of lowercase letters alone: 208,827,064,576 options.
So length matters more than the shape of the lock. A long pattern on a big grid is strong; a short one is roughly a PIN.
What the numbers don't tell you
People don't pick patterns at random. Many start in a corner, move left to right and top to bottom, and use few turns — L, Z, S and N shapes. An attacker tries those first, so a real pattern is far easier to guess than the table suggests. Three things help more than a bigger grid:
- Hide the trail. A visible line, and finger smudges on the glass, give the shape away to anyone looking over your shoulder.
- Make each guess slow. Secret Notes Vault stretches every attempt with PBKDF2 to about 0.45 seconds on the phone itself, and the files are useless on any other device because the key is bound to the Secure Enclave.
- Require a live face or fingerprint. With the hardware gate on, the Secure Enclave refuses to release the key without Face ID or Touch ID. Nobody can run a guessing script, however many patterns there are.
How we counted
A pattern is a path through the grid. For every set of used dots and every last dot, we counted how many valid paths end there, and extended each path by one allowed dot at a time — allowed meaning unused, with no unused dot in between on the straight line. That is 65,536 dot sets × 16 end points for the 4×4 grid, which a laptop does in under a second. The same program gives 389,112 for 3×3, the figure known from Android.
Secret Notes Vault doesn't block curving your finger around a dot, so its real space is larger still: every ordering of 5 to 16 different dots, 56,874,039,505,920 in total.
FAQ
How many 3×3 pattern lock combinations are there?
389,112, counting patterns of 4 to 9 dots with Android's rules (each dot once, no jumping over an unused dot).
How many 4×4 pattern lock combinations are there?
4,350,069,823,024 with 4 to 16 dots, under the same rules. With a 5-dot minimum, as in Secret Notes Vault, it is 4,350,069,806,144.
Is a pattern lock safer than a PIN?
Only if it is long. A 5-dot 4×4 pattern has fewer options than a 6-digit PIN; a 9-dot pattern has more than an 8-digit PIN. Either way, predictable choices and shoulder surfing matter more than the theoretical count.
Can you lock notes on an iPhone with a pattern?
Not with Apple Notes — it uses your passcode or a password. Secret Notes Vault offers a 4×4 pattern, a PIN or a passphrase, encrypted with AES-256 and bound to the Secure Enclave.