04 · CO₂

Aquarium CO₂ calculator - the number your drop checker won't tell you.

Enter pH, KH and temperature. The calculator computes dissolved CO₂ in mg/L using the Krib equation with a temperature correction. Get the in-tank value live - and the colour your drop checker should be showing in a couple of hours.

Krib equation with temperature
Drop-checker colour estimate
Target band 20-30 mg/L
dKH
°C
Uses the Krib equation CO₂ = 3 · KH · 10^(7 − pH) corrected for temperature through the dissociation constant of carbonic acid (pK₁): cold water holds more CO₂ at the same pH and KH. The 3 is the hobby convention and reads about 10-15% below the strict chemistry. Accurate when no phosphate buffers or organic acids are present.
Dissolved CO₂
22.1 mg/L optimal 20-30
Raw22.1
Temp-comp.22.1
Drop checker green pH 6.70

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/L

That'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 checkerReference pHResult
< 10blue> 7.1plants CO₂-limited
10 – 15blue-green6.9 – 7.1slow growth
15 – 35green6.55 – 6.9healthy planted tank (aim for 20–30)
35 – 50lime6.4 – 6.55livestock stress
> 50yellow< 6.4dangerous; 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:

Run a pH curve over a day: read pH every hour from lights-off through lights-on +2 hours. The lowest reading is your peak CO₂. Aim for that point to sit at 25–30 mg/L; the rest of the day will trend safer. aquariumtools - CO₂ notes

When the calculator lies

The Krib equation assumes carbonate is the only meaningful buffer in the water. Three things break that assumption:

  1. Phosphate buffers - pH-buffering products, some commercial substrates. These pin pH artificially and the calculator over-reads CO₂.
  2. Organic acids from peat, Catappa leaves, or aged wood. These lower pH without involving carbonate; calculator over-reads.
  3. Very low KH (under 2 dKH). Small absolute errors become large percentage errors; consider switching to a higher buffer or trusting the drop checker.
How is dissolved CO₂ calculated from pH and KH?
It uses the Krib equation - CO₂ (mg/L) = 3.00 × KH (dKH) × 10^(7 − pH) - corrected for temperature through the dissociation constant of carbonic acid. The KH must be the real carbonate hardness, not a salifert-style total alkalinity number.
Why does my drop checker show a different colour?
Drop checkers lag by 1-2 hours: the calculator gives you the instantaneous in-tank value, the checker shows a delayed average. The colour the calculator shows is where a 4 dKH checker settles for your current pH and KH once it has caught up.
What CO₂ level should I target?
For a planted tank, 20-30 mg/L during the photoperiod. Below 15 mg/L plants slow; above 35 mg/L fish gasp at the surface.
Why is the calculator over-reading my CO₂?
Phosphate buffers, organic acids from peat or wood, and very low KH all break the Krib equation's assumption that carbonate is the dominant buffer. In those cases trust the drop checker over the maths.
Is the temperature correction important?
Between 20 and 30 °C it moves the result by up to about 7%; in cold water much more (about +46% at 5 °C), because carbonic acid dissociates less. The calculator applies it automatically; at 25 °C it's zero.
Try another

Three more little maths machines.

Track CO₂ alongside everything else.

Create a tank, log pH and KH whenever you test - and watch CO₂ trends over weeks, not minutes.

Newsletter

Aquarium tips, straight to your inbox.

Practical tips, new calculators, and the occasional product update. That's it.

  • Just 2 emails a month
  • No spam, ever
  • Unsubscribe in one click