How many $2 \times 2 \times 1$ blocks can you put in a $3 \times 3 \times 3$ cube?

And what is the way to put them?
Of course the blocks can't overlap.

I just remembered this nice simple puzzle and I'm surprised it's not posted yet by anyone here (CMIIW).


3 Answers 3


I think the answer is



placing one block on each 'face' of the cube. That'll leave $3 \times 3 \times 3 - 6 \times (2 \times 2 \times 1) = 27 - 24 = 3$ units empty, which is less than the block size, so it's an optimal solution.

Here's a visualization, thanks @JaapScherphuis for linking to the Wikipedia article:

enter image description here
(picture by JocK, published on Wikipedia)

  • $\begingroup$ This is pretty much the answer I came up with myself, but I miscalculated and thought I wasn't right, so I didn't post it. +1. $\endgroup$
    – Nzall
    Mar 27, 2018 at 14:12

The answer has already been given, so this is mainly to give more background information about the puzzle.

It is called the Slothouber–Graatsma puzzle.

It is often attributed to the mathematician John Conway, because it was published in the book Winning Ways. A commercial version called "Pack It In" was produced in 2003 by Binary Arts (who are now called ThinkFun). You can see this version (with its solution) at this link:


which is a page on Jim Storer's puzzle site.

Here is a little bit of analysis:

6 of those blocks have a total volume of 24 unit cubes, so assuming they can be packed into the 3x3x3 cube, exactly 3 unit cubes will remain empty.
Whichever orientation a 2x2x1 block is placed, it will always fill an even number of the 9 small cubes in each layer.
Furthermore, if you give a layer checker-board colouring, the 2x2x1 blocks will always cover the same number of each colour, so the empty spot must lie in the centre or at a corner of that layer.

You can apply the above reasoning not just for each layer, but also for each vertical slice of the 3x3x3 cube in any direction. Every layer/slice must have at least one empty space, and because we have only three, they must have exactly one each. The only way to accomplish that with the space at the corner or centre of each layer/slice is to have the three empty spaces go along a main diagonal of the 3x3x3 cube. It turns out that this provides a solution, i.e. six 2x2x1 blocks can fill the 3x3x3 cube apart from three spaces along a main diagonal.

Conway did extend the idea above to larger puzzles, in particular a 5x5x5 packing puzzle, rightfully called the Conway Puzzle. If you apply the spoilered analysis to that puzzle it becomes much easier to solve.

  • 3
    $\begingroup$ You can prove the other arrangements of spaces don't work. By coloring each layer like a checkerboard, each 2x2x1 piece covers one black and one white cube in each layer, so the space at (x, y, z) in that layer satisfies x + y = even, so x and y are both even or both odd. Applying the same logic in all three directions, the spaces must be (odd, odd, odd) or (even, even, even), so one space must go in the center and the other two must go in the corners. $\endgroup$ Mar 27, 2018 at 16:12
  • $\begingroup$ A big thanks for the reference! I found it hard to google about this back then. $\endgroup$
    – athin
    Mar 28, 2018 at 0:35
  • $\begingroup$ @MikeEarnest Thanks for that. I'll edit it into my answer. $\endgroup$ Mar 28, 2018 at 9:06


the most is the last where 2*2*1*n = 4n < 3*3*3=27 where n is the number of blocks. n= 6 so (4*6 = 24 < 27).

How to put it ?

Put one in face of each face. The single thing to be careful of is to have for 2 opposites faces (top and down for example) a shift that would left the 6th.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.