# Community Ecology: AP® Biology Review

Course: AP® Biology › Unit 8: Ecology › 8.5 Community Ecology ([course hub](https://www.albert.io/blog/category/test-prep/advanced-placement/ap-biology.md))
Source: https://www.albert.io/blog/community-ecology-ap-biology-review/ · Updated November 16, 2026

## Introduction

When wolves were reintroduced to Yellowstone in 1995, the entire ecosystem transformed: elk changed their grazing patterns, willow and aspen recovered along riverbanks, songbird populations rebounded, and even the rivers changed course as stabilized vegetation reduced erosion. This cascade — a single predator reshaping an entire landscape — is community ecology in action, and it's exactly the kind of scenario the AP® Biology exam (CED Unit 8) expects you to analyze.

A **community** is all the populations of different species living and interacting in the same area at the same time. Community ecology studies the interactions between these species and how those interactions determine community structure, species diversity, and ecosystem function. This guide covers species interactions, community structure, energy flow, ecological succession, and the quantitative tools you need for the exam.

## What Is an Ecological Community?

An **ecological community** consists of all interacting populations of different species in a defined area. Two key properties describe every community: **species richness** — the total number of different species present — and **species evenness** — how equally individuals are distributed among those species.

Together, richness and evenness determine **species diversity**. A community with 10 species but 95% of individuals belonging to one species has high richness but low evenness — and therefore lower diversity than a community with 10 species evenly distributed.

Each species occupies a **niche** — its ecological role defined by what it eats, where it lives, when it's active, and how it interacts with other species. The **fundamental niche** is the full range of conditions a species *could* occupy; the **realized niche** is what it *actually* occupies after interactions like competition shrink its range. The AP exam frequently tests the difference between these two concepts.

Communities with higher species diversity tend to be more **resilient** (able to recover from disturbances) and more **resistant** (able to withstand disturbances without changing) because diverse communities have more functional redundancy — if one species declines, others can fill its ecological role.

## The Structure of a Community

Community structure is shaped by species composition, relative abundance, and the interactions that determine which species persist and which are excluded. The **Shannon diversity index (H)** quantifies diversity using both richness and evenness:

![A food web shows feeding relationships across a community.](https://www.albert.io/blog/wp-content/uploads/2026/11/food-web-diagram.png) A food web shows feeding relationships across a community. *Image: LadyofHats, CC0, via [Wikimedia Commons](https://commons.wikimedia.org/wiki/File%3AFood_web_diagram.svg)*

$H = -sum (p_i ln(p_i))$

where $p_i$ is the proportion of individuals belonging to species *i*. Higher H values indicate greater diversity.

**Worked Example:** A coral reef has three species: Species A (50 individuals), Species B (30), Species C (20). Total = 100.

| Species | Count | p_i | ln(p_i) | p_i × ln(p_i) |
| --- | --- | --- | --- | --- |
| A | 50 | 0.50 | −0.693 | −0.347 |
| B | 30 | 0.30 | −1.204 | −0.361 |
| C | 20 | 0.20 | −1.609 | −0.322 |
| **Sum** | **−1.030** |  |  |  |

$H = -(-1.030) = 1.030$

For comparison, if all 100 individuals were split equally (33/33/34), H would be approximately 1.099 — the maximum for 3 species. The reef's H of 1.030 indicates moderately high evenness. The key takeaway: **diversity requires both richness AND evenness** — a community dominated by one species is less diverse than an even community with the same number of species.

## Species Interactions in Communities

Species interactions are the engine driving community structure. The AP exam categorizes interactions by their effects on each species involved (+ benefits, − harmed, 0 unaffected):

![Clownfish and sea anemones: a mutualism that benefits both partners.](https://www.albert.io/blog/wp-content/uploads/2026/11/clownfish-or-anemonefish-49595669691.jpg) Clownfish and sea anemones: a mutualism that benefits both partners. *Image: Enrico Strocchi, CC BY-SA 2.0, via [Wikimedia Commons](https://commons.wikimedia.org/w/index.php?curid=182746730)*

| Interaction | Species 1 | Species 2 | Example |
| --- | --- | --- | --- |
| **Mutualism** | + | + | Mycorrhizal fungi and plant roots |
| **Commensalism** | + | 0 | Barnacles on a whale |
| **Parasitism** | + | − | Tapeworm in a mammalian host |
| **Predation** | + | − | Lion eating a zebra |
| **Herbivory** | + | − | Caterpillar eating plant leaves |
| **Interspecific competition** | − | − | Two bird species competing for nesting cavities |

![Leafy plants growing on the trunk of a tree without harming it, an example of commensalism](https://www.albert.io/blog/wp-content/uploads/2025/03/1024px-Commensalism.jpg)

*[MarvinBikolano](https://commons.wikimedia.org/wiki/File:Commensalism.jpg), [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0), via Wikimedia Commons*

As shown above, commensalism is a +/0 interaction where one species benefits while the other is unaffected — like barnacles hitching a ride on a whale.

**Competition and the Competitive Exclusion Principle:** Gause's **competitive exclusion principle** states that two species competing for the exact same niche cannot coexist indefinitely — one will outcompete the other. However, species often avoid exclusion through **resource partitioning** (dividing resources to reduce overlap) and **character displacement** (evolving differences in traits like beak size where ranges overlap). The classic example: where two finch species coexist on the Galápagos, their beak sizes diverge; where only one species is present, beak size is intermediate.

**Keystone Species:** A **keystone species** has a disproportionately large impact on community structure relative to its abundance. Remove a keystone species and the entire community changes dramatically. Robert Paine's sea star (*Pisaster*) experiment: removing the predatory sea star from rocky intertidal zones allowed mussels to dominate, reducing species diversity from 15 species to 8. **Keystone ≠ dominant.** A dominant species is abundant and has high biomass (like canopy trees in a forest). A keystone species is often not the most abundant but exerts outsized influence through predation, mutualism, or ecosystem engineering.

## How Interactions Influence Community Structure

**Ecological succession** is the predictable, directional change in community composition following a disturbance or the colonization of new habitat. Two types are heavily tested:

| Feature | Primary Succession | Secondary Succession |
| --- | --- | --- |
| **Starting conditions** | Bare rock or new substrate; no soil | Soil intact; existing seed bank |
| **First colonizers** | Lichens, mosses (pioneer species) | Grasses, herbaceous plants |
| **Soil formation** | Must build soil from scratch | Soil already present |
| **Time scale** | Centuries to millennia | Decades to centuries |
| **Examples** | Volcanic island, glacial retreat | After wildfire, abandoned farmland |
| **Endpoint** | Both trend toward a **climax community** (most stable assemblage for that climate) |  |

Key mechanisms driving succession:

- **Facilitation** — early species make conditions better for later species (lichens break down rock → soil forms → plants can root)
- **Inhibition** — established species resist replacement (allelopathy, shading)
- **Tolerance** — later species are more tolerant of conditions that develop over time (shade-tolerant trees eventually outcompete shade-intolerant pioneers)

## Energy Flow in Communities

Energy flows through communities in one direction — from producers to consumers to decomposers — and **decreases at each trophic level**. This is the most important principle for AP exam energy questions.

| Trophic Level | Role | Energy Available (approximate) | Example |
| --- | --- | --- | --- |
| **Producers** (1st) | Convert solar energy → chemical energy via photosynthesis | 100% of captured energy | Grasses, algae, phytoplankton |
| **Primary consumers** (2nd) | Herbivores eating producers | ~10% of producer energy | Zebras, zooplankton, caterpillars |
| **Secondary consumers** (3rd) | Carnivores eating herbivores | ~1% of producer energy | Lions, frogs, spiders |
| **Tertiary consumers** (4th) | Top predators | ~0.1% of producer energy | Eagles, orcas, sharks |
| **Decomposers** | Break down dead matter at all levels | Access energy from every trophic level | Bacteria, fungi |

The **10% rule**: only about 10% of energy at one trophic level is transferred to the next. The other ~90% is lost as **heat through cellular respiration**, used for the organism's own metabolism, or lost as undigested waste. This is why food chains rarely exceed 4–5 trophic levels.

**Bottom-up vs. top-down control:** In **bottom-up control**, nutrient or producer availability determines community structure upward through the food web. In **top-down control** (trophic cascade), predators control community structure downward. The Yellowstone wolf example is top-down control: wolves suppress elk populations, allowing riparian vegetation to recover.

## The Importance of Cooperation and Competition

**Interspecific competition** drives **resource partitioning** — the division of resources that allows similar species to coexist:

- **Spatial partitioning** — warblers feeding at different heights in the same tree (MacArthur's warblers)
- **Temporal partitioning** — hawks hunting by day, owls hunting by night in the same area
- **Morphological partitioning** — different beak shapes in coexisting finch species

**Mimicry** is an evolutionary product of species interactions:

| Type | How It Works | Example |
| --- | --- | --- |
| **Batesian mimicry** | Harmless species mimics a harmful/toxic species | Viceroy butterfly mimicking the toxic monarch |
| **Müllerian mimicry** | Two harmful species resemble each other, reinforcing the warning | Multiple species of toxic dart frogs sharing bright coloration |
| **Aposematic coloration** | Bright colors warn predators of toxicity | Poison dart frogs, monarch butterflies |

## Quick Reference Vocabulary

| Term | Definition | AP Exam Tip |
| --- | --- | --- |
| **Ecological Community** | All interacting populations of different species in a shared area | Must specify different species (not just one population) |
| **Species Richness** | Number of different species present | Richness alone doesn't equal diversity |
| **Species Evenness** | How equally individuals are distributed among species | High evenness + high richness = high diversity |
| **Shannon Index (H)** | $H = -sum(p_i ln p_i)$; quantifies diversity | Higher H = more diverse; set up a table to calculate |
| **Fundamental Niche** | Full range of conditions a species could theoretically occupy | Always larger than or equal to realized niche |
| **Realized Niche** | Actual niche occupied after competition and other biotic interactions | Interspecific competition shrinks the realized niche |
| **Competitive Exclusion** | Two species with identical niches cannot coexist indefinitely | Gause's principle; drives resource partitioning |
| **Resource Partitioning** | Species divide resources to reduce niche overlap | Allows coexistence of similar species |
| **Keystone Species** | Species with disproportionate impact relative to abundance | Keystone ≠ dominant; removal causes cascading changes |
| **Trophic Cascade** | Top predator effects ripple down through trophic levels | Wolves → elk → willows in Yellowstone |
| **Primary Succession** | Community develops on bare substrate (no soil) | Starts with lichens; takes centuries |
| **Secondary Succession** | Community recovers after disturbance (soil intact) | Starts with grasses/herbs; faster than primary |
| **10% Rule** | ~10% of energy transfers between trophic levels | Explains why food chains are short (4–5 levels max) |
| **Batesian Mimicry** | Harmless species mimics a harmful species | Only the mimic benefits (+/0) |
| **Müllerian Mimicry** | Two harmful species mimic each other | Both species benefit (+/+) |

## Test-Taking Strategies

**Mnemonics to lock in key concepts:**

- **"My Cat Plays Chess"** for species interactions: **M**utualism (+/+), **C**ommensalism (+/0), **P**arasitism/Predation (+/−), **C**ompetition (−/−). Assign +/−/0 to each species in any scenario, then match the pattern.
- **"FIT"** for succession mechanisms: **F**acilitation, **I**nhibition, **T**olerance. FRQ rubrics award explicit points for naming these mechanisms — don't just say "early species help later species."
- **"Primary = Pristine (no soil), Secondary = Soil Survives"** — the fastest way to classify succession type on a timed exam.
- **"BaM"** for mimicry: **Ba**tesian = **B**luffing (harmless mimics dangerous), **M**ullerian = **M**utual warning (both truly dangerous). Batesian is +/0; Müllerian is +/+.
- **"STM"** for resource partitioning: **S**patial, **T**emporal, **M**orphological. Name all three on FRQs when asked how species coexist.

**Cross-topic connections the AP® exam tests:**

- **Community ecology → Evolution (Unit 7):** Resource partitioning and character displacement are products of natural selection. The sequence is: competitive exclusion pressure → resource partitioning → character displacement → natural selection favoring trait divergence. If a question shows beak divergence where two species overlap, you're looking at evolution driven by interspecific competition.
- **Community ecology → Population ecology (Unit 8):** Interspecific competition and predation regulate populations toward carrying capacity (K). A trophic cascade question is a population dynamics question in disguise — predator removal → prey population exceeds K → habitat degradation → carrying capacity decreases.
- **Energy flow → Cellular respiration (Unit 3):** The 90% energy loss at each trophic level occurs because organisms use most consumed energy for ATP production via cellular respiration, releasing heat. Connect the 10% rule explicitly to respiration on FRQs.

**Common question formats:**

- **Interaction identification MCQ:** Use the +/−/0 framework immediately. Read the scenario, assign signs to both species, then match to the interaction type. Don't guess from descriptions like "one species benefits" — always assign signs to both.
- **Trophic cascade FRQ:** Always trace through at least 3 trophic levels, labeling each effect as direct or indirect. Draw the food chain on scratch paper first, then write your answer using the alternating rule: one link away = opposite direction; two links away = same direction.
- **Shannon index calculation:** Set up a table like the worked example above. Calculate each p_i, then ln(p_i), then the product, then sum and negate. Show all steps — partial credit is available.
- **Succession comparison:** Identify primary vs. secondary by checking for soil presence. Then name the pioneer species, the facilitation mechanism, and the expected climax community for the biome described.

**Frequent student mistakes:**

- Confusing keystone and dominant species — keystone = low abundance, huge effect when removed. Dominant = high abundance, high biomass. These are different things.
- Saying energy is "recycled" — only nutrients cycle; energy flows one direction and is lost as heat. Writing "energy is recycled" is an automatic point deduction on FRQs.
- Writing "all pyramids are upright" — only energy pyramids are always upright. Biomass pyramids can be inverted (e.g., open ocean, where phytoplankton turnover is rapid). Number pyramids can also be inverted.
- Confusing fundamental and realized niches — fundamental is the potential range, realized is what actually happens after competition. The realized niche is always a subset of or equal to the fundamental niche.
- Forgetting the FIT mechanisms for succession — "early species change the environment" earns partial credit; naming facilitation, inhibition, and tolerance earns full credit.

**Test-day shortcuts:**

- For 10% rule calculations, move the decimal point left once per trophic level: 10,000 kcal at producers → 1,000 at primary consumers → 100 at secondary consumers → 10 at tertiary consumers. This takes 5 seconds.
- For trophic cascade questions, use the **alternating rule**: populations one link away from the changed species move in the *opposite* direction; two links away move in the *same* direction. Works for both additions and removals.
- If a question gives you species abundance data and asks about diversity, build a two-column table (species | count) before doing anything else. Calculate totals, then proportions. This prevents arithmetic errors under pressure.

**Time management:**

- Community ecology FRQs typically have 4 parts worth 10 points. Budget 2–3 minutes per part. If part (a) asks you to identify an interaction type, spend 30 seconds and move on — don't over-explain.
- For Shannon index calculations, set up the table rather than doing it in your head. 2 minutes of organized calculation beats 4 minutes of confused mental math.
- If a question asks about multiple species in a food web, sketch the web first (30 seconds). This pays off when you need to trace cascades through 3+ trophic levels.

## Check for Understanding

Think you've got it? Complete the quiz below to make sure. Download your results at the end.

Previous topic: [8.4 Effect of Density of Populations](https://www.albert.io/blog/effect-of-density-of-populations-ap-biology-review.md)
Next topic: [8.6 Biodiversity](https://www.albert.io/blog/ecological-biodiversity-ap-biology-review.md)
