A food web is the interconnected network of feeding relationships among organisms in an ecosystem. It combines multiple food chains to show the different pathways through which energy and nutrients can move as organisms consume one another. A food chain provides a simplified linear pathway, such as grass being eaten by a rabbit and the rabbit being eaten by a fox, whereas a food web recognises that rabbits may eat several plants, foxes may consume several prey species and those prey species may themselves participate in numerous other feeding relationships. The European Commission defines a food web as interconnected food chains representing feeding relationships within an ecosystem. Food webs therefore provide a more realistic representation of ecological feeding structure than most simple food chains because organisms commonly have multiple food sources and multiple predators.
Food webs are structured around trophic levels, which describe feeding positions. Producers such as plants, algae and some bacteria form the foundation because they manufacture organic compounds from inorganic materials using photosynthesis or, in some environments, chemosynthesis. Primary consumers feed on producers and are often herbivores. Secondary consumers feed on primary consumers, while higher level consumers may feed on several lower trophic levels. Omnivores can occupy more than one trophic level because they consume both plant and animal material.
Decomposers such as fungi and bacteria break down dead organic matter and contribute to nutrient recycling. These categories are useful abstractions rather than rigid boxes because real organisms can change diets, feed across trophic levels and participate in multiple pathways. A single species may therefore occupy different trophic positions depending on what it consumes.
Energy enters most ecosystems through primary production and then moves through feeding interactions. Producers convert external energy, usually sunlight, into chemical energy stored in organic compounds. When a herbivore consumes a plant, some of that stored energy becomes part of the herbivore's biomass. When a predator consumes the herbivore, another portion is transferred. At every stage, however, organisms use much of the acquired energy for metabolism, movement, growth, maintenance and reproduction, with substantial energy ultimately dissipated as heat.
This helps explain why food webs generally contain much less available energy at higher trophic levels than at lower levels. Biomass often decreases towards higher trophic levels as well, although the exact pattern can vary, especially in aquatic ecosystems where producers such as phytoplankton have rapid turnover. Food webs therefore represent both feeding relationships and pathways of energy transfer.
Food webs also describe pathways for movement of matter through ecosystems. Carbon, nitrogen, phosphorus and other elements become incorporated into organisms and can move from producers to consumers and decomposers. When organisms die or produce waste, decomposers break organic compounds down and return chemical elements to the environment. These nutrients can subsequently become available to producers again. Energy and matter therefore behave differently.
Energy generally enters an ecosystem, passes through trophic processes and eventually leaves as heat, whereas matter can be repeatedly recycled. This distinction is essential because a food web is not merely a diagram of animals eating other animals. It is part of a broader ecological system involving production, consumption, decomposition and nutrient cycling. Changes in one trophic relationship can consequently influence both population dynamics and the movement of nutrients through the ecosystem.
Food webs help explain ecological stability and the consequences of species loss. If a predator disappears, its prey may increase, potentially reducing the abundance of organisms lower in the web. If a major herbivore declines, plants may increase while predators that depend on that herbivore decline. These indirect effects are called trophic cascades when changes at one trophic level propagate through other levels. A well known example involves sea otters, sea urchins and kelp forests.
Sea otters prey on sea urchins, while sea urchins consume kelp. When sea otters decline, urchin populations can increase and exert heavier grazing pressure on kelp, potentially transforming productive kelp forests into urchin dominated barrens. This demonstrates why ecological effects cannot always be understood by examining species independently.
Food webs are often represented as diagrams containing nodes and arrows, but interpreting the arrows requires care. In many educational diagrams, arrows point from the organism being eaten towards the organism that consumes it, representing the direction of energy transfer. Other diagrams use arrows to indicate effects rather than energy flow, so the convention must be identified before interpretation.
A food web can also be represented quantitatively using interaction strengths, biomass, abundance or energy flow rather than simply showing whether a feeding relationship exists. Modern ecological research may use network analysis to investigate connectance, modularity, interaction strength, trophic position and vulnerability to species removal. These methods can reveal that not all links are equally important. A species with many feeding connections may be highly influential, but a species with fewer connections can also be crucial if those connections involve strong interactions or irreplaceable resources.
Food webs are affected by environmental disturbances and human activities. Habitat destruction can remove producers or consumers, pollution can alter reproduction and survival, overfishing can remove predators or prey, invasive species can introduce new feeding relationships, and climate change can shift species distributions and seasonal timing. The effects can propagate through several trophic levels. A pesticide that reduces insects may affect insect eating birds, while nutrient enrichment can increase algae and subsequently alter oxygen conditions and aquatic communities.
Toxic substances can also accumulate within organisms and become more concentrated at higher trophic levels through bioaccumulation and biomagnification. Food web analysis is therefore important in conservation, fisheries management, ecological restoration, pollution assessment and ecosystem modelling. It provides a way to understand indirect effects that would be missed by considering only direct interactions.
A food web differs from a food chain primarily in complexity and ecological realism. A food chain is a single pathway of feeding relationships, whereas a food web contains the many overlapping pathways occurring within an ecosystem. Neither concept should be interpreted as a literal complete representation of all ecological interactions because organisms also interact through competition, mutualism, parasitism, disease and habitat modification. Food webs focus specifically on feeding relationships, although those relationships can influence many other ecological processes.
A food web can also change through time as populations fluctuate, seasons change and organisms alter their diets. Its value lies in showing ecological connectedness. Removing one organism can affect multiple pathways simultaneously, while maintaining alternative food sources can sometimes buffer ecosystems against individual species losses. Understanding this network structure is therefore essential for interpreting population changes and ecosystem responses to disturbance.