Rarefaction Curve Calculator

Enter your species abundance data (observed counts per species) and sampling parameters to generate a rarefaction curve. Adjust sample size, number of individuals, and diversity metric (species richness, Shannon, or Simpson) to estimate how well your sampling effort captures true community diversity. You get back estimated species richness, Shannon diversity index, Simpson diversity index, and a rarefaction curve showing diversity vs. sampling effort.

Enter the number of individuals observed for each species, separated by commas. Each number represents one species count.

The number of individuals to rarefy down to. Must be ≤ total individuals observed.

Hill number order: q=0 counts species equally, q=1 weights by abundance (Shannon), q=2 emphasises dominant species (Simpson).

How many interpolation points to plot along the rarefaction curve.

Number of random subsamples used to estimate diversity at each step. Higher values give smoother curves.

Results

Rarefied Diversity at Sample Size n

--

Total Individuals Observed

--

Observed Species (Richness)

--

Shannon Diversity Index (H')

--

Simpson Diversity Index (1-D)

--

Pielou's Evenness (J')

--

Estimated Sampling Coverage (%)

--

Rarefaction Curve — Diversity vs. Sampling Effort

Results Table

Frequently Asked Questions

What is a rarefaction curve?

A rarefaction curve plots estimated species diversity (or richness) against the number of individuals sampled. It shows how diversity accumulates as you sample more individuals, allowing you to assess whether your sampling effort was sufficient to capture the true diversity of a community. The curve typically rises steeply at first and then levels off as sampling approaches completeness.

What does the diversity order q mean?

The diversity order q determines how species abundances are weighted. At q=0, all species count equally regardless of abundance — this gives species richness. At q=1, species are weighted proportionally to their abundance, equivalent to the exponential of Shannon entropy. At q=2, dominant species are emphasised more strongly, equivalent to the inverse of Simpson concentration. Together these Hill numbers provide a comprehensive view of community diversity.

How do I enter my species abundance data?

Enter the observed count of individuals for each species as comma-separated numbers. For example, if you observed 15 individuals of species A, 10 of species B, 8 of species C, you would enter: 15, 10, 8. Each number represents one species, and zeros can be omitted. The total of all numbers is your total sample size N.

What is the rarefaction sample size (n)?

The rarefaction sample size n is the number of individuals you want to rarefy down to — it must be equal to or less than your total observed individuals. Rarefaction randomly subsamples your community down to n individuals many times (bootstraps) and averages the resulting diversity. This lets you compare diversity across samples with different total abundances on a common footing.

What is Pielou's evenness and why does it matter?

Pielou's evenness (J') measures how evenly individuals are distributed among species, ranging from 0 (completely uneven — one species dominates) to 1 (perfectly even — all species equally abundant). It is calculated as H' / ln(S), where H' is the Shannon index and S is species richness. High evenness means no single species overwhelms the community, indicating a more balanced and often more stable ecosystem.

How do I know if my sampling effort was sufficient?

If the rarefaction curve has levelled off (reached a plateau) by the time you reach your actual sample size, your sampling was likely sufficient to capture most of the diversity present. If the curve is still rising steeply at your observed n, you should collect more samples. The estimated sampling coverage percentage shown in the results also gives a direct indicator — values above 95% suggest good coverage.

What is the difference between Shannon and Simpson diversity?

Shannon diversity (H') is sensitive to rare species and reflects both richness and evenness; higher values indicate greater diversity. Simpson diversity (1-D) represents the probability that two randomly chosen individuals belong to different species, placing more weight on abundant species. For most ecological comparisons, Shannon index is preferred when rare species matter, while Simpson index is better when dominant species structure is the focus.

Can rarefaction be used to compare communities of different sizes?

Yes — that is one of the primary uses of rarefaction. By standardising all communities to the same number of individuals (the smallest sample size among your communities), you can fairly compare their diversity. Without rarefaction, larger samples will almost always appear more diverse simply because more individuals were collected, making direct comparison misleading.

More Ecology Tools