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.

Species abundance samples

Compare species evenness at a shared sample size

Observed abundance is more even in sample B.
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 individuals

Pielou 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 individuals

Pielou 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.

Individual-based rarefaction curveExpected species in 5 draws. Sample A 2.77777778 expected, from 4 observed. Sample B 2.78787879 expected, from 3 observed.024010Individuals drawnExpected species
  • Sample A
  • Sample B
  • Compare at 5
Review abundance counts and export CSV
Observed species ranked by count
SampleSpeciesCountRunningRunning %
ASedge6660%
ARush2880%
AVetch1990%
AClover110100%
BSedge4433.33333333%
BRush4866.66666667%
BVetch412100%

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

  1. Paste each species label and whole count in Sample A as comma- or tab-separated rows. Optionally add Sample B.
  2. Set how many individuals to draw from each sample. Use a value at or below the smaller entered total.
  3. Compare observed species, Pielou evenness, and effective species. Switch chart views to inspect expected richness or dominance by rank.
  4. 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