Food Webs and Food Chains: How Energy Moves Through Ecosystems

Updated June 2026
A food web is the network of all feeding relationships within an ecosystem, showing how energy and nutrients pass from one organism to another. Food chains are linear pathways within this network, tracing the flow of energy from a single producer through a series of consumers. Together, food chains and food webs reveal the fundamental structure of ecosystems and explain why disruptions to one species can cascade through an entire biological community.

Food Chains: The Basic Pathway

A food chain is a linear sequence of organisms through which energy flows, beginning with a primary producer and ending with a top predator. In a typical terrestrial food chain, a grass plant captures solar energy through photosynthesis, a grasshopper eats the grass, a frog eats the grasshopper, a snake eats the frog, and a hawk eats the snake. Each step in this sequence is called a trophic level. Producers occupy the first trophic level, primary consumers (herbivores) the second, secondary consumers the third, and so on.

Most food chains are short, typically containing three to five trophic levels. This limit exists because of the inefficiency of energy transfer between levels. On average, only about 10 percent of the energy consumed at one trophic level is converted into biomass at the next level. The remaining 90 percent is used for metabolic processes, lost as heat, or excreted as waste. By the time energy reaches the fourth or fifth trophic level, so little remains that it cannot support another level of consumers in most ecosystems.

The length of food chains varies among ecosystems and is influenced by several factors including ecosystem productivity, environmental stability, and ecosystem size. More productive ecosystems can support longer food chains because more energy enters the system at the base. Stable environments tend to have longer food chains than highly disturbed ones, because top predators require time and consistent resources to establish populations. Larger ecosystems generally support longer food chains than smaller ones, because they provide more habitat and resources for top predators.

From Chains to Webs: The Full Picture

In nature, organisms rarely eat just one type of food or serve as prey for just one predator. A single species may function as a primary consumer when it eats plants and as a secondary consumer when it eats insects. Bears, for example, eat berries, fish, insects, and small mammals, spanning multiple trophic levels simultaneously. This complexity means that the feeding relationships in any real ecosystem form an intricate web rather than a simple chain.

Food webs are constructed by mapping all the feeding interactions in a community. Each species is represented as a node, and each feeding relationship as a link between nodes. The resulting network reveals patterns that are invisible when looking at individual food chains. Some species have many connections, serving as important hubs in the network. Others have few connections and are more peripheral. The structure of the web determines how disturbances propagate through the community and how resilient the ecosystem is to species loss.

Ecologists distinguish between different types of food webs based on what information they include. Connectance webs simply show which species eat which, without indicating the strength of the interaction. Energy flow webs quantify the actual amount of energy flowing along each link. Functional webs identify which feeding links are most important for controlling population dynamics. Each type of web provides different insights into how the community operates, and combining them gives the most complete picture of ecosystem function.

Trophic Levels and Ecological Pyramids

Trophic levels categorize organisms by their position in the food web. The first trophic level consists of autotrophs, organisms that produce their own food from inorganic sources. Most autotrophs are photosynthetic plants, algae, or cyanobacteria, but a small number are chemosynthetic bacteria that derive energy from chemical reactions. The second trophic level consists of herbivores, animals that eat producers directly. The third level consists of primary carnivores, and the fourth consists of secondary carnivores or top predators.

Detritivores and decomposers occupy a special position in food webs. They feed on dead organic matter and waste products from all trophic levels, breaking down complex organic molecules into simpler inorganic forms that producers can use. Decomposers, primarily bacteria and fungi, process the vast majority of energy that flows through most ecosystems. Without them, nutrients would remain locked in dead organisms and ecosystems would cease to function.

Ecological pyramids visualize the distribution of energy, biomass, or numbers across trophic levels. Energy pyramids are always upright, with the most energy at the producer level and progressively less at each higher level. Biomass pyramids are usually upright in terrestrial ecosystems but can be inverted in aquatic systems where phytoplankton, despite having less standing biomass than their consumers at any given moment, reproduce so rapidly that their total productivity exceeds that of the zooplankton that eat them.

Keystone Species and Trophic Cascades

Not all species in a food web are equally important to community structure. Keystone species have effects on their ecosystems that are disproportionately large relative to their biomass or abundance. The concept was introduced by Robert Paine in 1969 based on his experiments with the sea star Pisaster ochraceus in intertidal communities of the Pacific Northwest. When Paine removed the sea stars from experimental plots, mussels monopolized the rock surfaces and most other species disappeared. The predatory sea star, by keeping mussel populations in check, maintained space for dozens of other species.

Trophic cascades occur when changes at one trophic level ripple through the food web, affecting species at multiple levels. The most famous example is the reintroduction of wolves to Yellowstone National Park. After wolves were eliminated in the 1920s, elk populations grew unchecked and overgrazed streamside vegetation. When wolves were reintroduced in 1995, they reduced elk numbers and changed elk behavior, causing them to avoid valleys and other areas where they were vulnerable to predation. Streamside willows and aspens recovered, stabilizing riverbanks, increasing beaver populations, and benefiting fish, songbirds, and many other species.

Trophic cascades can also work from the bottom up. When nutrient inputs to a lake increase, algal blooms can trigger a chain reaction through the food web, increasing zooplankton, then fish populations, and potentially altering the entire community structure. Understanding trophic cascades is critical for ecosystem management because it reveals how interventions at one point in the food web can have far-reaching and sometimes unexpected consequences.

Detrital Food Webs

Most discussions of food webs focus on the grazing food web, where energy flows from living producers to herbivores and then to predators. However, in many ecosystems, more energy actually flows through the detrital food web, where dead organic matter is consumed by detritivores and decomposed by bacteria and fungi. In temperate forests, for example, only about 10 percent of leaf production is consumed by herbivores while it is alive. The remaining 90 percent falls to the forest floor and enters the detrital food web.

Detrital and grazing food webs are not separate systems. They interact constantly. Nutrients released by decomposers fertilize plants, fueling the grazing web. Predators in the grazing web, such as spiders and birds, feed on detritivores like earthworms and millipedes. In soil ecosystems, the food web is extraordinarily complex, with dozens of trophic groups including bacteria, fungi, protozoa, nematodes, mites, springtails, and larger invertebrates all interacting in networks that regulate nutrient availability and soil structure.

Human Impacts on Food Webs

Human activities are disrupting food webs worldwide in multiple ways. Overfishing removes top predators from marine ecosystems, triggering trophic cascades that restructure entire communities. The removal of large sharks from coastal waters, for example, has allowed populations of rays and skates to explode, which in turn have devastated shellfish populations in some regions. Agricultural chemicals, particularly insecticides, can eliminate key species from food webs, disrupting pollination networks and natural pest control services.

Invasive species insert new links into food webs, often with devastating consequences. When the Nile perch was introduced to Lake Victoria in Africa during the 1950s, it consumed hundreds of native cichlid fish species, driving many to extinction and fundamentally restructuring the lake food web. Climate change is altering food web dynamics by changing the timing of seasonal events, causing mismatches between predators and their prey, and shifting species ranges in ways that create novel food web configurations with no historical precedent.

Emerging research continues to reveal new dimensions of food web complexity. Parasites, long overlooked in food web studies, can account for a substantial fraction of all links in a food web and may collectively outweigh top predators in biomass. Incorporating parasites into food web models changes estimates of connectance, chain length, and energy flow. Similarly, the microbial food web, consisting of bacteria, archaea, protists, and viruses, processes enormous amounts of energy in aquatic and soil ecosystems but is only beginning to be integrated into traditional food web frameworks. As ecologists develop more comprehensive food web models that include these previously hidden components, our understanding of ecosystem function continues to deepen.

Key Takeaway

Food webs map the complex feeding relationships in ecosystems, revealing how energy flows, which species are most important, and how disturbances propagate through communities.