Hard Printable Mazes — Bushy Prim Mazes With Many Dead Ends
Hard mazes are not just bigger. This one is built with Prim's algorithm, which grows outward from the start and produces a dense thicket of short dead ends — the texture that makes a solver pick up a pencil twice.
Maze maker
A preset sets the grid size and the algorithm together.
20 × 20 cells
The seed is written into the URL, so a reload — or a shared link — restores this exact maze.
This page’s maze, measured
A fixed seed (410003) on a 32 × 32 grid built with the Prim's algorithm. Every number below is computed from this maze at build time, then printed unchanged.
- Cells
- 1024
- Open passages
- 1023
- Dead ends
- 333
- Junctions
- 286
- Shortest solution
- 67 steps
- Mean branching
- 2.00
Answer key
The same maze with the shortest path drawn through it. The print button in the tool prints this key on its own page.
Open the tool above with the same seed and press Print to get a clean worksheet plus this key, or Download SVG for a vector copy.
How to print a hard maze without wasting paper
This is a 32 × 32 grid — 1,024 cells — generated with randomised Prim's algorithm. Prim's grows the maze from a frontier of candidate walls, choosing one at random each time, which flattens the tree: no corridor gets to run for long before a side branch appears. The result is a maze where the dead-end count is a large fraction of the cell count and long straight runs are rare.
In practice that is a much harder puzzle than a backtracker of the same size, even though both are perfect mazes with exactly one solution. The difficulty lives in the number of decisions, and the numbers under this maze show it: compare the dead-end count on this page with the same-sized backtracker on the extreme page.
- Print one maze per page at 32 × 32. Four per page makes the cells about 8 mm wide, which is too small for pencil work.
- Keep the line width near 0.07. Thicker walls close up the narrow passages that make the maze hard in the first place.
- Tick "Include answer key" before printing. Checking a hard maze by eye is slower than printing the key.
- If the solver is new to hard mazes, drop the size slider to 24 and keep Prim's algorithm. Texture does the work, not scale.
Prim's algorithm versus a recursive backtracker
A recursive backtracker produces a deep, snaking tree. Prim's algorithm produces a shallow, wide tree. Both are uniform spanning trees in the sense that every cell is reachable, but their shapes are visually opposite: backtracker mazes look hand-drawn, Prim mazes look like a circuit board.
Kruskal's algorithm sits between them: it merges random cell sets and gives a very even texture with no directional bias. The algorithm comparison page runs all three on one seed so you can see the difference with real measured numbers instead of a description.
Frequently asked questions
Why is a Prim maze harder than a backtracker maze?
Because it has many more dead ends per cell. Every dead end is a decision the solver has to evaluate and then undo, so the same number of cells costs more time.
Is a 32 × 32 maze too big to print?
Not on US Letter or A4. At 32 cells across a 170 mm printable width each cell is about 5.3 mm, which is comfortable for a fine-tip pen. Use one maze per page.
Can I get a bigger hard maze?
Yes. Push the size slider to 60 and keep Prim's algorithm. A 60 × 60 maze has 3,600 cells and needs a large sheet or a two-page print.