Species Evenness Calculator & Rarefaction
Paste field counts for one or two samples. Compare how evenly counts are distributed, how strongly a few species dominate, and how many species you would expect when drawing the same number of individuals from each observed sample.
Compare species evenness at a shared sample size
Use field counts to see which species dominate and how the observed richness compares after drawing the same number of individuals.
Edit species counts and shared draw size
Paste up to 36 lines per sample, each with a species label and whole count separated by a comma or tab. Repeated labels combine.
Sample A
10 individualsPielou evenness
0.7854753
Sedge · 60%.
- Observed species
- 4
- Shannon entropy (nats)
- 1.08889998
- Effective species · Shannon
- 2.9710041
- Effective species · inverse Simpson
- 2.38095238
- Expected species in 5 draws
- 2.77777778
Sample B
12 individualsPielou evenness
1
Largest share · 33.33333333%.
- Observed species
- 3
- Shannon entropy (nats)
- 1.09861229
- Effective species · Shannon
- 3
- Effective species · inverse Simpson
- 3
- Expected species in 5 draws
- 2.78787879
Expected species by draw count
Line segments connect calculated depths. The gold guide marks the shared sample size.
- Sample A
- Sample B
- Compare at 5
Review abundance counts and export CSV
| Sample | Species | Count | Running | Running % |
|---|---|---|---|---|
| A | Sedge | 6 | 6 | 60% |
| A | Rush | 2 | 8 | 80% |
| A | Vetch | 1 | 9 | 90% |
| A | Clover | 1 | 10 | 100% |
| B | Sedge | 4 | 4 | 33.33333333% |
| B | Rush | 4 | 8 | 66.66666667% |
| B | Vetch | 4 | 12 | 100% |
The CSV keeps expected richness as an exact fraction and reports entropy-based measures to eight decimal places.
The curve describes subsamples of the recorded individuals. Differences in field methods or detectability still matter when comparing sites.
How to use this calculator
- Paste each species label and whole count in Sample A as comma- or tab-separated rows. Optionally add Sample B.
- Set how many individuals to draw from each sample. Use a value at or below the smaller entered total.
- Compare observed species, Pielou evenness, and effective species. Switch chart views to inspect expected richness or dominance by rank.
- Review the counts ledger and download the exact binomial expectations with rounded entropy-based measures.
The Formula
The mathematical logic powering this calculation is:
Pool matching species labels and retain those with positive counts. Let S be their number, N the total count, and pᵢ = nᵢ/N the share for species i. Shannon entropy H = −Σ pᵢ ln(pᵢ), in nats. Pielou evenness J = H/ln(S) when S ≥ 2. J equals 1 when each observed species has the same count. A one-species sample has H = 0 and undefined J.
Effective Shannon species = exp(H). Inverse Simpson effective species = 1/Σ pᵢ². Both express diversity as an equivalent number of equally abundant species. For cumulative dominance, order positive counts from largest to smallest and divide the running total at each rank by N.
For a draw of d distinct individuals sampled without replacement, species i appears with probability 1 − C(N − nᵢ,d)/C(N,d). The binomial coefficient in the numerator is zero if d exceeds the number of individuals from other species. Sum these probabilities for the expected number of observed species. Inverse Simpson and expected richness use exact integers and fractions. Entropy-based measures use floating-point logarithms. The chart includes the selected depth, the shared endpoint, and up to 24 evenly spaced sample sizes. The chord between calculated depths is a visual guide.
Paste one to 36 species-count rows per sample. Counts are whole numbers from 0 to 1,000,000 per row. Use consistently spelled labels for the same species within each sample. Enter at least one positive count per sample. Select a draw size from 1 to the smaller observed total, up to 500. Rarefaction here is conditional on the observations and their recorded counts. Sampling methods and species detectability affect between-site comparisons.Worked Example
If you input:
- Sample A: Sedge 6, rush 2, vetch 1, clover 1
- Sample B: Sedge 4, rush 4, vetch 4
- Individuals to draw: 5
Result:
A has four observed species with Pielou evenness 0.7854753. B has three equally abundant species and evenness 1. In a draw of five individuals, the expected observed species are 25/9 (2.77777778) in A and 92/33 (2.78787879) in B.
Frequently Asked Questions
How do you calculate species evenness?
Divide Shannon entropy by the natural logarithm of the number of species with positive counts. The result reaches 1 when each observed species has the same count.
How are richness and evenness different?
Richness is the number of species recorded. Evenness describes how balanced their observed counts are. Two samples may have the same richness and very different evenness.
Why is Pielou evenness undefined with one species?
Both entropy and the natural logarithm of richness are zero. Their ratio is undefined. The sample still has one observed and one effective species.
Why use a common draw size?
Larger samples can reveal more species because they contain more individuals. Drawing equally sized subsamples lets you compare the expected species under a common number of sampled individuals.
Can I use cover percentages or biomass in the rarefaction calculation?
The draw model requires counts of individual observations. Use whole individual counts collected with comparable field methods.
Similar Calculators
Pointwise Mutual Information & Entropy Calculator
Explore PMI, normalized PMI, mutual information and entropy from event counts or a contingency table. Inspect an interactive heatmap, cell contributions and CSV results.
Relative Frequency Calculator & Cohort Histogram
Compare counts, relative frequencies and cumulative shares in two cohorts. Plot unequal bins and see what raw or grouped data say about a cutoff.
Acceptance Sampling & Hypergeometric Calculator
Calculate exact hypergeometric lot acceptance, producer risk and consumer risk. Explore the operating characteristic curve and find sample sizes that meet both limits.
