HomeGuidesHow to Win at Sokoban

How to Win at Sokoban (Box-Pushing Puzzles)

By Anime Mochi · Updated June 2026 · 7 min read

Sokoban is the warehouse puzzle where you walk a little figure around a grid and shove crates onto marked target pads. It looks gentle - just push some boxes - and then you push one crate one square too far, it jams against a wall, and the whole level is quietly unwinnable. The good news is that nearly every Sokoban mistake comes from the same handful of traps, and once you can see them coming, the puzzles turn from frustrating into deeply satisfying. This guide covers the one rule, the moves that kill a level, and how to plan so you finish on the first real try.

The one rule that drives everything

Sokoban has a single mechanic, and every bit of strategy grows out of it:

You can only PUSH a crate, never pull it. To push, you stand on the opposite side and walk into it, which means there must be an empty square behind the crate for it to slide into, and an empty square behind you to stand in.

Read that twice, because it is the whole game. A crate only moves in the direction you are already walking, away from you. You can never grab a box and drag it back, and you can never push two crates stacked in a line at once. So before you nudge any box, you are really asking two questions: is there room behind the box for it to go, and can I get myself around to the side I need to push from?

Why a crate can get stuck forever

This is the idea that separates people who win Sokoban from people who restart it. Because you can only push, some positions are permanently dead - the level is lost even though nothing looks broken yet. There are two you must learn to spot instantly.

The corner. Push a crate into a corner where two walls meet and it is frozen. To move it you would have to pull it out, and you cannot pull. The only time a corner is safe is when that corner is a target pad - then the crate is exactly where it should be. Any other corner is a grave.

The flat wall. A crate pressed flat against a wall, with the wall running the full length of that side, can now only ever slide along the wall - it can never come back out into the room. If there is no target pad somewhere along that wall, the crate is just as dead as in a corner; it is a corner waiting to happen as soon as it reaches the end of the wall. Watch for this one, because it kills levels two or three moves later and beginners rarely connect the cause to the effect.

The freeze test: before any push, ask "after this, can this crate still reach a target?" If the answer is no - it is in a non-target corner, or trapped flat on a target-free wall - do not make that move. Practising this single check on the early levels of Mochi Push, where the rooms are small and the traps are obvious, builds the instinct you will lean on for the hard ones.

Plan backwards from the goals

The most natural way to play Sokoban - look at a box, shove it roughly toward a pad, repeat - is also the fastest way to a stuck level. Strong solving runs the other direction. Start at the target pads and work back to the crates.

Look at a target pad and ask: from which square would a crate have to be pushed to land here, and which way would I have been walking to do it? Then ask the same of that square, and the one before it, tracing the crate's path in reverse all the way back to where it sits now. You are drawing the route in your head before you take a step. This matters most for pads tucked against walls or in corners, because a crate can usually only be delivered to those from one specific direction - if you approach from the wrong side, you will never be standing where you need to stand to make the final push.

Do this for the trickiest pad first, not the easiest. The corner and wall-hugging targets have the fewest valid approaches, so they dictate everything else. Solve their delivery in your mind, and the open, central pads will almost always still have room left for them afterward.

Keep your escape lanes open

Every push needs you to be standing behind the crate, and your future pushes need you to be able to walk to the right side of the next crate. The most common way to lose a winnable level is to wall yourself in - to fill the only corridor you needed to get around to the far side of a box.

So treat empty floor as a resource, not just a place to walk. Before you push a crate across a narrow passage, check whether that crate will now block the only route to where you need to go next. If a single doorway is your one path between two halves of the level, be very careful about parking a box in it. The same goes for not boxing yourself into a pocket: it is easy to push a crate behind you and then realise you have sealed the room you are standing in. Always leave yourself a way out, and leave the boxes a lane to be approached from later.

Place the boxes in the right order

When several crates head for several pads, the order you fill them in is its own puzzle. Get it wrong and a finished crate sits in the path of the next one, or blocks the side you needed to push from. A reliable order:

  1. Fill the deepest, most boxed-in pads first. A target in a corner or at the dead end of a corridor can only be reached while the squares leading to it are still clear. Deliver to it before you clog those squares with other crates.
  2. Then the pads along walls. These have limited approaches too, but more room than corners. Set them before the open middle fills up.
  3. Save the open, central pads for last. A target out in the room can be reached from several directions, so it stays flexible the longest. Use it as your buffer.
  4. Never finish a crate where it blocks the path to an unfilled pad. If placing box A seals off box B's only route, do B first - even if A looks easier.

The thread running through all of it: do the moves that close down your options while you still have options, and leave the forgiving moves for when your room to manoeuvre has shrunk.

Undo is a tool, not a confession

Sokoban has no hidden information and no luck - the entire solution is sitting in front of you, so a good player solves much of the level by trying lines and backing out of the ones that dead-end. Undo exists for exactly this. Push a box, see where it leaves you, and if it heads toward a non-target corner or seals a corridor, undo it and try a different order. This is not cheating or playing badly; it is how the puzzle is meant to be explored.

If you have pushed several crates and only now notice a box is hopelessly stuck, undo back to before that push - or restart the level outright. A fresh board with everything you just learned beats grinding on a position that can no longer be won. Restarting early, the moment you spot a dead crate, costs you seconds; refusing to costs you the whole level.

Step back, then look again: when a level resists, stop pushing and read the board cold - which pads have only one approach, which crate is already half-trapped, which doorway you cannot afford to fill. Mochi Push keeps an undo button and a quick restart within reach, so you can test a risky push, walk it back, and replan without ever losing your progress.

Common beginner mistakes

Mochi Push
Practise on Mochi Push Free in your browser - hand-built Sokoban levels that ramp up gently, with undo and instant restart, no timer and no sign-up.
Play Mochi Push

Where to go next

Sokoban rewards looking before you leap, and the only way the freeze test and the plan-backwards habit become automatic is by solving real boards. Mochi Push is built for exactly that: the early levels are small enough to see every trap, the difficulty climbs a step at a time, and undo plus a one-tap restart let you explore freely without ever feeling stuck. If you enjoy this kind of think-ahead puzzle, the same calm, plan-first instinct carries straight into our other logic guides below.