Cubes and Dice: Painted Cube Counts and Opposite Faces
Cube and dice questions test how well you picture a solid in your head. Painted cube questions ask how many small cubes carry paint on a given number of faces, and dice questions ask which faces lie opposite each other. Both have short formulas and rules that turn visual guesswork into quick counting.
Asked in: GAT, NTS, ISSB, SSC CGL, IBPS PO, RRB NTPC, CAT
Painted cube formulas
Paint a cube on all six faces and cut it into n × n × n equal small cubes. Corner cubes have three painted faces, edge cubes (not at a corner) have two, cubes inside a face have one, and the hidden inner block has none.
Every count uses n − 2 because the two ends of each edge or face row are corners or edges.
- Three faces painted = 8 (for n ≥ 2)
- Two faces painted = 12(n − 2)
- One face painted = 6(n − 2)²
- No face painted = (n − 2)³
- Total = n³
Cuboids and partly painted cubes
For a cuboid a × b × c cut into unit cubes, use a − 2, b − 2 and c − 2 in place of n − 2. The unpainted inner block is (a − 2)(b − 2)(c − 2), and each pair of opposite faces gives one-face cubes of size (length − 2)(width − 2).
When some faces are left unpainted, count layer by layer instead of using formulas blindly. An unpainted face simply stops adding paint to the cubes that touch it.
- Cuboid, no paint = (a − 2)(b − 2)(c − 2)
- Cuboid, two faces = 4[(a − 2) + (b − 2) + (c − 2)]
Cuts
To cut a cube into n × n × n pieces you need n − 1 cuts in each of three directions, so 3(n − 1) cuts in all when pieces are not rearranged.
If cuts in the three directions differ (p, q and r cuts), the number of pieces is (p + 1)(q + 1)(r + 1). For a fixed total number of cuts, spreading them evenly gives the most pieces.
- Cuts for n³ cubes = 3(n − 1)
- Pieces = (p + 1)(q + 1)(r + 1)
Dice: opposite faces from views
A face is never next to its opposite. If one number is seen next to four different numbers across the views, the sixth number is its opposite.
When the same number is on top in two views, the four side faces go round it in one fixed order: front, right, back, left. Fit the front-then-right pairs from each view into one cycle; numbers two steps apart in that cycle are opposite.
On an ordinary die the opposite faces add up to 7, so 1 is opposite 6, 2 opposite 5 and 3 opposite 4.
Folding nets
In a net, two squares in a straight line with exactly one square between them become opposite faces.
Squares that share an edge in the net are always adjacent on the cube. After finding two opposite pairs, the last two squares form the third pair.
Solved examples
- A cube of side 4 cm is painted on all faces and cut into 1 cm cubes. Find how many small cubes have three, two, one and no faces painted.
- Here n = 4, so n − 2 = 2.
- Three faces: 8 corners. Two faces: 12 × 2 = 24. One face: 6 × 2² = 24. No face: 2³ = 8.
- Check: 8 + 24 + 24 + 8 = 64 = 4³.
Answer: 8, 24, 24 and 8 - A cuboid 5 cm × 4 cm × 3 cm is painted on all faces and cut into 1 cm cubes. How many cubes have exactly one face painted, and how many have none?
- Reduce each side by 2: 3, 2 and 1.
- One face: 2(3 × 2 + 3 × 1 + 2 × 1) = 2 × 11 = 22.
- No face: 3 × 2 × 1 = 6.
- Check with the full count: 8 corners + 4(3 + 2 + 1) = 24 two-face cubes + 22 + 6 = 60 = 5 × 4 × 3.
Answer: 22 with one face, 6 with none - An ordinary die (opposite faces add to 7) lies with 5 on top and 3 facing you. Which numbers can be on the right face?
- The bottom is 7 − 5 = 2 and the back is 7 − 3 = 4.
- The right and left faces must be the remaining pair, 1 and 6.
- So the right face shows either 1 or 6, depending on how the die is made.
Answer: 1 or 6 - Two views of a die: 2 on top, 1 facing you, 3 on the right; and 2 on top, 4 facing you, 6 on the right. Which number is opposite 2?
- In the views, 1, 3, 4 and 6 are all next to 2.
- A face cannot touch its own opposite, so none of these four is opposite 2.
- Only 5 is left.
Answer: 5 - Two views of a die: 5 on top, 1 facing you, 4 on the right; and 5 on top, 3 facing you, 1 on the right. Which number is opposite 4?
- Both views have 5 on top, so the side faces go round in a fixed order (front, right, back, left).
- View 2 gives 3 then 1; view 1 gives 1 then 4. So the cycle reads 3, 1, 4 and then one more side.
- 3 and 4 are two steps apart in the cycle, so they are opposite.
Answer: 3 - A net has four squares in a row, A, B, C and D from left to right. Square E is attached above C, and square F is attached below A. Find the three pairs of opposite faces.
- In the row, A and C have one square between them, so they are opposite; B and D are opposite for the same reason.
- E and F are the two flaps. They are the only faces left, so they form the third pair.
- Check: E touches C and F touches A in the net, and A and C are opposite, so E and F end up on opposite sides of the band B, C, D, A.
Answer: A and C, B and D, E and F
Exam shortcuts
- Write n − 2 first in every painted cube question; almost every count is built from it.
- Check a painted cube answer by adding all four categories; they must total n³.
- For dice, first look for a number that touches four different numbers; its opposite is the one never seen next to it.
- Never assume a die in a question is an ordinary die with opposite faces adding to 7 unless the question says so.
- In nets, mark the obvious opposite pairs in straight rows first; the leftover pair needs no further thought.
Common mistakes
- Using n − 1 instead of n − 2, which counts the corner or edge cubes twice.
- Applying the all-faces formulas when one or more faces are left unpainted.
- Treating two numbers seen in the same view as possibly opposite; faces seen together are always adjacent.
- Counting the pieces made by cuts as equal to the number of cuts instead of cuts + 1 per direction.
Practice MCQs
- A wooden cube with all faces painted is cut into 27 equal smaller cubes. How many small cubes have exactly two faces painted?
A) 8
B) 12
C) 6
D) 24
Answer: B) 12 — A 3 by 3 by 3 cube has 12 edges, and each edge holds n − 2 = 1 middle cube with two painted faces, giving 12. 8 is the corner count (three faces), 6 is the count with exactly one face (one face-centre per face), and 24 would need n = 4. - A cube of side 4 cm is painted on all faces and cut into 1 cm cubes. How many small cubes have no face painted?
A) 8
B) 16
C) 24
D) 27
Answer: A) 8 — The unpainted cubes form the hidden inner block of side 4 − 2 = 2, so (4 − 2)³ = 8. 24 is the number with one face (or with two faces) painted, 27 is the inner block of a 5 by 5 by 5 cube, and 16 does not match any category. - On an ordinary die the numbers on opposite faces add up to 7. A die rests with 4 on top and 2 on the face towards you. What is the sum of the numbers on the bottom face and the back face?
A) 9
B) 6
C) 8
D) 7
Answer: C) 8 — The bottom is opposite the top, so it shows 7 − 4 = 3. The back is opposite the front, so it shows 7 − 2 = 5. Their sum is 3 + 5 = 8. A sum of 7 would come from a single opposite pair, while 6 and 9 come from using the wrong faces. - A cube painted on all faces is cut into 125 equal smaller cubes. How many small cubes have exactly one face painted?
A) 36
B) 27
C) 48
D) 54
Answer: D) 54 — 125 = 5³, so n = 5. Each face has a (5 − 2) by (5 − 2) block of one-face cubes: 6 × 9 = 54. 36 is the two-face count 12 × 3, 27 is the unpainted count 3³, and 48 is the two-face count for n = 6. - Two views of the same die are described. View 1: 1 on top, 2 facing you, 3 on the right. View 2: 1 on top, 4 facing you, 5 on the right. Which number is opposite 1?
A) 6
B) 5
C) 2
D) 4
Answer: A) 6 — A face cannot be next to its own opposite. The views show 2, 3, 4 and 5 all touching 1, so none of them can be opposite 1. The only number left is 6. - What is the minimum number of straight cuts needed to divide a cube into 125 identical smaller cubes, if pieces are not rearranged between cuts?
A) 15
B) 12
C) 10
D) 24
Answer: B) 12 — 125 = 5 × 5 × 5, so each of the three directions needs 5 − 1 = 4 cuts, giving 3 × 4 = 12. 15 counts five cuts per direction, which would make six slices each way. 24 doubles the count, and 10 is too few to make five slices in every direction. - A cube is folded from a cross-shaped net. Four squares lie in a row labelled P, Q, R and S from left to right. Square T is attached above Q and square U is attached below Q. Which face is opposite Q?
A) R
B) T
C) U
D) S
Answer: D) S — In a straight row, squares with exactly one square between them become opposite faces. So P is opposite R and Q is opposite S. T and U, attached above and below Q, are opposite each other, and R, T and U all share an edge with Q in the net, so they are adjacent to it. - Two views of a die are described. View 1: 1 on top, 2 facing you, 3 on the right. View 2: 1 on top, 4 facing you, 2 on the right. Which number is opposite 3?
A) 2
B) 5
C) 4
D) 6
Answer: C) 4 — 1 is on top in both views, so the four side faces go round in one fixed order. View 1 gives front 2 then right 3; view 2 gives front 4 then right 2. Reading the cycle: 4, 2, 3, and then the hidden fourth side. So 3 is opposite 4. 2 touches 3 in view 1, so it is not opposite. 5 and 6 cannot be pinned down: one is the hidden side opposite 2 and the other is under 1. - A cube of side 4 cm has two opposite faces painted red and the other four faces painted green. It is cut into 1 cm cubes. How many small cubes have both red and green paint?
A) 24
B) 32
C) 16
D) 8
Answer: A) 24 — Only cubes on an edge where a red face meets a green face carry both colours. Each red face is a 4 by 4 layer whose 12 border cubes all touch a green face, and its 4 inner cubes do not. Two red faces give 2 × 12 = 24. 32 counts 16 cubes per face, 16 counts only the edge cubes and leaves out the corners, and 8 counts only the corners. - A cuboid measuring 4 cm × 3 cm × 2 cm is painted on all faces and cut into 1 cm cubes. How many small cubes have exactly one face painted?
A) 6
B) 8
C) 2
D) 4
Answer: D) 4 — With a thickness of 2, every cube touches the top or the bottom face, so one-face cubes can only lie inside the large 4 by 3 faces, away from their edges: (4 − 2) × (3 − 2) = 2 on each, giving 4 in all. The faces of size 4 by 2 and 3 by 2 have no such inner cubes. 8 is the corner count, 2 counts only one of the large faces, and 6 wrongly adds cubes from the smaller faces. - A cube of side 4 cm is painted on its top and on all four side faces, but not on its bottom. It is cut into 1 cm cubes. How many small cubes have no paint at all?
A) 12
B) 8
C) 16
D) 18
Answer: A) 12 — Remove the top layer and the outer ring of each lower layer. Each of the three lower layers keeps its inner 2 by 2 = 4 cubes unpainted, because the unpainted bottom does not add paint. That gives 3 × 4 = 12. 8 is the count when all six faces are painted, 16 treats all four layers as having an unpainted 2 by 2 centre, forgetting that the top is painted, and 18 matches no layer pattern. - Two views of a die are described. View 1: 3 on top, 1 facing you, 2 on the right. View 2: 3 on top, 5 facing you, 1 on the right. Which number is opposite 2?
A) 1
B) 5
C) 4
D) 6
Answer: B) 5 — With 3 on top in both views, the side faces go round in a fixed order. View 2 gives 5 then 1, and view 1 gives 1 then 2, so the order is 5, 1, 2 and then the last side. 5 and 2 are two steps apart, so they are opposite. 1 touches 2 in view 1, and 4 and 6 cannot be fixed from these views, since one of them is the hidden side and the other is under 3. - A painted cube is cut into equal smaller cubes, and exactly 150 of them have only one face painted. How many small cubes have no face painted?
A) 64
B) 216
C) 125
D) 100
Answer: C) 125 — One-face cubes number 6(n − 2)², so 6(n − 2)² = 150 gives (n − 2)² = 25 and n = 7. Unpainted cubes number (n − 2)³ = 5³ = 125. 216 is 6³, the result of using n − 1 instead of n − 2; 64 uses side 4; and 100 is not a cube at all. - A net has two rows of three squares. The top row shows 1, 2 and 3 from left to right. The bottom row shows 4, 5 and 6 from left to right and is shifted so that square 4 sits directly below square 3. When folded into a cube, which number is opposite 2?
A) 4
B) 6
C) 1
D) 5
Answer: D) 5 — In each row of three, the end squares are opposite: 1 is opposite 3 and 4 is opposite 6. Only 2 and 5 remain, so they must be opposite each other. Check: 2 shares an edge with 1 and 3 in the net, and folding brings it next to 4 and 6 as well. - A painted cube is cut into n × n × n equal smaller cubes. The number of small cubes with exactly one face painted equals the number with no face painted. How many small cubes are there in total?
A) 216
B) 343
C) 512
D) 729
Answer: C) 512 — Set 6(n − 2)² = (n − 2)³, which gives n − 2 = 6 and n = 8, so there are 8³ = 512 small cubes. Check: 6 × 36 = 216 = 6³. 216 is the common count itself, not the total. 343 (n = 7) gives 150 and 125, which differ, and 729 (n = 9) gives 294 and 343.
Questions
Why does every painted cube formula use n − 2?
Each row of small cubes along an edge or across a face has two end cubes that belong to a corner or another face. Removing those two leaves n − 2 cubes of the type being counted.
How do I find opposite faces when the same number is on top in two views?
Go round the four side faces in the order front, right, back, left. Fit each view's front-then-right pair into one cycle; faces two steps apart in the cycle are opposite.
Do the opposite faces of every die add up to 7?
Only on an ordinary die. In reasoning questions the die is often numbered differently, so work only from the views unless the question says it is a standard die.