A cube has equal length, width, and height, whereas a cuboid has different lengths for its three dimensions.