Simpson's Diversity Index Calculator

Simpson's Diversity Index Calculator

Enter how many individuals of each species you counted to get Simpson's index (1 − D), its reciprocal, Shannon diversity, evenness and the effective number of species.

D = Σ n(n − 1) ÷ N(N − 1) · Simpson's index of diversity = 1 − D

SpeciesCount
Simpson's Index (1 − D)
0.742
Chance two individuals picked at random are different species
Effective Number of Species
3.77
As diverse as this many equally common species (1 ÷ Σp²)
0.2576
D (dominance)
3.88
Reciprocal (1 ÷ D)
1.458
Shannon H′ (4.3 effective species)
0.906
Evenness (Pielou J′)

5 species, 100 individuals

What Simpson's Diversity Index Measures

Simpson's index of diversity (1 − D) is the probability that two individuals picked at random from a sample belong to different species. It runs from 0 (every individual is the same species) towards 1 (many species, none dominant).

It captures two things at once: how many species there are (richness) and how evenly the individuals are shared among them (evenness). Ten species where one makes up 90% of the individuals score lower than five species in equal numbers.

Because 1 − D is hard to picture, ecologists increasingly report the effective number of species instead: the number of equally common species that would give the same diversity. It reads like a species count, so doubling it really does mean twice as diverse.

Simpson's and Shannon Formulas

D = Σ n(n − 1) ÷ N(N − 1) (n = count of one species, N = total)
Simpson's index of diversity = 1 − D · reciprocal = 1 ÷ D
Effective species (Simpson) = 1 ÷ Σp², where p = n ÷ N
Shannon H′ = −Σ p ln p · effective species = e^H′
Evenness J′ = H′ ÷ ln S (S = number of species)

The n(n − 1) version corrects for sampling without replacement and is the one most school and university courses use. With large samples it gives almost the same answer as Σp².

Worked Example: a Woodland Survey

Given:
A survey counts 100 trees: 40 oak, 25 ash, 15 birch, 10 hazel and 10 holly.
Σ n(n − 1):
40×39 + 25×24 + 15×14 + 10×9 + 10×9 = 1,560 + 600 + 210 + 90 + 90 = 2,550
D:
2,550 ÷ (100 × 99) = 0.2576 · 1 − D = 0.742
Effective:
1 ÷ (0.4² + 0.25² + 0.15² + 0.1² + 0.1²) = 1 ÷ 0.265 = 3.77 species
Result:
1 − D = 0.742. Pick two trees at random and there's a 74% chance they're different species. Oak's dominance means the five species behave like fewer than four equally common ones.

How Evenness Changes Simpson's Index

Four communities, each with the same 4 species and 100 individuals, differing only in how evenly they're shared.

Diversity indices for four communities of equal richness
CommunityCounts1 − DEffective species
Perfectly even25 / 25 / 25 / 250.7584
Fairly even40 / 30 / 20 / 100.7073.33
One dominant70 / 10 / 10 / 100.4851.92
Near monoculture97 / 1 / 1 / 10.0591.06

All four have the same species list. Simpson's index is driven mainly by the common species, so a near-monoculture scores close to zero however many rare species it holds.

Common Simpson's Index Mistakes

  • Mixing up D and 1 − D. D goes up as diversity goes down. Some textbooks call 1 − D "Simpson's index" and others call D that, so always say which you mean.
  • Comparing samples of different effort. Two quadrats versus twenty will find different numbers of species. Compare sites sampled the same way.
  • Using percentages instead of counts. The n(n − 1) formula needs counts of individuals. Percent cover needs the Σp² form instead.
  • Expecting it to reward rare species. Adding a species with one individual barely moves Simpson's index. Shannon diversity is more sensitive to rare species.
  • Reading 0.8 as "twice as diverse" as 0.4. 1 − D isn't linear. Compare effective numbers of species instead.

Simpson's Diversity FAQs

Which version should I report?

Whatever your course or field expects, labelled clearly. For comparisons between sites, the effective number of species (1 ÷ Σp² or 1 ÷ D) is the easiest to interpret.

Simpson or Shannon?

Simpson’s index is dominated by the common species and is stable with small samples. Shannon gives more weight to rare species. Reporting both, as effective numbers, shows whether a difference comes from rare or common species.

What counts as high diversity?

There’s no universal threshold; it depends on the habitat and what was counted. Values are most useful for comparing similar sites, or the same site over time.

Can I use this for things other than species?

Yes. The same maths is used for genetic diversity, microbial communities from sequencing, and even market concentration in economics, where Σp² is called the Herfindahl index.

Sources

  • E. H. Simpson, "Measurement of diversity", Nature 163 (1949) 688.
  • L. Jost, "Entropy and diversity", Oikos 113 (2006) 363–375: effective numbers of species.
  • A. E. Magurran, Measuring Biological Diversity (Blackwell, 2004).

Related Tools