How to Make a Self-Sustaining Biosphere in a Jar

A self-sustaining biosphere in a jar relies on a simple but exacting principle: photosynthetic organisms produce oxygen and organic matter, decomposers break that matter back down and release carbon dioxide, and the whole cycle runs on light as its only external input. Get the balance right and the jar can thrive sealed for years, sometimes decades. Get it wrong and you end up with a foggy container of mold within weeks. The difference comes down to choosing the right organisms, layering your substrate properly, and understanding what actually drives stability inside a closed system.

What “Self-Sustaining” Really Means

A truly self-sustaining jar biosphere is materially closed but energetically open. Nothing goes in or out except light. Water evaporates from soil and leaf surfaces, condenses on the glass, and drips back down. Plants photosynthesize using carbon dioxide exhaled by soil microbes and tiny invertebrates, producing oxygen and sugars. When leaves die and fall, bacteria and fungi decompose them, returning nutrients to the soil and carbon dioxide to the air. This loop, if balanced, can run indefinitely on sunlight alone.

The key word is “balanced.” In practice, perfect equilibrium is rare. What you’re aiming for is a system resilient enough to self-correct when one side of the cycle temporarily outpaces the other. That resilience comes from diversity: multiple species of plants, a healthy microbial community, and enough volume to buffer against small swings in gas concentration or moisture.

Choosing the Right Container

Glass is the standard material because it transmits light, is chemically inert, and allows you to observe what’s happening inside. A clear jar, carboy, or demijohn with a wide enough mouth to work through is ideal. Narrow-necked bottles look dramatic but make planting and maintenance during setup almost impossible.

Size matters more than people expect. Larger volumes are more stable because they hold more air, more water vapor, and more thermal mass, all of which buffer the system against rapid swings. A one-gallon jar is a reasonable minimum for a terrestrial setup. Anything smaller than about a liter tends to overheat in sunlight, dry out too fast if accidentally left open, or simply lack enough soil depth for roots. Research on materially closed marine microcosms found that even one-liter volumes could sustain small shrimp populations for years, but those systems were carefully controlled in laboratory settings with precise lighting and temperature regulation, conditions hard to replicate on a windowsill.1Ecological Modelling. Development and global sensitivity analysis of a closed ecosystem model

Your seal needs to be airtight. A cork, rubber stopper, or glass lid sealed with silicone all work. Some builders use wax or parafilm. The goal is zero gas exchange with the outside. If your seal leaks, you don’t have a closed biosphere; you have a terrarium that happens to have a lid.

Building the Foundation Layer by Layer

The substrate inside your jar does more than anchor plant roots. It houses the microbial community that handles decomposition, nitrogen cycling, and gas exchange. A good layering strategy from bottom to top:

  • Drainage layer: About an inch of small pebbles or coarse gravel at the bottom. This prevents water from pooling around roots and creating anaerobic (oxygen-free) zones where harmful bacteria thrive and produce foul-smelling compounds.
  • Separation layer: A thin barrier of sphagnum moss or mesh fabric on top of the gravel to keep soil from silting down into the drainage layer.
  • Soil layer: Two to three inches of soil, ideally collected from an outdoor environment rather than bought sterile from a garden center. Outdoor soil comes pre-loaded with the bacteria, fungi, nematodes, and springtails your jar needs. Sterile potting mix can work, but you’ll need to inoculate it with a scoop of forest soil or leaf litter to introduce the decomposer community.
  • Surface layer: A thin scattering of leaf litter, small pieces of bark, or moss on top. This provides food for decomposers and helps retain surface moisture.

The soil you choose is arguably the single most important decision. Rich, loamy forest soil tends to outperform sandy or clay-heavy soils because it has better water retention, better aeration, and a more diverse microbial population. Avoid soil from areas recently treated with herbicides or pesticides, as these chemicals can persist and kill the microbes you need.

Picking Plants That Will Cooperate

Not every plant belongs in a sealed jar. You need species that tolerate high humidity, low air circulation, and limited root space. Tropical and subtropical plants adapted to forest floors do well because they evolved in warm, humid, low-light conditions that resemble jar interiors. Good candidates include ferns (especially small varieties like maidenhair), mosses, fittonias, peperomias, and selaginellas.

Avoid fast-growing species. A plant that grows vigorously will quickly outstrip the jar’s nutrient supply, press against the glass, and dominate the space so completely that nothing else survives. You want slow, compact growers that won’t need pruning you can’t provide once the jar is sealed. Succulents and cacti are poor choices despite their popularity in terrariums; they prefer dry conditions and will rot in the humid environment of a sealed jar.

Plant diversity helps. Two or three species with different growth habits, say a ground-cover moss, a small upright fern, and a creeping vine, create more niches and more photosynthetic surface area than a monoculture. They also produce a wider range of leaf litter types, which supports a more diverse decomposer community.

Why Light Is the Only Input That Matters

Once sealed, light is the sole energy source driving every process in the jar. Photosynthesis converts light energy into chemical energy stored in sugars. Decomposition releases that stored energy. The entire nutrient cycle, the water cycle, even the temperature inside the jar, all trace back to how much light hits the glass.

But more light is not better. Direct sunlight on a sealed glass container creates a greenhouse effect that can push internal temperatures past 50°C (120°F), cooking everything inside. Bright indirect light, the kind you’d get a few feet from a window that receives direct sun, or filtered through a sheer curtain, is the sweet spot. Many successful sealed terrariums sit on north-facing windowsills or under grow lights set on timers for 10 to 14 hours per day.

The balance between photosynthesis and respiration shifts with light intensity. In bright conditions, plants produce more oxygen than the decomposers consume. In dim conditions, decomposition can outpace photosynthesis, and oxygen levels drop while carbon dioxide climbs. Research on Biosphere 2, the most ambitious closed ecosystem ever attempted, showed that community respiration consistently outpaced gross production, contributing to a steady decline in oxygen that eventually required intervention.2Elsevier. Simulation of community metabolism and atmospheric carbon dioxide and oxygen concentrations in Biosphere 2 In a jar, you avoid this by ensuring your plants receive enough light to keep photosynthesis ahead of microbial respiration.

The Invisible Workforce

The organisms you can see, the plants, maybe a springtail hopping across a leaf, account for a small fraction of what keeps the jar alive. The real engine is the microbial community in the soil: bacteria, fungi, archaea, and protists that decompose dead organic matter, fix nitrogen, cycle phosphorus, and regulate gas concentrations.

Research on sealed microbial communities has shown that even very simple closed systems can self-organize into stable, carbon-cycling communities. In one set of experiments, researchers sealed communities derived from different soil samples and found that each community developed its own distinct taxonomic composition, yet all converged on the same functional outcome: persistent carbon cycling.3PubMed Central. Closed microbial communities self-organize to persistently cycle carbon The bacterial species varied widely between sealed systems, even when started from similar soils, but the function of cycling carbon remained stable. This is encouraging for jar builders: you don’t need to stock a specific list of microbe species. A scoop of healthy soil contains enough diversity for the community to sort itself out.

That said, the initial weeks after sealing are a period of microbial succession. Fast-growing bacteria bloom first, consuming readily available nutrients. Then fungi begin breaking down tougher organic matter. Over weeks and months, the community shifts toward a slower, more stable state. You may see a flush of mold or a cloudy film on the glass during this early phase. This is usually normal and resolves on its own as the microbial community finds its equilibrium.

Aquatic Jar Ecosystems

Terrestrial jars get the most attention, but aquatic closed ecosystems are arguably better studied by scientists. The concept is the same: algae or aquatic plants photosynthesize, microbes decompose, and the system cycles on light alone. The most famous commercial version was the EcoSphere, a sealed glass globe containing filtered seawater, algae, small shrimp, and bacteria. Some of these lasted over a decade.

NASA’s Jet Propulsion Laboratory investigated sealed one-liter marine microcosms containing organisms from anchialine pools in Hawaii. These tiny sealed oceans sustained constant shrimp populations for years without any material input. The modeling work showed that stability depended heavily on the initial number of shrimp: too many overwhelmed the system’s ability to produce enough food and process waste, while too few left the ecosystem without adequate nutrient cycling from animal waste. Once a stable number was reached, the shrimp stopped molting and reproducing, essentially entering a maintenance state that matched the ecosystem’s carrying capacity.1Ecological Modelling. Development and global sensitivity analysis of a closed ecosystem model

If you want to build an aquatic version at home, a jar of pond water with some aquatic plants and a few small snails is a simpler starting point than trying to replicate a marine system. Freshwater setups are more forgiving because the chemistry is less sensitive to temperature swings than saltwater. Collect water from a healthy, unpolluted pond or stream, include some sediment and a few submerged plants like elodea or hornwort, and seal it. Snails serve as grazers, keeping algae in check and producing waste that feeds the microbial loop.

What Goes Wrong and Why

The most common failure mode in a sealed jar is an oxygen crash. If decomposition outpaces photosynthesis, carbon dioxide accumulates, oxygen drops, and aerobic organisms begin to die. Their deaths add more organic matter for decomposers, accelerating the imbalance in a feedback loop that can collapse the entire system within days. The Biosphere 2 experience illustrated this at grand scale: soil microbes produced more carbon dioxide than the plants could absorb, oxygen dropped to levels that affected the human crew, and cascading effects killed about 30% of the enclosed species including all pollinators.

In a jar, the triggers are usually straightforward:

  • Too little light: Plants can’t photosynthesize fast enough to keep up with microbial respiration. The fix is moving the jar to a brighter location or adding a grow light.
  • Too much organic matter: Stuffing the jar with thick layers of leaf litter or compost gives decomposers an enormous food supply relative to the plants’ photosynthetic capacity. Use thin layers and lean soil.
  • Overwatering: Waterlogged soil becomes anaerobic, killing aerobic decomposers and fostering bacteria that produce hydrogen sulfide (the rotten-egg smell). Add just enough water to moisten the soil, not saturate it. If condensation covers the entire inner surface of the glass to the point you can’t see in, there’s too much water.
  • Direct sunlight: Overheating kills plants and microbes alike. Internal temperatures can spike far above ambient in a sealed glass container sitting in a sunbeam.

Mold blooms in the first few weeks are normal and usually self-limiting. Persistent mold that spreads across plant surfaces after the initial settling period suggests too much moisture or too little light. If you catch a problem early, it’s acceptable to briefly unseal the jar, remove the offending material, and reseal. Purists argue this disqualifies the system as “self-sustaining,” but a single correction in the first month is a reasonable compromise.

How Simple Can a Stable System Be

You might assume that more species means more stability, and in general that intuition holds. But research has demonstrated that remarkably simple communities can persist in closed conditions. One study built a sealed ecosystem from just three single-celled organisms: a bacterium, a green alga, and a protist predator. These three species coexisted for hundreds of days under closure, with the alga photosynthesizing, the bacterium decomposing, and the protist grazing on both, keeping populations in check.4Digital Commons @ RU. Population Dynamics In A Model Closed Ecosystem

This finding is instructive for jar builders. You don’t need a complicated setup with dozens of plant species, multiple animal types, and carefully curated soil to achieve persistence. A jar with moss, a fern, and healthy soil already contains thousands of microbial species and likely a few small invertebrates like springtails and mites that hitched a ride in the soil. That’s more than enough biological complexity for a functional closed system. The three-species experiment succeeded not because of diversity per se but because the organisms occupied complementary roles: producer, decomposer, and consumer. As long as those roles are filled, the system has the basic architecture for cycling.

Adding Animals

The question of whether to include visible animals, snails, isopods, springtails, or shrimp, depends on the size and type of your jar. Springtails and tiny soil mites are almost always beneficial in terrestrial setups. They graze on mold and decaying matter, helping speed decomposition and prevent fungal overgrowth. They’re small enough that a jar’s resources can sustain a stable population, and they’ll arrive naturally in outdoor-collected soil.

Larger animals like isopods (pill bugs) or land snails are riskier. They consume more oxygen, produce more waste, and are more sensitive to temperature fluctuations. In a small jar, a single large snail can tip the oxygen balance and overwhelm the system’s waste-processing capacity. If you want to include them, use a larger container, at least two gallons, and keep the animal count very low. The NASA-funded microcosm research found that the initial number of animals was the critical variable determining whether the system stabilized or crashed, a lesson that scales down directly to a jar on your shelf.1Ecological Modelling. Development and global sensitivity analysis of a closed ecosystem model

Temperature and Placement

Temperature control is one of the least glamorous but most important factors. Most closed jar ecosystems do best at room temperature, roughly 18 to 24°C (65 to 75°F). Higher temperatures accelerate microbial respiration more than they accelerate photosynthesis, which shifts the gas balance toward carbon dioxide buildup. Lower temperatures slow everything down, which isn’t fatal but can leave the system sluggish and prone to moisture buildup because less water evaporates from the soil.

Avoid placing your jar near heating vents, radiators, or windows that get afternoon sun. A consistent temperature with a mild day-night cycle (a few degrees cooler at night) is ideal and mimics natural conditions. If you’re using a grow light, mount it above the jar rather than beside it to distribute light evenly and reduce the risk of heat concentration on one side.

Why NASA Cares About Your Jar

The science behind jar ecosystems connects directly to one of the more ambitious engineering problems in human spaceflight: keeping astronauts alive on long-duration missions without resupply from Earth. A crew traveling to Mars or living on the lunar surface would need a system that produces food, generates breathable air, recycles water, and processes waste in a closed loop, essentially a very large, very carefully engineered version of your jar.

NASA and its international counterparts have spent decades developing what they call bioregenerative life support systems. These use plants and microbes to perform the same functions your jar’s ecosystem does: photosynthesis for oxygen and food, microbial decomposition for waste processing and nutrient recovery. The concept for a Mars base prototype, for example, integrated crop growth, atmosphere management, and water recycling into a single closed system, verified through years of ground-based experiments.5Advances in Space Research. Integration of lessons from recent research for “Earth to Mars” life support systems The planned BIO-Plex facility at Johnson Space Center was designed so that plant food production systems would simultaneously supply breathable atmosphere and potable water to a crew, with different configurations for transit in microgravity and surface operations in partial gravity.6PubMed Central. Critical investments in bioregenerative life support systems for bioastronautics and sustainable lunar exploration

The challenges at that scale are the same ones you face in miniature: keeping gas ratios stable, managing microbial community shifts, preventing runaway decomposition, and dealing with the inevitable surprises that emerge when you seal living organisms into a closed space. Every sealed jar that stays green for a year is a small proof of concept for the systems that might one day feed people on another planet.

When to Open and When to Wait

One of the hardest parts of maintaining a sealed biosphere is resisting the urge to intervene. Foggy glass, a yellow leaf, a patch of mold: these trigger the impulse to open the jar and fix things. Most of the time, patience is the better choice. Condensation cycles naturally, rising during warmer parts of the day and clearing at night. Leaves yellow, fall, and decompose, feeding the soil. Mold blooms appear and recede as the microbial community adjusts.

There are a few situations where opening is justified. If you see standing water pooling at the bottom and the soil surface is visibly waterlogged, remove the lid for a few hours to let excess moisture evaporate, then reseal. If a plant is clearly dead and rotting rather than just shedding a leaf, remove it before the decomposition overwhelms the system’s capacity. If you detect a persistent foul smell when you unseal, the soil has likely gone anaerobic and may need partial replacement.

After any intervention, reseal and wait at least two weeks before judging whether the system has stabilized. The microbial community needs time to rebalance after even small disturbances. Frequent opening and closing introduces outside air, outside microbes, and disrupts the humidity equilibrium you’re trying to establish. The goal is a system that needs no input from you at all, and most well-built jars reach that point within a month or two of sealing.