Energy & Environment

Shannon Diversity Index Calculator (H)

Calculate the Shannon diversity index for a species list from simple counts. It returns H, Pielou evenness, Simpson's 1−D, species richness, and a quality category.

How to use
  1. Enter the count for each species.
  2. Add a row for every species in your sample.
Community presets
Shannon diversity H′

H′ = −Σ pi ln pi over all species.

Richness (S)
Total (N)
Pielou evenness (J)
Max H (ln S)
Simpson 1−D
H base 10
Estimates based on typical values; your real usage and rates will vary.
Was this helpful?

How it's calculated

H = −Σ (pᵢ × ln pᵢ)

pᵢ = proportion of species i = count ÷ total N, S = number of species. H = Shannon diversity index; evenness J = H ÷ ln S; Simpson = 1 − Σpᵢ². Higher H means greater diversity.

Common questions

What does a higher Shannon index mean?

Higher H means greater diversity, reflecting both more species and a more even spread of individuals among them.

How is Shannon different from species richness?

Richness counts how many species are present. The Shannon index also weighs how evenly individuals are distributed across those species.