• Practice
  • About 12 min
  • 5 practice questions

Stacks of cubes: counting from a height grid

Read a grid of column heights to find the total number of cubes, the number visible from above and the number needed to complete a block.

If something looks wrong, please tell us.

Spatial visualisation means seeing in your head how objects look from different sides or after being moved. Exams show a stack of cubes in a drawing and ask you to count cubes, or to say what the stack looks like from the front. Because we cannot draw here, we describe a stack by a height grid: a table that is a plan view from above, where each number is the count of cubes piled in that position.

Reading the grid

  • Each cell is a column of cubes standing on the floor.
  • The number in the cell is how many cubes are in that column.
  • A 0 means that position is empty.
  • The total number of cubes is the sum of all the numbers.

Worked examples

Height grid 1
Column 1Column 2Column 3
213
102
321

Example 1. The total in Grid 1 is (2 plus 1 plus 3) plus (1 plus 0 plus 2) plus (3 plus 2 plus 1) = 6 plus 3 plus 6 = 15 cubes.

Example 2. To make a solid 3 by 3 by 3 cube you need 27 cubes. 27 minus 15 = 12 more cubes.

Example 3. Seen from above, you see the top of every column that is not empty. There are 9 positions and one is 0, so 8 squares are visible from above.

Example 4. Cubes that cannot be seen from above lie under another cube: 15 minus 8 = 7 cubes.

Add all the numbers for the total. The top view shows one square for every column that is not empty.

— Rule to remember

Practice

Height grid 2
Column 1Column 2Column 3
321
012
201

Frequently asked questions

How many cubes are in Height grid 2? A) 10 B) 12 C) 14 D) 18

B. 3 plus 2 plus 1 plus 0 plus 1 plus 2 plus 2 plus 0 plus 1 = 12.

How many squares are visible from above in Height grid 2? A) 7 B) 8 C) 9 D) 12

A. Two positions are empty (the two zeros), so 9 minus 2 = 7.

How many more cubes make Height grid 2 into a solid 3 by 3 by 3 cube? A) 12 B) 15 C) 18 D) 27

B. 27 minus 12 = 15.

A 2 by 2 grid has rows 1, 2 and 3, 1. How many more cubes are needed to make every column 3 high? A) 3 B) 5 C) 7 D) 12

B. The target is 4 times 3 = 12 cubes; there are 7; 12 minus 7 = 5.

In Height grid 2, how many cubes are hidden from a view directly from above? A) 3 B) 5 C) 7 D) 12

B. 12 cubes minus 7 visible tops = 5 hidden cubes.

Key takeaways

  • A height grid is a plan view with column heights.
  • Total cubes = sum of the numbers.
  • Top view squares = number of non-empty columns.

Check your understanding

  1. 1. A height grid has rows (1, 3, 2), (0, 2, 1) and (3, 1, 2). How many cubes are in the stack?

    1. 14
    2. 15
    3. 16
    4. 9
    Show answer

    Answer: B. Row totals: 1 + 3 + 2 = 6, 0 + 2 + 1 = 3, 3 + 1 + 2 = 6. Total 6 + 3 + 6 = 15.

  2. 2. A height grid has rows (1, 3, 2), (0, 2, 1) and (3, 1, 2). How many squares are visible from directly above?

    1. 9
    2. 15
    3. 6
    4. 8
    Show answer

    Answer: D. One square shows for every non-empty column. There are 9 positions and one is 0, so 8 squares.

  3. 3. A height grid has rows (1, 3, 2), (0, 2, 1) and (3, 1, 2). How many cubes are hidden from a view directly above?

    1. 7
    2. 8
    3. 15
    4. 1
    Show answer

    Answer: A. Only the top cube of each non-empty column is seen from above. 15 cubes minus 8 visible tops = 7 hidden.

  4. 4. A height grid has rows (1, 3, 2), (0, 2, 1) and (3, 1, 2). How many more cubes are needed to make a solid 3 by 3 by 3 cube?

    1. 15
    2. 27
    3. 12
    4. 9
    Show answer

    Answer: C. A solid 3 by 3 by 3 cube has 27 cubes. 27 - 15 = 12 more are needed.

  5. 5. A 2 by 2 height grid has rows (2, 1) and (0, 3). How many more cubes are needed to make every column 3 high?

    1. 3
    2. 6
    3. 12
    4. 9
    Show answer

    Answer: B. The target is 4 columns x 3 = 12 cubes. There are 2 + 1 + 0 + 3 = 6, so 12 - 6 = 6 more.

Sign in to keep track of the lessons you finish.

Next lesson → Front, side and top views of a stack

Privacy · Terms · Refunds · Delivery