Halloween Maze Printable — Pumpkin-Shaped Maze, Free

A lobed pumpkin with a stem, masked out of a 22 × 22 grid and filled with a Prim maze — dense enough that the trick-or-treat crowd has to work for it.

Pumpkin maskPrim's algorithm22 × 22 gridAnswer key

Maze maker

0 cells 0 dead ends 0 step solution 0 moves 0:00

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 (410011) on a 22 × 22 grid built with the Prim's algorithm. Every number below is computed from this maze at build time, then printed unchanged.

292 cells, 97 dead ends, shortest solution 39 steps
Cells
292
Open passages
291
Dead ends
97
Junctions
79
Shortest solution
39 steps
Mean branching
1.99

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.

Answer key: 40 cells on the shortest path

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.

Printing the pumpkin maze

This pumpkin is an ellipse with six shallow lobes and a short stem, evaluated per cell and folded into the maze grid. The generator is Prim's algorithm, chosen because a heavily branched tree suits a shape that is wider than it is tall: the corridors spread sideways the way a real pumpkin does.

As with every shaped maze here, the mask is checked for connectivity before generation. If a lobe or the stem were cut off by the grid resolution, those cells would be dropped rather than left stranded, so the printed sheet is always solvable.

  1. One maze per page for a full sheet, four per page for a party table.
  2. Leave the answer key on; a dense Prim maze in an irregular shape is slow to verify by eye.
  3. Print in black and white — the sheet is pure vector with no orange fill, so a mono printer loses nothing.
  4. Switch the algorithm to Recursive backtracker if you want a gentler version for younger children.

Why the pumpkin uses a different algorithm

Shape and algorithm interact. A backtracker inside a wide, low mask tends to carve one long corridor across the widest part of the shape and leave the lobes as short stubs. Prim's algorithm spreads evenly, so every lobe gets used and the maze fills the silhouette instead of tracing it.

That is a design choice you can undo: the algorithm selector switches this page between all three generators at the same seed, and the stats under the maze update so you can compare dead ends and solution length before printing.

Frequently asked questions

Is the pumpkin a licensed character?

No. It is generic geometry — a lobed ellipse plus a stem. No character, costume design or brand is referenced anywhere.

Can I print four pumpkins on one sheet?

Yes. Set mazes per page to 4; the four use different seeds so the corridors differ, and each is a complete perfect maze.

The corridors look very tight. Can I widen them?

Increase the line width for bolder walls, or drop the size from 22 to 16. Both make the sheet easier to read without changing the algorithm.