Zunto

How Many 3x3 Lock Patterns Are There? Not 3,024

6 November 2026· 5 min read

Short answer

A four-dot pattern on a 3x3 grid has 3,024 permutations on paper, but only 1,624 can actually be drawn. The difference is the skip rule: dragging between two dots in a straight line captures the dot in between, so any pattern that jumps an unvisited dot is impossible.

Pattern locks look like they offer a lot of combinations. Nine dots, pick four, order matters — that is 9 × 8 × 7 × 6 = 3,024 arrangements.

The real number is 1,624. Nearly half of what the permutation maths promises cannot be drawn at all, and the reason is a rule most people use constantly without noticing.

The skip rule

Try to drag from the top-left dot straight across to the top-right one. You cannot get there without passing over the dot in the middle, and the moment your finger crosses it, that dot joins your pattern. What you drew as a two-dot line is recorded as a three-dot one.

So any pattern containing a straight jump over an unvisited dot is not a pattern you can enter. It does not exist.

This is the rule as it is implemented in BreakLock, the puzzle version of the pattern lock on this site. Numbering the grid 0–8 left to right, top to bottom, the game treats a move from dot a to dot b as a jump when the midpoint between them is a real dot and lies exactly on the line:

// from the game's own source
n = (a + b) / 2;
if (n is a whole number
    && a%3 - n%3 === n%3 - b%3        // same column step twice
    && ⌊a/3⌋ - ⌊n/3⌋ === ⌊n/3⌋ - ⌊b/3⌋) {  // same row step twice
  addDot(n);   // the skipped dot is captured first
}

There are exactly eight such lines on a 3x3 grid — the three rows, the three columns, and the two diagonals, each usable in either direction:

Line Dot in the middle
0 ↔ 2, 3 ↔ 5, 6 ↔ 8 the middle of each row (1, 4, 7)
0 ↔ 6, 1 ↔ 7, 2 ↔ 8 the middle of each column (3, 4, 5)
0 ↔ 8, 2 ↔ 6 the centre dot (4)

The centre dot sits in the middle of four of these lines, which is why it ends up in so many patterns whether you planned it or not.

One subtlety worth knowing: the rule only applies to dots you have not used yet. Once the centre dot is in your pattern, you are free to cross it as often as you like. That is why patterns that visit the centre early have more freedom afterwards than patterns that save it for last.

What the real counts are

Taking the rule from the source and counting every drawable sequence:

Pattern length Permutations on paper Actually drawable Impossible
4 dots 3,024 1,624 1,400 (46.3%)
5 dots 15,120 7,152 7,968 (52.7%)
6 dots 60,480 26,016 34,464 (57.0%)

The proportion ruled out gets worse as patterns get longer, which is counter-intuitive — a longer pattern has more consecutive pairs, so more chances for one of them to be an illegal jump.

In BreakLock these three lengths are the difficulty settings: Easy is 4 dots, Medium is 5, Hard is 6.

How the guessing game works

BreakLock gives the pattern lock the structure of Mastermind. You draw a pattern, and it tells you two things:

  • ● how many dots are correct and in the right position
  • ○ how many dots are in the pattern but in the wrong position

It never tells you which ones. The game counts your attempts, so the goal is to finish in as few as possible.

How few guesses it actually takes

Worth knowing what good looks like. I ran a solver over the full pattern space, picking each guess to minimise the largest group of possibilities that could survive it — the standard Mastermind approach — and sampled 300 secret patterns at each difficulty:

Difficulty Possible patterns Average guesses Worst seen
Easy (4 dots) 1,624 4.6 6
Medium (5 dots) 7,152 5.2 7
Hard (6 dots) 26,016 5.7 7

The striking row is the last one. Hard has sixteen times the search space of Easy and costs barely one extra guess.

The reason is that every dot in a guess is a probe. A six-dot guess tests six positions at once and comes back with information about all of them, so each attempt cuts the field far harder. The space grows faster than the difficulty does.

Practical consequence: if you have been sticking to Easy because Hard sounds unmanageable, it is not. It is about one guess more work.

Four things that make a real difference

Open with something that crosses the grid. Your first guess cannot be informed, so make it maximally informative instead. A pattern that touches a corner, an edge, the centre and a second corner probes four different regions. An opener along one edge probes one.

Count the response, not the dots. The useful quantity is ● + ○ — how many of your four dots are in the pattern at all, regardless of position. If that total is 2, then two of your dots are simply wrong and you can stop thinking about them. Players who focus only on the ● count throw away half the information they were given.

Change one thing at a time once you are close. When you have the right set of dots in the wrong order (● low, ○ high), swap exactly two and resubmit. The change in ● tells you precisely what that swap did. Redrawing from scratch wastes the attempt.

Remember the skip rule while guessing. If you are mentally testing a pattern that jumps an unused dot, you are testing something the game cannot be hiding. Almost half the arrangements you might imagine are in that category.

Why the maths is not just trivia

The same counting applies to the pattern lock on a phone, which is where most people meet this grid. A four-dot pattern has 1,624 possibilities, not 3,024, and real patterns are not drawn uniformly at random — people start top-left, use the centre, and draw shapes resembling letters. The effective space is far smaller than even 1,624.

Which is the honest case for a six-dot pattern: it is not sixteen times more secure in practice, but the effort of drawing it is also about one second more. Few trade-offs are that lopsided.

Play it

Play BreakLock on Zunto — free, in your browser, nothing to install. Start on Easy to learn how to read the feedback, then go straight to Hard; the numbers above say it will cost you about one extra guess.

BreakLock is by maxwellito and is open source under the MIT licence. The counts and solver results here were computed from the game’s own rules, so you can check them against it.

Common questions

How many 3x3 lock patterns are there?
For a four-dot pattern, 1,624. For five dots, 7,152. For six dots, 26,016. These are lower than the plain permutation counts because a pattern cannot jump over a dot it has not already used.
What is the skip rule on a pattern lock?
Dragging in a straight line between two dots passes over the dot in the middle, and that dot gets added to your pattern automatically. So 1 to 3 on the top row is really 1-2-3, and the pattern you intended cannot be drawn.
How many guesses does it take to crack a four-dot pattern?
About 4.5 on average, and 6 in the worst case, if every guess is chosen to split the remaining possibilities as evenly as possible. Guessing randomly takes vastly longer.
Is a six-dot pattern much harder to guess than a four-dot one?
The search space is 16 times bigger, but a good solver only needs about one extra guess — roughly 5.7 instead of 4.6. Longer patterns leak more information with every attempt, which almost cancels out the larger space.

Play it

Written by the Zunto team. We host these games and read their source, so the mechanics described here come from the games themselves rather than from guesswork. Spotted something wrong? Tell us.