Android pattern locks provide a simple way to protect personal information without remembering a complicated password. However, many people choose patterns based on convenience, using familiar shapes or short sequences that are easy to remember. These habits can make a pattern much less secure than it appears, even when the grid offers hundreds of thousands of possible combinations.
What makes an Android pattern lock difficult to guess?
An Android pattern lock uses a grid of nine dots arranged in three rows and three columns. Users create a lock by connecting the dots in a particular order, producing a sequence that acts as the phone’s unlocking code.[1]
Android allows patterns containing between four and nine dots, creating 389,112 possible combinations in total.[1] However, having many theoretical combinations does not automatically make a pattern secure. The actual strength depends on the number of dots used, their sequence, and how predictable the resulting shape is.
A difficult pattern generally has several characteristics:
- Long sequence: It uses eight or nine dots rather than relying on the minimum number.
- Frequent direction changes: It moves between different areas of the grid instead of following a straight line.
- Unusual starting point: It avoids predictable starting positions, particularly the corners.
- No recognizable shapes: It does not resemble familiar letters, numbers, or simple geometric figures.
- No personal connections: It avoids initials or symbols associated with the phone’s owner.
The sequence is particularly important because two patterns using the same number of dots can have different levels of complexity. A combination that changes direction can be harder to predict than one following a familiar path.[1]
How pattern length affects security
Using more dots generally increases the number of possible combinations available to someone trying to guess an Android pattern. Research by Marte Løge, reported by Ars Technica, found that people frequently selected shorter patterns even though longer combinations offered more possibilities.[1]
The following table shows the number of possible combinations for different pattern lengths.
| Number of dots | Possible combinations |
|---|---|
| 4 dots | 1,624 |
| 5 dots | 7,152 |
| 6 dots | 26,016 |
| 7 dots | 72,912 |
| 8 dots | 140,704 |
| 9 dots | 140,704 |
The difference between short and long patterns is substantial. A four-dot pattern has only 1,624 possible combinations, while a six-dot pattern has 26,016. Choosing a longer sequence therefore increases the number of possibilities that someone attempting to guess the lock must consider.[1]
Interestingly, eight-dot and nine-dot patterns have exactly the same number of possible combinations: 140,704. Using every dot does not increase the mathematical combination count beyond what an eight-dot pattern already offers.[1]
Nevertheless, longer patterns can encourage users to move away from simple shapes and predictable sequences. The number of dots should be considered alongside the actual arrangement rather than treated as the only measure of security.
Common Android patterns that are easy to guess
Many people choose patterns that feel natural to draw. Unfortunately, familiar movements and recognizable shapes can make these combinations easier for someone else to anticipate.
Research reported by Ars Technica identified several recurring habits among Android pattern users. These included starting in the upper-left corner and moving from left to right.[1]
Starting from a corner
One of the most common mistakes is beginning a pattern at a corner of the grid. The research found that 44 percent of observed patterns started at the upper-left dot, while 77 percent began in one of the four corners.
This makes corner starting positions particularly predictable. Someone attempting to guess a pattern may have a better chance by considering these familiar starting points first rather than treating all nine dots equally.
Following a familiar direction
Another common habit is drawing patterns from left to right and from top to bottom, much like reading a book. This creates recognizable sequences that reduce the unpredictability of the lock.[1]
A pattern that follows a simple horizontal or vertical progression may be easy to remember, but it can also be easier to anticipate. Changing direction and moving between different parts of the grid creates a less familiar sequence.
Choosing very short patterns
Four-dot and five-dot patterns were popular choices in the research, despite providing fewer possible combinations than longer sequences.[1] Short patterns are convenient because they require fewer movements, but their smaller combination pools make them less desirable when security is the priority.
What are the hardest pattern locks to guess?
There is no universally established ranking of the hardest Android pattern locks. However, several published examples demonstrate how different arrangements can create complicated sequences that are less recognizable than simple geometric shapes.
Information Security Newspaper presents ten difficult mobile pattern designs, each identified by a name and a numbered dot sequence.[2] The following examples illustrate different ways of connecting the nine dots.
| Pattern name | Dot sequence |
|---|---|
| Fish | 2-5-8-4-6-9-3-1 |
| Love Angle | 2-5-9-1-4-8-6-3-7 |
| Ribbon | 5-7-3-6-4-1-9 |
| Bird Man | 2-5-7-3-6-4-1-9 |
| Robo Head | 2-5-4-6-3-9-8-7-2 |
| MKBHD | 4-8-6-9-3-5-1-7 |
| Illusion | 2-1-3-5-4-6-8-7-9 |
| Impossible | 8-6-5-4-2-1-3-7-9 |
| Maze | 1-2-5-4-6-3-9-8-7 |
| Time Machine | 8-6-5-4-2-3-1-9-7 |
These names describe the appearance of the designs rather than independently verified security rankings.[2] Some use nearly all nine dots, while others move between different sections of the grid to create unusual shapes.
The Fish, Maze, and Time Machine examples demonstrate how a sequence can move across the grid instead of following one simple direction.[2] They can provide inspiration when thinking about pattern complexity, but copying a publicly available design means choosing a combination that other people may already recognize.
Creating an original sequence using similar principles is a better approach than relying on a pattern simply because it appears on a list of difficult locks.
Why complicated-looking patterns are not always secure
A complicated-looking pattern is not necessarily difficult to discover. The way someone draws it can reveal information, even when another person cannot clearly see the phone’s screen.
A 2017 Techlicious report described an attack that used video recordings of people unlocking their smartphones. By analyzing hand movements, an algorithm could predict the pattern without needing a clear view of the screen itself.[3]
The report stated that the algorithm could guess 95 percent of pattern locks within five attempts under the reported conditions. It could analyze smartphone video recorded from about 8 feet away, or high-quality SLR and DSLR footage from over 29 feet away.[3]
The findings also challenged the assumption that more complicated patterns are always safer. The algorithm cracked 87.5 percent of complex patterns on its first attempt, compared with 60 percent of simple patterns.[3]
The reason was that patterns using more lines between nodes could sometimes narrow down the possibilities available to the algorithm. This shows that visual complexity and resistance to observation are not necessarily the same thing.
There are two different security considerations:
- Guessing resistance: How difficult it is for someone to predict the correct sequence without knowing anything about it.
- Observation resistance: How difficult it is for someone to discover the sequence by watching the phone being unlocked.
A pattern might be difficult to guess but still vulnerable if someone records the movements used to draw it. This is why the way a pattern is entered matters alongside the sequence itself.
How to choose a strong pattern lock
Choosing a strong pattern means finding a combination that is difficult to predict but still possible to remember. The research on Android pattern habits suggests avoiding familiar shapes and predictable starting points.[1]
The following recommendations can help when creating a new lock.
Use more dots
Choose an eight-dot or nine-dot pattern rather than relying on a short sequence. Both lengths offer 140,704 possible combinations, compared with just 1,624 for a four-dot pattern.[1]
However, remember that adding dots is not enough by itself. The order in which you connect them also affects the complexity of the combination.
Change direction regularly
Avoid drawing a pattern that moves in one familiar direction. A sequence with several changes in direction can have a higher complexity score than one following a straightforward path.
For example, the sequence 1-2-3-6 has a lower complexity score than 2-1-3-6 because the second sequence changes direction.[1] This illustrates why the arrangement of dots matters just as much as the total number used.
Avoid recognizable shapes
Do not choose a pattern simply because it resembles a familiar object or symbol. Recognizable shapes and simple geometric designs can make a combination easier to anticipate.
An original sequence that does not follow an obvious visual structure is preferable to a familiar shape that someone might recognize immediately.
Choose an unusual starting point
Avoid automatically beginning at the upper-left corner or another familiar corner position. Since 77 percent of the patterns in the research started in one of the four corners, choosing a different starting position can help avoid a common habit.
Combining an unusual starting point with changes in direction makes the sequence less conventional.
Make the pattern difficult to observe
Protecting a pattern also means preventing other people from watching the movements used to enter it. The video-based attack discussed by Techlicious shows how hand movements can reveal a combination even when the screen is not clearly visible.[3]
Are pattern locks safer than PINs and passwords?
Android pattern locks offer a larger theoretical combination pool than a four-digit PIN. Techlicious compares 389,112 possible Android patterns with 10,000 possible four-digit PIN combinations.[3]
However, actual user choices can significantly reduce this advantage. The average pattern length reported in the research was five dots, meaning many users were selecting from only 7,152 possible combinations. Four-dot patterns reduced that number to 1,624.[3]
A PIN or password can also be predictable if someone chooses an obvious combination. Techlicious recommends fingerprint authentication as an alternative, noting that Android 6.0 Marshmallow introduced fingerprint authentication support in late 2015.[3]
For devices without fingerprint authentication, the report recommends using a strong password or PIN instead of relying on a predictable pattern.[3]