Home / Blog / Geometry & Shapes

Geometry & Shapes

Cube Color Formulas: Painted Cubes and Puzzle Moves

Distinguish painted-cube counting formulas from Rubik’s Cube move notation, work a divided-cube example, and choose a tool that matches the task.

Cube Color Formulas: Painted Cubes and Puzzle Moves

Identify which color-cube problem you have

“Cube color formula” can mean a painted-cube counting question or a sequence of turns for a Rubik’s Cube. These require different methods. A painted solid divided into small equal cubes is a counting problem based on corners, edges, faces and the interior. A twisty puzzle is a changing arrangement of pieces, where a move sequence depends on the current state and how the cube is held. Neither problem is solved simply by calculating a cube’s volume from its edge length.

Count a cube painted on every outside face

Suppose all six faces of a large cube are painted, then it is cut into n equal parts along each edge, producing n³ small cubes. For n at least 2, eight corner cubes have paint on three faces. The edge cubes excluding corners number 12(n − 2), with paint on two faces. The face-interior cubes number 6(n − 2)², with paint on one face. The unpainted internal cubes number (n − 2)³. Each category follows its position in the original large cube.

Check a four-by-four-by-four example

With n = 4, there are 64 small cubes in total. The categories are 8 three-face cubes, 24 two-face cubes, 24 one-face cubes and 8 unpainted cubes. Their sum is 64, which checks that every small cube was counted once. Counting painted small faces gives 3×8 + 2×24 + 24 = 96, matching the six original faces with 4×4 small squares each. This second check counts painted faces rather than cubes, so the weighting by three, two and one is essential.

Respect the painting assumptions

The formulas above assume every outer face is painted and all cuts form the same n-by-n-by-n grid. Painting only selected faces changes the categories and requires a fresh position count. The case n = 1 is also different: the single cube has six painted faces, so it is outside the stated n ≥ 2 formulas. If all six faces have different colors, the three-face corner count is still eight, but a question about a particular combination of colors needs their adjacency arrangement as well.

Read puzzle notation before following a sequence

For a standard three-by-three Rubik’s Cube, centres identify solved face colors, edges carry two colors and corners carry three. Move letters refer to the face being turned relative to how the puzzle is held, rather than permanently naming a color. A plain turn is a quarter-turn, a prime mark reverses the direction, and a 2 marks a half-turn. The official Coach Cube reference illustrates these conventions and the required stages. Keep the same viewing orientation while applying a sequence unless the instructions explicitly rotate the whole cube.

Do not expect one color sequence to solve every state

A sequence intended to orient last-layer pieces assumes that earlier stages and the starting pattern match its case. Applying it to an arbitrary scramble can move already placed pieces without solving the requested colors. Follow the official staged guide, compare the full piece arrangement and hold the cube as shown before choosing a sequence. A single face with one color is not necessarily a solved layer, since the side stickers of its edge and corner pieces must also match their neighbouring centre colors.

Choose a result that matches the original question

For a painted-cube exercise, report the requested category and demonstrate that the counts fit the full n³ total. For a puzzle question, identify the puzzle type and current stage before using a documented move sequence. For a physical cube’s covering area, use 6s² with length units rather than the counting formulas. Keeping these three meanings distinct prevents a plausible-looking number or algorithm from answering a different question simply because each problem contains the words cube and color.

Calculator for the supported step

The Scientific Calculator can check painted-cube counting expressions. The geometric Cube Calculator uses edge length for volume and surface area; it cannot read colors or solve a Rubik’s Cube state.

Open Scientific Calculator

Sources and method

Rubik’s Coach Cube: anatomy, turns and staged algorithms