How aquarium CO₂ is calculated
Dissolved CO₂ in an aquarium follows the carbonate chemistry of the water. When carbonate hardness (KH) is the dominant buffer - i.e., no phosphate buffer or organic acids – pH and KH are enough to derive CO₂ from first principles. The widely-used "Krib equation", named after the now-archived plant-tank reference site that popularised it, is:
CO₂ (mg/L) = 3.00 × KH (dKH) × 10^(7 − pH)Worked example: pH 6.8 and KH 4 dKH at 25 °C.
CO₂ = 3.00 × 4 × 10^(7 − 6.8) = 3.00 × 4 × 1.585 ≈ 19.0 mg/LThat's just under the 20–30 mg/L target: plants grow, with room for a little more CO₂. A 4 dKH drop checker would settle at pH 6.8 and read green. If the result doesn't match what you see in the tank, suspect the KH test first (low-KH tests are notoriously flaky) or another acid depressing pH without involving carbonate.
The temperature correction comes from carbonic acid itself, not from gas solubility: pH, KH and CO₂ are linked by its first dissociation constant (pK₁), and cold water dissociates less, so the same pH and KH mean more CO₂. At 25 °C the correction is zero; at 20 °C CO₂ is about 7% higher, at 30 °C about 5% lower, at 5 °C about 46% higher. The calculator follows the published pK₁ curve (Plummer & Busenberg, 1982).
What CO₂ level should I target?
The classic planted-tank range is 20–30 mg/L for the photoperiod. Below 15 mg/L plants slow noticeably and algae starts winning surface real estate. Above 35 mg/L fish gasp at the surface and shrimp climb the glass; chronic exposure above 40 mg/L kills livestock.
| CO₂ (mg/L) | Drop checker | Reference pH | Result |
|---|---|---|---|
| < 10 | blue | > 7.1 | plants CO₂-limited |
| 10 – 15 | blue-green | 6.9 – 7.1 | slow growth |
| 15 – 35 | green | 6.55 – 6.9 | healthy planted tank (aim for 20–30) |
| 35 – 50 | lime | 6.4 – 6.55 | livestock stress |
| > 50 | yellow | < 6.4 | dangerous; reduce immediately |
The reference pH is the pH of a 4 dKH drop-checker fluid; the mg/L are the Krib values at 25 °C. The colour depends on your tank's pH and KH only: the fluid takes up the same CO₂ as the tank, so its pH is your pH + log10(4 ÷ KH). Temperature changes the mg/L, not the colour.
Why your drop checker doesn't agree with the calculator
Drop checkers work by trapping a 4 dKH reference fluid in a small chamber above the water. CO₂ from the tank diffuses through air into the indicator, and the indicator changes colour. Two consequences:
- It lags by 1–2 hours. When you wake up the tank, the checker still shows last night's CO₂. When you switch CO₂ off in the evening, it stays green for another hour.
- It measures CO₂, not your KH. The 4 dKH fluid takes up the same CO₂ as the tank, so a 2 dKH and an 8 dKH tank with the same CO₂ show the same colour. That's also why the calculator can predict the colour from pH and KH alone.
When the calculator lies
The Krib equation assumes carbonate is the only meaningful buffer in the water. Three things break that assumption:
- Phosphate buffers - pH-buffering products, some commercial substrates. These pin pH artificially and the calculator over-reads CO₂.
- Organic acids from peat, Catappa leaves, or aged wood. These lower pH without involving carbonate; calculator over-reads.
- Very low KH (under 2 dKH). Small absolute errors become large percentage errors; consider switching to a higher buffer or trusting the drop checker.