
An ecosystem is a community of living things together with the nonliving environment around them, such as water, soil, air and sunlight, and all the ways they affect each other. A pond, a forest, a kelp bed and a coral reef are all ecosystems. So is a rotting log, on a smaller scale.
The idea matters because nothing in nature lives alone. Every plant, animal and microbe depends on others for food, shelter or nutrients, and on the physical world for water and energy. Thinking in ecosystems explains why removing one species can change a whole coastline, and why a forest or a wetland can supply clean water to a city far away.
Key points
- An ecosystem has living parts (plants, animals, fungi, microbes) and nonliving parts (water, soil, air, sunlight, temperature).
- Energy flows one way through an ecosystem, while matter such as carbon and nitrogen is recycled again and again.
- At Silver Springs in Florida, plants and algae captured about 20,800 kilocalories per square meter each year, but the top predators got only about 21.
- Some species, such as sea otters and beavers, shape their ecosystems far more than their numbers suggest.
- Ecosystems change over time; after Mount St. Helens erupted in 1980, life returned to the blast zone over decades.
On this page
- What is an ecosystem made of?
- How do ecosystems work?
- What are examples of ecosystems?
- How do ecosystems stay balanced?
- What is an ecosystem engineer?
- How do ecosystems change over time?
- What is an ecosystem service?
- How do ecosystems help humans?
- Common misconceptions about ecosystems
- Frequently asked questions
What is an ecosystem made of?
An ecosystem is made of biotic, or living, parts and abiotic, or nonliving, parts. Biologists define it as a community of living organisms and their interactions with their abiotic environment.
The living parts fall into three main roles:
- Producers, such as plants, algae and phytoplankton, make their own food from sunlight through photosynthesis.
- Consumers eat other living things. Herbivores eat producers, and carnivores eat other animals.
- Decomposers, such as many bacteria and fungi, break down dead matter and return its nutrients to the soil or water.
The nonliving parts include sunlight, water, air, soil, rock, temperature and nutrients. These set the rules for what can live there. Water is a good example. Only about 2.5% of the water on Earth is fresh, and most of that is locked in ice or underground. That is one reason freshwater ecosystems are small and precious.
How do ecosystems work?
Ecosystems work by moving energy and recycling matter. Energy flows in one direction, from the sun to producers to consumers, and is lost as heat along the way. Matter, by contrast, is conserved and used again. The main elements that cycle through living things are carbon, nitrogen, hydrogen, oxygen, phosphorus and sulfur.
Food chains and food webs
A food chain is a single line of who eats whom. In Lake Ontario, for example, one food chain runs from green algae to snails, then to a small fish called the slimy sculpin, and finally to Chinook salmon. Each step is called a trophic level, meaning a feeding level.
Real ecosystems are messier than a single chain. Most animals eat more than one kind of food, and most are eaten by more than one predator. Biologists draw these overlapping links as a food web.
Why energy runs out
Each step up a food chain receives much less energy than the step below. Measurements at Silver Springs in Florida show how steep the drop is. The numbers below are in kilocalories per square meter per year:
- Producers (plants and algae): about 20,819
- Primary consumers (plant eaters): about 3,368
- Secondary consumers: about 383
- Tertiary consumers (top predators): about 21
Think of it like a paycheck that loses most of its value each time it is passed along. Most of the energy at each level is used for living or lost as heat. That steep loss limits how long a food chain can be.
What are examples of ecosystems?
Examples of ecosystems include forests, grasslands, deserts, lakes, rivers, wetlands, kelp forests, coral reefs and the open ocean. Biologists group them into three broad types: ocean, freshwater and land (terrestrial) ecosystems.
The three types differ greatly in size. Ocean ecosystems cover more than 70% of Earth’s surface. Freshwater ecosystems cover only about 1.8%. Land ecosystems make up the rest. Size does not tell the whole story, though. Phytoplankton, the tiny drifting algae of the sea, carry out about 40% of all photosynthesis on Earth.
Some ecosystems are built around one main species, called a foundation species. Kelp, a large brown alga, forms the base of California’s kelp forests. On coral reefs, the skeletons of living and dead corals make up most of the reef itself. Reefs occur in less than 1% of the ocean but are home to nearly a quarter of all ocean species.
How do ecosystems stay balanced?
Ecosystems stay balanced through the links between their species, which keep any one population from taking over. Biologists call a steady state equilibrium. They use two more terms to describe how well an ecosystem holds it:
- Resistance is the ability to stay at equilibrium despite a disturbance.
- Resilience is the speed at which an ecosystem returns to equilibrium after a disturbance.
Predators often hold the system together. A species with this kind of outsized effect is called a keystone species. The sea star Pisaster ochraceus, for example, eats mussels. When the sea stars are removed, mussels increase, the mix of species changes completely and the variety of life drops.
Sea otters play a similar role in kelp forests by eating sea urchins, which graze on kelp. A 2025 study used two 30-year records from places where otters returned. Off Vancouver Island in Canada, the otters quickly cut urchin numbers and the kelp recovered. Around San Nicolas Island in California, otters, urchins and kelp lived side by side at middle levels for several years instead.
What is an ecosystem engineer?
An ecosystem engineer is a living thing that physically reshapes its surroundings and so creates or changes habitat for other species. The beaver is the best-known example in North America.

Beavers fell trees and build dams across streams. The dams create deep water, which protects beavers from predators, gives them access to food and hides the underwater entrances to their dens. The U.S. Fish and Wildlife Service notes that this tree-felling and dam-building creates wetlands that become homes for many other fish and wildlife species. Beaver ponds also help conserve water during droughts.
Reef-building corals are engineers of a different kind. Over many generations, their stony skeletons build the reef that so many other species depend on.
How do ecosystems change over time?
Ecosystems change over time through a process called ecological succession, in which one community of species gradually replaces another. There are two main kinds.

Primary succession happens on new ground with no soil, such as fresh lava. On Hawaii’s Big Island, lava flowing into the ocean keeps forming new land. Hardy pioneer species, such as lichens and plants that need few nutrients, arrive first. They help break rock down into soil, which lets other species move in.
Secondary succession happens when a disturbance clears an area but leaves soil and some life behind. After a wildfire in an oak and hickory forest, grasses and other annual plants appear first. Shrubs and young pine, oak and hickory trees follow. Over about 150 years, the forest reaches a stable state that ecologists call a climax community.
A worked example: Mount St. Helens
On May 18, 1980, Mount St. Helens in Washington erupted. Hot volcanic debris blasted over about 230 square miles (600 square kilometers). Even so, fireweed and other plants began to reappear as early as that summer. The first clear recovery across the northwest part of the blast zone came in the late 1980s.
The Pumice Plain was one of the slowest areas to recover. Plant life there returned gradually, starting with the prairie lupine. This small wildflower can take nitrogen straight from the air, so it builds small pockets of richer soil where other plants can grow.
What is an ecosystem service?
An ecosystem service is a benefit that people get from nature. The U.S. Environmental Protection Agency describes four widely used categories, taken from the international Millennium Ecosystem Assessment:
- Provisioning services, such as food and fresh water.
- Regulating services, such as water purification.
- Cultural services, such as recreation and the beauty of natural places.
- Supporting services, such as soil formation, which make the other services possible.
For example, a forested hillside can supply timber (provisioning), filter rain before it reaches a stream (regulating), offer a place to hike (cultural) and build the soil that keeps it all going (supporting).
How do ecosystems help humans?
Ecosystems help humans by supplying food, clean water, building materials and medicines, and by protecting coasts and controlling floods. Coral reefs in the United States are a good measure. NOAA Fisheries estimates they provide $1.75 billion in ecosystem services. They act as natural breakwaters that buffer shorelines from waves and storms. In southeast Florida alone, reefs support more than 70,000 jobs.
You can watch these processes close to home. A backyard compost pile is a small ecosystem in action, with fungi, bacteria and invertebrates turning food scraps into soil. A local pond shows producers, consumers and decomposers in one place. Noticing where a heron feeds, where frogs call or where a beaver has dammed a creek turns a walk into a lesson in how ecosystems work.
Common misconceptions about ecosystems
- “Nature always returns to the same perfect balance.” Ecosystems change all the time, and the same species can settle into different states in different places, as the sea otter study showed.
- “An ecosystem is a fixed area on a map.” Ecosystems can be as small as a puddle or as large as an ocean, and their edges blend into each other.
- “A food chain shows how nature works.” A single chain leaves out most of the links. Food webs give a truer picture.
- “Ecosystems are only about living things.” Sunlight, water, soil and temperature are just as much a part of an ecosystem as its plants and animals.
Frequently asked questions
What is the difference between an ecosystem and a habitat?
A habitat is the place where a particular species lives, such as a marsh for a heron. An ecosystem is the whole system in that place: all its species plus the water, soil, air and sunlight they interact with.
What is the largest ecosystem on Earth?
The ocean is the largest, covering more than 70% of Earth’s surface. Scientists often group all of Earth’s ecosystems together as the biosphere.
What are the 4 main components of an ecosystem?
A common way to list them is producers, consumers, decomposers and the nonliving environment. Producers capture energy, consumers pass it along, decomposers recycle nutrients and the nonliving parts set the conditions for life.
Can an ecosystem recover after a disaster?
Yes, often, through ecological succession. Recovery can take decades or more, as at Mount St. Helens, and the community that returns may not match the one that was there before.
Related articles
How forests recover after a wildfire
How wetlands filter water naturally
Sources
OpenStax. Clark MA, Douglas M, Choi J. Biology 2e. 46.1 Ecology of Ecosystems. 2018.
OpenStax. Clark MA, Douglas M, Choi J. Biology 2e. 46.3 Biogeochemical Cycles. 2018.
OpenStax. Clark MA, Douglas M, Choi J. Biology 2e. 45.6 Community Ecology. 2018.
NOAA Fisheries. Shallow Coral Reef Habitat.
Langendorf RE, Estes JA, Watson JC, et al. Proceedings of the National Academy of Sciences (U.S. Geological Survey publication). Dynamic and context-dependent keystone species effects in kelp forests. 2025.
U.S. Fish and Wildlife Service. Beaver Conservation Strategy.
U.S. Geological Survey. Ecology of Mount St. Helens National Monument.
U.S. Environmental Protection Agency. More Information on Ecosystem Services and EnviroAtlas.


