Shannon Diversity Index (H′)
Enter the number of individuals for each species. Up to 40 species supported. 🔢
Rows: 0/40
Shannon index (H′)
—
Evenness (E)
—
Richness (k, species with n>0)
—
Total individuals (N)
—
Average per species (N/k)
—
Log base used
ln
Quick summary will appear here after you enter counts.
Provide at least one non-zero count to see the algebraic steps.
Formula:
H′ = −Σ (pᵢ · logb(pᵢ))
, where pᵢ = nᵢ / N
, N = Σ nᵢ
, and b ∈ {e, 10, 2}
.Evenness:
E = H′ / logb(k)
for k ≥ 2
; else E = 0
.- Shannon (1948) “A Mathematical Theory of Communication”.
- Common ecology practice allows natural, base-10 or base-2 logs; the base changes scale only. (See community discussions and texts.)