Compute Shannon H′ from species counts with H′max and Pielou evenness, in ln, log₂, or log₁₀ base.
Execution
Run this tool
Fill in the form, run the tool, and review the result in one place.
Samples
Examples that match this tool
Related
Continue with connected tools and hubs
Result
Ready for a run
Run the tool to preview files, text, structured data, or streamed output here.
Tool usage guide
Learn when to use this tool, what it supports, and how real users apply it.
Key facts
Category
Health
Input types
textarea, select
Output type
json
Sample coverage
4
API ready
Yes
Overview
Compute Shannon diversity H′ from species abundance counts, along with richness S, total N, H′max, and Pielou evenness J. Choose ln, log₂, or log₁₀ as the logarithm base.
When to use
You have species abundance counts and need Shannon H′, H′max, and Pielou evenness J.
You want to compare evenness among samples that have similar species richness.
You need H′ in nats (ln), bits (log₂), or log₁₀ for a report or lab write-up.
How it works
1Enter one abundance count per species. Values can sit on separate lines or be separated by commas or spaces.
2Choose the logarithm base: ln (classic ecology), log₂ (bits per species), or log₁₀.
3The tool converts counts to proportions pᵢ = nᵢ/N, then computes H′ = −Σ pᵢ log pᵢ, H′max = log(S), and Pielou J = H′/H′max.
4Results include S, N, proportions, H′, H′max, evenness J, the chosen base, and a short evenness interpretation.
Use cases
Summarize plant or animal community structure from quadrat or transect counts.
Show how richness versus evenness changes Shannon H′ in teaching labs.
Report Shannon entropy and Pielou J from survey or lab abundance tables.
Examples
1. Five-species sample with moderate evenness
Ecology student
Background
A 100-individual vegetation sample contains five species with counts 40, 25, 20, 10, and 5.
Problem
Need H′, H′max, and Pielou J in natural-log units for a lab report.
How to use
Paste one count per line and leave logarithm base set to ln.
40
25
20
10
5
Outcome
H′ = 1.4150 (ln) from S = 5 and N = 100. H′max = 1.6094 and J = 0.8792 — a moderately even community.
2. Two-species stand limited by richness
Field botanist
Background
A plot is dominated by two species at 60 and 40 individuals (N = 100).
Problem
Check whether low H′ comes from dominance or from having only two species.
How to use
Enter 60 and 40 on separate lines and keep base ln.
60
40
Outcome
FAQ
What should I enter as species counts?
One abundance per species. Separate values with new lines, commas, or spaces. Species names are not required.
What does the calculator return?
Richness S, total N, proportions, Shannon H′, H′max, Pielou evenness J, the log base, and a brief evenness interpretation.
What is Pielou evenness J?
J = H′ / H′max, where H′max is log(S). J runs from 0 to 1; J = 1 means all species are equally abundant.
Which logarithm base should I use?
Use ln for standard Shannon–Wiener reporting. Use log₂ for bits per species. Use log₁₀ when that unit is required.
How should I read H′?
H′ increases with both richness and evenness. Low S caps H′ even when evenness is high, so compare communities with similar S.