Aquarium CO2 Calculator
- The pH-KH chart is one equation wearing a grid: CO2 = 3 x KH x 10^(7 - pH), with KH in degrees.
- Here that is 3 x 4 x 10^(7 - 6.8) = 19.02 ppm dissolved CO2.
- The reading: moderate - enough for easy plants. Planted tanks aim near 30 ppm - enough for fast growth, short of the level where fish gasp at the surface.
- The formula assumes carbonate is the only buffer doing the work; peat, driftwood and phosphate buffers bend the pH without moving the CO2, and the chart never finds out.
An aquarium CO2 calculator turns two easy-to-measure water values, pH and KH (carbonate hardness), into a dissolved CO2 reading in ppm, so you can see whether your planted tank has enough carbon for healthy growth without pushing fish into stress. Enter your pH and KH and the calculator gives you the CO2 estimate right away. For example, at pH 6.8 and KH 4, dissolved CO2 works out to 19.02 ppm, a moderate level that is enough for easy plants. Drop pH to 6.4 at KH 5 and CO2 climbs to 59.72 ppm, into fish-stress territory. Working the other way, to hold 30 ppm at KH 6, the target pH is 6.78. Planted tanks aim near 30 ppm, enough for fast growth but short of the level where fish gasp at the surface, and the calculator helps you find the pH that lands you there.
The method behind the calculator is the accepted standard for this kind of estimate because it rests on the well-known relationship between pH, KH and dissolved CO2 in water, rather than on guesswork or tank-specific rules of thumb. That is why the same pH and KH figures give the same CO2 result here as in standard aquarium references. This page does not hide the math: it shows the formula, step-by-step workings, worked examples and sources, so you can check every number yourself and see exactly how a reading like 19.02 ppm or 59.72 ppm is produced. Use the results as a guide, watch your fish and plants, and adjust slowly.
Worked examples
pH 6.8 at KH 4
Dissolved CO2 = 19.02 ppm. Carbonate hardness: 71.4 ppm; Reading: Moderate - enough for easy plants. (CO2 from pH and KH · 6.8 · 4 dKH · 30 ppm · 7.2)
| Dissolved CO2 | 19.02 ppm |
| Carbonate hardness | 71.4 ppm |
| Reading | Moderate - enough for easy plants |
pH 6.4 at KH 5
Dissolved CO2 = 59.72 ppm. Carbonate hardness: 89.3 ppm; Reading: High - fish stress territory. (CO2 from pH and KH · 6.4 · 5 dKH · 30 ppm · 7.2)
| Dissolved CO2 | 59.72 ppm |
| Carbonate hardness | 89.3 ppm |
| Reading | High - fish stress territory |
Targeting 30 ppm at KH 6
Target pH for the CO2 goal = 6.78. CO2 at current pH: 11.36 ppm; Carbonate hardness: 107.2 ppm. (Target pH for a CO2 goal · 6.8 · 6 dKH · 30 ppm · 7.2)
| Target pH for the CO2 goal | 6.78 |
| CO2 at current pH | 11.36 ppm |
| Carbonate hardness | 107.2 ppm |
The pH-KH-CO2 relationship
The pH-KH-CO2 relationship is the engine behind every aquarium CO2 calculator, and it comes down to one equation: CO2 = 3 × KH × 10^(7 - pH). Read it as a chain of cause and effect. KH, the carbonate hardness of your water, sets how much dissolved bicarbonate is available to buffer pH. The pH reading tells you how far the water has shifted from the neutral reference point of 7. Put the two together with that factor of 3, and you get an estimate of dissolved CO2 in parts per million. The exponent is what makes this relationship feel steep: each step of pH changes CO2 by a factor of ten, so small pH movements mean large swings in gas concentration.
Work through a real case to see the grid in action. Suppose your tank tests at pH 6.8 and KH 4. The equation gives CO2 = 3 × 4 × 10^(7 - 6.8) = 12 × 10^0.2, which works out to 19.02 ppm. That is a moderate level — enough for easy plants to grow well, but not a demanding injection target. Now change one variable. Drop the pH to 6.4 while KH sits at 5, and you get 3 × 5 × 10^(7 - 6.4) = 15 × 10^0.6, or 59.72 ppm. That jump lands squarely in fish-stress territory, where livestock can struggle for oxygen. Same equation, same tank — only the numbers moved.
Planted tanks generally aim near 30 ppm: enough for fast growth, short of the level where fish gasp at the surface. The equation can be rearranged to find the pH that hits that target. At KH 6, holding 30 ppm means a target pH of 6.78. That single figure is what you would steer your CO2 system toward, and it is the kind of output an aquarium co2 calculator produces instantly once you enter your KH and pH.
Two cautions keep this tool honest. First, the equation assumes the only thing moving pH is dissolved CO2. Driftwood, substrate, certain rocks and pH-adjusting additives all bend the reading, so a pH number alone can mislead. Second, KH is not fixed — it can fall over time as plants and biological activity consume carbonates, which shifts your CO2 estimate without any change to your injection rate. Test KH periodically rather than trusting an old number, and treat the calculated ppm as a guide to verify against plant response and fish behavior, not a guarantee.
- CO2 = 3 × KH × 10^(7 - pH) — the core equation behind the estimate.
- pH 6.8 with KH 4 gives 19.02 ppm: moderate, suited to easy plants.
- pH 6.4 with KH 5 gives 59.72 ppm: fish-stress territory.
- To hold 30 ppm at KH 6, target pH 6.78.
- Because each pH step changes CO2 tenfold, small pH errors become large ppm errors.
Reading the CO2 bands
Once you have a CO2 number from the aquarium CO2 calculator, the next step is knowing what it means for your tank. The bands are not complicated, but the distance between a healthy planted tank and a tank full of gasping fish can be surprisingly short. A reading in the high teens is a mild, workable level. At pH 6.8 and KH 4, dissolved CO2 works out to 19.02 ppm — moderate, and enough for easy plants that do not demand much carbon. Plants will grow, though slower than they could, and demanding species may stall or show pale new growth.
The planted-tank target sits near 30 ppm. That is the level where plants get enough carbon for fast, healthy growth while staying short of the level where fish gasp at the surface. Hitting it is a matter of matching pH to KH: to hold 30 ppm at KH 6, the target pH is 6.78. Notice how close that sits to the 6.8 in the first example — a small pH shift at a given KH moves CO2 meaningfully, which is why a drop checker or careful pH measurement matters more than eyeballing bubbles.
The upper band is where caution is required. Dropping pH to 6.4 at KH 5 pushes CO2 to 59.72 ppm, into fish-stress territory. That is roughly double the planted target, and at that concentration fish may crowd the surface and gasp for air. The 59.72 ppm example is useful precisely because it looks like a modest pH change on paper — 6.8 down to 6.4 — yet it lands well past the safe zone. If your own numbers land anywhere near that figure, treat it as a signal to increase surface agitation or reduce injection rather than as a target to tune toward.
Read the bands in three tiers: below roughly 20 ppm is fine for easy, low-demand plants but limits growth; near 30 ppm is the planted sweet spot; and well above 30 ppm, approaching the 59.72 ppm example, is fish-stress territory. Because pH and KH both feed the calculation, always recheck after adjusting either one. A change that seems small in pH terms can shift CO2 by tens of ppm, and the fish feel that shift long before the plants benefit from it.
Setting a pH controller from KH
A pH controller does not measure CO2 directly. It holds pH at a set-point you choose, and the CO2 level follows from that pH and your carbonate hardness. So the real question when you set up the controller is: which pH number do I dial in? That is where an aquarium CO2 calculator earns its keep, because you can run the relationship backwards — start with the CO2 you want and the KH you have, and solve for the pH the controller should hold.
Work through the KH 6 case. Planted tanks aim near 30 ppm — enough for fast growth, short of the level where fish gasp at the surface. To hold 30 ppm at KH 6, the target pH is 6.78. That is your set-point: program the controller to hold pH 6.78, and at a KH of 6 the dissolved CO2 should sit around that 30 ppm target. The decimal matters. Rounding 6.78 to 6.8 changes the CO2 level, so enter the full value the calculator gives you rather than the nearest tenth.
The same backward run explains why the set-point is not a universal number. At pH 6.8 and KH 4, dissolved CO2 works out to 19.02 ppm — moderate, enough for easy plants. Same pH, lower KH, less CO2. Now push the pH down: dropping pH to 6.4 at KH 5 pushes CO2 to 59.72 ppm, into fish-stress territory. A controller set aggressively low at a moderate KH can drive CO2 far past 30 ppm without anyone touching the CO2 supply — the pH target alone did it. That is the risk a set-point carries, and why it should be calculated against your measured KH, not copied from someone else's tank.
A practical sequence for setting the controller: measure KH first, since every calculation depends on it. Decide your CO2 target — near 30 ppm for a planted tank. Run the aquarium co2 calculator backwards from that target and your KH to get the pH set-point, as with the 6.78 figure at KH 6. Enter that value, then confirm with a CO2 test or a drop checker rather than trusting the math alone. KH can drift with water changes and substrate, so re-measure periodically and recalculate the set-point when it moves.
- Measure KH before choosing a pH set-point — the same pH gives different CO2 at different KH.
- Target near 30 ppm CO2 for a planted tank, then solve for pH: at KH 6, that is pH 6.78.
- Enter the full decimal (6.78, not 6.8) — rounding shifts the CO2 level.
- Reference points: pH 6.8 at KH 4 gives 19.02 ppm; pH 6.4 at KH 5 gives 59.72 ppm, into fish-stress territory.
- Re-check KH after water changes and recalculate the set-point when it changes.
When the chart lies
An aquarium CO2 calculator is only as honest as the assumption behind it. The standard pH–KH formula treats carbonate hardness as the sole buffer in your water, then converts pH and KH into a dissolved CO2 estimate. That works well in clean, carbonate-buffered water. In a tank with peat, driftwood, or a phosphate buffer, it can be wrong by a wide margin — and wrong in the dangerous direction.
Peat and driftwood release tannins and other organic acids. They lower pH without touching KH, because they are not carbonate chemistry. Phosphate buffers do something similar: they hold pH at a set point while KH stays where it was. In both cases, pH falls but CO2 does not rise to match. Run the standard formula on that water and it reports a CO2 level that isn't there. You may see a comfortable-looking number and still have fish that are fine, while the chart insists you are near the stress zone. The reverse happens too: a reading that looks safe can hide a real problem.
The arithmetic itself is simple enough. At pH 6.8 and KH 4, dissolved CO2 works out to 19.02 ppm — moderate, enough for easy plants. Drop pH to 6.4 at KH 5 and the same formula pushes CO2 to 59.72 ppm, well into fish-stress territory. And to hold 30 ppm at KH 6, the target pH is 6.78. Planted tanks aim near 30 ppm — enough for fast growth, short of the level where fish gasp at the surface. Notice how much the answer swings with small pH and KH changes. That sensitivity is exactly why a bent pH curve matters.
So how do you know whether to trust the number? Treat the calculator as a starting estimate, not a verdict. If your tank has peat, driftwood, or a phosphate buffer, cross-check with a direct CO2 test or a drop checker before you adjust anything. Watch the fish, too — behavior at the surface tells you more than a formula guessing at buffers it cannot see. When water chemistry is unusual, the chart lies; your own measurements and your fish are the better guide.
FAQs
How much CO2 is in my tank at pH 6.8, KH 4?
At pH 6.8 with a KH of 4, the calculator gives 19.02 ppm of CO2. That is moderate: enough for easy plants, but short of the 30 ppm growth target many planted-tank keepers aim for. To raise it, you would adjust pH or KH and recheck the result.
What pH gives 30 ppm at KH 6?
At KH 6, the pH that yields 30 ppm CO2 is 6.78. That is the set-point the calculator's second mode works out for you. Enter your KH and target, and it returns the pH you would need to reach 30 ppm rather than making you guess and test.
Is 59.72 ppm dangerous?
Yes. At 59.72 ppm, CO2 sits in the high, fish-stress band on this scale, well past the 30 ppm planted-tank target. Levels that high can stress fish, so treat it as a warning sign and bring CO2 down toward the target range rather than leaving it there.
Why does KH matter so much?
The same pH means different CO2 at different hardness. At KH 6, the current-pH example holds 11.36 ppm, where KH 4 water would hold less. So pH alone tells you little without KH; the two together set the CO2 reading, which is why the calculator asks for both.
What KH is 4 degrees in ppm?
A KH of 4 degrees equals 71.4 ppm of carbonate hardness. The calculator converts this alongside the CO2 answer, so you can work in whichever unit you prefer. If your test kit reports degrees, enter them; the ppm equivalent appears with the result.
Why does my drop checker disagree with the chart?
Other buffers can bend pH without changing CO2, while the chart assumes carbonate does all the work. If your water carries other buffers, pH shifts for reasons unrelated to CO2, so the chart's reading drifts from what a drop checker shows. Treat disagreement as a sign to check your water, not the math.