← Biology

Ecology Evolution

Diversity index calculator (Shannon & Simpson)

Calculate diversity indices (Shannon, Simpson) from species or category counts. Shannon (ln/log2/log10) and Simpson (D, 1−D, 1/D) are shown together to avoid definition confusion.

All calculations run in your browser. Your data is not sent.

Other languages ja | en

How to use (3 steps)

  1. Select an example or enter a count table (labels and counts).
  2. Adjust Shannon log base or display options if needed.
  3. Shannon, Simpson, and (optional) Hill numbers/evenness are shown.

Diversity indices depend on sampling and preprocessing (filtering, normalization, etc.). Interpret results together with conditions.

Input (count table)

Input mode

label count Actions
Paste (TSV/CSV)

Two columns: label, count (header optional).

Display options

Results (Shannon & Simpson)

N (total)
S (species/categories)
Shannon H
ln: —
Simpson
D: — / 1−D: — / 1/D: —
Hill numbers (q=0/1/2)
Evenness (Pielou J)

Relative abundance (p)

Shannon contribution (−p ln p)

Top categories

label count p

Outputs

How it’s calculated

FAQ

What is the difference between ln and log2 for Shannon?

Only the log base changes; rankings do not. Choose based on field conventions (default is ln).

Which one is the “Simpson index”?

Literature varies between D (Σp²), 1−D, and 1/D. This tool shows all three.

Is it okay to include zero counts?

Yes. They are treated as p=0 with zero contribution.

Can I compare samples?

Yes. Multi-sample (by columns) mode calculates indices for each column.

Are my inputs sent anywhere?

All calculations run in your browser. Your data is not sent.

Related tools

Comments (optional)

To reduce load, comments are fetched only when needed.