Home / Science / Ecology and organisms / Ecology / Biodiversity indicesTool #39

Biodiversity index calculator: Shannon, Simpson, Chao1 and rarefaction (free)

Paste species counts for one or more sites and get Shannon, Simpson, evenness, Chao1 richness, rarefaction curves and Bray-Curtis similarity in one table. Runs in your browser.

Keep it one tap away for everyday use.

Bookmark Biodiversity indices?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Paste counts
  2. Indices
  3. Rarefy
  4. Report
Nothing is uploadedWorks offline once open

Counts

Use whole-number counts of individuals: rarefaction and Chao1 need them. The example is invented, for illustration.

What it does

Field surveys, pitfall traps, quadrats, plankton tows and sequencing runs all end with the same thing: a table of species and how many individuals of each you found at each site. This calculator turns that table into the diversity numbers ecologists report, side by side for every site: richness, Chao1, Shannon, Simpson, evenness and dominance. It draws rarefaction curves so sites with different sample sizes can be compared fairly, and gives Bray-Curtis and Jaccard values for every pair of sites. Nothing is uploaded.

How to use it

  1. Put species in the first column and one column of counts per site after it. The first row holds the site names. Copying a block straight from Excel or Google Sheets works; tabs, commas and semicolons are all understood.
  2. Use whole-number counts of individuals (or of reads). Blank cells count as zero. Rarefaction and Chao1 are built on counts, so percentages or cover values will not give meaningful results.
  3. The table and charts update as you type. Download the results as PNG, PDF or Word with the buttons at the bottom.

What each number means

  • Species (S) is the number of species seen. Chao1 estimates how many there really are, using how many species were seen only once (singletons) or twice (doubletons). The bias-corrected form is used, so it still works when there are no doubletons.
  • Shannon H′ uses the natural log. exp(H′) turns it into an “effective number of species”: the number of equally common species that would give the same H′. It is easier to compare than H′ itself.
  • Simpson 1 − D is the chance that two individuals picked at random are different species. 1/D is the matching effective number of species. Both use the plain proportions (pᵢ²).
  • Pielou J′ = H′ / ln S, from 0 (one species dominates) to 1 (all equally common).
  • Berger-Parker is the share of the most common species.
  • Rarefaction (Hurlbert 1971, variance by Heck et al. 1975) gives the species you would expect in a smaller sample of m individuals. A dashed line marks the smallest site’s total, where all sites can be compared.
  • Bray-Curtis dissimilarity compares the counts. Jaccard similarity compares only which species are present.

Worked example

The sample data is an invented beetle survey of a meadow and a hedgerow, with ten species. The meadow has 85 beetles of 8 species: Shannon H′ = 1.569, exp(H′) = 4.80, Simpson 1 − D = 0.736, 1/D = 3.79, Pielou J′ = 0.755 and Chao1 = 8.49 (three singletons, one doubleton). The hedgerow has 66 beetles of 8 species, with H′ = 1.601. Because the meadow sample is larger, the fair comparison is at 66 individuals, where the meadow is expected to hold 7.50 ± 0.62 species. The two sites share 6 of their 10 species (Jaccard 0.6), and the Bray-Curtis dissimilarity is 0.550.

Frequently asked questions

Which index should I report? Many journals now prefer the effective numbers (exp(H′) and 1/D) alongside observed and estimated richness, because they are in units of species and behave sensibly when compared. Say which log base you used for Shannon: this tool uses the natural log.

Can I use it for sequencing (OTU or ASV) tables? Yes, as long as the values are read counts. Chao1 relies on singletons, which some pipelines remove, so treat it with care for denoised data.

How many sites can I paste? As many columns as you like. Pairs of sites for Bray-Curtis are listed up to 200 rows on the page.

Is my data sent anywhere? No. Every number is worked out in your browser, and the page keeps working offline once it has loaded.

Where the numbers come from

  • Formulas: Magurran, Measuring Biological Diversity (2004); Chao (1987, 2005).

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-08.

Change log for Biodiversity indices

  1. Show where each science tool's numbers come from, with a removal-request link Details on GitHub
  2. Open a file on every science paste box, with stated limits Details on GitHub
  3. Add five science tools: hemocytometer, radiocarbon calibration, SQL playground, biodiversity indices, reliability Details on GitHub

Every change to fibub

Related tools

CSV profiler and SQL playground #38 Open CSV, TSV or Excel files and get a profile of every column: type, missing values, distinct values, range and most common values. Then query them with SQL (SQLite), join files, and download the result. Nothing is uploaded. Sample size and power calculator #32 How many subjects, samples or survey responses do you need? Sample size for comparing two means, paired data, two proportions, or a survey's margin of error, with power curves. Matches R and G*Power. Uncertainty propagation calculator #25 Type your formula and your measurements with their uncertainties, or paste repeated readings. Get the result with its uncertainty, which input matters most, and a Monte Carlo check. Publication plot maker #27 Paste columns or open a CSV or Excel file and get a clean scientific figure with error bars, sized for a journal column. Download vector SVG or PDF, or PNG at 300 or 600 dpi. Your data stays in your browser. Crystal field and spin state calculator #93 Pick a d-block metal ion and a geometry (octahedral, tetrahedral, square planar, square pyramidal), give Δ and the pairing energy or an absorption band, and get the d-orbital diagram, high or low spin, CFSE, unpaired electrons, spin-only moment and the Jahn–Teller tendency. Cyclic voltammetry analyser #90 Paste or open a cyclic voltammogram for peak potentials and currents with a baseline, ΔEp, E½, Ep − Ep/2 and Nicholson's peak ratio; solve the Randles–Sevcik equation for D, concentration or area; and fit a scan-rate study.