Microbial diversity refers to the variety of microorganisms, including bacteria, fungi, viruses, and other microscopic life, living in a given environment. That environment could be a teaspoon of soil, the human gut, a coral reef, or virtually any surface on Earth. The concept matters because the range and balance of these microbial communities directly influence human health, soil fertility, and the stability of ecosystems worldwide.
Two Components: Richness and Evenness
Microbial diversity isn’t a single measurement. It breaks down into two distinct parts. Richness is the simpler concept: the total number of different species present in a sample. A soil sample with 500 bacterial species is richer than one with 50. Evenness describes how balanced those species are in terms of their population sizes. A community where ten species each make up roughly 10% of the total is more even than one where a single species dominates at 90% and the other nine share the remaining 10%.
Both components matter. A gut microbiome might contain hundreds of species (high richness) but still be considered low in diversity if one or two species vastly outnumber everything else (low evenness). Scientists use indices like the Shannon diversity index to capture both dimensions in a single number, giving a more complete picture of community health than a simple species count.
Alpha, Beta, and Gamma Diversity
Researchers also describe microbial diversity at different scales. Alpha diversity measures the richness and evenness within a single sample or habitat, like one person’s gut or one patch of forest soil. Beta diversity captures how much community composition varies between locations within the same habitat type, essentially measuring how different the microbial populations in your gut are compared to someone else’s. Gamma diversity zooms out further, representing the total observed richness across all samples within a habitat.
These three scales serve different purposes. Alpha diversity tells you about one community’s internal health. Beta diversity reveals how much geography, diet, or other factors cause microbial populations to differ from place to place. Gamma diversity provides a bird’s-eye view of total microbial variety across an entire ecosystem.
Microbes in the Human Body
Your body carries roughly 38 trillion bacterial cells alongside about 30 trillion human cells, a ratio close to 1.3 to 1. That corrects an older estimate, widely repeated for decades, that bacterial cells outnumbered human cells 10 to 1. The total mass of all those bacteria is only about 0.2 kilograms, but their collective influence on your health is enormous.
The gut harbors the densest and most diverse microbial community in the body. A healthy gut microbiome contains hundreds of bacterial species that help break down food, produce vitamins, train the immune system, and protect against harmful pathogens. When that diversity drops, a state called dysbiosis, the consequences can be widespread. Low gut microbial diversity has been linked to type 2 diabetes, obesity, non-alcoholic liver disease, cardiovascular disease, and inflammatory bowel disease. Research also connects gut dysbiosis to conditions that might seem unrelated to digestion, including depression, anxiety, sleep disorders, arthritis, and even autism.
What Reduces Gut Diversity
Antibiotics are one of the most well-documented disruptors. During a course of antibiotics, gut bacterial counts can plummet by a factor of 10,000 to 100,000 within the first day. Alpha diversity drops during treatment, then slowly climbs after the course ends, but it often stabilizes at a level significantly lower than before. In animal studies, certain groups of beneficial bacteria permanently decreased in diversity by 36% to 70% after a single antibiotic course, depending on the drug used. Diet also played a role in recovery: the community context and available food sources influenced how well the microbiome bounced back.
Diet shapes diversity over the long term as well. Higher fiber intake is positively correlated with greater microbial diversity and has been linked to lower long-term weight gain. Fiber feeds a wide range of gut bacteria, encouraging more species to thrive. Diets low in plant-based foods tend to do the opposite, narrowing the community toward fewer dominant species.
Why Diversity Keeps Ecosystems Stable
In any ecosystem, microbial diversity acts as a form of insurance. The key mechanism is functional redundancy: when multiple species can perform the same job, the loss of one doesn’t cripple the system. If a disturbance wipes out a bacterial species responsible for breaking down a particular nutrient, a functionally redundant species can step in and maintain the same process rate. The community composition changes, but the work gets done.
Even when species aren’t perfectly redundant, sheer numbers help. In communities with many different taxa, a “portfolio effect” kicks in. Some species respond positively to environmental changes while others respond negatively, and those responses average out. The greater the number of species performing a given function, the more buffered that function is against disruption. This is why diverse ecosystems tend to be more resilient after droughts, floods, pollution events, or temperature shifts.
Soil Microbial Diversity and Carbon Cycling
Soil contains some of the most diverse microbial communities on the planet, and that diversity directly controls nutrient cycling. In controlled experiments, reducing soil microbial diversity cut total carbon dioxide emissions from decomposition by up to 40%. That might sound like a benefit for climate, but it reflects a slowdown in organic matter breakdown, the process that recycles nutrients back into the soil for plants to use.
High-diversity soil communities broke down both native soil carbon and added plant residues more efficiently. After 60 days, high-diversity soils had mineralized about 63% of added wheat residues, compared to just 35% in low-diversity soils. The relationship held across different types of organic material, but the effect was especially pronounced for harder-to-break-down carbon sources. This means that as microbial diversity declines, soils lose their ability to process complex organic matter, potentially disrupting agricultural productivity and natural carbon cycles.
How Scientists Measure Microbial Diversity
Two main sequencing technologies dominate the field. The older and more affordable approach, called 16S rRNA sequencing, targets a single gene found in all bacteria. It’s effective for broad surveys: it can identify many different taxa in a sample and works well for classifying microbes down to the genus level, where about 89% of detected microbes can be resolved. But it struggles with finer resolution. Only about 22% of a sample’s content can be classified to the species level using this method, and it misses non-bacterial members of the community like fungi and viruses entirely.
Shotgun metagenomics takes a different approach, sequencing all DNA in a sample indiscriminately. This costs more and requires more sequencing depth, but it identifies over twice as many unique species (317 versus 146 in one comparative study) and can classify about 95% of a sample’s content down to the species level. It also captures fungi, viruses, and other non-bacterial organisms that 16S misses. Because it skips the amplification step that 16S relies on, it avoids certain biases that can distort the picture of which species are truly present and in what proportions.
Microbial Diversity Across Earth’s Environments
Large-scale projects sampling microbes from environments around the world have revealed that both microbial and chemical diversity are shaped strongly by habitat type. Certain microbes are tightly associated with specific environments: one species dominates terrestrial soils, another marine sediments, another decomposing plant material. The pattern holds for the chemical compounds microbes produce as well, with specific classes of molecules like terpenoids serving as reliable markers that distinguish terrestrial plant surfaces, soils, freshwater systems, and marine animal habitats from one another.
Rather than every microbe being found everywhere, the data support a more nuanced picture. Microbial communities show both turnover (different species replacing each other across environments) and nestedness (some environments containing subsets of the species found in richer ones). The chemical signatures microbes produce co-occur with specific microbial groupings in habitat-specific ways, suggesting that microbial diversity and the functional chemistry of an ecosystem are deeply intertwined.

