What is a pattern lock simulator?

PatternGuard is a free online tool that lets you draw and analyze unlock patterns for Android phones. No download needed — test different combinations and see in real time how secure each design is before using it on your device.

The analyzer evaluates entropy, length, direction changes, crossings, and compares against the most common patterns to give you a score from 0 to 100.

What makes a pattern secure?

  • Use 6 or more points — short patterns have very few possible combinations
  • Don't start in a corner — corners are the most predictable starting points
  • Include crossings and direction changes — they increase pattern entropy
  • Avoid simple shapes like L, Z, N or straight lines — these are the most common
  • Use larger grids (4×4 or 5×5) — they multiply combinations exponentially

History of the pattern lock

The pattern lock was introduced by Google with Android 1.0 in 2008. The concept emerged as a visual alternative to the numeric PIN: instead of memorizing a sequence of digits, users trace a shape across a grid of dots, leveraging the brain's visuomotor memory.

Over time, pattern locks spread beyond phones: they now appear on Samsung and LG Smart TVs, Wear OS smartwatches, Android tablets, and some banking apps that offer a second level of in-app security.

Pattern vs PIN: pros and cons

  • A 4-digit PIN has 10,000 combinations; a 3×3 grid supports up to 389,112 valid patterns
  • Patterns are faster to enter: one continuous gesture instead of individual key taps
  • Muscle memory lets your finger "remember" the path without conscious thought
  • Downside: grease marks on the screen can reveal which points were used
  • Downside: more visible to bystanders than a PIN (shoulder surfing)

Warning: forgetting your pattern can lock you out of your phone backup

Android uses the unlock pattern as part of the encryption for your phone's backup. This has an important consequence many users are unaware of: if you forget your pattern, Google cannot help you recover your encrypted backup.

Unlike your Google account password — which you can reset by email — the pattern is a local key stored on the device. Google holds the encrypted backup on its servers but does not have the key to decrypt it. If you lose the pattern, that backup is gone forever.

Recommendations: store your pattern in a password manager, enable a backup PIN in your device's security settings, or consider using a password instead of a pattern if you rely on encrypted backups.

Frequently asked questions

How many unlock patterns are possible on a 3×3 grid?

On a 3×3 grid there are 389,112 valid patterns considering the intermediate point rule (if a line passes through an unselected point, that point is automatically added to the sequence). Without that restriction, the number exceeds 985,000 combinations. The most secure patterns use at least 6 of the 9 points.

Is it safe to use a pattern lock on Android?

It depends on the pattern. Studies show that 44% of users use one of the 20 most common patterns, making them very vulnerable. A long pattern with crossings that doesn't start at a corner can offer security comparable to a 6-digit PIN. PatternGuard helps you measure exactly that.

What is the difference between a 3×3, 4×4 and 5×5 grid?

Grid size dramatically changes the space of possible combinations. A 3×3 grid has 9 points, a 4×4 has 16, and a 5×5 has 25. More points means more combinations, more entropy, and a pattern significantly harder to guess or brute-force attack.

What is pattern entropy?

Entropy measures the amount of information (unpredictability) of a pattern in bits. A high-entropy pattern is unpredictable: there are many equally probable combinations. PatternGuard calculates approximate entropy in bits so you can objectively compare different patterns.