AP Biology • Ecology

Biodiversity

Understanding how the variety of life sustains ecosystems and why its loss threatens ecological stability.

AP Biology illustration with DNA, a microscope, and a leaf
Inside this lesson 9 sections 5 questions 7 figures

SECTION 1

Historical Context & Motivation

The concept of biodiversity—a contraction of "biological diversity"—was formalized only in the late twentieth century, but the intellectual roots stretch back to early naturalists who catalogued species across continents. Charles Darwin and Alfred Russel Wallace recognized that the sheer variety of organisms was both a product of evolution and a driver of ecological complexity. As industrialization accelerated habitat destruction, biologists grew increasingly alarmed that species were disappearing faster than they could be described. The term "biodiversity" was popularized during the 1986 National Forum on BioDiversity organized by E.O. Wilson, crystallizing decades of concern into a single unifying concept that now underpins conservation biology, ecosystem ecology, and environmental policy worldwide.

1735 • Linnaean Taxonomy

Carl Linnaeus publishes Systema Naturae, establishing binomial nomenclature and providing the first systematic framework for cataloguing Earth's organisms.

1859 • Origin of Species

Darwin's theory of natural selection explains how biodiversity arises through descent with modification, linking variation to adaptation and speciation.

1967 • Island Biogeography Theory

MacArthur and Wilson publish The Theory of Island Biogeography, formalizing how area and isolation govern species richness—a cornerstone of conservation planning.

1986 • The BioDiversity Forum

E.O. Wilson's National Forum on BioDiversity brings global attention to species loss, popularizing the term and catalyzing the modern conservation movement.

1992 • Convention on Biological Diversity

The CBD is adopted at the Rio Earth Summit, establishing international legal frameworks for conservation, sustainable use, and equitable sharing of genetic resources.

The central question biodiversity science seeks to answer is deceptively simple: How many species exist, how are they distributed, and what happens to ecosystems when that variety declines? Answering this requires integrating genetics, taxonomy, ecology, and evolutionary biology—an interdisciplinary challenge at the heart of AP Biology's ecology unit.

SECTION 2

Core Principles & Definitions

Biodiversity is measured and discussed at three hierarchical levels, each capturing a different dimension of biological variation. These levels are interconnected: genetic diversity fuels species diversity through variation and selection, while species diversity contributes to the structural and functional complexity captured by ecosystem diversity. Understanding all three levels is essential for the AP Biology exam, which frequently tests the relationship between diversity at one level and stability or function at another.

1

Genetic Diversity

The total variety of alleles and genotypes within a population or species. Higher genetic diversity increases a population's capacity to adapt to changing environments via natural selection. Bottleneck and founder effects reduce genetic diversity.
2

Species Diversity

The number of different species (species richness) combined with their relative abundances (species evenness) in a community. A community with 50 equally abundant species is more diverse than one dominated by a single species with 49 rare ones.
3

Ecosystem Diversity

The variety of ecosystems—forests, wetlands, coral reefs, grasslands—across a landscape or biosphere. Each ecosystem harbors unique community assemblages and biogeochemical cycles, so preserving ecosystem diversity protects the broadest range of species and processes.
4

Species Richness vs. Evenness

Richness counts species present; evenness measures how equitably individuals are distributed among those species. Both components are captured by diversity indices such as the Shannon index. High richness with low evenness yields moderate diversity.

SECTION 3

Visualizing Biodiversity Levels

Three Levels of BiodiversityGENETIC DIVERSITYAllelic variation within populationsAAAaaaABaB↑ More alleles = greater adaptive potentialSPECIES DIVERSITYRichness + Evenness in a community5 species, high evenness↑ More species + equal abundance = higher diversity indexECOSYSTEM DIVERSITYVariety of habitats across a landscapeForestWetlandPrairie↑ More ecosystem types = broader niche space and biogeochemical cyclesSCALE →
The three levels of biodiversity are nested: genetic diversity exists within populations, species diversity within communities, and ecosystem diversity across landscapes. Each level contributes uniquely to ecosystem resilience.

The diagram above illustrates how biodiversity is structured across scales. At the smallest scale, genetic diversity is represented by the range of genotypes (AA, Aa, aa, etc.) within a single population—more alleles mean greater raw material for natural selection. At the community level, species diversity integrates both the count of species and their relative abundances, depicted by the bar chart's roughly equal heights. Finally, ecosystem diversity captures the breadth of distinct habitat types—forest, wetland, prairie—each supporting unique assemblages of species and ecological processes.

A fox stands at a forest edge beside purple flowers, a wetland holds two ducks, and open grassland extends beyond the water toward distant wooded hills.Biodiversity includes ecosystem variety across landscapes, species diversity within communities and genetic variation within a species. At one diploid two-allele locus, AA, Aa and aa are three genotypes formed from two alleles.

Biodiversity depends on the scale. Biodiversity includes ecosystem variety across landscapes, species diversity within communities and genetic variation within a species. At one diploid two-allele locus, AA, Aa and aa are three genotypes formed from two alleles.Biodiversity includes ecosystem variety across landscapes, species diversity within communities and genetic variation within a species. At one diploid two-allele locus, AA, Aa and aa are three genotypes formed from two alleles.

SECTION 4

Quantifying Biodiversity: Indices & Equations

Ecologists rely on mathematical indices to convert raw species-count data into comparable, interpretable measures of diversity. Two indices appear frequently on the AP Biology exam: the Shannon diversity index (H) and Simpson's diversity index (D). Both capture richness and evenness, but they differ in their mathematical emphasis: Shannon weighs rare species more heavily through the logarithm, while Simpson emphasizes the probability that two randomly selected individuals belong to different species.

SHANNON DIVERSITY INDEX

H=−Σ(pi×lnpi)H = −Σ (pᵢ × ln pᵢ)

Where H = Shannon index value, pᵢ = proportion of total individuals belonging to species i, ln = natural logarithm, and the summation runs over all species in the community. Higher H indicates greater diversity.

SIMPSON'S DIVERSITY INDEX

D=1−Σ(pi2)D = 1 − Σ (pᵢ²)

Where D ranges from 0 to 1. A value near 1 indicates high diversity (low probability that two randomly chosen individuals are the same species), while a value near 0 indicates a community dominated by one species.

SPECIES-AREA RELATIONSHIP

S=cAzS = cA^z

Where S = number of species, A = area of habitat, c = y-intercept constant (varies by taxon/region), and z = slope of the species-area curve on a log-log plot (typically 0.1–0.35). This power-law relationship predicts species loss when habitat area is reduced.

ℹ
AP Exam Tip

SECTION 5

Threats to Biodiversity

Biodiversity loss is driven by a suite of interacting anthropogenic pressures often summarized by the acronym HIPPCO: Habitat destruction, Invasive species, Pollution, Population growth (human), Climate change, and Overexploitation. These threats do not operate in isolation; habitat fragmentation, for instance, reduces population sizes, which lowers genetic diversity, which in turn diminishes a species' capacity to adapt to climate change. Understanding the synergistic nature of these threats is essential for AP exam questions that ask you to evaluate conservation strategies.

HIPPCO — Threats to BiodiversityBIODIVERSITY LOSSH — Habitat Loss#1 cause of extinctionI — Invasive SpeciesOutcompete nativesP — PollutionBioaccumulation, eutrophicationP — Population Growth↑ resource demandC — Climate ChangeShifts ranges, phenologyO — OverexploitationHunting, overfishingSYNERGISTIC EFFECTSThreats interact → accelerated extinction ratesCurrent extinction rate: 100–1,000× background rate
The six HIPPCO threats converge synergistically. Habitat loss fragments populations, invasive species fill vacated niches, pollution degrades remaining habitat, growing human populations amplify demand, climate change shifts environmental baselines, and overexploitation removes individuals faster than populations can recover.

Of these six drivers, habitat destruction is the single greatest threat to global biodiversity, responsible for the majority of recent species declines. Tropical deforestation alone eliminates an estimated 50,000–100,000 species per year (most undescribed invertebrates and fungi). The species-area relationship (S = cAz) predicts that a 90% reduction in habitat area can eliminate roughly 50% of species, assuming a typical z-value of 0.25. Climate change is projected to overtake habitat loss as the primary driver of extinction by mid-century, as shifting temperature and precipitation regimes outpace species' migration and adaptation capacities.

SECTION 6

Worked Example: Calculating Shannon Diversity Index

Suppose a field biologist surveys two forest communities and records the following species abundances. Community A has 4 species: 25, 25, 25, and 25 individuals respectively (total = 100). Community B has 4 species: 80, 10, 5, and 5 individuals (total = 100). Let's compute H for each community to determine which is more diverse.

Worked example

  1. 1

    Step 1 — Calculate proportions (pᵢ)

    Each species has 25 out of 100 individuals, so p₁ = p₂ = p₃ = p₄ = 25/100 = 0.25.
  2. 2

    Step 2 — Compute pᵢ × ln(pᵢ) for each species

    For every species: 0.25 × ln(0.25) = 0.25 × (−1.386) = −0.347. Since all four species have the same proportion, each contributes −0.347.
  3. 3

    Step 3 — Sum and negate

    Σ(pᵢ × ln pᵢ) = 4 × (−0.347) = −1.386. Therefore, H = −(−1.386).
    HAH_A = 1.386

Worked example

  1. 1

    Step 1 — Calculate proportions

    p₁ = 80/100 = 0.80, p₂ = 10/100 = 0.10, p₃ = 5/100 = 0.05, p₄ = 5/100 = 0.05.
  2. 2

    Step 2 — Compute pᵢ × ln(pᵢ)

    Species 1: 0.80 × ln(0.80) = 0.80 × (−0.223) = −0.178. Species 2: 0.10 × ln(0.10) = 0.10 × (−2.303) = −0.230. Species 3: 0.05 × ln(0.05) = 0.05 × (−2.996) = −0.150. Species 4: 0.05 × ln(0.05) = −0.150.
  3. 3

    Step 3 — Sum and negate

    Σ = −0.178 + (−0.230) + (−0.150) + (−0.150) = −0.708. H = −(−0.708).
    HBH_B = 0.708
  4. 4

    Step 4 — Interpret

    Community A (H = 1.386) is substantially more diverse than Community B (H = 0.708), even though both contain the same number of species (richness = 4). The difference is entirely due to evenness: Community A's equal abundances maximize H, while Community B's dominance by a single species depresses H.

SECTION 7

Biodiversity & Ecosystem Services

Biodiversity is not merely an aesthetic or ethical concern—it underpins the ecosystem services upon which human economies and well-being depend. These services are traditionally classified into four categories: provisioning, regulating, cultural, and supporting. Communities with higher species diversity tend to be more productive and more resistant to disturbance, a relationship known as the diversity-stability hypothesis. The AP exam may present data from biodiversity-manipulation experiments (e.g., the Cedar Creek grassland studies) asking you to evaluate the relationship between species number and ecosystem function.

Service CategoryExamplesBiodiversity Link
ProvisioningFood, medicine, timber, genetic resourcesCrop wild relatives provide alleles for disease resistance; diverse fisheries are more productive
RegulatingPollination, water purification, carbon sequestration, pest controlDiverse pollinator assemblages buffer against single-species declines; wetland plant diversity enhances filtration
CulturalRecreation, ecotourism, aesthetic inspiration, spiritual valueBiodiversity hotspots attract ecotourism revenue; charismatic species serve as flagship conservation ambassadors
SupportingNutrient cycling, soil formation, primary productionDiverse decomposer communities accelerate nutrient turnover; plant diversity increases net primary productivity

Four categories of ecosystem services and their dependence on biodiversity

SECTION 8

Conservation Strategies & Advanced Concepts

Conservation biology applies ecological and evolutionary principles to preserve biodiversity. Strategies range from species-level interventions (captive breeding, translocation) to landscape-level planning (protected area networks, wildlife corridors). On the AP exam, you should be able to evaluate the effectiveness of conservation approaches using ecological concepts such as minimum viable population size, habitat connectivity, and edge effects.

StrategyScaleKey PrincipleLimitation
Protected areasEcosystemPreserves intact habitat; species-area relationship predicts larger reserves support more species"Paper parks" may lack enforcement; isolated reserves suffer island effects
Wildlife corridorsLandscapeMaintains gene flow between fragmented populations; reduces inbreeding depressionCan also facilitate disease and invasive species spread
Ex situ conservationSpecies / GeneticSeed banks, zoos, and captive breeding preserve genetic material and enable reintroductionGenetic drift in small captive populations; loss of behavioral adaptations
Biodiversity hotspotsGlobal prioritizationFocus limited resources on regions with high endemism and severe habitat loss (≥1,500 endemic vascular plants, ≤30% original habitat remaining)Neglects species-poor but ecologically critical biomes (e.g., boreal forests, deep-sea vents)
Restoration ecologyCommunity / EcosystemRebuilds degraded habitats via active planting, reintroduction of keystone species, and removal of invasivesRestored ecosystems may never fully replicate original community composition

Major conservation strategies, their ecological basis, and limitations

Looking forward, advances in environmental DNA (eDNA) sampling allow ecologists to detect species from water or soil samples without direct observation, dramatically improving biodiversity surveys. Genomic tools enable assessment of genetic diversity across entire communities simultaneously. These technologies are extending the reach of conservation science, but the fundamental challenge remains reducing the anthropogenic pressures outlined in the HIPPCO framework.

An illustrative stream-to-laboratory scene shows collection, filtration and assay equipment. Both the stream sample and a separate DNA-free field blank follow water, filter, extraction and assay. No result is shown.A water sample can contain DNA from organisms that are difficult to observe. Transport, persistence and contamination mean detection does not establish live local abundance.

Three qualitative forest landscapes show continuous woodland, fragmented woodland and a restored vegetated road crossing.Connected habitat can permit movement; gene flow also requires successful reproduction. Conservation plans balance habitat quality, core area, representation and shared disturbance exposure.

A corridor enables movement. Connected habitat can permit movement; gene flow also requires successful reproduction. Conservation plans balance habitat quality, core area, representation and shared disturbance exposure.Connected habitat can permit movement; gene flow also requires successful reproduction. Conservation plans balance habitat quality, core area, representation and shared disturbance exposure.

Movement does not prove gene flow. Tracking movement tests connectivity. Parentage and reproduction measurements test gene flow, and repeated genetic sampling tests changes across generations.Tracking movement tests connectivity. Parentage and reproduction measurements test gene flow, and repeated genetic sampling tests changes across generations.

Habitat structure is species-specific. A corridor must provide the resources and habitat structure required by the focal species; movement alone does not establish suitable breeding habitat.A corridor must provide the resources and habitat structure required by the focal species; movement alone does not establish suitable breeding habitat.

Equal area does not mean equal core. For equal total area and a fixed edge depth, one large square retains 64% core habitat while four smaller squares retain 36%.For equal total area and a fixed edge depth, one large square retains 64% core habitat while four smaller squares retain 36%.

Reserve plans face more than edge effects. Reserve designs with equal total area can expose habitat to different shared disturbances; site arrangement is another consideration alongside core area.Reserve designs with equal total area can expose habitat to different shared disturbances; site arrangement is another consideration alongside core area.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Two island communities each contain 10 species. In Community X, each species has 100 individuals. In Community Y, one species has 910 individuals and each of the remaining nine species has 10. Which statement best compares the biodiversity of the two communities?
  • A. Both communities have equal biodiversity because they have identical species richness.
  • B. Community Y has higher biodiversity because one dominant species stabilizes the community.
  • C. Community X has higher species diversity because its greater evenness produces a higher diversity index.
  • D. Biodiversity cannot be compared without knowing the identities of the species present.
Show answer (C)
The correct answer is C. Community X has higher species diversity than Community Y despite equal species richness because species diversity incorporates both richness and evenness. Community X has maximum evenness (all species equally abundant), producing a higher Shannon index (H ≈ 2.30). Community Y is severely dominated by a single species (91% of individuals), yielding much lower evenness and a lower H (≈ 0.53). Option A is incorrect because species richness alone (10 for both) does not determine overall diversity. Option B is incorrect because Community Y has lower, not higher, diversity due to its extreme unevenness. Option D is incorrect because the two communities are not equally diverse—evenness differs dramatically.

Question 2: BASIC CALCULATION

A community contains 3 species with the following individual counts: Species A = 50, Species B = 30, Species C = 20 (total = 100). Using Simpson's diversity index (D = 1 − Σpᵢ²), what is D?
  • A. D = 0.38
  • B. D = 0.62
  • C. D = 0.72
  • D. D = 1.10
Show answer (B)
The correct answer is B. First calculate proportions: pAp_A = 0.50, pBp_B = 0.30, pCp_C = 0.20. Then compute Σpᵢ² = 0.50² + 0.30² + 0.20² = 0.25 + 0.09 + 0.04 = 0.38. Therefore D = 1 − 0.38 = 0.62. Option A (0.38) represents Σpᵢ² itself, not the final Simpson's index. Option C (0.72) could result from a computational error such as squaring incorrectly. Option D (1.10) is impossible since D ranges from 0 to 1.

Question 3: INTERMEDIATE

A tropical forest originally covering 10,000 km² is reduced to 1,000 km² by deforestation. Using the species-area relationship S = cAzcA^z with z = 0.25, what approximate percentage of the original species is predicted to remain?
  • A. Approximately 10% of species remain
  • B. Approximately 32% of species remain
  • C. Approximately 56% of species remain
  • D. Approximately 75% of species remain
Show answer (C)
The correct answer is C. Using S = cAzcA^z, compare the ratio: S_new/S_original = (A_new/A_original)^z = (1,000/10,000)0.25(1,000/10,000)^{0.25} = (0.1)0.25(0.1)^{0.25}. Computing: 0.10.250.1^{0.25} = 10−0.2510^{−0.25} ≈ 0.562, meaning approximately 56% of species remain. Option A (10%) confuses the area ratio for the species ratio. Option B (32%) would result from using z = 0.5 instead of 0.25. Option D (75%) underestimates the species loss by using an incorrect exponent or calculation.

Question 4: APPLIED

A team of ecologists proposes to test whether biodiversity increases ecosystem productivity. They establish 30 grassland plots, randomly assigning each to contain 1, 5, 10, or 20 plant species (n = 7–8 replicates per treatment). After two growing seasons, they measure aboveground biomass (g/m²) in each plot. (a) Identify the independent variable, dependent variable, and one controlled variable. (b) Predict the expected results if the diversity-stability hypothesis is supported, and sketch the general shape of the expected graph. (c) Explain one mechanism by which higher species richness could increase productivity. (d) The researchers notice that plots with 20 species show high variability in biomass. Propose one biological explanation for this variability.
Show answer
(a) [1 pt] Independent variable: number of plant species per plot (1, 5, 10, or 20). Dependent variable: aboveground biomass (g/m²). Controlled variables include: plot size, soil type, water availability, sunlight exposure, or duration of experiment (any one is acceptable). (b) [1 pt] If the diversity-stability hypothesis is supported, mean biomass should increase with species richness. The graph would show a positive, likely saturating curve (steep initial increase that levels off at higher richness values), with species richness on the x-axis and biomass on the y-axis. (c) [1 pt] Niche complementarity: species with different resource-use strategies (e.g., different rooting depths, different photosynthetic optima) partition resources more completely, so communities with more species capture a greater proportion of available light, water, and nutrients, converting more resources into biomass. (Alternatively: the sampling/selection effect—more diverse plots are statistically more likely to include a highly productive species.) (d) [1 pt] High variability could result from differences in species composition among replicates: although all 20-species plots have the same richness, they may include different combinations of species, some of which include highly productive or facilitative species (e.g., nitrogen-fixing legumes) while others do not. Competitive interactions or stochastic differences in establishment success may also create variability.

Question 5: CRITICAL THINKING

Researchers surveyed bird communities across four forest fragments of varying size. Data are shown below: Fragment W: Area = 500 ha, Species richness = 42, Shannon H = 3.1 Fragment X: Area = 200 ha, Species richness = 35, Shannon H = 2.8 Fragment Y: Area = 50 ha, Species richness = 18, Shannon H = 2.4 Fragment Z: Area = 10 ha, Species richness = 8, Shannon H = 1.2 (a) Describe the relationship between fragment area and species richness shown in the data. (b) Using the species-area relationship S = cAzcA^z, estimate z from the data using Fragments W and Z. Show your work. (c) Fragment Z has a disproportionately low Shannon index relative to its richness compared to the other fragments. Propose an explanation. (d) A conservation agency has funds to protect either one 500-ha fragment or five separate 10-ha fragments. Using ecological principles from this lesson, argue which option better preserves biodiversity and justify your reasoning.
Show answer
(a) [1 pt] Species richness increases with fragment area. As fragment area decreases from 500 ha to 10 ha, species richness drops from 42 to 8. This positive relationship is consistent with the species-area relationship (S = cAzcA^z). (b) [1 pt] Using S = cAzcA^z for fragments W and Z: 42 = c(500)zc(500)^z and 8 = c(10)zc(10)^z. Dividing: 42/8 = (500/10)z(500/10)^z → 5.25 = 50z50^z. Taking the natural log: ln(5.25) = z × ln(50) → 1.658 = z × 3.912 → z ≈ 0.42. (Note: this is higher than the typical 0.1–0.35 range, suggesting island-like isolation effects in fragmented habitat.) (c) [1 pt] Fragment Z likely has very low evenness—one or two species may dominate the small community due to competitive exclusion in limited habitat area, or stochastic loss of rare species (ecological drift). In small fragments, edge effects disproportionately degrade interior habitat, favoring generalist edge species over forest-interior specialists. The dominance pattern lowers evenness and thus depresses the Shannon index more than richness alone would predict. (d) [1 pt] The single 500-ha fragment better preserves biodiversity. According to the species-area relationship, one large reserve supports more total species (42) than five isolated 10-ha fragments (≤ 8 species each, with substantial overlap). The SLOSS debate (Single Large Or Several Small) generally favors large reserves when species overlap among fragments is high. A single large fragment minimizes edge effects, maintains interior habitat for specialist species, supports larger populations (reducing extinction risk from demographic stochasticity and inbreeding), and preserves more complete food webs. The five small fragments would collectively total only 50 ha (less than Fragment Y, which supports only 18 species) and would lack connectivity, preventing gene flow between populations.

Varsity Tutors • AP Biology • Biodiversity