By Kurnia · Published November 10, 2026 · Version 1 · 22 min read
Ecosystems and energy flow
producers, consumers, and decomposers, food chains and food webs, productivity and energy transfer efficiency, biomagnification, and population growth
The kitchen of a beachfront resort hotel faces two questions in one week: why large predatory fish such as swordfish and shark are avoided for pregnant women while small fish from the same waters are not, and why the rats in the food waste area came back two months after they were trapped. This chapter explains ecosystems, producers, consumers, and decomposers, food chains and food webs, gross and net primary productivity, trophic level transfer efficiency and net production efficiency with the Silver Springs data, ecological pyramids, the biomagnification of DDT, PCBs, and mercury along with Indonesian rules on mercury, and exponential and logistic population growth with carrying capacity. The worked examples calculate the energy left at the top of a chain, the concentration of a persistent substance at each level, and why cleaning up food waste matters more than trapping rats.
The kitchen of a beachfront resort hotel faces two questions in the same week. A pregnant guest has read food safety guidance from abroad that asks pregnant women not to eat swordfish and shark, and asks why small fish from the same waters are not ruled out. Behind the kitchen, the pest control operator has just trapped dozens of rats around the food waste holding area, but two months later the number of rats in the monitoring traps is back almost to where it started. The building technician is also called to the meeting, because the waste holding area, the drains, and the back door are part of the technician’s work area.
Both events are explained by two ideas from ecology. Energy flows in one direction from producers to consumers and shrinks at every feeding level, so top predators are few in number and accumulate the substances that do not break down from all their prey. A population grows up to a limit set by its resources, so a population that is reduced without reducing its food will grow back. The detailed answer for the rat case is in Example 6.
Scope
This chapter covers ecosystems, producers, consumers, and decomposers, food chains and food webs, productivity and energy transfer efficiency, ecological pyramids, biomagnification, and population growth. Cycles of matter such as carbon, nitrogen, and phosphorus are covered in Chapter 48 on biogeochemical cycles; the greenhouse effect in Chapter 49; biodiversity and conservation in Chapter 50; natural selection in Chapter 42 on evolution and natural selection. The biology of rats and cockroaches and how to control them are in Chapter 12 on pests in kitchens, laundries, and buildings; microbial growth in Chapter 1; exponential and logarithmic functions in Chapter 9 · Units & Mathematics; the laws of thermodynamics in Chapter 16 · Physics and Chapter 17 · Physics; and chemoautotrophic bacteria in Chapter 17 on microbial metabolism.
This chapter does not give dietary advice for particular people. Questions about the safety of fish for pregnant women or children are passed on to a health professional.
Ecosystems and their balance
An ecosystem is a community of living things together with their interactions with the nonliving (abiotic) environment. An ecosystem can be small, like a tide pool on a rocky shore, or large, like the Amazon rainforest. There are three broad classes by environment: freshwater, marine, and terrestrial. Marine ecosystems are the most common and cover more than 70 percent of the Earth’s surface, and marine phytoplankton carry out 40 percent of all photosynthesis on Earth. Freshwater ecosystems are the rarest, covering only 1.8 percent of the Earth’s surface, but are very diverse in what they contain.
Ecosystems continually receive disturbances, that is, environmental changes that alter their composition, for example year-to-year variation in rainfall, forest fires caused by lightning, or human activities such as agriculture, air pollution, deforestation, overfishing, eutrophication, and oil spills. Equilibrium is the steady state of an ecosystem in which all organisms are in balance with their environment and with one another. The resistance of an ecosystem is its ability to remain at equilibrium despite a disturbance, while resilience is the speed with which it returns to equilibrium after a disturbance. A disturbance that is too large can wipe out resilience altogether, so the ecosystem is damaged or changes beyond return.
An example of ecosystem dynamics with direct consequences for people occurred in the southwestern United States in 1993. Wet weather raised the production of pine nuts, the deer mouse population surged, and those mice carried the Sin Nombre hantavirus, which causes a deadly respiratory illness. Traditional Navajo healers, who had long observed the link between rainfall and mouse populations, predicted the outbreak. The causal chain from food to rodent population to disease also applies behind a hotel kitchen.
Producers, consumers, and decomposers
Living things obtain energy in three ways: photosynthesis, chemosynthesis, and eating other organisms, alive or dead. An autotroph is an organism that can make its own food using inorganic carbon as its carbon source. Photoautotrophs such as plants, algae, and photosynthetic bacteria use sunlight and are the energy source for most of the world’s ecosystems. Chemoautotrophs use energy from inorganic molecules; they are generally bacteria in dark caves or at hydrothermal vents on the seafloor, and many of them use hydrogen sulfide from those vents.
A trophic level is the position of a species or group of species in a food chain or food web. Primary producers occupy the base, usually plants or phytoplankton. Primary consumers are herbivores that eat producers, secondary consumers are usually carnivores that eat herbivores, tertiary consumers are carnivores that eat carnivores, and apex consumers are at the end of the chain.
Decomposers are organisms that live on decaying organic matter, usually bacteria and fungi, together with the animals that feed on remains (detritivores). Decomposers return organic matter to the living part of the ecosystem when they themselves are eaten by other organisms, and by breaking down dead matter they make mineral nutrients available again to producers. Without decomposers, matter would pile up as carcasses and remains; this role is discussed further in Chapter 48 on biogeochemical cycles.
Food chains and food webs
A food chain is a linear sequence of organisms through which nutrients and energy pass, from primary producers to higher-level consumers, along a single path. In Lake Ontario, on the border between the United States and Canada, for example, energy flows from green algae through successive consumers to Chinook salmon as the apex consumer, with only three energy transfers.
Most organisms feed at more than one trophic level and are eaten by predators from several levels. For that reason a food chain does not describe an ecosystem completely. A food web is a nonlinear picture that connects many producers and consumers and all their interactions. The opossum shrimp in Lake Ontario, for example, eats primary producers and primary consumers alike. Food chains are easier to follow and are used for analytical models and experiments, while food webs describe the structure and dynamics of an ecosystem more accurately.
There are two types of food web that are usually present together. A grazing food web is based on plants or other photosynthetic organisms, followed by herbivores and carnivores. A detrital food web is based on decomposers and detritivores that feed on dead organic matter. The hotel’s food waste holding area is the base of an artificial detrital web: bacteria, fungi, flies, cockroaches, and rats all live on the same dead organic matter.
Productivity and energy transfer efficiency
Biomass is the total mass of living or once-living organisms per unit area in one trophic level at the time of measurement. Gross primary productivity is the rate at which photosynthetic producers capture solar energy. Net primary productivity is the energy left in the producers after subtracting respiration and heat loss; this is the energy available to primary consumers.
where is gross primary productivity, is the energy used for respiration and lost as heat, and is net primary productivity, all in kcal/m² per year.
The pioneering study by Howard T. Odum of the Silver Springs spring ecosystem in Florida, United States, carried out in the 1940s and published in 1957, measured a gross primary productivity of 20,810 kcal/m² per year, of which 13,187 was used for respiration or lost as heat. Of the net productivity, 4,250 kcal/m² per year flowed to decomposers and 3,373 was eaten by primary consumers, which then produced 1,103 kcal/m² per year.
Trophic level transfer efficiency (TLTE) is the ratio of production at one trophic level to production at the level before it:
where is the production of trophic level and is the production of the level below it, in the same units of energy per area per time. At Silver Springs, the TLTE from producers to primary consumers is about 14.5 percent. This low efficiency is what usually limits the length of food chains: after four to six transfers, the energy left is not enough to support another trophic level.
Energy shrinks because of the second law of thermodynamics: every change in the form of energy is accompanied by a tendency toward disorder, and in living things that energy is released as metabolic heat. The first law still holds, so at Silver Springs all the energy captured by the producers ultimately leaves as heat and respiration. Both laws are discussed in Chapter 16 · Physics and Chapter 17 · Physics.
Net production efficiency (NPE) measures how efficiently a trophic level converts the energy it takes in into biomass:
where is net consumer productivity, that is, the energy available to the next level, and is assimilation, that is, the energy taken in after subtracting food not eaten completely, respiration, and waste. Cold-blooded animals (ectotherms) such as insects, fish, amphibians, and reptiles use less energy for respiration and heat than warm-blooded animals (endotherms) such as birds and mammals, so the NPE of ectotherms is generally ten times higher. The NPE of leaf-eating caterpillars has been measured at 18 percent, while the NPE of acorn-eating squirrels can be as low as 1.6 percent.
Ecological pyramids
An ecological pyramid is a picture of the number of organisms, the biomass, or the energy at each trophic level, first described by Charles Elton in the 1920s. The three answer different questions, and only one is always upright.
A pyramid of numbers can be upright or inverted. A grassland in summer has many plants at the base, while a temperate forest has a few trees that support many insects. A pyramid of biomass can also be inverted. In the English Channel, the biomass of primary producers is 4 g/m², while that of primary consumers is 21 g/m². The cause is not that the producers are less productive, but the high turnover rate of the phytoplankton: phytoplankton are eaten quickly, so their biomass at any one moment is small, but they also reproduce quickly.
A pyramid of energy is always upright. Each level must obtain its energy from the level below it, and some energy is always lost as heat at every transfer, so the energy at a higher level must be smaller. That is why the pyramid of energy is the most consistent model of energy flow. Biomass at one moment is not the same as the rate of production, just as warehouse stock is not the same as the rate at which goods come in.
Biomagnification
Biomagnification is the increase in the concentration of a persistent toxic substance in the bodies of organisms at each trophic level, from primary producers to apex consumers. The substance is persistent because the body does not easily break it down or excrete it. A predator eats many prey from the level below it over its lifetime; most of their energy is burned and released as heat, but the persistent substance from all those prey stays behind. The mechanism that makes energy shrink at each level is the same mechanism that makes persistent substances become concentrated.
The pesticide DDT is the best-known example. The marine biologist Rachel Carson described it in the book Silent Spring in the 1960s. Fish-eating birds, as apex consumers, accumulated enough DDT that their eggshells became fragile, eggs broke more often during incubation, and their populations were affected. DDT was banned in the United States in the 1970s.
Other substances that undergo biomagnification are PCBs, which were used in coolant fluids in the United States until they were banned in 1979, and heavy metals such as mercury, lead, and cadmium. A NOAA study in Saginaw Bay, Lake Huron, found that PCB concentrations rose from phytoplankton through the fish levels, and walleye, as the apex consumer, contained more than four times the PCB concentration of the phytoplankton. Birds that eat those fish can have PCB concentrations at least ten times higher than the lake fish.
Guidance from the United States EPA asks people who are pregnant and young children not to eat fish high in mercury, including swordfish, shark, king mackerel, and tilefish, and recommends low-mercury fish such as salmon, tilapia, shrimp, pollock, and catfish. This US guidance is mentioned here as an example, not as advice for any particular person.
In Indonesia, the maximum limits for heavy metal contamination, including mercury, in processed food are regulated by Peraturan BPOM (Indonesian Food and Drug Authority) Nomor 9 Tahun 2022 tentang Persyaratan Cemaran Logam Berat dalam Pangan Olahan. Indonesia has also ratified the Minamata Convention on Mercury through Law (Undang-Undang) Number 11 of 2017, which aims to protect human health and the environment from anthropogenic emissions and releases of mercury and its compounds. The limit for each type of food is read directly from the annex of the regulation in force; this chapter does not quote it.
Population growth and carrying capacity
A population is a group of individuals of one species in one area. If resources are unlimited, a population shows exponential growth: the number of individuals added per generation keeps getting larger. Bacteria that divide roughly every hour, starting from 1,000 cells in a flask with unlimited nutrients, become 2,000, then 4,000, then 8,000, and after a day, or 24 divisions, more than 16 billion. The instantaneous rate is written:
where is the number of individuals, is time, and are the per capita birth and death rates, is the intrinsic rate of increase per unit time, is the initial number, and is the doubling time. If is positive the population rises, if it is negative the population falls, and if it is zero there is zero population growth. The maximum value of for a species under ideal conditions is called its biotic potential, . Exponential and logarithmic forms are discussed in Chapter 9 · Units & Mathematics.
The exponential curve is J-shaped and cannot continue indefinitely in the real world. Carrying capacity () is the largest population size an environment can support. The logistic growth model includes carrying capacity as a brake:
When is small, the factor is close to 1 and the population grows almost exponentially. When approaches , the factor approaches zero and growth stops; if exceeds , the factor is negative and the population declines. The result is an S-shaped curve. The greatest growth rate occurs at and equals . This model assumes that is fixed and that every individual has equal access to resources.
Reality is more complicated. Yeast in a test tube shows the classic S curve, but populations of seals and sheep in nature overshoot their carrying capacity briefly and then fall below it, oscillating around . Carrying capacity itself changes from year to year with weather, disasters, and competition with other species. The buildup of waste can also lower carrying capacity.
The factors that regulate populations fall into two groups. Density-dependent factors have a stronger effect as the population becomes denser; they are generally biotic factors such as predation, competition, waste buildup, and disease. Density-independent factors kill regardless of density; they are generally physical or chemical factors such as weather, natural disasters, and pollution. A dense population that is reduced by a density-independent factor recovers faster than a sparse population, because many individuals are still breeding.
The human population also grows exponentially, because humans raise their carrying capacity through agriculture, sanitation, antibiotics, and vaccines. Adding one billion people, reached in 1930, took 123 years, whereas adding two billion between 1975 and 1999 took only 24 years.
Application at the hotel: food waste, rats, and fish on the menu
The food waste holding area is a large source of energy for the detrital web and for rodents. Trapping or poisoning rats is a mortality factor that lowers , but it does not lower . As long as food waste, water, and shelter remain available, the remaining population is far below carrying capacity and in fact grows fastest, as calculated in Example 6. The work that lowers is mostly engineering work: tightly closed waste containers, floors and drains that leave no grease or scraps, sealed gaps and pipe penetrations, and doors that close tightly, as in Chapter 12 on pests.
For fish on the menu, the principle is trophic position. Large, long-lived predatory fish sit near the top of the marine food chain and accumulate mercury from many levels below them, while small plankton-eating fish sit near the base. The choice of suppliers and menu follows food safety rules and the decision of the executive chef; guests’ questions about their personal health are directed to a health professional.
Worked example
The figures in the examples below are practice figures, unless their origin is stated.
Example 1: net productivity at Silver Springs. With Odum’s data, net primary productivity is kcal/m² per year, or of gross productivity. Of that amount, flows to decomposers and is eaten by primary consumers, and the two parts add up to exactly 7,623. Primary consumers produce 1,103, so . More than half of the producers’ net production in that spring goes into the detrital web, not to herbivores.
Example 2: the energy left at the top of the chain. A summary presentation of Odum’s study records energy of 20,819 kcal/m² per year in the producers, 3,368 in the primary consumers, 383 in the secondary consumers, and 21 in the tertiary consumers; the figures differ slightly from Example 1 because of how they are presented. The ratios between levels are , , and . From base to top, . With so little left, there is almost no energy for one more level of consumers.
Example 3: caterpillars and squirrels. To build 100 kcal of biomass, a caterpillar with an NPE of 18 percent has to assimilate kcal, while a squirrel with an NPE of 1.6 percent has to assimilate kcal. The squirrel needs times the caterpillar’s energy for the same yield, in line with the difference of about ten times between ectotherms and endotherms. That is why endotherms have to eat more often.
Example 4: an inverted pyramid of biomass. In the English Channel, the biomass of the producers is 4 g/m² and that of the primary consumers 21 g/m², so the consumers are times the producers. Suppose the phytoplankton produce 2 g/m² of new biomass per day. The 4 g/m² stock is replaced every days, and in a year its production is g/m², or times the stock visible at any one moment. A small amount of producers can feed heavier consumers because of their rate of production, not their stock.
Example 5: mercury along a marine food chain. Suppose the mercury concentration in phytoplankton is 0.004 mg/kg and each level concentrates it five times, so . A plankton-eating fish at level 3 contains mg/kg, and a large predatory fish at level 5 contains mg/kg, which is times the phytoplankton concentration and 25 times that of the small fish from the same waters. The factor of five is an example figure; the Saginaw Bay study only states that walleye had more than four times the phytoplankton level for PCBs, and real figures differ by substance, species, and body of water.
Example 6: the rats behind the kitchen. Suppose the food waste in the holding area gives a carrying capacity of rats and per week. Trapping brings the population down from 120 to 30 rats. Its growth rate is then rats per week, and at 60 rats it rises to rats per week, the greatest rate, . The solution of the logistic model, , gives 110 rats when , that is, after weeks, roughly two months. If the waste is tightly covered and the scraps are cleaned up so that falls to 20, at 30 rats the rate is rats per week: the population shrinks without any additional trapping. This model is crude, but the direction of the decision is clear: lowering matters more than lowering .
Stop conditions
Stop work at that point and hand over to the party named if:
- A technician finds rat droppings, nests, gnaw marks, or carcasses in the kitchen, food storeroom, ceiling space, or machine room. Dry droppings are not swept, blown, or vacuumed; the area is marked, the supervisor is notified, and the licensed pest control operator and building occupational safety and health (K3) take over, as in Chapter 12.
- There is a plan to use rat poison, insecticide, or another pesticide in the garden, the pond, or near a drain. The technician does not mix or spread it personally; the licensed operator decides on the product and the location, because persistent substances can enter the food chain.
- Carcasses of birds, fish, or other animals are found in unusual numbers in the pond or garden. The carcasses are not handled with bare hands; the supervisor and the building’s environmental officer are notified so that the cause can be investigated.
- A lamp or device containing mercury breaks. The fragments are not thrown into the ordinary trash or down a drain; the area is cleared and the environmental officer or K3 handles it as hazardous waste according to the building’s procedure.
- A guest or coworker asks whether a fish is safe for pregnancy, for a child, or for their illness. Engineering staff do not give advice; the question is passed on to the executive chef for the menu and to a health professional for the person’s own health.
- A supplier asks the kitchen to accept fish without information on origin or quality. Acceptance is postponed and the decision is handed to the executive chef and the food safety department, with reference to the BPOM rules in force.
Common misinterpretations
Guess what’s wrong first, then open the explanation.
Common misconception
Energy is recycled in an ecosystem like matter.
Why is it wrong?
Matter circulates in cycles, but energy flows in one direction and is ultimately released as heat; an ecosystem always needs a new input of energy from the sun or from chemical compounds.
Common misconception
Ten percent of the energy always passes to the next level.
Why is it wrong?
Transfer efficiency differs between ecosystems and between levels; at Silver Springs it is about 14.5 percent from producers to primary consumers, and much smaller at the upper levels.
Common misconception
A small producer biomass means the ecosystem is poor.
Why is it wrong?
A pyramid of biomass can be inverted because producers such as phytoplankton turn over quickly; what determines support for consumers is the rate of production, which shows in the pyramid of energy.
Common misconception
Large fish contain more mercury because their water is more polluted.
Why is it wrong?
Large and small fish can live in the same water; the difference comes mainly from trophic position, because predators accumulate persistent substances from many prey.
Common misconception
The pests have been exterminated, so the problem is solved.
Why is it wrong?
As long as carrying capacity stays the same, the remaining population grows fastest; closing off sources of food, water, and shelter is what lowers carrying capacity.
Links to other chapters
Chapter 48 on biogeochemical cycles continues this chapter from the side of matter cycling through producers, consumers, and decomposers. Chapter 49 covers the greenhouse effect and climate change, and Chapter 50 biodiversity and conservation. Chapter 12 on pests applies the concept of carrying capacity in kitchens and buildings, Chapter 1 on microbial growth and Chapter 9 · Units & Mathematics on exponents and logarithms give the mathematical basis of growth, Chapter 16 · Physics and Chapter 17 · Physics explain the laws of thermodynamics, Chapter 17 covers microbial metabolism including chemoautotrophs, and Chapter 42 natural selection.
Exercises and worked solutions
Try to answer first, then open the worked solution.
The producers in a pond produce 10,000 kcal/m² per year and the herbivores produce 1,200 kcal/m² per year. What is the TLTE, and how much energy is available to carnivores if the next TLTE is 10 percent?
Check my answer
See the worked solution
TLTE . Carnivores receive kcal/m² per year, so from the base to the carnivores only 1.2 percent of the producers’ energy remains.
Farmed fish have an NPE of 10 percent and chickens 1 percent. How much energy must each assimilate to build 50 kcal of biomass?
Check my answer
See the worked solution
The fish need to assimilate kcal, while the chickens need kcal. Chickens, as endotherms, burn more energy for body heat, so they need ten times the assimilation for the same yield.
Calculate the number of bacteria after 24 divisions if there are 1,000 cells at the start. Does it match “more than 16 billion”?
Check my answer
See the worked solution
, roughly 16.8 billion cells. This figure is indeed more than 16 billion, and it is reached only if nutrients are unlimited and no cells die.
A population has and per week. Calculate its growth rate at and , and its doubling time if it grows exponentially.
Check my answer
See the worked solution
At , individuals per week, which is the greatest rate, . At , individuals per week, because carrying capacity has almost been reached; the doubling time if growth were exponential is weeks.
A predatory fish contains 0.8 mg/kg of mercury and is three levels above the phytoplankton. If each level concentrates it four times, what is the concentration in the phytoplankton?
Check my answer
See the worked solution
Concentration over three levels is times, so the phytoplankton concentration is mg/kg. A very small concentration at the base of the chain can still become high at the top, because predators eat many prey and the persistent substance is not excreted.
Why is the pyramid of energy always upright, even though pyramids of numbers and biomass can be inverted?
Check my answer
See the worked solution
Each level obtains energy only from the level below it, and at every transfer some energy is released as heat according to the second law of thermodynamics. Numbers and biomass are states at one moment, so one large tree or fast-turning phytoplankton can support consumers that are more numerous or heavier.
References
External sources
- OpenStax: Biology 2eopenstax.org
- Peraturan Badan Pengawas Obat dan Makanan Nomor 9 Tahun 2022 tentang Persyaratan Cemaran Logam Berat dalam Pangan Olahanperaturan.bpk.go.id
- Undang-undang (UU) No. 11 Tahun 2017 Pengesahan Minamata Convention On Mercury (Konvensi Minamata Mengenai Merkuri)peraturan.bpk.go.id
Revision history
| Date | Version | Change |
|---|---|---|
| November 10, 2026 | 1 | First published |
How to cite
Kurnia (2026). Ecosystems and energy flow: producers, consumers, and decomposers, food chains and food webs, productivity and energy transfer efficiency, biomagnification, and population growth. ARSTEMA Academy. Revised November 10, 2026. arstema.com/en/academy/konsep/ekosistem-dan-aliran-energi-produsen-konsumen-dan-pengurai-rantai-dan-jaring-makanan-produktivitas-dan-efisiensi-transfer-energi-biomagnifikasi-serta-pertumbuhan-populasi
Self-check · 3 questions
Check your understanding before moving on
Write your answer in your own words, then compare it with the worked solution from this chapter’s exercises. The system doesn’t judge open answers as right or wrong; you decide which parts you’ve understood.
The producers in a pond produce 10,000 kcal/m² per year and the herbivores produce 1,200 kcal/m² per year. What is the TLTE, and how much energy is available to carnivores if the next TLTE is 10 percent?
Farmed fish have an NPE of 10 percent and chickens 1 percent. How much energy must each assimilate to build 50 kcal of biomass?
Calculate the number of bacteria after 24 divisions if there are 1,000 cells at the start. Does it match “more than 16 billion”?
Nearby chapters
Reading order by shelf: Biology & Microbiology · Chapter 48.
Reading order by shelf: Biology & Microbiology · Chapter 46.
Another chapter in Biology & Microbiology.