Let’s grow a beautiful underwater jungle together, one tiny leaf at a time! If you’re keeping a smaller planted aquarium and you want stronger plant growth without jumping straight to a full pressurized cylinder, a citric acid and baking soda CO2 generator can be a very practical middle path. It’s real CO2, it can run through a diffuser, and with careful tuning it can be pleasantly consistent for many small setups.

A DIY aquarium CO2 generator setup on a countertop with two plastic reaction bottles, clear tubing, and a bubble counter connected to a planted aquarium

What this DIY CO2 system is and when it makes sense

A citric acid and baking soda generator makes CO2 by combining an acid (citric acid) with a base (sodium bicarbonate). The reaction produces carbon dioxide gas plus water and sodium citrate left behind in solution. In aquarium use, the goal is not maximum pressure. The goal is controlled gas delivery at a rate your tank can safely use.

Great fit

  • Nano and small tanks where a gentle bubble rate goes a long way.
  • Low to medium light planted tanks that want a boost.
  • Budget builds where you still want a “proper” diffuser and tubing.

Not a great fit

  • High light tanks that demand very stable, high CO2 all day.
  • Large aquariums where refill frequency gets annoying.
  • Anyone who cannot monitor livestock closely during tuning. CO2 mistakes happen fast.

If you already know you want rock-solid control and a set-it-and-forget-it routine, a true cylinder setup is the next step. Verdant Aqua has a full overview here: Pressurized CO2 setup for planted aquariums.

How the two-bottle generator works

Most aquarium-ready DIY generators use two bottles connected by tubing:

  • Citric acid bottle (Bottle A): a citric acid and water solution.
  • Baking soda bottle (Bottle B): a baking soda and water slurry.

When you open the system and add pressure, the citric acid solution is pushed into the baking soda bottle. As they meet, CO2 is produced. That CO2 builds pressure and feeds your aquarium line through a needle valve and bubble counter.

This design is popular because it is generally more controllable than yeast fermentation and can run a diffuser more reliably. Just keep expectations realistic: “Stopping” usually means closing the needle valve so bubbles to the tank stop. The chemical reaction can still continue in the bottles, and output can drift as pressure equalizes, especially right after adjustments.

Parts list (what you actually need)

There are two ways to do this: using an aquarium DIY CO2 generator kit (recommended for safety) or improvising with generic bottle caps and fittings (not recommended unless you really understand pressure-rated fittings).

Core components

  • Two pressure-capable bottles (often thick PET bottles supplied with kits).
  • Generator head with check valves and ports for the two bottles.
  • Needle valve to set bubble rate.
  • Bubble counter (helps you tune and notice drift).
  • Check valve on the aquarium line (prevents tank water backflow).
  • CO2 tubing (stiffer than airline, and CO2 permeates less through the tubing walls).
  • Diffuser or inline atomizer (diffuser is common for small tanks).

Strongly recommended safety upgrades

  • Pressure relief valve (many kits include one).
  • Pressure gauge so you can see what is happening.
  • Drop checker for a visual CO2 indicator (use with 4 dKH reference solution).

CO2 also behaves better when flow is good. If bubbles collect in one corner, plants and shrimp in the “quiet” zones do not get the same benefit. For circulation help, see Water circulation with lily pipes and surface skimmers.

Choosing a safe starting recipe

Different kits suggest different amounts, and bottle size matters. Instead of chasing a single universal recipe, use these safe starting ranges and then adjust based on how long a fill lasts and how stable your output is.

Good beginner range for many small kits

  • Bottle A (citric acid solution): 150 to 250 g citric acid in 600 to 900 ml water.
  • Bottle B (baking soda slurry): 200 to 300 g baking soda in 200 to 400 ml water.

Tips that keep the reaction calmer:

  • Use cool or room-temperature water, not warm. Warm water can speed the reaction.
  • Do not fill bottles to the top. Leave headspace for pressure and foam.
  • Dissolve Bottle A fully. Bottle B can be a slurry, but avoid hard clumps that block tubing.

If your kit came with instructions, follow the kit’s maximum fill lines and limits first. The biggest safety mistake is overfilling.

Step-by-step setup

A planted aquarium rim with CO2 tubing leading to a clear bubble counter and a glass diffuser placed low near the substrate

1) Assemble dry and leak-check first

  • Attach the generator head to both bottles while everything is empty.
  • Install the needle valve, bubble counter, and check valve in the correct direction of flow.
  • Make sure the check valve arrow points toward the aquarium.

Before you add chemicals, confirm that every gasket is seated and every connection is snug. Hand-tight is usually enough for plastic threads. Over-tightening can crack caps or deform seals.

2) Fill Bottle A (citric acid)

  • Add water first, then citric acid.
  • Swirl until fully dissolved and clear.

3) Fill Bottle B (baking soda)

  • Add baking soda and then water.
  • Swirl gently. It does not need to fully dissolve.

4) Pressurize and start slowly

Most kits start when you open the valve and allow a little acid to push into Bottle B. The first minutes can be lively. Start with the needle valve nearly closed and creep up on your bubble rate. Small adjustments, then wait, is the whole trick.

5) Place the diffuser and set your tank’s flow

  • Put the diffuser low in the tank so bubbles have time to dissolve.
  • Aim flow so microbubbles travel through the tank, not straight to the surface.
  • Keep surface agitation moderate. You want oxygenation, but excessive rippling drives CO2 off.

Tuning without stressing fish or shrimp

CO2 is powerful plant fuel, but it also changes how easy it is for livestock to breathe. The safest approach is to increase slowly over days, not minutes.

Start low (and treat bubbles as a rough clue)

  • For many small tanks, starting around 1 bubble per 3 to 5 seconds can be a gentle first step.
  • Bubble counts are not comparable across bubble counters, diffusers, and tank sizes. Use them as a baseline for your own setup, not as a universal target.
  • Wait a few hours and watch behavior before increasing.

Use a drop checker, but remember it lags

  • A drop checker gives a slow, averaged read. Expect a 1 to 2 hour delay between a change at the needle valve and the color catching up.
  • Many planted tanks aim for a green drop checker during the photoperiod. Yellow usually means too much, but color can be skewed by old indicator fluid or a weak mix. Refresh it periodically.

Run CO2 on a schedule

Citric and baking soda systems can be dialed down, but they can also drift after you close or reopen the needle valve. Consistency helps.

  • On time: often 1 to 2 hours before lights so CO2 is available at “plant breakfast.”
  • Off time: often 1 hour before lights out.

Light intensity and photoperiod decide how much CO2 your plants can use. If you are still dialing in lighting, this guide helps: Planted tank lighting: PAR, spectrum, and photoperiod.

Measure CO2 better than bubbles

If you want a more reliable way to tune than bubble watching, track pH drop.

  • Measure pH right before CO2 comes on (or after the tank has been well-aerated with no CO2 overnight). This is your baseline.
  • Measure pH again a couple of hours into the photoperiod once CO2 is running steadily.
  • A common planted-tank heuristic is aiming for roughly a 1.0 pH drop from baseline, then fine-tuning based on livestock comfort and plant response.

Two important notes: pH probes and test kits can be finicky, so focus on trends, not single readings. Also, KH and pH chart lookups can mislead if your tank uses buffering substrates, added acids, or certain fertilizers. Use pH drop and animal behavior as your compass.

Getting stable output

DIY generators get a reputation for swings because small changes in pressure, temperature, and diffuser resistance can change output. You can calm that down with a few habits:

  • Keep the bottles at a stable temperature. Sunlight or a heater nearby can increase pressure and output.
  • Do not shake the bottles once running. Shaking spikes the reaction and can push liquid into the lines.
  • Check the bubble counter daily. Expect some drift over the run. If it creeps up, close the needle valve slightly.
  • Clean the diffuser regularly so you do not need to keep increasing pressure to maintain mist.

Safety rules (please do not skip these)

A close view of CO2 tubing with a check valve installed in-line next to an aquarium cabinet, showing the valve arrow pointing toward the tank
  • Never exceed your kit’s rated pressure. Use a pressure gauge if available.
  • Always use a check valve. Back-siphon can flood the needle valve, ruin consistency, and drip tank water into the generator.
  • Keep the generator below the tank if possible. This reduces siphon risk.
  • Keep bottles upright and secured so they cannot tip.
  • Do not let kids or pets bump the system. Sudden movement can send liquid into tubing.
  • Watch livestock. If fish are piping at the surface or shrimp are unusually still or clustered near flow, shut CO2 off and add surface agitation immediately.

On room safety: at typical aquarium bubble rates, CO2 is unlikely to build up to dangerous levels in a normal-sized room. The immediate risks are livestock suffocation and pressure or liquid intrusion. Still, it is sensible to keep the generator in a ventilated spot and never seal it inside an airtight box.

If you ever suspect you are overdoing CO2, prioritize oxygenation first. Point your filter output up to break the surface and consider an airstone temporarily. Once everyone is calm, lower the bubble rate and rebuild slowly.

Shutdown and end-of-run

When a fill is nearing the end, pressure drops, bubble rate fades, and some setups become more prone to backflow. A calm shutdown routine keeps things clean and predictable.

  • Close the needle valve to stop flow to the tank.
  • Prevent back-siphon: keep the check valve in place and keep the generator below the tank. If you see water creeping backward, disconnect the line at the tank end and keep it above water level.
  • Depressurize slowly using the kit’s relief valve or vent method, if provided. Do it away from your face and electronics.
  • Dispose of leftovers sensibly: the remaining liquid is mainly sodium citrate solution. Pour it down the sink with plenty of water, then rinse bottles well before the next mix.

Common problems and quick fixes

Bubble rate slowly drops over days

  • Cause: reaction is nearing completion, diffuser is clogging, or a small leak is developing.
  • Fix: clean diffuser, check all seals with soapy water on the outside of fittings, then refill when pressure is truly low.

Bubble rate keeps climbing on its own

  • Cause: warming temperature, unstable needle valve, or acid is pushing in faster than expected.
  • Fix: move bottles away from heat, close needle valve slightly, and verify the system is not being bumped.

No bubbles at all

  • Cause: needle valve closed, a kinked line, check valve reversed, or the kit is not pressurized.
  • Fix: confirm flow direction, straighten tubing, and verify the generator head is seated properly.

Foam or liquid enters the tubing

  • Cause: overfilled bottles, shaken bottles, or reaction started too aggressively.
  • Fix: stop the system, vent carefully, clean the bubble counter and lines, and restart with more headspace and slower opening.

Diffuser will not mist

  • Cause: new diffusers often need a soak, or pressure is too low for that specific ceramic disc.
  • Fix: soak the diffuser in water for several hours, check for clogs, and confirm the system is building pressure. If you keep cranking pressure to force mist, consider a diffuser better matched to DIY output.

Microbubbles everywhere

  • Cause: diffuser placed directly in high flow, or the mist is so fine it gets carried through the whole tank.
  • Fix: move the diffuser lower or into gentler flow, or redirect outlet flow so mist travels across plants instead of blasting straight upward. If fish seem irritated, back down the rate and increase surface movement slightly.

Algae appears after adding CO2

For broader plant and tank stability issues, you can also browse Maintenance & troubleshooting.

How long does a fill last?

It depends on bottle size, recipe strength, temperature, diffuser resistance, and your bubble rate. In general:

  • Lower bubble rates on a nano tank can last a week or more.
  • Higher bubble rates or clogged diffusers can shorten runtime significantly.

A good habit is to log three things for a couple of cycles: starting pressure, your bubble counter setting, and how many days you reach low output. You will quickly find a mix and routine that match your tank’s appetite.

When to upgrade to pressurized CO2

If you love the plant growth but you are tired of refilling bottles, or if your aquascape needs steadier CO2 to avoid algae swings, it may be time to step up.

  • Upgrade triggers: frequent refills, drifting output, sensitive livestock, or higher light layouts.
  • Upgrade benefits: steadier delivery, easier scheduling with a proper solenoid, and better long-term cost efficiency for larger tanks.

Solenoid note: many citric kits use “regulator” as a loose term and are basically a needle valve plus gauges. Only add a solenoid if your kit is explicitly designed for it and rated for that use. Otherwise, keep it simple and run a consistent manual schedule.

When you are ready to compare options, this guide maps the path: Pressurized CO2 setup for planted aquariums.

Quick FAQ

Is citric acid and baking soda CO2 safe for shrimp tanks?

It can be, but only if CO2 is introduced slowly and kept stable. Shrimp are sensitive to rapid changes. Start with a very gentle rate, ensure good oxygenation, and watch behavior closely during the first week of tuning.

Can I use regular airline tubing?

CO2-specific tubing is better because CO2 permeates less through the tube walls. Airline tubing will work in a pinch, but efficiency and consistency can suffer.

Do I need a solenoid?

Not required. It can be helpful if your regulator and kit are designed for it, but many DIY chemical generator kits do not accept standard solenoids safely. If automated on and off is a top priority, pressurized CO2 becomes appealing.

Should I run CO2 24/7?

Most planted tanks do not need CO2 at night when plants are not photosynthesizing. Nighttime CO2 can increase stress on livestock, especially if surface agitation is low.

One last shrimp-sized reminder

CO2 is like sunlight in a bottle. A little wakes up your plants, and too much can overwhelm the whole habitat. Start gentle, tune slowly, and aim for calm consistency. Your plants will reward you with sturdier growth and that magical stream of pearling bubbles drifting up through the leaves.