What Is a Closed Ecosystem? Definition & Examples

A closed ecosystem is a self-contained environment where no matter enters or leaves, but energy (typically light) can pass through. Everything the organisms inside need to survive, from oxygen to nutrients, must be recycled internally. Earth itself is the most familiar example: gravity keeps all matter on the planet while sunlight streams in and heat radiates out.

How a Closed Ecosystem Works

The defining feature is the boundary rule: matter stays inside, energy flows through. In a materially closed system, light energy is the only external input. That light powers the entire chain of life within the system. Plants or algae capture the light and use carbon dioxide to produce oxygen and food. Animals breathe that oxygen, eat the plants, and exhale carbon dioxide. Bacteria decompose waste back into nutrients that the plants absorb. Every atom gets used, broken down, and used again.

This is different from an open ecosystem, like a river or a forest clearing, where water, soil, animals, and nutrients constantly cross boundaries. It’s also different from an isolated system, which exchanges neither matter nor energy with the outside. A truly isolated ecosystem would eventually run out of usable energy and die. The steady input of light is what keeps a closed ecosystem running.

Earth as a Closed Ecosystem

Earth is closed for matter and open for energy. Every element on the periodic table that exists here has been here since the planet formed. Gravity prevents gases, liquids, and solids from drifting off into space, and the laws of thermodynamics mean matter can’t be destroyed, only transformed. The water you drink has been cycling through oceans, clouds, rivers, and living cells for billions of years.

Meanwhile, the sun delivers a constant stream of energy that drives photosynthesis, weather, and ocean currents. Earth radiates heat back into space, and the atmosphere regulates how much escapes. That balanced energy exchange is what keeps surface temperatures in the range life has adapted to. The planet functions, in essence, as an enormous sealed terrarium with a sunlamp overhead.

Smaller natural systems follow the same pattern. Lakes, microbial mats, and open ocean gyres are all quasi-closed to material exchange but open to light energy. They recycle nutrients internally while sunlight fuels the biology.

Nutrient Recycling: The Engine Inside

The real challenge in any closed ecosystem is keeping essential elements like nitrogen, phosphorus, and carbon moving through the system without accumulating as toxic waste or becoming locked in unusable forms. In open ecosystems, fresh nutrients wash in from outside. In a closed one, every gram has to be recaptured and reused.

A striking example of how this works at the microscopic scale comes from the relationship between Paramecium (a single-celled organism) and the Chlorella algae living inside it. The Paramecium feeds on some of its internal algae, then its metabolic byproducts, including nitrogen and phosphorus compounds, fertilize the remaining algae. Those algae use light to photosynthesize and multiply, replacing the ones that were consumed. As long as the host stays alive and light is available, nitrogen is almost completely recycled between the two organisms, and phosphorus is partially recycled as well. This internal loop keeps nutrient concentrations high inside the system, even in environments with no external food or mineral supply. The algae and their host can survive this way for weeks.

Scale that principle up and you get the basic blueprint for every closed ecosystem, whether it’s a sealed glass sphere on a desk or a life-support system designed for Mars.

The EcoSphere: A Closed Ecosystem You Can Hold

The most common closed ecosystem people encounter is the EcoSphere, a sealed glass globe containing small shrimp, algae, bacteria, and a bit of gravel. Nothing goes in or out except light. The algae use light and carbon dioxide to produce oxygen. The shrimp breathe the oxygen and eat the algae and bacteria. Bacteria break down the shrimp’s waste into nutrients the algae absorb. Carbon dioxide exhaled by the shrimp and bacteria feeds right back to the algae.

The shrimp in these spheres can live more than five years, and the oldest EcoSpheres have kept functioning for over 15 years. They work because the biological load is carefully balanced: a small number of tiny animals, a relatively large surface area of algae, and enough bacteria to handle decomposition. The ratio of plant life to animal life matters enormously. In nature, the biomass ratio of herbivores to the plants they eat varies across four orders of magnitude. Getting that ratio right in a sealed container is what determines whether the system thrives or crashes.

Biosphere 2: When a Closed Ecosystem Fails

The most ambitious attempt to build a human-scale closed ecosystem was Biosphere 2, a 3.14-acre sealed facility in the Arizona desert that housed eight crew members starting in 1991. The goal was to prove that a materially closed system could support human life for two years. It nearly succeeded, but a chemistry problem derailed the mission.

From the moment the doors sealed, oxygen levels began dropping steadily. Not quite 18 months in, the crew could barely function, and managers pumped in outside oxygen to keep them going. The culprit turned out to be the soil. Biosphere 2’s rain forest and savanna sections had unusually rich organic material, and soil microbes were consuming it at a high rate, burning through oxygen and releasing carbon dioxide far faster than the plants could compensate. Making matters worse, the excess carbon dioxide didn’t just sit in the air waiting for plants to use it. It reacted chemically with calcium hydroxide in the facility’s concrete walls, forming calcium carbonate. The carbon dioxide was effectively being locked away in the building’s structure, removing it from the biological cycle while the oxygen it had displaced never came back.

Biosphere 2 demonstrated that even small imbalances in a closed ecosystem can cascade. The microbes, the concrete, and the plants were all behaving according to ordinary chemistry, but the system was too tightly sealed for any margin of error.

Closed Ecosystems for Space Exploration

Long-duration space missions can’t carry enough food, water, and oxygen for years of travel. Resupply from Earth becomes impractical beyond a certain distance. So space agencies are developing closed-loop life support systems that work on the same principles as any closed ecosystem: recycle everything, import only light energy.

The European Space Agency’s MELiSSA project is designed to convert human waste, carbon dioxide, and minerals into oxygen, clean water, and food using biological processes. It is modeled on how a lake ecosystem works: waste products are processed through the metabolism of plants, algae, and bacteria, which in turn provide breathable air, purified water, and something to eat. The system uses mechanical grinding, bioreactors, and filtration to keep the cycle moving.

China’s Lunar Palace 1 facility has pushed the concept further with crewed experiments on Earth. In the “Lunar Palace 365” mission, crews lived inside a sealed bioregenerative life support system for 370 consecutive days, with one group staying for a record-breaking 200-day stretch. Earlier experiments showed that microalgae and lettuce alone could meet half a person’s oxygen demand over 297 days. These missions are building the data needed to design habitats for the Moon or Mars where the only input would be sunlight or artificial light, and every molecule of waste would cycle back into something useful.

Why Closed Ecosystems Are Hard to Maintain

The fundamental difficulty is that closed ecosystems have zero tolerance for net loss. In an open ecosystem, if a nutrient gets locked up in sediment or a gas escapes, more flows in from outside. In a closed system, every atom that drops out of circulation is gone from the living cycle permanently. Over time, even tiny inefficiencies accumulate.

Oxygen and carbon dioxide must stay in balance. Decomposition has to keep pace with growth, but not outrun it. Nitrogen and phosphorus need to cycle through waste, bacteria, and producers without building up in toxic concentrations at any point in the loop. The smaller the system, the harder this is. A desktop EcoSphere can absorb very little disruption before the balance tips. Earth, with its massive oceans, atmosphere, and geological processes, has enormous buffering capacity, which is why it has sustained life for billions of years despite asteroid impacts, volcanic eruptions, and ice ages.

Temperature and light intensity also matter. Too much light can cause algae blooms that consume all the oxygen when they die and decompose. Too little light starves the producers and the whole chain collapses. Successful closed ecosystems, whether natural or engineered, share one trait: they have enough biological diversity and physical buffering to absorb fluctuations without spiraling out of control.