Energy Flow in Ecosystems: From Sunlight to Decomposition

Updated June 2026
Energy flow is the movement of energy through an ecosystem, beginning with the capture of solar radiation by photosynthetic organisms and ending with the dissipation of heat through metabolic processes. Unlike nutrients, which cycle repeatedly through ecosystems, energy flows in one direction and cannot be recycled. This unidirectional flow of energy, governed by the laws of thermodynamics, determines the structure of food webs, the relative abundance of organisms at different trophic levels, and the total amount of life an ecosystem can support.

Primary Production: Where Energy Enters

Nearly all energy in ecosystems comes from the sun. Of the solar radiation that reaches Earth, only a small fraction is captured by photosynthetic organisms and converted into chemical energy. Plants, algae, and cyanobacteria absorb photosynthetically active radiation (wavelengths between 400 and 700 nanometers) and use it to drive the synthesis of glucose from carbon dioxide and water. This process, photosynthesis, is the foundation of nearly all life on Earth and the entry point for energy into most ecosystems.

Gross primary productivity (GPP) is the total amount of energy that producers capture through photosynthesis per unit area per unit time. Producers use a significant portion of this energy for their own metabolic needs, a cost known as autotrophic respiration. The energy remaining after respiration is net primary productivity (NPP), which represents the energy actually available to support consumers, decomposers, and all other heterotrophic organisms in the ecosystem.

NPP varies dramatically across ecosystem types. Tropical rainforests and coral reefs have the highest NPP per unit area, driven by warm temperatures, abundant water, and intense sunlight. Temperate forests and grasslands have intermediate NPP. Deserts, tundra, and the open ocean have low NPP per unit area, although the vast area of the open ocean makes it the single largest contributor to global NPP. Globally, terrestrial and aquatic ecosystems contribute roughly equal amounts to total planetary NPP.

Trophic Levels and Energy Transfer

Energy moves through ecosystems via feeding relationships organized into trophic levels. Primary producers (autotrophs) occupy the first trophic level. Primary consumers (herbivores) occupy the second level. Secondary consumers (carnivores that eat herbivores) occupy the third level, and tertiary consumers occupy the fourth. Decomposers and detritivores process dead organic matter from all trophic levels, returning energy to the system through the detrital pathway.

At each trophic transfer, a large fraction of energy is lost. Organisms use energy for maintenance metabolism, growth, reproduction, and activity. The second law of thermodynamics dictates that every energy transformation involves some conversion to heat, which dissipates into the environment and is no longer available to do biological work. As a result, only about 5 to 20 percent of the energy consumed at one trophic level is converted into biomass at the next level, with 10 percent being a commonly cited average.

This trophic efficiency of roughly 10 percent has profound consequences for ecosystem structure. If producers in an ecosystem fix 10,000 kilocalories of energy, approximately 1,000 kilocalories are available to herbivores, 100 to secondary consumers, and only 10 to tertiary consumers. This progressive loss explains why ecosystems can support far fewer predators than herbivores and far fewer herbivores than plants. It also explains why top predators require large territories and are disproportionately vulnerable to habitat loss and overexploitation.

Ecological Pyramids

Ecological pyramids are graphical representations of the distribution of energy, biomass, or numbers across trophic levels. Energy pyramids are always upright because energy is lost at each transfer and can never increase from one level to the next. The broad base represents producers with the most energy, and each successive level is narrower.

Biomass pyramids show the total mass of organisms at each trophic level. In most terrestrial ecosystems, biomass pyramids are upright, with the greatest biomass in producers. However, in some aquatic ecosystems, the biomass pyramid can be inverted. In the open ocean, the standing biomass of phytoplankton at any given moment is often less than the standing biomass of the zooplankton that consume them, because phytoplankton have extremely rapid turnover rates, reproducing and being consumed within days. Despite their lower standing biomass, phytoplankton productivity is high enough to support the larger zooplankton biomass.

Number pyramids show the count of individual organisms at each level and can also be inverted. A single large tree (one producer) can support thousands of herbivorous insects (many primary consumers). Understanding when and why pyramids take different shapes helps ecologists interpret ecosystem function and detect changes in community structure.

Secondary Production

Secondary production is the generation of biomass by heterotrophic organisms, the consumers and decomposers. The rate of secondary production depends on the amount of food consumed, the assimilation efficiency (what fraction of consumed food is actually absorbed), and the production efficiency (what fraction of assimilated energy is converted to new biomass rather than used for respiration).

Endotherms (warm-blooded animals like mammals and birds) have much lower production efficiency than ectotherms (cold-blooded animals like insects, fish, and reptiles) because endotherms spend a large fraction of their energy budget maintaining body temperature. A typical endotherm converts only about 1 to 3 percent of assimilated energy into new biomass, while an ectotherm may convert 10 to 40 percent. This difference has practical implications: aquaculture of fish and insects can produce animal protein far more efficiently than raising cattle or poultry.

Factors Controlling Primary Productivity

Multiple factors limit primary productivity in different ecosystems. In terrestrial ecosystems, the most common limiting factors are water availability, temperature, and nutrient availability (particularly nitrogen and phosphorus). In aquatic ecosystems, light and nutrient availability are typically the primary limiting factors. The depth to which light penetrates water, the photic zone, determines where photosynthesis can occur. In the open ocean, the photic zone extends to about 200 meters, but in turbid coastal waters it may be much shallower.

Nutrient limitation is particularly important in the open ocean, where nitrogen, phosphorus, and iron are often in short supply. Upwelling zones, where deep, nutrient-rich water rises to the surface, are among the most productive marine areas and support major fisheries. On land, nitrogen is the most commonly limiting nutrient in temperate ecosystems, while phosphorus limits productivity in many tropical soils that have been heavily weathered. Understanding what limits productivity in a given ecosystem is crucial for predicting how that ecosystem will respond to environmental changes such as warming, drought, nutrient loading, or rising CO2 concentrations.

Chemosynthesis and Alternative Energy Sources

While photosynthesis drives the vast majority of ecosystems, a small but fascinating number of communities derive their energy from chemosynthesis, the production of organic molecules using energy from chemical reactions rather than sunlight. The discovery of hydrothermal vent ecosystems in the deep ocean in 1977 revolutionized our understanding of life on Earth by demonstrating that complex, productive ecosystems can exist without any input of solar energy.

At hydrothermal vents, superheated water laden with hydrogen sulfide, methane, and other reduced chemicals gushes from cracks in the ocean floor. Chemosynthetic bacteria oxidize these compounds and use the released energy to fix carbon dioxide into organic molecules, forming the base of a food web that includes giant tube worms, specialized clams and mussels, shrimp, crabs, and fish. Similar chemosynthetic communities have been found at cold seeps, in subsurface rock, in cave systems, and in deep lake sediments, suggesting that chemosynthesis-based life may be far more widespread than once thought, with implications for the search for life on other planets.

Energy Flow and Ecosystem Services

Understanding energy flow has direct practical applications. The productivity of agricultural systems depends on maximizing the capture and conversion of solar energy into crop biomass. Fisheries management relies on energy flow models to estimate sustainable harvest levels. The efficiency of different food production systems can be compared by tracing energy through the food chain: producing a kilogram of beef requires roughly 7 to 10 kilograms of grain feed, which in turn required solar energy, water, and nutrients to grow. This energy accounting explains why plant-based diets have a smaller environmental footprint than diets heavy in animal products.

Ecosystem energy budgets also inform climate science. The total amount of carbon that ecosystems absorb through photosynthesis versus what they release through respiration determines whether they are net carbon sinks or sources. Forests, wetlands, and oceans currently absorb roughly half of human carbon dioxide emissions, slowing the rate of climate change. Understanding the energy dynamics of these ecosystems is essential for predicting whether they will continue to provide this service as temperatures rise and environmental conditions shift.

Key Takeaway

Energy flows through ecosystems in one direction, from producers to consumers to decomposers, with roughly 90 percent lost as heat at each transfer, fundamentally shaping the structure and limits of all ecological communities.