Percentages and Math

Species Diversity Index Calculator

Enter the count of individuals for each species to get diversity indexes.

Your numbers

One number per species, separated by commas, spaces or new lines. Zero counts are ignored.

Result

Shannon index

1.0297

Gini-Simpson 0.62 and evenness 0.9372.

Species richness
3
Individuals
100
Shannon index H (nats)
1.02965
Simpson index D (sum of squared shares)
0.38
Gini-Simpson index (1 - D)
0.62
Inverse Simpson (1 / D)
2.63158
Shannon evenness (H / ln S)
0.937231
Simpson evenness (1 / D / S)
0.877193
Effective species (e^H)
2.80009
Chao1 richness estimate
3

Species

SpeciesCountShare (%)p ln(p) term
150500.34657
230300.36119
320200.32189
How this was calculated
  1. Shares p = count / total. Shannon H = -sum(p ln p). Simpson D = sum(p^2), and Gini-Simpson is 1 - D.
  2. Evenness compares H with its largest value ln S, which is reached when every species has the same count.
  3. Chao1 = S + F1 (F1 - 1) / (2 (F2 + 1)) with F1 = 0 species seen once and F2 = 0 seen twice. It estimates how many species a larger sample would find.
  • Diversity indexes depend on how much you sampled. Compare communities only when the sampling effort was comparable. Simpson indexes here use the shares of the sample, not the unbiased form for small samples.

Calculated using SumPanda.com · https://sumpanda.com/species-diversity-index-calculator/

Results are estimates for general information. Verify important figures before relying on them.

Next step

How to use the species diversity index calculator

  1. Enter the count of individuals for each species, separated by commas, spaces or new lines.
  2. Choose the base of the logarithm for the Shannon index: natural (nats), base 2 (bits) or base 10.
  3. Zero counts are ignored, and species are numbered in the order you enter them.
  4. 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.

Formulas reviewed October 10, 2026. See the calculation methodology for how SumPanda rounds, tests and sources its formulas.

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.