How to use the species diversity index calculator
- Enter the count of individuals for each species, separated by commas, spaces or new lines.
- Choose the base of the logarithm for the Shannon index: natural (nats), base 2 (bits) or base 10.
- Zero counts are ignored, and species are numbered in the order you enter them.
- Read the richness, the Shannon and Simpson indexes, evenness, effective species and the Chao1 estimate.
Formula
Shares: p = count / total number of individuals
Shannon H = -sum of p ln p, and evenness J = H / ln S, with S the number of species
Simpson D = sum of p^2, Gini-Simpson = 1 - D, inverse Simpson = 1 / D
Chao1 = S + F1 (F1 - 1) / (2 (F2 + 1)), with F1 species seen once and F2 species seen twice
Effective species, e^H, is the number of equally common species that would give the same Shannon index. It makes indexes easier to compare.
Three species with counts 50, 30 and 20
The shares are 0.5, 0.3 and 0.2. The Shannon index is 1.0297 nats, the Simpson index D is 0.38, so the Gini-Simpson index is 0.62 and the inverse Simpson is 2.6316. The evenness is 1.0297 / ln 3 = 0.93723, and the effective number of species is 2.8001. Every count is above 2, so the Chao1 estimate stays at 3.
With counts of 90, 5, 3, 1 and 1, one species dominates: the Shannon index falls to 0.44191, the Gini-Simpson index to 0.1864 and the evenness to 0.27457. Two species are seen only once and none twice, so Chao1 estimates 6 species. Four species with 25 each give exactly 2 bits.
Richness and evenness
Diversity has two parts: how many species there are (richness) and how evenly the individuals are shared among them (evenness). The Shannon index rises with both, and it is sensitive to rare species. The Simpson indexes are more sensitive to the common species, and they give the chance that two individuals picked at random belong to different species.
For variety in a text, see the lexical diversity calculator. To describe a list of numbers in general, use the descriptive statistics calculator.
Comparing samples
Diversity indexes depend on how much you sample. A bigger sample finds more rare species, so compare communities only when the sampling effort was similar, or use an estimator such as Chao1 that adjusts for species that were missed. The Chao1 estimate on the page needs whole-number counts, and it is a lower bound on the true richness.
To estimate the size of a population in the field, use the mark and recapture estimator.
Assumptions and limits
- Each count is the number of individuals of one species in a single sample.
- Species are distinct, and counts are of individuals and not percentages. Percentages give shares but not Chao1.
- The Simpson indexes use the shares of the sample, not the unbiased form for small samples.
- Chao1 needs whole-number counts.
Frequently asked questions
What is the Shannon diversity index?
It is a measure of the uncertainty in picking the species of a random individual. It is higher when there are more species and when they are more even.
What is the Simpson index?
D is the chance that two individuals picked at random are the same species. The Gini-Simpson index, 1 - D, is the chance they differ.
What is evenness?
It compares the Shannon index with its largest possible value for that number of species. A value of 1 means every species has the same count.
What does Chao1 estimate?
The number of species in the community, including ones missed in the sample, using how many were seen only once or twice.