Every Single CalculatorOne place for every calculator
A+Science and school

Diversity index calculator

Shannon and Simpson diversity from counts of each species.

Example: You are writing up a field survey.

Your numbers

  • Shannon index0
  • Simpson index (1 − D)0
  • Evenness0
  • Species0
  • Individuals0

How it is worked out

Shannon H = −Σ p × ln(p). Simpson = 1 − Σ n(n − 1) ÷ N(N − 1).

A worked example

Two species with 10 each: H = 0.693, as even as two species can be.

How we know this calculator is right

Before this calculator went on the site, 6 answers were worked out separately from its code, by hand or straight from the formula above. Each time this page loads, your own browser runs the calculator on those same numbers and compares. Turn on JavaScript to see the comparison.

See every check
Numbers usedResultWorked out separatelyThis calculator

What this proves: the calculator does the arithmetic of the formula shown, correctly. What it cannot prove: your measurements, or figures such as coverage per bag, waste and spacing, which are typical starting values you can change. Go by the product label and your local code.

Used by: students.