HomeGuidesMaze Solving

How to Solve a Maze (Every Time)

By Anime Mochi · Updated June 2026 · 6 min read

A maze looks like it wants to confuse you, but underneath the tangle it is just a set of corridors and walls, and there are a few simple methods that crack it open. The most famous of these will carry you to the exit of almost any maze without a single moment of guessing - you do not even have to be able to see the whole thing. This guide walks through the hand-on-wall rule that makes it work, how to read junctions and prune dead ends, and the one situation where wall-following quietly fails so you know to switch tactics. Learn these and a maze stops being a riddle and becomes a short, satisfying walk.

The wall-follower: one hand, never lift it

Here is the rule that does most of the work, and it is almost absurdly simple:

Put one hand on a wall - say your right hand - and start walking. Keep that hand touching the wall at all times and never lift it. When the wall turns, you turn with it. Eventually you arrive at the exit.

Picture yourself actually tracing the wall with your fingertips. At a dead end your hand sweeps around the inside of the pocket and brings you straight back out. At a junction you simply keep following the same wall around the corner, which means you always turn the same direction first. You never have to remember where you have been or plan a route. You are not solving the maze so much as letting the wall lead you, and that is exactly why it works even when you can only see the few squares right around you.

Why following one wall always reaches the exit

This is the part worth understanding, because it tells you precisely when to trust the trick. Imagine the wall you are touching as one long, continuous loop of string. As long as every wall in the maze is connected to the outer boundary - that is, there are no walls floating free in the middle, unattached to anything - then the wall by your hand is part of one single connected surface that runs along the whole maze and around both the entrance and the exit.

Trace that surface with your hand and you must walk along its entire length, which carries you past the exit on the way. Mazes drawn this way are called simply connected, and most printed and on-screen mazes are exactly that. So when you start at the entrance and keep one hand glued to the wall, you are guaranteed to reach the way out. You may take a longer path than the shortest one, and you will dutifully explore some dead ends, but you will never get lost and you will never go in circles forever.

Pick a hand and commit: right-hand or left-hand both work - just never switch midway through, or you will undo your own progress. Try the right-hand rule on the early boards of Mochi Maze and watch how your finger naturally peels in and out of every dead end without you having to think about a single turn.

Fill in the dead ends as you go

Wall-following will reach the exit, but it cheerfully walks you into every dead end along the way. A second technique gets you a cleaner path: dead-end filling. The idea is to mentally cross out corridors that lead nowhere until only the real route is left.

Scan the maze for any dead end - a corridor that is walled off at one end with only a single opening. That whole stub can never be part of the solution, so colour it in, or just decide to ignore it. Crossing it off often turns the square at its mouth into a new dead end, so keep going, retreating each blocked passage one step at a time. When you have filled every dead end you can find, the corridors that remain unfilled are the through-routes, and the line connecting the entrance to the exit will be sitting right there among them. On paper you can do this with a pencil; on a screen you do it with your eyes, quietly dismissing the stubs so the real path stands out.

Read each junction before you step

Whichever method you lean on, the moments that matter are the junctions - the squares where the corridor splits and you have a choice. The fix is to slow down at exactly those spots and speed up everywhere else, because the straight stretches between junctions never need a decision.

When you reach a fork, pause and look down each branch as far as you can see. If one of them ends in a wall a short way along, you can rule it out before taking a single wasted step. If one clearly bends toward the exit while another heads away, that is real information - use it. The point is to spend your attention where the maze actually asks a question, and to gather what you can with your eyes before you move your feet, rather than wandering down a branch only to discover it was a pocket all along.

Look before you commit: at every fork, glance down each opening first - a branch that dead-ends in view is one you never have to walk. The compact, readable layouts in Mochi Maze are perfect for training this habit, since you can usually take in a whole junction at a glance.

When wall-following fails: the detached island

The hand-on-wall rule has one honest weakness, and it is worth knowing so you are never caught out. It depends on every wall connecting back to the outer boundary. If the goal sits in the middle of the maze on a piece of wall that is detached - an island that floats free, touching nothing else - then the wall you are following and the wall around the goal are two separate loops. Trace your wall forever and it will never bring you to the other one. You will circle the outer ring endlessly and never reach the centre.

You will recognise this case when the target is deep inside rather than on the edge, or when faithful wall-following keeps returning you to the start without ever passing the goal. The fix is to stop pushing forward from the entrance and instead work backwards from the goal. Trace outward from the centre - the same hand-on-wall idea, just begun at the destination - until you connect with a corridor you already know how to reach. Meeting in the middle like this sidesteps the detached island entirely, because you are now following the goal's own wall outward to you.

A simple routine for any maze

Put the pieces together and a maze becomes a short checklist rather than a guessing game:

  1. Glance at where the goal sits. On the edge or reachable from the outer wall? Wall-following will carry you there. Marooned in the middle on a free-floating wall? Plan to work back from it instead.
  2. Choose one hand and never lift it. Right or left, pick one and keep it on the wall the entire run. Switching hands cancels your progress.
  3. Slow down at junctions, hurry through corridors. Decisions only happen at forks; the straights in between need no thought.
  4. Rule out dead ends on sight. Any branch that ends in a wall within view is one you can cross off without walking it.
  5. If you keep looping, reverse. Trace outward from the goal until you meet a path you already know - the surest way past a detached island.

The thread through all of it is that a maze never actually requires luck. Everything you need is drawn on the page in front of you, so the skill is simply learning to read it - follow one wall, dismiss the dead ends, and the way out reveals itself.

Mochi Maze
Practise on Mochi Maze Free in your browser - hand-built mazes that grow from cosy to twisty, no timer and no sign-up, so you can trace each wall at your own pace.
Play Mochi Maze

Where to go next

A maze rewards calm reading over frantic wandering, and the only way the hand-on-wall rule and the junction scan become second nature is by tracing real ones. Mochi Maze is built for that: the early boards are small enough to take in at a glance, the corridors widen and tangle a level at a time, and there is no clock rushing you. If you enjoy this kind of look-first puzzle, the same patient, plan-before-you-move instinct carries straight into our other logic guides below.