CO₂ from pH & KH calculator
If carbonates are the only buffer in your water, pH and KH together tell you how much CO₂ is dissolved. Enter your readings to get an estimate and the pH to aim for.
How it works
CO₂ dissolved in water forms carbonic acid, which partly splits into hydrogen and bicarbonate ions. At equilibrium, the ratio is fixed by the first dissociation constant K₁:
At 25 °C, pK₁ is 6.35. The hobby shortcut CO₂ = 3 × KH × 10^(7 − pH) is the same equation with the constants rounded, roughly pK₁ = 6.28 with no temperature or activity correction. It reads roughly 10–15% lower than the full calculation at typical temperatures. Both are shown so you can compare with charts you may already use.
The degassed pH method is often more useful than the absolute number. Water left out for a day settles to the low CO₂ level of room air. Every 1.0 drop in pH below that reading means ten times more CO₂. Many planted-tank keepers aim for a drop of about 1.0 when CO₂ is fully on.
Worked examples
KH 4 dKH, pH 6.6, 25 °C
KH = 4 × 0.3566 = 1.427 meq/L. 10^(6.352 − 6.6) = 0.565. With TDS 150 mg/L, γ = 0.936, so CO₂ = 1.427 × 0.936 × 44.01 × 0.565 = 33 ppm. The shortcut gives 3 × 4 × 10^0.4 = 30 ppm.
Which pH gives 30 ppm at KH 4?
pH = pK₁ + log₁₀(1.427 × 0.936 × 44.01 ÷ 30) = 6.352 + 0.292 = pH 6.64. That's a sensible pH-controller set point for this water.
Soft water at 22 °C (72 °F)
KH 2 dKH, pH 6.8, TDS 100 mg/L: 11 ppm. The shortcut says 9.5 ppm, and the difference comes from temperature: pK₁ is 6.37 at 22 °C.
When the answer is wrong
- Other buffers. Phosphate buffers, pH-down products, humic acids from peat, wood and active soils (aquasoils) all change pH or KH without CO₂. The calculation then overestimates CO₂, sometimes wildly. A drop checker with a 4 dKH reference solution avoids this problem.
- KH test kits measure total alkalinity, which includes things other than bicarbonate, such as phosphate and borate.
- pH probes need calibrating. An error of 0.1 pH changes CO₂ by 26%.
- Above about pH 8.3, carbonate ion matters and this simple form no longer applies, though CO₂ is negligible there anyway.
- Livestock first. Raise CO₂ gradually and watch fish for gasping at the surface, especially at night or with weak surface movement.
References
- Plummer, L.N. & Busenberg, E. (1982). The solubilities of calcite, aragonite and vaterite in CO₂–H₂O solutions between 0 and 90 °C… Geochimica et Cosmochimica Acta 46: 1011–1040
- USGS Publications Warehouse record for Plummer & Busenberg (1982)
- Stumm, W. & Morgan, J.J. (1996). Aquatic Chemistry, 3rd ed., Wiley (carbonate equilibria; Davies equation)
- Langelier, W.F. (1936). The analytical control of anti-corrosion water treatment. JAWWA 28: 1500–1521 (ionic strength ≈ 2.5×10⁻⁵ × TDS)
- Barr, T. EI target CO₂ range 20–30 ppm. Barr Report
Formulas on this page are checked by automated unit tests against the reference values above. Last reviewed October 29, 2026. Found an error? Tell us.
More calculators
Tank volume & water weight
Rectangular, cylinder and bow-front tanks, in litres and gallons, plus how much the water weighs.
Water change & dilution
What a water change does to nitrate, salinity or hardness, how much to change to hit a target, and RO/tap blends.
Fertilizer dosing (dry salts)
Grams to ppm and back for KNO₃, KH₂PO₄, K₂SO₄ and Epsom salt, plus stock solutions and an EI-style planner.
Salinity & specific gravity
Convert hydrometer SG to ppt with temperature correction (EOS-80), and see what your instrument should read.
Heater wattage
How many watts your tank needs, from volume, room and target temperature, and optional evaporation.