The shape of the carbon dioxide (CO2) molecule is linear. This is because the molecule consists of two oxygen atoms bonded to a central carbon atom in a straight line. The bond angles in CO2 are all 180 degrees, resulting in a linear shape. This shape is determined by the electron geometry and molecular geometry of the molecule, which are both linear.