The Invisible Breath of a Terrarium: How the Oxygen Cycle Works
How plants, tiny organisms and the air inside the glass keep a miniature ecosystem alive.
There's something rather fascinating about closing the lid on a terrarium. Inside that glass container are living plants, moss, perhaps a few springtails, and an entire community of microorganisms hidden in the growing medium.
All of them are alive. All of them need energy. And many of them depend on oxygen to release that energy. Yet some closed terrariums can remain sealed for years, with their plants continuing to grow.
So how does everything inside keep breathing?
Doesn't the oxygen eventually run out?
The answer lies in two biological processes that work alongside one another: photosynthesis and cellular respiration.
Together, they help explain how the air inside a closed terrarium can support life for such a surprisingly long time.
A Closed Terrarium Isn't Cut Off from Everything
When we talk about a closed terrarium, we usually mean that very little water or air moves between the container and the surrounding room. But that doesn't mean the terrarium is completely isolated.
Light still enters through the glass, providing energy that plants can use. Heat also moves between the terrarium and its surroundings.
This distinction is important.
A closed terrarium can recycle much of the matter already inside it, including water, carbon and oxygen-containing compounds. But it still needs an external source of energy to keep its biological processes going.
And for a planted terrarium, that energy comes primarily from light.
Photosynthesis: Where the Oxygen Comes From
Most of us learned about photosynthesis at school, but it's worth looking at what actually happens. Plants absorb light through pigments such as chlorophyll, found in specialised structures called chloroplasts.

Using that light energy, they convert carbon dioxide and water into sugars that can be used for growth and other biological processes. Oxygen is released as part of this process.
In simplified form:
Carbon dioxide + Water + Light energy → Sugar + Oxygen
The carbon dioxide comes from the air around the plant, while water is absorbed through the roots or, in some plants and mosses, across other surfaces.
Interestingly, the oxygen released during photosynthesis comes from the splitting of water molecules, rather than directly from the carbon dioxide.
Inside a closed terrarium, the oxygen produced can become part of the air available to the other living organisms. But there's an important detail that often gets overlooked.
Plants don't only produce oxygen. They also use it.
Further reading: The Royal Horticultural Society explains how plants breathe and exchange gases, including the relationship between photosynthesis and respiration.
Plants Need Oxygen Too
While photosynthesis allows plants to capture and store energy, they still need a way to release that energy for their cells to use.
That's where cellular respiration comes in. During aerobic respiration, cells use oxygen to break down sugars and release energy for processes such as growth, repair and maintaining living tissues. Carbon dioxide and water are produced in the process.
In simplified form:
Sugar + Oxygen → Carbon dioxide + Water + Usable energy

And unlike photosynthesis, respiration doesn't stop when the lights go out. Plants respire throughout the day and night. During the day, photosynthesis and respiration happen simultaneously. Under suitable lighting conditions, photosynthesis may produce more oxygen than the plant consumes through respiration.
At night, when photosynthesis stops, the plant continues respiring, using oxygen and releasing carbon dioxide. So the relationship between oxygen and carbon dioxide inside a terrarium changes throughout the day.
This is perfectly normal.
Further reading: Oregon State University's guide to plant growth and development explains the differences between photosynthesis and respiration.
What Happens Inside the Glass During the Day and Night?
Imagine a healthy closed terrarium sitting in a room with suitable indirect light. During the day, its plants are photosynthesising.
They absorb carbon dioxide, use light energy to produce sugars, and release oxygen. At the same time, the plants, roots and microorganisms continue respiring.
If photosynthesis exceeds the combined oxygen consumption of respiration and other processes, the oxygen concentration inside the glass can increase.
As the light fades, photosynthesis slows. Once it becomes dark, photosynthesis stops, but respiration continues. Oxygen is consumed and carbon dioxide is released. When light returns, photosynthesis can begin again.
It's tempting to imagine that the oxygen level simply rises during the day and falls at night in a perfectly repeating pattern. In reality, the balance depends on several things, including light intensity, plant growth, temperature, the amount of living material and the activity of microorganisms.
A healthy closed terrarium doesn't necessarily maintain identical oxygen and carbon dioxide concentrations throughout the day.
Instead, those concentrations can fluctuate as the biological processes inside continue.
The Tiny Organisms Have a Part to Play
This is where the story becomes even more interesting. A terrarium isn't made up of plants alone.
The growing medium contains bacteria, fungi and other microorganisms. Some terrariums also contain springtails, small woodlice and other tiny creatures. These organisms contribute to the ecosystem in ways that aren't always visible.
When a leaf dies or a small piece of organic material begins to decompose, microorganisms help break it down. Many of these decomposers use oxygen during respiration and release carbon dioxide. That carbon dioxide can then become available for photosynthesis. Meanwhile, nutrients released through decomposition may become available to plants and other organisms.
It's an interconnected system.

The plants provide organic material and, through photosynthesis, oxygen. The decomposers process dead organic matter and return carbon dioxide and nutrients to the environment.
But there's an important limit.
Decomposition consumes oxygen, and excessive amounts of decaying material can create problems, particularly in a small, wet environment. This is one reason I don't think a terrarium should simply be left to accumulate unlimited amounts of dying plant material.
A few decomposing leaves may be part of normal ecosystem activity. A large amount of rotting vegetation is something quite different.
The same microorganisms that contribute to a healthy ecosystem can become part of a problem when conditions are unsuitable.
The Hidden Importance of Oxygen Around the Roots
When we think about oxygen in a terrarium, we usually imagine the air surrounding the leaves.
But oxygen is just as important beneath the surface. Roots are living tissues, and they need oxygen for aerobic respiration. In a healthy growing medium, some of the spaces between particles contain air, allowing oxygen to move towards the roots.
When those spaces become filled with water for too long, oxygen moves much more slowly through the saturated material. The roots and microorganisms continue consuming oxygen, and the available supply can become depleted. This can lead to oxygen-poor conditions that damage roots and interfere with normal plant function.
It's one of the reasons why a humid terrarium and a waterlogged terrarium are not the same thing. Many tropical plants enjoy high humidity around their leaves while still needing an appropriately aerated growing medium around their roots.
At Living Art, this is something I consider when selecting the growing medium and constructing the layers beneath the plants.
The drainage layer provides space for excess water to collect, while the growing medium needs to retain enough moisture without remaining excessively saturated.
The layers don't create oxygen, and a drainage reservoir doesn't automatically prevent waterlogging. Their purpose is to help create suitable physical conditions for the roots.
Understanding that difference is an important part of building terrariums that remain healthy over time.
Do Closed Terrariums Eventually Run Out of Oxygen?
This is probably the question I find most interesting.
If every plant and microorganism is using oxygen, and the container is sealed, why doesn't everything eventually suffocate? Because oxygen isn't simply being consumed without replacement.
Photosynthesis produces oxygen, while respiration consumes it and returns carbon dioxide. That carbon dioxide can then be used again during photosynthesis. In a sufficiently balanced system, these processes can continue for a very long time.
But balance doesn't mean the gases are recycled with perfect efficiency or that their concentrations always remain constant.
Carbon is also stored in growing plants, dead organic material and the growing medium. Oxygen and carbon dioxide can dissolve in water, and different biological processes influence their availability.
A closed terrarium is therefore a dynamic biological system, not a perfectly predictable machine. If there isn't enough light for photosynthesis, or if oxygen consumption becomes unusually high because of extensive decomposition, the balance can shift.
So the answer is that a healthy closed terrarium can continually replenish oxygen through photosynthesis, but its long-term stability depends on suitable conditions.
The fact that some terrariums survive for years doesn't mean every sealed container will automatically do the same.
What About Semi-Closed Terrariums?
Some of my favourite Living Art designs are semi-closed terrariums.
As we've explored in our previous blog about the water cycle, these designs offer a useful middle ground between a completely sealed environment and an open one. They retain humidity around the plants and moss while allowing some exchange of air with the surrounding room.
This means oxygen and carbon dioxide aren't dependent entirely on the processes taking place inside the glass. Gases can also move through the opening. That can be particularly useful for plants that appreciate humid conditions but benefit from additional air exchange, including certain miniature orchids.
I also like the flexibility these designs provide while a new terrarium is settling into its environment. As the plants establish themselves and the moisture conditions stabilise, I can observe how the little ecosystem responds.
In some designs, it's then possible to add a properly fitting lid and convert the terrarium into a fully closed system. Of course, this depends on the plants. Some are better suited to remaining semi-closed, and sealing a container changes both its moisture behaviour and its gas exchange.
For me, the goal isn't to close every terrarium eventually. It's to create the right environment for the plants living inside it.
And ultimately, I want the terrariums my clients take home to remain beautiful, healthy additions to their spaces for years and years to come.
Does a Closed Terrarium Need Fresh Air?
Not necessarily.
A well-established, appropriately planted closed terrarium can sometimes remain sealed for years without routine ventilation.
But that doesn't mean opening a terrarium is always harmful, or that every terrarium should be kept sealed regardless of its condition.
Sometimes opening the lid is useful for removing decaying material, pruning plants, managing excessive moisture or addressing a developing problem.
It's also important to understand that condensation doesn't tell us how much oxygen is inside the glass. Condensation reflects moisture and temperature conditions, not the concentration of oxygen or carbon dioxide.
Likewise, a terrarium that looks green and healthy isn't necessarily proof that its internal gases are perfectly balanced.
We generally can't measure those concentrations simply by looking at the glass.
What we can do is create suitable conditions for the biological processes that support the ecosystem, then observe how the plants respond over time.
Further reading: The Royal Horticultural Society's guide to terrariums and bottle gardens offers practical advice on plant selection, light, moisture and long-term terrarium care.
Light: The Energy That Keeps It All Going
There's one final piece of the puzzle that I think deserves special attention.
Water and gases can be recycled within a closed terrarium, but energy must continually enter the system. Without enough light, plants cannot photosynthesise at a rate sufficient to support healthy growth indefinitely.
Respiration, however, continues.
Over time, inadequate light can cause plants to use more of their stored energy than they replace, leading to weak growth and declining health.
This is why a closed terrarium shouldn't be thought of as something that can simply be sealed and placed anywhere. The right amount of light is essential.
For many of the tropical plants we use at Living Art, bright, indirect light is a suitable starting point, although individual species may have different requirements.
Too much direct sunlight can also be harmful. Glass containers can heat up considerably, creating temperatures that stress or damage the plants inside. A successful terrarium therefore depends not only on what happens inside the glass, but also on where that glass is placed.
A Little World That Keeps Breathing
The next time you look at a closed terrarium, consider everything happening that you cannot see.
The leaves are exchanging gases with the air. The roots are using oxygen beneath the surface. Microorganisms are breaking down organic material, releasing carbon dioxide and returning nutrients to the growing environment.
As light enters the glass, plants use its energy to produce sugars and release oxygen. And throughout the day and night, these processes continue interacting.

I find it remarkable that something so small can contain so many interconnected biological processes. A terrarium isn't simply a collection of plants enclosed in glass. It's a miniature environment where living organisms depend on one another and on the physical conditions surrounding them.
The more I learn about these little worlds, the more I appreciate the complexity hidden behind something that appears so simple.
And perhaps that's one of the loveliest things about creating terrariums: they give us a chance to observe and appreciate the extraordinary processes that sustain life, right there on a shelf in our homes.
Living Art, Perfectly Composed.
Explore our terrariums and DIY kits, thoughtfully created to help you discover the beauty of your own miniature ecosystem.




Comments