Skip to main content
Biology LibreTexts Food Chains and Food Webs

  • Page ID
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Trophic interactions in a community can be represented by diagrams called food chains and food webs. Before discussing these representations in detail, we must first review the basics of energy. Energy flows through a community as a result of trophic interactions.


    Virtually every task performed by living organisms requires energy. In general, energy is defined as the ability to do work, or to create some kind of change. Energy exists in different forms. Examples include light energy, kinetic energy, heat energy, potential energy, and chemical energy.

    When an object is in motion, there is energy associated with that object. Think of a wrecking ball. Even a slow-moving wrecking ball can do a great deal of damage to other objects. Energy associated with objects in motion is called kinetic energy. Heat energy is the energy of motion in matter (anything that takes up space and has mass) and is considered a type of kinetic energy. The warmer the substance, the faster its molecules are moving. The rapid movement of molecules in the air, a speeding bullet, and a walking person all have kinetic energy. Now what if that same motionless wrecking ball is lifted two stories above ground with a crane? If the suspended wrecking ball is not moving, is there energy associated with it? The answer is yes. The energy that was required to lift the wrecking ball did not disappear, but is now stored in the wrecking ball by virtue of its position and the force of gravity acting on it. This type of energy is called potential energy. If the ball were to fall, the potential energy would be transformed into kinetic energy until all of the potential energy was exhausted when the ball rested on the ground. Wrecking balls also swing like a pendulum; through the swing, there is a constant change of potential energy (highest at the top of the swing) to kinetic energy (highest at the bottom of the swing). Other examples of potential energy include the energy of water held behind a dam or a person about to skydive out of an airplane (figure \(\PageIndex{a}\)).

    Water held be a dam (left) and a waterfall (right)
    Figure \(\PageIndex{a}\): Still water has potential energy; moving water, such as in a waterfall or a rapidly flowing river, has kinetic energy. (credit “dam”: modification of work by “Pascal”/Flickr; credit “waterfall”: modification of work by Frank Gualtieri)

    Potential energy is not only associated with the location of matter, but also with the structure of matter. Chemical energy is an example of potential energy that is stored in molecules. When molecules that are higher energy and less stable react to form products that are lower energy and more stable, this stored energy is released. Chemical energy is responsible for providing living cells with energy from food. 

    To appreciate the way energy flows into and out of biological systems, it is important to understand two of the physical laws that govern energy. The first law of thermodynamics states that the total amount of energy in the universe is constant and conserved. In other words, there has always been, and always will be, exactly the same amount of energy in the universe. Energy exists in many different forms. According to the first law of thermodynamics, energy may be transferred from place to place or transformed into different forms, but it cannot be created or destroyed. The transfers and transformations of energy take place around us all the time. Light bulbs transform electrical energy into light and heat energy. Gas stoves transform chemical energy from natural gas into heat energy. Plants perform one of the most biologically useful energy transformations on earth: that of converting the energy of sunlight to chemical energy stored within biological molecules, such as sugars (figure \(\PageIndex{b}\)).

    An ice cream cone (top left), boys on bikes (bottom left), the sun (top right), and a leaf (bottom right).
    Figure \(\PageIndex{b}\): Shown are some examples of energy transferred and transformed from one system to another and from one form to another. The food we consume, represented by the ice cream cone, provides our cells with the chemical energy required to carry out bodily functions. This can be converted into kinetic energy (the energy of motion), which would be needed to ride a bike. Leaves conduct photosynthesis, converting light energy from the sun to chemical energy. (credit “ice cream”: modification of work by D. Sharon Pruitt; credit “kids”: modification of work by Max from Providence; credit “leaf”: modification of work by Cory Zanker)

    The challenge for all living organisms is to obtain energy from their surroundings in forms that are usable to perform cellular work. A living cell’s primary tasks of obtaining, transforming, and using energy to do work may seem simple. However, the second law of thermodynamics explains why these tasks are harder than they appear. All energy transfers and transformations are never completely efficient. In every energy transfer, some amount of energy is lost in a form that is unusable. In most cases, this form is heat energy. For example, when a light bulb is turned on, some of the energy being converted from electrical energy into light energy is lost as heat energy. Likewise, some energy is lost as heat energy during the metabolic reactions that occur in organisms. 

    The concept of order and disorder relates to the second law of thermodynamics. The more energy that is lost by a system to its surroundings, the less ordered and more random the system is. Scientists refer to the measure of randomness or disorder within a system as entropy. High entropy means high disorder and low energy. Living things are highly ordered, requiring constant energy input to be maintained in a state of low entropy.

    Energy Flow

    Cells run on the chemical energy found mainly in carbohydrate molecules, and the majority of these molecules are produced by one process: photosynthesis. Through photosynthesis, certain organisms convert solar energy (sunlight) into chemical energy, which is then used to build carbohydrate molecules (figure \(\PageIndex{c}\)). The energy that is harnessed from photosynthesis enters the communities continuously and is transferred from one organism to another. Therefore, directly or indirectly, the process of photosynthesis provides most of the energy required by living things on Earth. See the Carbon Cycle and Photosynthesis in OpenStax Concepts of Biology for more details about photosynthesis.

    A tree with arrows representing the inputs and outputs of photosynthesis
    Figure \(\PageIndex{c}\): Photosynthesis uses solar energy, carbon dioxide, and water to release oxygen and to produce energy-storing sugar molecules. Image and caption by OpenStax (CC-BY). Access for free at

    Organisms that conduct photosynthesis (such as plants, algae, and some bacteria), and organisms that synthesize sugars  through other means are called producers. Without these organisms, energy would not be available to other living organisms, and life would not be possible. Consumers, like animals, fungi, and various microorganisms depend on producers, either directly or indirectly. For example, a deer obtains energy by eating plants. A wolf eating a deer obtains energy that originally came from the plants eaten by that deer (figure \(\PageIndex{d}\)). Using this reasoning, all food eaten by humans can be traced back to producers that carry out photosynthesis (figure \(\PageIndex{e}\)).

    Deer running quickly through vegetation
    Figure \(\PageIndex{d}\): The energy stored in carbohydrate molecules from photosynthesis passes through the food chain. The predator that eats these deer is getting energy that originated in the photosynthetic vegetation that the deer consumed. (credit: Steve VanRiper, U.S. Fish and Wildlife Service)
    Flow chart demonstrating energy transfer from the sun to producers to consumers. Producers and consumers transfer energy to decomposers.
    Figure \(\PageIndex{e}\): Ultimately, most life forms get their energy from the sun. This flow chart shows energy from the sun being captured by producers, such as plants, through photosynthesis. The energy is transferred to the consumers of the producers, such as animals. Energy can be obtained from producers directly (herbivores eat plants) or indirectly (carnivores eat herbivores). Decomposers eventually breakdown of dead organisms, including plant and animal material, and contribute to the nutrient pool. Fungi and bacteria are decomposers, and worms are detritivores (not shown). During each energy transfer, some of the energy in the system is lost as heat.

    Consumers can be classified based on whether they eat animal or plant material (figure \(\PageIndex{f}\)). Consumers that feed exclusively on animals are called carnivores. Lions, tigers, snakes, sharks, sea stars, spiders, and ladybugs are all carnivores. Herbivores are consumers that feed exclusively on plant material, and examples include deer, koalas, some bird species, crickets, and caterpillars. Herbivores can be further classified into frugivores (fruit-eaters), granivores (seed eaters), nectivores (nectar feeders), and folivores (leaf eaters). Consumers that eat both plant and animal material are considered omnivores. Humans, bears, chickens, cockroaches, and crayfish are examples of omnivores.

    A collage of a lion, ladybug, mule deer, bear, and crayfish
    Figure \(\PageIndex{f}\): Carnivores like the lion (top left) eat primarily meat. The ladybug (lower left) is also a carnivore that consumes small insects called aphids. Herbivores, like the mule deer (middle) eat primarily plant material. Omnivores like the bear (top right) and crayfish (bottom right) eat both plant and animal based food. Lion by Kevin Pluck; ladybug by Jon Sullivan; mule deer by Bill Ebbesen; bear by Dave Menke; crayfish by Jon Sullivan. All from OpenStax (CC-BY). Access for free at

    Dead producers and consumers are eaten by detritivores (which ingest dead tissues) and decomposers (which further break down these tissues into simple molecules by secreting digestive enzymes). Invertebrate animals, such as worms and millipedes, are examples of detritivores, whereas fungi and certain bacteria are examples decomposers. 

    Food Chains

    A food chain is a linear sequence of organisms through which nutrients and energy pass as one organism eats another. Each organism in a food chain occupies a specific trophic level (energy level), its position in the food chain. The first trophic level in the food chain is the producers. The primary consumers (the herbivores that eat producers) are the second trophic level. Next are higher-level consumers. Higher-level consumers include secondary consumers (third trophic level), which are usually carnivores that eat the primary consumers, and tertiary consumers (fourth trophic level), which are carnivores that eat other carnivores. In the Lake Ontario food chain, shown in figure \(\PageIndex{g}\), the Chinook salmon is the apex consumer at the top of this food chain. Some communities have additional trophic levels (quaternary consumers, fifth order consumers, etc.). Finally, detritivores and decomposers break down dead and decaying organisms from any trophic level. There is a single path through a food chain.

    This food chain illustrates the trophic levels in Lake Ontario, from producer to tertiary consumer.
    Figure \(\PageIndex{g}\): These are the trophic levels of a food chain in Lake Ontario at the United States–Canada border. Energy and nutrients flow from photosynthetic green algae (producers) at the base to the primary consumers, which are mollusks, or snails. The secondary consumers are small fish called slimy sculpin. The tertiary and apex consumer is Chinook salmon. Detritivores and decomposers are not shown. (credit: modification of work by National Oceanic and Atmospheric Administration/NOAA)

    One major factor that limits the number of steps in a food chain is energy. Only about 10% of the energy in one trophic level is transferred to the next trophic level. This is because much energy is lost as heat during transfers between trophic levels or to decomposers due to the second law of thermodynamics. Thus, after four to six trophic energy transfers, the amount of energy remaining in the food chain may not be great enough to support viable populations at higher trophic levels (also see Community Productivity and Transfer Efficiency).

    Certain environmental toxins can become more concentrated as they move up the food chain, with the highest concentrations occurring in the top consumers, a process called biomagnification. Essentially, a top consumer ingests all the toxins that had previously accumulated in the bodies of the organisms at the lower trophic levels. This explains why frequently eating certain fish, like tuna or swordfish, increases your exposure to mercury, a toxic heavy metal.

    Food Webs

    While food chains are simple and easy to analyze, there is a one problem when using food chains to describe most communities. Even when all organisms are grouped into appropriate trophic levels, some of these organisms can feed at more than one trophic level. In addition, species feed on and are eaten by more than one species. In other words, the linear model of trophic interactions, the food chain, is a hypothetical and overly simplistic representation of community structure. A holistic model—which includes all the interactions between different species and their complex interconnected relationships with each other and with the environment—is a more accurate and descriptive model. A food web is a concept that accounts for the multiple trophic interactions between each species (figure \(\PageIndex{h}\) and i).

     A terrestrial food web with primary producers (plants), detritivores and decomposers, and multiple levels of consumer.
    Figure \(\PageIndex{h}\): This food web shows the interactions among organisms across trophic levels. Arrows point from an organism that is consumed to the organism that consumes it and represent energy transfer. The producers (plants) capture energy from the sun. The level above the producers shows the primary consumers that eat the producers. Some examples are squirrels, mice, seed-eating birds, and beetles. Spiders and centipedes eat beetles. Robins eat beetles, spiders, and centipedes, and toads eat beetles and centipedes. Foxes eat squirrels and mice; owls eat squirrels, mice, seed-eating birds, and robins; and snakes eat mice, seed-eating birds, robins, centipedes, and toads. Some consumers are in between trophic levels because they eat a combination of primary, secondary, and/or tertiary consumers. All the producers and consumers eventually become nourishment for the decomposers (mushrooms, mold, and bacteria) and detritivores (earthworms) in the soil, which are depicted at the bottom of the illustration. (credit “fox”: modification of work by Kevin Bacher, NPS; credit “owl”: modification of work by John and Karen Hollingsworth, USFWS; credit “snake”: modification of work by Steve Jurvetson; credit “robin”: modification of work by Alan Vernon; credit “frog”: modification of work by Alessandro Catenazzi; credit “spider”: modification of work by “Sanba38″/Wikimedia Commons; credit “centipede”: modification of work by “Bauerph”/Wikimedia Commons; credit “squirrel”: modification of work by Dawn Huczek; credit “mouse”: modification of work by NIGMS, NIH; credit “sparrow”: modification of work by David Friel; credit “beetle”: modification of work by Scott Bauer, USDA Agricultural Research Service; credit “mushrooms”: modification of work by Chris Wee; credit “mold”: modification of work by Dr. Lucille Georg, CDC; credit “earthworm”: modification of work by Rob Hille; credit “bacteria”: modification of work by Don Stalons, CDC)
    This food web shows multiple arrows going to and from consumers, indicating that each eats or is eaten by multiple species.
    Figure \(\PageIndex{i}\): In this food web, each organism may have multiple food sources or be eaten by multiple species. Phytoplankton are the primary producers. They are consumed by sand lances, krill, and zooplankton. Sand lances are consumed by puffins, kittiwake, and cephalopods. Krill are consumed by the sand lance, cephalopods, auklets, and salmon. Zooplankton are consumed by the sand lance, krill, auklets, and salmon. Puffins are eaten by rats and gulls. Kittiwakes are eaten by rats, foxes, and gulls. Cephalopods are consumed by puffins and gulls. Auklets are consumed by gulls and foxes. Salmon are consumed by cephalopods and gulls. Rats are consumed by foxes and gulls. Gulls are consumed by foxes. Detritivores and decomposers are not shown. Image by Mariana Ruiz Villarreal (LadyofHats) for CK-12 Foundation (CC-BY-NC).

    The trophic level of each species in a food web is not necessarily a whole number. In figure \(\PageIndex{i}\), phytoplankton are the primary producers (trophic level 1). Zooplankton only feed on phytoplankton, making them primary consumers (trophic level 2). Determining the trophic level of the other species is more complex. For example, krill eat both phytoplankton and zooplankton. If krill only ate phytoplankton they would primary consumers (trophic level 2). If they ate only zooplankton, they would be secondary consumers (trophic level 3). Since, krill consume both, their trophic level is 2.5.

    Community Productivity and Transfer Efficiency

    The rate at which photosynthetic producers incorporate energy from the sun is called gross primary productivity. In a cattail marsh, plants only trap 2.2% of the energy from the sun that reaches them. Three percent of the energy is reflected, and another 94.8% is used to heat and evaporate water within and surrounding the plant. However, not all of the energy incorporated by producers is available to the other organisms in the food web because producers must also grow and reproduce, which consumes energy. At least half of the 2.2% trapped by cattail marsh plants is used to meet the plants own energy needs. 

    Net primary productivity is the energy that remains in the producers after accounting for the metabolic needs of the producers and heat loss. The net productivity is then available to the primary consumers at the next trophic level. One way to measure net primary productivity is to collect and weigh the plant material produced on a m2 (about 10.7 ft2) of land over a given interval. One gram of plant material (e.g., stems and leaves), which is largely the carbohydrate cellulose, yields about 4.25 kcal of energy when burned. Net primary productivity can range from 500 kcal/m2/yr in the desert to 15,000 kcal/m2/yr in a tropical rain forest.

    In an aquatic community in Silver Springs, Florida, the gross primary productivity (total energy accumulated by the primary producers) was 20,810 kcal/m2/yr (figure \(\PageIndex{j}\)). The net primary productivity (energy available to consumers) was only 7,632 kcal/m2/yr after accounting for energy lost as heat and energy require to meet the producer's metabolic needs. 

    Flow chart of gross and net productivity of each trophic level. The amount of energy available for use decreases with each trophic level.
    Figure \(\PageIndex{j}\): The flow of energy through a spring ecosystem in Silver Springs, Florida. The gross productivity (blue) for each trophic level is listed just above the net productivity (red). Notice that the energy decreases with each increase in trophic level. The energy content of primary producers (gross productivity) is 20,810 kcal/m2/yr. The gross productivity of primary consumers is much smaller, about 3,368 kcal/m2/yr. The gross productivity of secondary consumers is 383 kcal/m2/yr, and the gross productivity of tertiary consumers is only 21 kcal/m2/yr. The net productivity of each trophic level is less than the gross productivity because some energy is used to meet metabolic needs (respiration), and some energy is lost as heat. For example, the net productivity of primary consumers was 1,103 kcal/m2/yr, only about a third of the gross productivity. Some of the energy in each trophic level (a total of 5,060 kcal/m2/yr) is transferred to decomposers. All of the energy initially captured by primary producers (20,810 kcal/m2/yr) is eventually released from the system.

    Only a fraction of the energy captured by one trophic level is assimilated into biomass, which makes it available to the next trophic level. Assimilation is the biomass of the present trophic level after accounting for the energy lost due to incomplete ingestion of food, energy used to conduct work by that trophic level, and energy lost as waste. Incomplete ingestion refers to the fact that some consumers eat only a part of their food. For example, when a lion kills an antelope, it will eat everything except the hide and bones. The lion is missing the energy-rich bone marrow inside the bone, so the lion does not make use of all the calories its prey could provide. In Silver Springs, only 1103 kcal/m2/yr from the 7618 kcal/m2/yr of energy available to primary consumers was assimilated into their biomass. (The trophic level transfer efficiency between the first two trophic levels was approximately 14.8 percent.)

    An animal's source of heat influences its energy needs. Ectotherms, such as invertebrates, fish, amphibians, and reptiles, rely on external sources for body heat, and endotherms, such as birds and mammals, rely on internally generated heat. Generally, ectotherms require less of the energy to meet their metabolic needs and than endotherms do, and therefore, many endotherms have to eat more often than ectotherms. 

    The inefficiency of energy use by endotherms has broad implications for the world's food supply. It is widely accepted that the meat industry uses large amounts of crops to feed livestock, and because a low percentage of this is assimilated into biomass, much of the energy from animal feed is lost. For example, it costs about 1¢ to produce 1000 dietary calories (kcal) of corn or soybeans, but approximately $0.19 to produce a similar number of calories growing cattle for beef consumption. The same energy content of milk from cattle is also costly, at approximately $0.16 per 1000 kcal. Thus, there has been a growing movement worldwide to promote the consumption of non-meat and non-dairy foods so that less energy is wasted feeding animals for the meat industry. 


    Modified by Melissa Ha from the following sources:

    This page titled Food Chains and Food Webs is shared under a CC BY-NC 4.0 license and was authored, remixed, and/or curated by Melissa Ha and Rachel Schleiger (ASCCC Open Educational Resources Initiative) .

    • Was this article helpful?