Shannon Diversity Index (H′)

Enter the number of individuals for each species (up to 40). Auto-updates as you type.

Controls

Species counts

Rows: 0/40

Actions

Results (auto-updating)

Log base: ln
Shannon index (H′)
Evenness (E)
Richness (k, species with n>0)
Total individuals (N)
Average per species (N/k)
Classification

Quick summary will appear here after you enter counts.

Step-by-step derivation

Provide at least one non-zero count to see the algebraic steps.

References

  1. Formula: H′ = −Σ (pᵢ · log_b(pᵢ)), where pᵢ = nᵢ / N, N = Σ nᵢ, b ∈ {e,10,2}.
  2. Evenness: E = H′ / log_b(k) for k ≥ 2; else E = 0.
  3. Shannon (1948) “A Mathematical Theory of Communication”.
  4. Ecology practice commonly uses ln, log₁₀, or log₂; base only rescales H′.

More of our calculators...

Plastic Footprint Calculator

Plastic Footprint Calculator to estimate your annual plastic use and waste so you can understand and reduce your environmental impact.