• Practice
  • About 13 min
  • 5 practice questions

Painted cubes: counting small cubes by the number of painted faces

Count the small cubes with three, two, one and no painted faces when a painted n by n by n cube is cut into unit cubes, using the corner, edge, face and inside rules.

If something looks wrong, please tell us.

A large cube is painted on the outside and then cut into small cubes of equal size. How many of the small cubes have paint on exactly three faces? On two faces? On none? These questions are popular because the answers follow clean rules, but only if you sort the small cubes by their position in the large cube.

Sorting the small cubes by position

Suppose the large cube has side n, so it is cut into n times n times n small cubes, with n at least 3. Every small cube belongs to exactly one of four types.

Painted faces by position
Type of positionPainted facesHow manyWhy
Corner38A cube has 8 corners
Edge, not a corner212(n - 2)12 edges, each with n - 2 cubes between the corners
Face, not on an edge16(n - 2)(n - 2)6 faces, each with an (n - 2) by (n - 2) square in the middle
Inside0(n - 2) cubedThe cube left when the outer layer is removed
The counts for several sizes
nThree facesTwo facesOne faceNo paintTotal
38126127
482424864
58365427125
68489664216

Always check that the four numbers add to n cubed. For n = 5: 8 + 36 + 54 + 27 = 125.

Worked examples

Example 1. A cube of side 4 is painted and cut into 64 small cubes. How many have exactly two painted faces? Working: 12 edges, each with 4 minus 2 = 2 such cubes, so 12 times 2 = 24.

Example 2. A painted cube is cut into 216 small cubes. How many have exactly one painted face, and how many have none? Working: 216 = 6 times 6 times 6, so n = 6. One face: 6 times 4 times 4 = 96. None: 4 times 4 times 4 = 64. Check: 8 + 48 + 96 + 64 = 216.

Example 3. How many small cubes have at least one painted face when n = 5? Working: all cubes minus the inside ones: 125 minus 27 = 98. Or add the other three types: 8 + 36 + 54 = 98.

Example 4. A cube of side 4 is painted only on its top and bottom faces and then cut into 64 small cubes. How many have exactly one painted face? Working: the top face gives 4 times 4 = 16 small cubes with paint on top, and the bottom gives 16 more. No small cube touches both, since the cube is 4 layers high. Answer: 16 + 16 = 32. The other 32 cubes have no paint.

Corners 8. Edges 12(n - 2). Faces 6(n - 2) squared. Inside (n - 2) cubed. They must add to n cubed.

Key takeaways

  • Sort the small cubes into corner, edge, face and inside types.
  • Each type has a count you can write as a formula in n.
  • Find n from the total: the cube root of the number of small cubes.
  • If only some faces are painted, count layer by layer instead of using the formulas.

Check your understanding

  1. 1. A painted cube of side 4 is cut into 64 small cubes. How many have exactly three painted faces?

    1. 24
    2. 12
    3. 8
    4. 4
    Show answer

    Answer: C. Only the 8 corner cubes touch three faces of the large cube.

  2. 2. A painted cube of side 5 is cut into 125 small cubes. How many have exactly two painted faces?

    1. 54
    2. 12
    3. 24
    4. 36
    Show answer

    Answer: D. 12 edges, each with 5 minus 2 = 3 such cubes: 12 times 3 = 36.

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

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

    Answer: B. 216 is 6 cubed, so n = 6. One face: 6 times (6 minus 2) squared = 6 times 16 = 96.

  4. 4. A painted cube is cut into 125 small cubes. How many have no paint?

    1. 27
    2. 9
    3. 64
    4. 3
    Show answer

    Answer: A. n = 5, and the unpainted cubes form a (5 minus 2) cube: 3 times 3 times 3 = 27.

  5. 5. A cube of side 4 is painted only on its top and bottom faces, then cut into 64 small cubes. How many small cubes have exactly one painted face?

    1. 24
    2. 16
    3. 32
    4. 64
    Show answer

    Answer: C. The top layer has 16 cubes with paint on top and the bottom layer has 16 with paint underneath. No cube is in both layers, so 32 in all.

Privacy · Terms · Refunds · Delivery