The classic question takes a large cube, paints all six faces, cuts it into n × n × n equal small cubes, and asks how many small cubes have three, two, one or no painted faces. You do not need to picture all the small cubes. Every small cube is in exactly one of four places, and each place has a fixed number of painted faces.

  • Corners touch three outer faces, so they have 3 painted faces. A cube always has 8 corners.
  • Edges, excluding the corners, touch two faces: 2 painted faces. Each of the 12 edges has n − 2 such cubes.
  • Face centres, away from edges, touch one face: 1 painted face. Each of the 6 faces has (n − 2)² of them.
  • Core cubes are hidden inside: 0 painted faces. They form an inner cube of side n − 2.
Painted facesPositionNumber of small cubes
3corners8
2edges12(n − 2)
1face centres6(n − 2)²
0core(n − 2)³

Here n is the number of small cubes along one edge. If the question gives the total number of small cubes, take its cube root to find n: 64 small cubes means n = 4. If it gives lengths, divide: a 6 cm cube cut into 1 cm cubes has n = 6.

Worked example 1: n = 4

A painted cube is cut into 64 small cubes, so n = 4. Three faces: 8. Two faces: 12 × 2 = 24.

One face: 6 × 2² = 24.

No face: 2³ = 8.

Check: 8 + 24 + 24 + 8 = 64, the total number of small cubes. Always make this check; it catches most slips.

Worked example 2: n = 5

A painted cube cut into 125 small cubes has a core of 3³ = 27 unpainted cubes.

It also has 6 × 3² = 54 cubes with exactly one painted face.

Worked example 3: lengths instead of a count

A cube of side 6 cm is painted and cut into 1 cm cubes. Then n = 6, and the cubes with exactly two painted faces number 12 × 4 = 48.

To divide each edge into n equal parts you need n − 1 cuts, and you must cut in three directions. So the minimum number of straight cuts is 3(n − 1), assuming you do not rearrange the pieces between cuts.

Worked example 4: six cuts

Six cuts, two in each direction, divide each edge into 3 parts, giving 3³ = 27 small cubes.

For a painted cuboid of l × b × h small cubes, the same four positions apply, but the edges and faces have different lengths. There are still 8 corners. The 12 edges come in three groups of four, of lengths l − 2, b − 2 and h − 2. The six faces come in three pairs.

Worked example 5: a 4 × 3 × 2 cuboid

Two faces: 4 × (2 + 1 + 0) = 12.

One face: 2 × (2 × 1 + 1 × 0 + 2 × 0) = 4. With 8 corners and no core, 8 + 12 + 4 + 0 = 24, the full count of small cubes.

If only some faces are painted, the four formulas no longer apply. Count by layers instead: decide which layers touch a painted face, and count the cubes in each layer.

Worked example 6: only two opposite faces painted

A cube with only its top and bottom painted is cut into 64 small cubes. The top and bottom layers, 16 cubes each, have one painted face. The two middle layers have none: 16 × 2 = 32 unpainted cubes.

  • ✘ Using n as the total number of cubes instead of the number along one edge.
  • ✘ Forgetting to subtract the two corners from each edge: the edge count is n − 2, not n.
  • ✘ Applying the all-faces formulas when only some faces are painted.
  • ✘ Skipping the check that the four counts add up to the total.

Spatial questions also include dice problems and counting figures. Cube roots of the totals come quickly with the cube root of a perfect cube trick, and more methods are on the study hub.

Q1. A cube painted on all faces is cut into 27 equal small cubes. How many small cubes have exactly one face painted? easy

✅ Answer: (b) 6

💡 Explanation: 27 cubes means n = 3. Each face has (3 − 2)² = 1 centre cube with one painted face, and there are 6 faces, giving 6.

Q2. A painted cube is cut into 216 equal small cubes. How many small cubes have no face painted? easy

✅ Answer: (d) 64

💡 Explanation: 216 = 6³, so n = 6. The unpainted cubes form an inner cube of side n − 2 = 4, which holds 4³ = 64 cubes.

Q3. A painted cube is cut into 125 equal small cubes. How many have exactly two faces painted? medium

✅ Answer: (a) 36

💡 Explanation: 125 = 5³, so n = 5. Each of the 12 edges has n − 2 = 3 middle cubes with two painted faces, giving 12 × 3 = 36.

Q4. A cube painted on all faces is cut into 64 equal small cubes. How many small cubes have at least one face painted? medium

✅ Answer: (c) 56

💡 Explanation: The only cubes with no paint are the inner (4 − 2)³ = 8. Every other cube has at least one painted face: 64 − 8 = 56.

Q5. What is the minimum number of straight cuts needed to divide a cube into 216 equal small cubes? medium

✅ Answer: (b) 15

💡 Explanation: 216 = 6³, so each edge must be divided into 6 parts, which needs 5 cuts. The cube needs 5 cuts in each of 3 directions: 3 × 5 = 15.

Q6. A painted cube is cut into equal small cubes, and exactly 27 of them have no face painted. How many small cubes are there in all? hard

✅ Answer: (a) 125

💡 Explanation: The unpainted core is (n − 2)³ = 27, so n − 2 = 3 and n = 5. The total is 5³ = 125.

Do the formulas work if the cube is cut into only 8 small cubes?

Yes. With n = 2, every small cube is a corner, so all 8 have three painted faces, and the formulas for two, one and zero faces all give 0 because n − 2 = 0.

What if the small cubes are not all the same size?

The formulas assume equal cuts along every edge. If the cuts are uneven, draw the cube layer by layer and count each kind of small cube directly, because the corner, edge, face and core pattern no longer has equal pieces.

All problems and solutions on this page are original. No outside facts are relied on; every numeric answer is recomputed by software before publishing.

How this page was prepared. Drafted with AI assistance (Claude (Anthropic AI model)) from the sources listed above. 17 calculations on this page were recomputed by software and matched. Automated checks also covered structure, internal links and duplicate text. Software checks cannot confirm facts. Reviewed by praveenkumar on 2026-10-20 against the sources listed above.

Found an error? Report it and we will correct the page.