• Practice
  • About 14 min
  • 5 practice questions

Painted cubes cut into smaller cubes

Count the small cubes with three, two, one and no painted faces when a painted cube is cut into n by n by n smaller cubes.

If something looks wrong, please tell us.

A classic question: a large cube is painted on all its faces and then cut into n by n by n small cubes. How many small cubes have three painted faces, two, one, or none? The answer depends on where each small cube sat in the large one.

Where the small cubes were

  • Corners (3 faces painted): the big cube has 8 corners, so 8 small cubes.
  • Edges (2 faces painted): each of the 12 edges has n minus 2 small cubes that are not corners, so 12 times (n minus 2).
  • Face centres (1 face painted): each of the 6 faces has (n minus 2) times (n minus 2) small cubes that are not on an edge, so 6 times (n minus 2) squared.
  • Inside (no face painted): (n minus 2) cubed.
Counts for common sizes
n3 faces2 faces1 face0 facesTotal
38126127
482424864
58365427125

Worked examples

Example 1. A 4 by 4 by 4 cube. Two painted faces: 12 times 2 = 24. One painted face: 6 times 2 times 2 = 24. No paint: 2 cubed = 8. Check: 8 plus 24 plus 24 plus 8 = 64, which equals 4 cubed.

Example 2. A 6 by 6 by 6 cube. Two painted faces: 12 times 4 = 48. One face: 6 times 16 = 96. No paint: 4 cubed = 64.

Example 3. Always check the total. For n = 5: 8 plus 36 plus 54 plus 27 = 125, which is 5 cubed.

Three faces: 8. Two faces: 12(n minus 2). One face: 6(n minus 2) squared. None: (n minus 2) cubed. The total is n cubed.

— Rule to remember

Key takeaways

  • Three faces are corners, two are edges, one are face centres, none are inside.
  • Use 12(n minus 2), 6(n minus 2) squared and (n minus 2) cubed.
  • Check that the counts add up to n cubed.

Check your understanding

  1. 1. A painted cube is cut into 216 equal small cubes. How many have exactly one painted face?

    1. 64
    2. 48
    3. 96
    4. 144
    Show answer

    Answer: C. 216 = 6 cubed, so n = 6. One face: 6 x (6 - 2) squared = 6 x 16 = 96.

  2. 2. A painted cube is cut into 343 equal small cubes. How many have no painted face?

    1. 125
    2. 216
    3. 150
    4. 64
    Show answer

    Answer: A. 343 = 7 cubed, so n = 7. Inside: (7 - 2) cubed = 5 cubed = 125.

  3. 3. A painted cube is cut into 512 equal small cubes. How many have exactly two painted faces?

    1. 48
    2. 64
    3. 96
    4. 72
    Show answer

    Answer: D. 512 = 8 cubed, so n = 8. Two faces: 12 x (8 - 2) = 72.

  4. 4. A painted cube is cut into equal small cubes, and 150 of them have exactly one painted face. How many small cubes are there in all?

    1. 216
    2. 343
    3. 512
    4. 125
    Show answer

    Answer: B. 6 x (n - 2) squared = 150 gives (n - 2) squared = 25, so n - 2 = 5 and n = 7. Total = 7 cubed = 343.

  5. 5. A painted cube is cut into 125 equal small cubes. How many have at least two painted faces?

    1. 36
    2. 54
    3. 44
    4. 98
    Show answer

    Answer: C. n = 5. Three faces: 8. Two faces: 12 x 3 = 36. At least two: 8 + 36 = 44.

Privacy · Terms · Refunds · Delivery