Most bacterial species are either spherical, called cocci (sing. coccus, from Greek kókkos, grain, seed), or rod-shaped, called bacilli (sing. bacillus, from Latin baculus, stick). Elongation is associated with swimming. Some bacteria, called vibrio, are shaped like slightly curved rods or comma-shaped; others can be spiral-shaped, called spirilla, or tightly coiled, called spirochaetes. A small number of species even have tetrahedral or cuboidal shapes. More recently, some bacteria were discovered deep under Earth's crust that grow as branching filamentous types with a star-shaped cross-section. The large surface area to volume ratio of this morphology may give these bacteria an advantage in nutrient-poor environments. This wide variety of shapes is determined by the bacterial cell wall and cytoskeleton, and is important because it can influence the ability of bacteria to acquire nutrients, attach to surfaces, swim through liquids and escape predators.

What shape does usually cocci type of bacteria can be?