Aquarium Ecology Overview
This page is a guided tour of how an aquarium actually works as an ecosystem — the organisms, the chemistry, and the day-to-day dynamics that determine whether your tank thrives, stalls, or crashes. It is meant to give you a working mental model before you dive into the topic-specific pages that follow.
If you are brand new to thinking about aquariums as ecosystems, read it top to bottom. If you already have hands-on experience, skim for sections that feel new or counter to common wisdom — there are usually a few.
The cycle that keeps a tank alive
Every aquarium runs on the same fundamental loop. Light enters the water and primary producers — algae and aquatic plants — use it to photosynthesize, pulling dissolved CO2 from the water and building it into biomass while releasing oxygen as a byproduct. They also take up dissolved nitrogen (ammonium or nitrate) and phosphate to construct their cells. Grazers eat producers and each other, excreting ammonium back into the water and producing fecal pellets. When anything dies, its remains become detritus, and bacteria decompose detritus back into the dissolved ammonium and phosphate that producers depend on.
This is the nutrient cycle, and in a stable tank it runs continuously. When it stalls — too little decomposition, too much grazing pressure, runaway algae, an unestablished nitrogen cycle — the ecosystem starts drifting toward failure. Most of what is described on this page is some flavor of how that loop can succeed or fail in different setups.
Day and night
Photosynthesis stops the moment the lights go off, but respiration doesn't. Every organism in the tank keeps consuming oxygen overnight, so dissolved O2 falls until morning. In a healthy system this nightly draw is comfortably less than what photosynthesis produced during the day, and oxygen rebounds. In an overstocked or under-planted tank the morning O2 minimum can dip into hypoxia — and once it crosses below about 2 mg/L, sensitive species start to suffer.
The same cycle drives pH. Photosynthesis pulls CO2 out of the water (lifting pH); respiration and decomposition put CO2 back (dropping pH). In poorly buffered water, pH can swing by a full unit over 24 hours. This is one of the reasons hard, well-buffered water is so forgiving for animals — alkalinity resists these swings.
Temperature can also follow a daily cycle if your setup is not actively heated, peaking in the late afternoon. Most species tolerate a few degrees of swing without issue, but it shows up in the rates — respiration accelerates with temperature on a Q10 curve, roughly doubling for every 10 °C of warming.
Producers
Producers fall into two broad camps: microalgae (mostly single-celled, invisible until populations are dense enough to color the water or coat surfaces) and macrophytes (the aquatic plants you actually see).
The microalgae split by lifestyle:
- Planktonic green algae — fast-growing unicellular forms drifting in the water column. The cause of "green water" blooms.
- Benthic green algae and periphyton — slower-growing surface-attached communities that form biofilms on glass, leaves, and substrate.
- Filamentous algae — surface-attached strands and mats that compete with rooted plants for light and nutrients.
- Diatoms — cold-adapted, silica-shelled algae that bloom early in a new tank and crash when dissolved silica runs out.
- Cyanobacteria — technically bacteria rather than algae, but they photosynthesize like algae and capable of fixing atmospheric N2 when dissolved nitrogen runs low. Often the first visible sign of a stalled or imbalanced tank.
The macrophytes split by where they live and where they get their nutrients:
- Rooted macrophytes (Cryptocoryne, Vallisneria) draw nutrients from both the water column and the substrate through their roots, growing 10–100× more slowly than microalgae. In tanks with organic soil, they tap pore water nutrients that no other producer can reach.
- Floating macrophytes (Salvinia, duckweed) sit at the surface with direct access to atmospheric CO2 — a big advantage over submerged plants competing for dissolved CO2. They scavenge dissolved nutrients aggressively and cast a shading canopy over everything below.
- Submerged macrophytes (Hornwort) are rootless plants suspended in the water column. They compete head-to-head with algae for the same dissolved nutrients and light.
Producers don't just feed the system, they also shape its physical structure. Dense planktonic algae shade themselves and the surfaces below them (self-shading), capping their own growth. Floating plants can cast a canopy that starves every submerged producer of light. Macrophyte leaves provide surface area for biofilms and shelter for the small animals living among them. A planted tank is physically a different place than an unplanted one, and that difference shows up in nearly every dynamic.
Consumers
Consumers are the animals that eat producers, each other, and the dead organic matter in the system. The model spans several functional guilds:
- Filter feeders (Daphnia, rotifers) strain planktonic algae and bacteria from the water.
- Raptorial hunters (cyclopoid copepods) actively chase down other zooplankton.
- Benthic scrapers (bladder snails, cherry shrimp) graze biofilms and periphyton off surfaces.
- Detritivores and shredders (ostracods, amphipods) feed on settled organic matter and fragment it into finer pieces in the process.
- Sit-and-wait predators (hydra) capture prey that come within reach of their tentacles.
The role of grazers in stability is more subtle than "they eat algae." Too few grazers and producers can bloom unchecked, eventually shading themselves into collapse. Too many grazers and the producer population crashes before it can recover, taking the grazers down with it through starvation. A tank that holds steady at moderate biomass over months is one where these pressures roughly balance.
Surface-attached prey enjoy a special kind of protection: the EPS (extracellular polymeric substance) matrix that bacteria and algae secrete as they colonize a surface gradually matures into a structural scaffold that shelters its residents from being grazed away. This is why certain species — ostracods especially — need a tank to age for months before they can establish viable populations. They need a mature biofilm to live in, not just food to eat.
Microbes
Bacteria and fungi are the recycling engine. They decompose dead organic matter back into the dissolved nutrients producers need, and without them a tank would silt up with detritus within weeks.
The microbial side of the food web is more varied than it looks:
- Nitrifying bacteria convert toxic ammonium step by step into nitrate. Until this guild establishes — the "cycling" period of a new tank — ammonium is the most acute danger to animal life.
- Heterotrophic bacteria decompose dead biomass and detritus, turning organic carbon, nitrogen, and phosphorus back into their dissolved forms.
- Aquatic fungi specialize in tough, refractory organic matter (lignin, cellulose, humic polymers) that bacteria handle poorly. They condition this material into forms bacteria can then exploit — a process called fungal conditioning.
- Anaerobic guilds (denitrifiers, sulfate reducers, methanogens) live deep in the substrate where oxygen has run out, and respire using nitrate, sulfate, or CO2 instead of oxygen. They are why deep organic substrates have such a different chemistry than shallow ones.
Microbes are also food. Tiny protists called heterotrophic nanoflagellates (HNF) eat bacteria; ciliates eat HNF and bacteria; copepods and rotifers eat ciliates. This chain — from dead matter to bacteria to HNF to ciliates to zooplankton — is the microbial loop, and it is the route by which energy locked up in detritus gets back into the visible food web.
Water chemistry
A few chemical species in solution shape what is possible in your tank.
Dissolved inorganic carbon exists as CO2, bicarbonate, and carbonate, with the equilibrium between them shifting with pH. Most algae prefer to use CO2 directly, but some species can pump bicarbonate into their cells through carbon concentrating mechanisms and convert it internally — a useful trick when free CO2 is scarce at high pH.
pH is not an independent property of water; it is a consequence of the balance between alkalinity and dissolved CO2. The same tank can hit pH 8.5 mid-day and pH 7.2 by morning if its alkalinity is low. This swing matters a lot to ammonia toxicity because NH3 — the form that actually poisons fish — makes up about 0.5% of total ammonia at pH 7.0 but 18% at pH 8.5. The same measured ammonia reading is dramatically more dangerous in a high-pH tank.
Trace iron and molybdenum sit at the center of the nitrogen cycle. Iron is structurally essential to nitrogenase (N2 fixation), ammonia monooxygenase (nitrification), and nitrate reductase (denitrification); molybdenum is the active-site cofactor of nitrate reductase and nitrogenase. Limiting either one throttles multiple N cycle pathways simultaneously. Iron also drags phosphate with it when it precipitates out of oxic water, and releases that phosphate again when reduced back to soluble form in anoxic sediment — the source of the "internal P loading" pulses that aging planted tanks are famous for.
Gas exchange
If your tank is open to the atmosphere, oxygen, CO2, and ammonia move freely between the water and the air, gradually pulling each pool toward equilibrium with outside air. In a sealed system, those gases simply redistribute between the water and the headspace above it — total oxygen is conserved, so a falling dissolved O2 reading might just mean the oxygen moved into the air, not that it disappeared. This is governed by Henry's law and the two-film model, which accounts for resistance on both sides of the air-water interface. For O2 and CO2 the water side is the bottleneck; for NH3 the air side dominates, which makes ammonia volatilization much slower than you might naively expect.
Ammonia exchange is pH-dependent in another way too: at high pH more total ammonia exists as volatile NH3 and escapes to the headspace. In open systems this can be a slow but real ammonia-removal pathway; in sealed jars it can cause an ammonia spike to vent into the air and partially self-correct.
What makes an ecosystem stable
A stable aquarium is one where populations fluctuate but persist. In rough terms: oxygen stays above about 2 mg/L overnight, pH stays roughly between 6.5 and 9.0, dissolved nutrients cycle rather than accumulate or deplete, and every species is still present at the end of the run.
Failure usually takes one of a handful of shapes:
- Oxygen crash — respiration outpaces photosynthesis and the morning O2 minimum dips below survivable.
- Algae overgrazed to extinction — grazers eat producers down to nothing, then starve.
- Detritus accumulation — decomposition can't keep up with input, organic matter piles up and starts driving the substrate anaerobic.
- pH runaway — unbalanced photosynthesis or decomposition pushes pH outside the range animals can tolerate.
- Extinction events — once a population drops below a critical extinction threshold, it can no longer sustain itself and dies out even if conditions recover.
Every species has tolerance ranges for temperature, salinity, pH, oxygen, and ammonia, and mortality climbs as conditions move outside those ranges. Photosynthesis follows a thermal optimum curve — each species photosynthesizes fastest at a particular temperature and less at temperatures both above and below it. This is what makes community design interesting: a temperature that suits one species can starve another, and a tank that looks balanced on paper can be quietly running every one of its species at a fraction of their potential.
Where to go next
Each section above has a dedicated page that goes deeper:
- The food web from the bottom up — Producers, Consumers, Microbes
- How nutrients move through the system — Nutrient Cycling
- The abiotic side — Chemistry, Environment, Death and Decomposition
- The big picture — Food Web, Stability and Failure
- Individual organisms — Species Catalog
- Unfamiliar terms — Glossary