- Foundation
- About 11 min
- 5 practice questions
Counting cubes in a stack
Count the cubes in a stack by reading a plan of heights, and work out the top and front views from the same plan.
If something looks wrong, please tell us.
A common question shows a stack of identical cubes and asks how many cubes there are, including the hidden ones. The key is to think in columns. Each position on the floor holds a column of cubes, and the stack is the total of all columns. A table of column heights is called a plan.
Reading a plan of heights
In the plan below, each number is the height of the column at that place (the number of cubes stacked there). Rows go from the front to the back, and columns from left to right.
| Left | Middle | Right |
|---|---|---|
| 1 | 2 | 3 |
| 0 | 1 | 2 |
| 0 | 0 | 1 |
Total cubes: add all the heights, 1 plus 2 plus 3 plus 0 plus 1 plus 2 plus 0 plus 0 plus 1, which is 10.
Views from the plan
- Top view: a square is visible for every place whose height is more than 0. In the plan above that is 6 squares.
- Front view: for each column from left to right, take the tallest number in that column of the plan. Here the tallest are 1, 2 and 3, a staircase going up to the right.
- Side view: for each row from the front to the back, take the tallest number in that row. Here the rows have the tallest 3, 2 and 1.
Worked examples
Example 1. Using the plan above, how many cubes are in the bottom layer? Working: the bottom layer has one cube wherever the height is at least 1, which is 6 places. Answer: 6.
Example 2. How many cubes are above the bottom layer? Working: 10 minus 6. Answer: 4.
Example 3. A 3 by 3 base has every column 2 cubes tall. How many cubes? Working: 9 columns times 2. Answer: 18.
Think in columns: the total is the sum of the heights. The front view shows the tallest column in each vertical line of the plan.
Key takeaways: use a plan of heights; add for the total; take the tallest in each line for the views.
Check your understanding
-
1. A plan of heights has a front row (2, 1, 3) and a back row (1, 0, 2). How many cubes are there in all?
- 6
- 5
- 9
- 8
Show answer
Answer: C. Add all the heights: 2 + 1 + 3 + 1 + 0 + 2 = 9.
-
2. For the plan with front row (2, 1, 3) and back row (1, 0, 2), what is the front view, left to right (tallest in each column)?
- 2, 1 and 3
- 1, 0 and 2
- 3 and 2
- 3, 1 and 3
Show answer
Answer: A. Left column: 2 and 1, tallest 2. Middle column: 1 and 0, tallest 1. Right column: 3 and 2, tallest 3. So the front view is 2, 1, 3. (3 and 2 is the side view, the tallest in each row.)
-
3. For the same plan, front row (2, 1, 3) and back row (1, 0, 2), how many squares are visible in the top view?
- 6
- 9
- 3
- 5
Show answer
Answer: D. A square shows wherever the height is more than 0. Only one of the six places has height 0, so 5 squares show.
-
4. A stack has layers of 16, 9, 4 and 1 cubes from bottom to top. How many cubes are there?
- 26
- 30
- 20
- 31
Show answer
Answer: B. 16 + 9 + 4 + 1 = 30.
-
5. A base 2 cubes by 4 cubes has every column 3 cubes tall. How many cubes are there?
- 9
- 11
- 18
- 24
Show answer
Answer: D. There are 2 x 4 = 8 columns, each 3 tall, so 8 x 3 = 24.
Sign in to keep track of the lessons you finish.