In a planted aquarium, dissolved CO2 is the single biggest lever on plant growth, yet you cannot measure it directly. This calculator infers it from two things you can measure — pH and carbonate hardness — using the carbonate buffer equilibrium, and tells you whether you are in the healthy 20 to 30 ppm band.
How it works
Carbon dioxide dissolves to form carbonic acid, which lowers pH for a given carbonate hardness. The standard aquarium relationship is:
CO2 (ppm) = 3 × KH(dKH) × 10^(7 − pH)
A lower pH at the same KH means more dissolved CO2. Every 1.0 unit drop in pH roughly multiplies CO2 tenfold, which is why a tank degassing overnight drifts its pH upward.
Example, limits, and tips
At KH 4 dKH and pH 6.6, CO2 = 3 × 4 × 10^(7 − 6.6) = 12 × 10^0.4 ≈ 30 ppm — right at the upper target. The formula assumes carbonic acid is the only thing moving pH, so peat, tannins, or phosphate buffers will inflate the reading; in those tanks trust a drop checker over the number. Aim for 20 to 30 ppm during the photoperiod, ramp CO2 up before lights on, and watch fish for gasping at the surface as an early sign of overdosing.