Skip to content

Home / Maze generator

Maze generator

Printable mazes with one true path from start to finish. Pick a size and a style; the solution prints on the next page.

Quick sizes

Style
Mazes per page

How mazes are generated

Picture the maze as a grid of rooms, all walled off. Generating a maze means choosing which walls to knock down so every room is reachable and no loops form. Different rules for choosing produce mazes that feel completely different to solve.

Watch a maze being carved

Every “perfect” maze is a spanning tree: all 100 cells joined by exactly 99 passages, with no loops, so there is exactly one route between any two points. The algorithm only decides which passages.

Algorithm

Recursive backtracker: wander randomly until stuck, then back up to the last cell with an unvisited neighbour. Result: long, winding corridors and few dead ends. Most people find these hardest to solve by eye.

Passages: 0 / 99

Maze sizes by age

AgeGridStyle to try
3–56×6 – 8×8Branchy (short dead ends, quick wins)
6–810×10 – 14×14Even
9–1216×16 – 24×24Winding
Teens & adults30×30 – 40×40Winding, 1 per page

The wall-follower trick

Put one hand on a wall at the entrance and never let go. In a perfect maze like these, you are guaranteed to reach the exit, because the walls form one connected piece. It is rarely the shortest route, which makes it a nice thing to test with kids: trace it in one colour, then find the real shortest path in another.

Questions people ask

Are these mazes free to print?

Yes. Generate as many as you like and print them or save them as PDF. There is no sign-up and no watermark.

Does every maze have a solution?

Every maze is "perfect": all cells are connected and there is exactly one path between the entrance and the exit. The answer page draws that path.

What maze size suits which age?

Roughly: 6×6 to 8×8 for ages 3–5, 10×10 to 14×14 for ages 6–8, 16×16 to 24×24 for ages 9–12, and 30×30 or more for teens and adults.

What do the three maze styles mean?

They are three algorithms. Winding (recursive backtracker) makes long twisting corridors. Branchy (Prim) makes many short dead ends. Even (Kruskal) mixes both. The explainer on this page animates each one.

Can I print several mazes on one page?

Yes. Choose 1, 2 or 4 per page; each is different and the solutions print in the same order on the next page.

Other puzzle makers