Skip to content
Tutorials Center
My learning

Topics

Lesson 6 of 37 ยท Ecosystems and Resources

Energy Flow and Food Webs

Follow energy from the Sun through producers, consumers and decomposers, learn the 10 percent rule, and compute an energy pyramid with Python.

Every living thing needs energy. In almost every ecosystem on Earth, that energy begins as sunlight. Plants, algae and some bacteria capture it and store it in chemical form, and everything else eats, directly or indirectly, what they have made. This lesson follows the energy as it moves, shows why it is always lost along the way, and explains why food chains are short.

Producers, consumers and decomposers

Organisms are grouped by how they obtain energy.

  • Producers (autotrophs) make their own food. Most use photosynthesis, turning carbon dioxide and water into sugars with light energy: 6COโ‚‚ + 6Hโ‚‚O + light โ†’ Cโ‚†Hโ‚โ‚‚Oโ‚† + 6Oโ‚‚. Some bacteria near deep-sea vents use chemical energy instead (chemosynthesis).
  • Consumers (heterotrophs) get energy by eating other organisms. Primary consumers (herbivores) eat producers, secondary consumers eat herbivores, and tertiary consumers eat secondary consumers. Omnivores eat both plants and animals.
  • Decomposers (bacteria and fungi) break down dead material and waste and return nutrients to the soil or water. Detritivores, such as earthworms and woodlice, eat dead matter in small pieces.

Each step in the feeding sequence is a trophic level (from the Greek for "nourishment").

Food chains and food webs

A food chain shows one path of energy: grass โ†’ grasshopper โ†’ frog โ†’ snake โ†’ hawk. Arrows point in the direction energy flows, from the organism eaten to the one that eats it.

Real ecosystems are tangled, because most animals eat several things. A food web shows all the connections.

flowchart LR
    G["Grass"] --> Gh["Grasshopper"]
    G --> M["Mouse"]
    Gh --> F["Frog"]
    Gh --> B["Small bird"]
    M --> S["Snake"]
    F --> S
    M --> H["Hawk"]
    B --> H
    S --> H

A simple food web. Arrows point from the food to the eater. The hawk feeds at more than one trophic level.

If one species disappears, a web with many connections can often adjust. A web with few connections is more fragile.

Energy is lost at each step

Energy flows in one direction through an ecosystem: it enters as light, is transferred along the web, and leaves as heat. It does not cycle, unlike matter. The reasons energy is lost at each trophic level:

  • Organisms use most of the energy they take in for respiration, to move, stay warm and carry out life processes. That energy ends up as heat.
  • Some parts of food are not eaten (roots, bones) or not digested.
  • Dead material and waste go to decomposers.

Only a fraction becomes new body tissue (biomass) that the next level can eat. A common rule of thumb is the 10 percent rule: about 10 % of the energy at one level reaches the next. Real efficiencies vary from a few percent to about 20 % or more depending on the organisms, so 10 % is a teaching approximation, not a law.

Because of this loss, there is much less energy at the top. A food chain rarely has more than four or five trophic levels, since too little energy is left to support another one. This also explains why top predators, such as eagles and sharks, are rare and need large territories.

An energy pyramid in code

The program below applies the 10 % rule to a starting amount of energy in producers. The starting number is an illustration, not a measured value for a real ecosystem.

Python Energy at each trophic level

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The axis is logarithmic so that all four bars stay visible; each bar is ten times shorter than the one below it.

Biomass and number pyramids

Besides energy, scientists draw pyramids of biomass (total dry mass of organisms at each level) and of numbers of individuals. Energy pyramids are always upright, because energy is lost at each step. Biomass and number pyramids can be inverted in some ecosystems. In the ocean, tiny phytoplankton reproduce so fast that a small standing mass of them supports a larger mass of zooplankton, so the biomass pyramid at one moment can look upside down. The energy pyramid, measured per year, is still upright.

Why energy loss matters for people

Eating lower on the food chain gives more food energy from the same land. Suppose a field produces 100 units of plant energy. If people eat the plants directly, they can use close to all that is edible. If the plants are fed to animals, and people eat the animals, only part of the energy reaches people. Livestock production therefore uses much more land per calorie than growing crops for direct eating. The exact ratio depends on the animal and system, so you will compare real figures in the chapter on food and land use.

Bioaccumulation

Energy shrinks as it moves up a chain, but some chemicals do the opposite. Certain stable, fat-soluble pollutants (such as DDT or methylmercury) are taken up faster than they are removed. They build up in an organism's tissues (bioaccumulation) and become more concentrated at higher trophic levels (biomagnification), because a predator eats many contaminated prey. This is why top predators can be harmed most by pollutants that are present in tiny amounts in the water.

Python Biomagnification (a toy example)

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What is the main source of energy for most ecosystems?

    Most ecosystems depend on energy captured from sunlight by producers during photosynthesis.
  2. 2. In the 10 percent rule, if producers contain 5,000 kJ, about how much reaches secondary consumers?

    10 % of 5,000 kJ is 500 kJ for primary consumers, and 10 % of that is 50 kJ for secondary consumers.
  3. 3. Why do food chains rarely have more than four or five trophic levels?

    Energy is lost mainly as heat during respiration, so each level has far less energy than the one below.
  4. 4. Which describes biomagnification?

    Persistent pollutants build up in tissue and become more concentrated as they pass up the food chain.

Summary

  • Energy enters ecosystems as sunlight, flows in one direction through trophic levels and leaves as heat.
  • Producers make food; consumers eat; decomposers recycle nutrients.
  • Food webs show the many feeding links that a single food chain leaves out.
  • About 10 % of energy passes to the next level (an approximation), so top levels are small and chains are short.
  • Some pollutants biomagnify, becoming more concentrated up the food chain.

Next: Matter Cycles: Carbon, Nitrogen and Phosphorus