← Back to the app

Counting the cut small cubes — layer by layer

Stack 27 unit cubes into a 3×3×3 cube and cut it with a plane. How many of the small cubes are cut in two? Counting in 3D almost always goes wrong; the trick is to look at one layer at a time from above.

The method — count each layer from above

  1. Split into layers
    Treat the 3×3×3 cube as three layers: top, middle and bottom.
  2. Draw the section lines at the top and bottom of each layer
    Find where the cutting plane meets the layer's ceiling and floor and draw both lines on a 3×3 grid. Seen from above they are usually parallel.
  3. Count the squares between the two lines
    A square that the band between the lines (lines included) reaches is a cut cube. If a line only runs along a square's side or through its corner, that cube is not cut.
  4. Add the layers
    Top + middle + bottom is the answer, and counting by layer makes it easy to check.

Worked examples — the 3×3×3 cube

Each layer is seen from above. The solid line is the cut at the layer's top face, the dashed line at its bottom face; squares the yellow band between them reaches are cut.

Through three vertices (equilateral triangle)

The far ends of the three edges at one vertex. The line shifts diagonally from layer to layer, cutting five, three and one cubes from the top.

Layer 1: 5
Layer 2: 3
Layer 3: 1

5 + 3 + 1 = 9

Open in 3D →

Through six edge midpoints (regular hexagon)

A cut through the center: the middle layer has the most, and the top and bottom layers have the same number.

Layer 1: 6
Layer 2: 7
Layer 3: 6

6 + 7 + 6 = 19

Open in 3D →

Through two opposite edges (rectangle)

Through the top front edge and the bottom back edge. Seen from above, each layer has one full row of three cut cubes, one row further back per layer down.

Layer 1: 3
Layer 2: 3
Layer 3: 3

3 + 3 + 3 = 9

Open in 3D →

Practice

Draw the layers on paper and count first, then check with "Solve in 3D". The app opens with only the points placed: pick the three points to see the section and the answer.

1. Midpoints of two top edges and a bottom vertex (isosceles trapezoid)

Show the answer
Layer 1: 3
Layer 2: 5
Layer 3: 5

3 + 5 + 5 = 13

Solve in 3D →

2. Midpoints of two top edges and the farthest bottom vertex (pentagon)

Show the answer
Layer 1: 6
Layer 2: 6
Layer 3: 3

6 + 6 + 3 = 15

Solve in 3D →

Counting small cubes in the app

Pick three points in "Cut" and the section card shows how many small cubes are cut. "By layer" shows the same layer diagrams as this page and highlights the cut cubes in 3D.

The size of the small cubes follows "Split each edge": split the preset cube's edges in 3 for 3×3×3, in 4 for 4×4×4. The "Cube (3×3×3)" preset is 27 cubes as it is.

Cuboids work too: "Cuboid (1×2×3)" with edges split in 2 counts as a stack of 48 small cubes.

FAQ

Is a cube cut if the line only passes through its corner?
No. A cube counts only when the plane passes through its inside and splits it in two. Cubes the plane just touches along an edge, a corner or a face are not counted.
How many small cubes does the regular hexagon cut of a 3×3×3 cube cut?
19: six, seven and six by layer.
And the equilateral triangle through three vertices?
9: five, three and one by layer. Which layer has the most depends on the vertices chosen — check the figure.
Does the same method work for 4×4×4 cubes and cuboids?
Yes, there are just more layers. In the app, split the edges in 4 for a 4×4×4 cube.

Cut and count for yourself

Pick any three points to see the section, the number of cut small cubes and the layer diagrams instantly. Free, no sign-up, works on phones.

Open the app

Practice with 26 cross-section problems (answers included) →

How to cut solids — three rules; cuboids, prisms and pyramids →

Cutting a cube — nine cross-sections and practice problems →