Skip to main content
Calcimator

CO2 Injection Calculator

CO2 rate for planted aquarium from tank size and plant mass.

About this calculator

Dissolved CO2 in aquarium water can't be measured directly with a simple test kit, but it can be calculated precisely from two things that can: pH and carbonate hardness (KH). This works because CO2 dissolving in water forms carbonic acid, which lowers pH, while KH (the water's buffering capacity from dissolved carbonates) resists that pH change — so for any given KH, a specific pH value corresponds to a specific dissolved CO2 concentration, captured in the widely used aquarium chemistry relationship CO2 (ppm) = 3 × KH × 10^(7 − pH). This calculator runs that formula both directions: given your KH and a target pH, it tells you the resulting CO2 level, and given your KH and a target CO2 level, it works backward to the pH you should expect to see once you get there — two views of the same underlying relationship.

Bubble rate and gas flow are separate, rougher estimates layered on top of the KH-pH-CO2 chemistry, translating a target concentration into a practical bubble-counter setting using typical bubble size and tank volume — these numbers are a starting point for dialing in your specific regulator and diffuser setup, not an exact prediction, since actual dissolution efficiency varies with diffuser type, surface agitation, and how much CO2 escapes before it dissolves. Expected pH drop compares your target pH against the water's likely resting pH at atmospheric CO2 levels (roughly 3-4 ppm, what water naturally reaches in equilibrium with air), giving a sense of how far you're pushing the tank's pH down from its natural baseline through injection.

Inputs

Results

CO2 at Target pH (ppm)

19

Bubble Rate (bubbles/sec)

1.4

pH for Target CO26.68
CO2 Flow (mL/min)4.17
Expected pH Drop0.92
Daily CO2 Usage (grams)4
Tank Liters75.71
How to Use This Calculator
  1. Enter Tank Volume (gallons), Target CO2 (ppm), and Carbonate Hardness (dKH).
  2. Set Target pH.
  3. Review CO2 at Target pH (ppm) and Bubble Rate (bubbles/sec).
  4. Use pH for Target CO2 and CO2 Flow (mL/min) to inform your decision.

How the result changes with Target pH

Target pHCO2 at Target pH (ppm)Bubble Rate (bubbles/sec)
5.8190.21.4
6.5533.81.4
7.454.31.4
8.20.81.4

What each input means

Tank Volume (gallons)
Total water volume of your planted aquarium in US gallons.
Target CO2 (ppm)
Desired CO2 concentration. 20-30 ppm is ideal for most planted tanks. Above 30 ppm can stress fish.
Carbonate Hardness (dKH)
Your water's KH reading in degrees of carbonate hardness. Typically 3-8 dKH.
Target pH
Desired pH level. CO2 injection lowers pH. Most planted tanks target 6.4-7.0.

What each result means

CO2 at Target pH (ppm)
CO2 concentration that results from your KH at the target pH (3 × KH × 10^(7-pH)).
pH for Target CO2
The pH your water will settle at when target CO2 concentration is reached.
Bubble Rate (bubbles/sec)
Estimated bubble counter rate to achieve target CO2.
CO2 Flow (mL/min)
Approximate CO2 gas flow rate.
Expected pH Drop
pH reduction from atmospheric equilibrium (~3-4 ppm CO2) to your target.
Daily CO2 Usage (grams)
Estimated daily CO2 consumption assuming 8-hour injection during photoperiod.

How this is calculated

Worked example, using the default values

  1. Identify Input Parameters
    4 parameters
    Tank Volume (gallons) = 20, Target CO2 (ppm) = 25, Carbonate Hardness (dKH) = 4, Target pH = 6.8 = 4 input(s) provided
  2. Calculate CO2 at Target pH
    CO2 at Target pH = 3 * kh * pow(10, 7 - phTarget)
    19 = 19
  3. Calculate Bubble Rate
    Bubble Rate = (tankVolume / 12) * (targetCo2 / 30)
    1.4 = 1.4
  4. Calculate pH for Target CO2
    6.68 = 6.68
  5. Calculate CO2 Flow
    CO2 Flow = bubbleRateBps * 60 * 0.05
    4.17 = 4.17

Engine last updated . Checked against 2 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.

Frequently Asked Questions

Why does carbonate hardness (KH) matter for calculating CO2 levels?

KH measures the water's buffering capacity against pH changes, and dissolved CO2 forms a weak acid that lowers pH — the more buffering capacity (higher KH) the water has, the more CO2 it takes to push pH down by the same amount. This is exactly why the same CO2 concentration produces a different pH reading in low-KH water versus high-KH water, and why the formula multiplies KH directly into the CO2 calculation rather than treating pH alone as sufficient.

Is the bubble rate estimate accurate enough to set my regulator without testing?

Treat it as a reasonable starting point rather than a precise final setting — bubble size and CO2 dissolution efficiency vary meaningfully between different diffusers, reactors, and tank setups, so two tanks at the identical calculated bubble rate can end up with somewhat different actual dissolved CO2. Most aquarists use this kind of estimate to get in the right neighborhood, then fine-tune the actual rate while monitoring fish behavior and a drop checker or direct CO2 test.

Why does pushing CO2 above 30 ppm risk stressing fish?

Fish extract oxygen from water through their gills, and elevated CO2 in the water interferes with that oxygen exchange even when dissolved oxygen levels themselves are adequate, essentially making it harder for fish to breathe. This is why planted-tank keepers running higher CO2 for plant growth typically increase surface agitation right before lights-out, allowing excess CO2 to off-gas overnight when fish are most vulnerable and photosynthesis isn't consuming any of it.

What does 'pH for Target CO2' tell me that I couldn't get from a standard pH test?

A standard pH test only tells you the current pH, not why it's at that level or what CO2 concentration is causing it — this figure inverts the KH-CO2-pH relationship to predict what pH your tank should settle at once you've reached your desired CO2 target, given your measured KH. Comparing that predicted value against what your pH probe actually reads is a useful sanity check on whether your CO2 injection is landing where you intended.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Family, Parenting & Pets.