Glossary · Bioinformatics

Shannon index

In one sentence

The Shannon index is an alpha diversity measure that combines how many types of microorganism are present in a sample and how evenly they are distributed: the higher the value, the more diverse the community.

Also known as: Shannon diversity index · Shannon-Wiener index · Shannon-Weaver index · Shannon diversity · Shannon entropy

What is the Shannon index?

The Shannon index (also called the Shannon-Wiener or Shannon-Weaver index) is one of the most widely used measures of alpha diversity in ecology and microbiome research. It comes from information theory: Claude Shannon defined entropy in “A Mathematical Theory of Communication”, published in the Bell System Technical Journal in 1948. Ecologists later borrowed the formula to quantify how uncertain you would be about the species of an individual picked at random.

The more types of microorganism there are, and the more evenly they are spread, the greater that uncertainty and the higher the index.

How it is calculated

The formula is:

H′ = −Σ pᵢ · ln(pᵢ)

where pᵢ is the relative abundance of each taxon, its share of the total. In practice:

  • If only one taxon is present, H′ = 0.
  • For a fixed number of taxa, the index peaks when they are all equally abundant.
  • Rare taxa carry more weight than they do in the Simpson index.
  • The value changes with the logarithm base (natural, base 2 or base 10), so a report should state which one it uses.

Pielou’s evenness is sometimes derived from it (H′ divided by the logarithm of richness) to isolate how balanced the community is.

How to interpret it

  • There is no universal “good” value. The index depends on technique (16S or metagenomics), taxonomic level, sequencing depth and how sequences are grouped (OTUs or ASVs). Compare it only with the same laboratory’s reference interval.
  • Low is not a diagnosis. Observational studies associate low gut diversity with dysbiosis and recent antibiotic exposure, but a low value does not point to a specific cause.
  • High is not the same as healthy. At some body sites, such as the healthy vagina, low diversity is expected.

Example

A functional medicine doctor orders two stool tests six months apart from the same laboratory for a patient with long-standing bloating. The Shannon index moves from below the reference interval to within it, alongside dietary changes and some improvement in symptoms. The doctor reads this as a consistent trend, without crediting the change in the index for the improvement, and bearing in mind that the microbiota also fluctuates on its own.

Shannon index at Xenogene

According to its product page, the Gut Microbiota test assesses bacterial diversity as part of a metagenomic stool analysis using Nanopore sequencing. Indices such as Shannon summarise that diversity in a single figure that is handy for follow-up, but reading it is a job for the requesting clinician, together with the clinical history and the other findings in the report.

Frequently asked questions

What is a good Shannon diversity index for the gut microbiome?

There is no universal cut-off. The value depends on the method, the taxonomic level, sequencing depth and the logarithm base, so it can only be judged against the reference interval of the laboratory that ran the test.

Does a low Shannon index mean something is wrong?

Not by itself. A low value indicates lower diversity, which studies associate with dysbiosis or recent antibiotic use, but it is not a diagnosis. The requesting clinician interprets it alongside symptoms and the rest of the report.

What is the difference between the Shannon and Simpson indices?

Both measure alpha diversity. Shannon is more sensitive to rare taxa, whereas Simpson gives more weight to dominant ones, so the two can move differently in the same sample.

Related terms

  • Alpha and beta diversity

    Alpha diversity measures the variety of microorganisms within a single sample (how many types and how evenly spread); beta diversity measures how different two or more samples are from each other.

  • Relative abundance

    Relative abundance is the share of a microorganism in the total detected in a sample, usually given as a percentage. It reflects its weight within the community, not its absolute quantity.

  • OTU and ASV

    OTUs (operational taxonomic units) group similar DNA sequences, usually at 97% identity; ASVs (amplicon sequence variants) are exact sequences that can be told apart by a single nucleotide.

  • Dysbiosis

    Dysbiosis is a change in the composition or function of the microbiota away from what is considered compatible with health: loss of diversity, loss of beneficial microbes or overgrowth of others.

Educational content for healthcare professionals and the general public. It does not replace assessment by a healthcare professional: ordering and interpreting any test is the responsibility of the requesting clinician.

Updated on

← Back to the glossary