StatGardenREF. DESK
Calculators/Ecology/Shannon diversity index
Ecology

Shannon diversity index calculator

Biodiversity of a community from species counts.

What this calculator does

Shannon diversity index works out biodiversity of a community from species counts. Enter your own figures above and the answer updates as you type: nothing is fixed in the code, so the result reflects exactly the numbers you supply.

The formula this calculator evaluates is printed under the tool and explained below, so you can check the working by hand or reuse it in a spreadsheet.

The formula

FormulaH′ = −Σ(pᵢ·ln pᵢ), pᵢ = nᵢ/N; Evenness = H′/ln(S)

The inputs explained

FieldWhat to enter
Individuals per species (comma-separated)A list of numbers, separated by commas or spaces.