To calculate the volume of a cube: Cube the length of one edge of the cube. For an edge of length \(x\), the volume of a cube is given by the formula ... top layer of the cuboid.