Aquarium CO2 Calculator From pH and KH Readings

Two-method freshwater estimate

Aquarium CO₂ Calculator

Compare the familiar freshwater pH/KH carbonate estimate with a degassed-water pH-drop cross-check. Translate concentration into the water’s dissolved inventory and a target-pH screen—without turning either approximation into an injection dose or safety guarantee.

Tank water snapshot
Calibrated reading at a documented time
Approximate carbonate alkalinity assumption
Subtract substrate, décor, and air space
Same water after stable gas equilibration
Cross-check and target screen
Editable assumption for pH-drop comparison
Not a recommendation or animal-safety limit
pH/KH carbonate estimate19.0 mg/L CO₂
Wide estimate spread
pH/KH chart equation19.02 mg/L
VERSUS
Degassed-pH cross-check30.00 mg/L
Method spread · 30 mg/L display scale10.98 mg/L apart
Actual water volume75.71 L
Dissolved inventory by pH/KH1.44 g CO₂
Dissolved inventory by pH drop2.27 g CO₂
Degassed-to-tank pH drop1.000 pH unit
Target pH under pH/KH model6.60 pH
KH equivalents71.4 mg/L CaCO₃ · 1.428 meq/L

The pH/KH shortcut estimates 19.02 mg/L, while the entered degassed-water comparison estimates 30.00 mg/L. Their 10.98 mg/L spread is evidence to inspect alkalinity, noncarbonate buffers, sampling, calibration, equilibration, and timing—not a reason to increase gas blindly.

What the two estimates calculate

The familiar planted-freshwater chart relationship approximates dissolved carbon dioxide from pH and carbonate hardness. In the simplified carbonate system, dissolved CO₂, bicarbonate, carbonate, and hydrogen ion are linked. Lower pH at the same carbonate alkalinity corresponds to more dissolved CO₂. The compact aquarium equation embeds equilibrium constants, unit conversions, and simplifying assumptions into an approximate factor of three.

pH/KH estimate: CO₂ mg/L ≈ 3 × dKH × 10(7 − pH)
pH-drop cross-check: CO₂ mg/L ≈ baseline × 10(degassed pH − tank pH)
dissolved inventory grams = mg/L × actual liters ÷ 1,000
target pH screen = 7 − log₁₀(target mg/L ÷ (3 × dKH))

The degassed comparison assumes the aerated sample reaches a known CO₂ baseline and that CO₂ is the main cause of the pH difference. Each full pH unit represents a tenfold hydrogen-ion relationship, so a 1.0-unit drop multiplies the baseline by ten in this screening method. Both results can be wrong together when assumptions fail.

Why pH and KH can mislead

Aquarium KH tests often report acid-neutralizing capacity as degrees of carbonate hardness, but measured alkalinity can include more than bicarbonate and carbonate. Phosphate buffers, organic acids, tannins, humic substances, active substrates, commercial pH buffers, treatment chemicals, and some source-water constituents can shift pH without following the simple CO₂/KH chart.

The shortcut also assumes an equilibrium state at a suitable temperature and ionic strength. An aquarium is continuously changing: plants consume CO₂ in light, organisms respire, gas exchanges at the surface, filters agitate water, injectors operate, and substrate processes release or consume acids. One pH and one KH reading are a snapshot, not a complete carbon budget.

Use measured total alkalinity and full carbonate chemistry when precision matters. Marine and brackish systems require salinity-aware equilibria and are outside this freshwater shortcut.

Making a degassed sample useful

Take the tank and comparison sample at the same time before chemistry changes. Aerate the sample strongly with room air in a clean container until repeated pH readings stabilize. Temperature should be comparable, and the pH meter should be calibrated and allowed to equilibrate. A loosely defined “24-hour cup” may absorb, release, precipitate, or biologically transform material.

The entered baseline is an assumption, not a universal constant. Room-air CO₂ can be elevated by occupants, combustion, poor ventilation, or other sources, changing the water’s gas equilibrium. A sample outdoors may equilibrate differently from the aquarium room.

If the two estimates disagree, investigate. Do not average them automatically and call the mean true. Direct dissolved-CO₂ analysis or a validated method is the appropriate escalation for a high-consequence decision.

Worked 20 US gallon example

Suppose a planted freshwater tank has pH 6.8, KH 4 dKH, and an estimated 20 US gallons of actual water. The pH/KH shortcut gives 3 × 4 × 10 raised to 0.2, approximately 19.02 mg/L CO₂. Four dKH corresponds to about 71.4 mg/L as CaCO₃ or 1.428 milliequivalents per liter under the conventional conversion.

A sample of the same water is vigorously aerated until its pH stabilizes at 7.8. With an assumed equilibrated baseline of 3 mg/L, the 1.0 pH-unit difference gives 3 × 10¹, or 30.00 mg/L. The methods differ by 10.98 mg/L—large enough to question assumptions and measurement practice.

Twenty US gallons is about 75.71 liters. Multiplying concentration by volume implies 1.44 g of dissolved CO₂ under the pH/KH estimate and 2.27 g under the pH-drop estimate. Those are instantaneous inventories, not the number of grams to release from a cylinder. Injection must also replace degassing and biological uptake, and not all injected gas dissolves.

A user-entered comparison target of 30 mg/L corresponds to pH about 6.60 under the pH/KH shortcut at 4 dKH. That output shows the equation’s implication; it does not recommend 30 mg/L or declare pH 6.60 safe for the tank’s animals.

Build a trustworthy observation

Observation controlWhy it mattersRecord
pH calibrationA small pH error becomes a large concentration change because the relationship is logarithmic.Buffers, date, slope or meter status, temperature, probe condition, and replicate readings.
KH/alkalinity methodDrop tests have resolution limits and may include noncarbonate alkalinity.Kit, lot, sample volume, endpoint method, units, and repeated titration.
Sampling timeCO₂ and pH cycle with light, injection, photosynthesis, and respiration.Clock time, light schedule, gas schedule, feeding, and recent maintenance.
Water volumeNominal tank size overstates water after substrate, hardscape, and air space.Filled volume estimate and displacement assumptions.
Gas exchangeSurface agitation, covers, filters, skimmers, and room air alter equilibration.Equipment state, flow, room ventilation, and sample aeration duration.
Animal behaviorWater chemistry numbers do not replace direct welfare observation.Respiration, position, activity, feeding, losses, temperature, and dissolved oxygen.

Do not use dissolved inventory as an injection dose

The water-column mass is concentration multiplied by liters at one moment. A gas system is dynamic: bubbles can escape, diffusers vary, filters strip gas, plants consume carbon, organisms respire, and circulation creates uneven distribution. Adding the calculated inventory from a cylinder can overshoot because the tank already contains CO₂, while continuous replacement can require a flow unrelated to that one-time mass.

Bubble count is not a universal flow unit. Bubble volume depends on pressure, tubing, check valves, diffuser, fluid, and counter geometry. Make changes gradually under a tank-specific plan, maintain adequate circulation and oxygen, prevent siphoning and regulator failure, and use equipment intended for the application. Never rely on a browser output to protect fish, shrimp, snails, or other animals.

Daily cycles, oxygen, and animal welfare

Southern Regional Aquaculture Center guidance explains that photosynthesis consumes CO₂ and raises pH during daylight, while respiration produces CO₂ and can lower pH after dark. Dissolved oxygen commonly moves in the opposite direction. A planted aquarium can therefore show different pH and gas conditions before lights on, during peak photosynthesis, after gas shutoff, and overnight.

High CO₂ can impair fish respiration even when it is not acting as a simple poison, and low dissolved oxygen compounds stress. Species, temperature, acclimation, stocking, health, surface exchange, and other water-quality factors affect response. A visually attractive plant target is not automatically suitable for every animal.

Observe livestock throughout the adjustment window and provide a planned response for distress, equipment failure, or accidental continuous gas flow. Rapid breathing, surface congregation, loss of equilibrium, or unusual inactivity warrants prompt action under qualified husbandry guidance. Increase aeration or stop gas according to the established emergency procedure; seek veterinary or aquatic-professional help when needed.

Use targets as comparison points, not universal limits

The target input exists to answer a narrow mathematical question: at the entered KH, what pH would the simplified pH/KH equation associate with that concentration? It does not assess the tank’s inhabitants, dissolved oxygen, temperature, water movement, disease, medication, or the accuracy of either CO₂ estimate.

Choose operational ranges from credible species and system guidance, then validate them with stable equipment and observations. A target copied from another aquarium can be inappropriate when alkalinity, lighting, plant mass, surface area, filtration, livestock, and room ventilation differ. Avoid chasing a single pH number with abrupt regulator changes.

Trend data is more informative than isolated points. Measure at consistent phases of the light and gas schedule, preserve pH and KH methods, note maintenance and water changes, and watch whether the cycle repeats. An unexpected change in the relationship between injection setting and pH deserves investigation before more gas is added.

Aquarium CO₂ FAQs

Is the pH/KH chart an exact CO₂ test?

No. It assumes carbonate alkalinity dominates and the water is near equilibrium. Other buffers, acids, substrates, ionic strength, calibration error, and timing can make the estimate inaccurate.

Why compare a degassed sample?

Removing excess dissolved CO₂ should raise pH in the same water. The pH difference can provide an independent ratio screen, but its baseline and equilibration assumptions also need validation.

Can I inject the displayed grams from my cylinder?

No. The grams describe an estimated dissolved inventory, not an injection dose. Existing CO₂, dissolution efficiency, degassing, circulation, plant uptake, respiration, and time determine system response.

Does 30 mg/L mean my aquarium is safe?

No universal concentration guarantees safety. Species, oxygen, temperature, acclimation, health, flow, measurement accuracy, and daily cycling matter. Use tank-specific expert guidance and observe animals.

Why does pH change between morning and evening?

Plants consume CO₂ during photosynthesis, while plants, microbes, and animals release CO₂ through respiration. Lighting, injection, surface exchange, and room air create a repeating but system-specific cycle.

Can I use this for a reef aquarium?

No. Marine water has salinity-dependent carbonate chemistry and additional alkalinity relationships. Use a marine-specific method and appropriate alkalinity, pH, and dissolved-gas guidance.

References

These university, regional aquaculture, and research sources support the pH, alkalinity, carbon-dioxide, and freshwater-cycle limitations discussed here.

  1. Southern Regional Aquaculture Center Publication 464 — Interactions of pH, Carbon Dioxide, Alkalinity and Hardness
  2. University of Florida IFAS Extension — carbonate cycle, pH, alkalinity, and CO₂ in fish ponds
  3. Texas A&M AgriLife Extension — alkalinity and daily pH/CO₂ changes
  4. U.S. Geological Survey — pH and water measurement context
  5. Woods Hole Oceanographic Institution — aquarium and carbonate-buffer context
Scroll to Top