CO2 Calculator (pH / KH)

Carbonate hardness from a liquid test kit

CO₂ ppm = 3 × KH × 10^(7 − pH). An estimate, not a measurement: pH-lowering substrates, driftwood and peat push pH down without adding CO₂, so confirm with a drop checker. Target 15–30 ppm; over 40 ppm is a danger to fish.

How much CO2 is in the water?

Enter pH and KH — the dissolved CO2 estimate appears here, with the band it falls in and what to do about it.

Why use this calculator?

  • Dial CO₂ in without gassing fish — see the ppm before turning the needle valve.
  • Match gas to light and nutrients, instead of guessing from bubble counts.
  • Know when the number is a danger to fish, not just "a bit high".
  • Learn when the estimate itself is unreliable — and what to check instead.

Check the water itself with the Water Parameter Checker, or work out what the algae is telling you with the Algae Identifier. · Back to Planted Tank

Enter your pH and KH and get an estimate of dissolved CO₂ in ppm, with a verdict on whether it suits your planted tank. It is for anyone injecting CO2 who wants to see the number before turning the needle valve — and to know when the number itself cannot be trusted. Everything runs in your browser; nothing is saved.

How it works

The calculator uses the pH/KH relationship from carbonate chemistry: dissolved CO2, bicarbonate and pH sit in a fixed balance, so measuring two of them estimates the third.

The formula. CO2 (ppm) = 3 × KH (dKH) × 10^(7 − pH). KH scales the answer directly — double the KH and the estimate doubles. pH works the other way and far harder: each full pH point multiplies the CO2 estimate by 10, so a tank at pH 6.8 holds ten times the CO2 of a tank at pH 7.8 with the same KH.

Step by step. Test pH and KH with a liquid test kit, not a strip — a strip is not precise enough for a number worth using. Enter both, and the calculator returns the ppm and the band it falls in: under 15 ppm too low for a high-tech tank, 15–30 ppm the usual target, 30–40 ppm high, over 40 ppm a danger to fish.

The cross-check that matters more. The pH/KH method assumes carbonate is the only buffer in the water. Phosphate buffers, humic acids and pH-lowering substrates all push pH down without adding CO2, so the estimate reads high in those tanks. The pH-drop method is more reliable there: measure the pH of a sample left out to degas, then the tank pH, and CO2 (ppm) = 3 × 10^(degassed pH − tank pH), taking ~3 ppm as the degassed baseline. A one-point drop means about 30 ppm; a 0.8-point drop means about 19 ppm.

The drop checker. A drop checker filled with 4 dKH reference solution turns blue under ~15 ppm, green at ~15–35 ppm and yellow above ~35 ppm. It lags the tank by 1–2 hours, so read it as a slow average, not a live number. Start CO2 1–2 hours before lights on and stop about 1 hour before lights off, so the gas is at target when the plants need it and falls before the fish sleep.

Worked example

Planted tank at pH 6.8, KH 4 dKH.

Inputs

pH 6.8, KH 4 dKH, measured with a liquid test kit.

Formula

CO2 (ppm) = 3 × KH × 10^(7 − pH).

Calculation

10^(7.0 − 6.8) = 10^0.2 = 1.585. Then 3 × 4 × 1.585 = 19.0 ppm.

Result

19.0 ppm — in the 15–30 ppm target band. The drop checker should read green.

The pH-drop cross-check on the same tank: degassed pH 7.6 and tank pH 6.6 gives 3 × 10^1.0 = 30.0 ppm; a smaller drop to pH 6.8 gives 3 × 10^0.8 = 18.9 ppm. If the two methods disagree by a lot, trust the drop and the drop checker over the pH/KH number.

How to read your results

The verdict word is the headline: "Too low", "On target", "High" or "Danger". Under it, the ppm line names the pH and KH the number came from, and the stat grid shows the three things to check together — the dissolved CO2, the pH and KH that produced it, and the drop-checker colour to expect.

Under 15 ppm — too low. For a high-tech planted tank with strong light, the plants are CO2-limited while the algae is not. Raise the injection slowly, or accept that this is a low-tech tank and keep the light to match.

15–30 ppm — the target. The usual range for a CO2-injected planted tank. Keep it steady through the photoperiod rather than chasing a single number.

30–40 ppm — high. Workable with strong surface agitation and oxygen, but watch the fish closely, especially in the evening when oxygen is lowest.

Over 40 ppm — danger. Turn the CO2 down and increase surface agitation now. Gasping at the surface means act immediately, whatever the calculator says.

What to do next: if the number is in range but the drop checker disagrees, believe the checker — something else is moving your pH. If the number is high and the fish are fine, still bring it down slowly; CO2 tolerance varies by species and oxygen level.

Common mistakes

  • Testing with strips. A strip cannot read pH or KH precisely enough for a formula where a tenth of a pH point moves the answer by a quarter.
  • Testing pH right after a water change or a CO2 adjustment and treating that reading as settled. Wait for the tank to stabilise, and remember the drop checker lags 1–2 hours.
  • Trusting the number in a tank with aquasoil, driftwood or peat. All three lower pH without adding CO2, so the estimate reads high — use the pH-drop method instead.
  • Chasing a single number instead of stability. Plants do better on a steady 20 ppm than on a figure that swings between 10 and 35 ppm through the day.
  • Raising CO2 without matching light and nutrients. More light without more CO2 grows algae, and more CO2 without enough light just risks the fish.
  • Ignoring gasping fish because the number looks fine. The fish are the authority — if they hang at the surface, turn the CO2 down.
  • Running CO2 all night. Plants do not use it in the dark, and it only pushes the overnight pH down — put the solenoid on the light timer.

CO2 (ppm) by pH and KH

Read your ppm straight off the table — pH down the side, KH across the top. Every figure below is the formula: 3 × KH × 10^(7 − pH).

pHKH 2KH 3KH 4KH 5KH 6
6.423.935.847.859.771.7
6.615.122.630.137.745.2
6.89.514.319.023.828.5
7.06.09.012.015.018.0
7.23.85.77.69.511.4

Notice how fast the numbers move with pH: at KH 4, dropping from pH 7.2 to 6.8 more than doubles the CO2 (7.6 to 19.0 ppm), and dropping to 6.4 more than doubles it again (47.8 ppm — already in the danger band).

FAQ

Why does my drop checker disagree with the calculator?

Usually because something other than CO2 is moving your pH — aquasoil, driftwood, peat or phosphate buffers all make the pH/KH estimate read high. The drop checker measures CO2 itself (through the 4 dKH solution), so when the two disagree, trust the checker and the pH-drop cross-check.

Can I use this if I don't inject CO2?

Yes — the formula works on any tank, but without injection the water sits near the ~3 ppm baseline and the reading will show it. Below 10 ppm there is little benefit to plants, which is normal for a low-tech tank; the calculator is most useful once you start injecting.

What if my KH is 0?

The calculator needs KH above zero — with no carbonate buffer the pH/KH method has nothing to work from. Use the pH-drop method instead, and be aware that a tank with no KH has almost no pH stability at all.

Does temperature change the result?

The calculator does not take a temperature input. The underlying equilibrium constant shifts slightly with temperature (pK1 is about 6.35–6.37 at 25 °C), but that is a small effect next to the buffer caveats above — temperature is not what makes this estimate wrong.

Why is my estimate so high with aquasoil?

Aquasoil is a pH-lowering substrate: it pushes pH down without adding CO2, and the formula reads a low pH as high CO2. In an aquasoil tank the pH/KH number is an overestimate — check it with the pH-drop method and a drop checker.

What CO2 do low-tech tanks run?

Near the ~3 ppm baseline from the air, sometimes a little higher with a heavy fish load. That is fine for low-light plants; the 15–30 ppm target only applies to tanks with injected CO2 and the light to use it.

How often should I test pH and KH?

After any change — a new CO2 setting, a substrate change, a big water change — and weekly once the tank is stable. Test at the same time of day: pH moves through the photoperiod as plants take up CO2, so a morning reading and an evening reading are not the same tank.

Sources

No URLs are on file for the sources below — they are listed by name, as cited in the research notes and the tool's own notes.

  1. Stumm & Morgan, Aquatic Chemistry, 3rd ed., Wiley, 1996 — carbonate equilibrium; pK1 about 6.35–6.37 at 25 °C (Textbook).
  2. USGS, "pH and water" (Government).
  3. Barr, T., writings on CO2 in planted aquariums and the Estimative Index, Barr Report / planted tank forums — pH-drop method, 30 ppm target (Hobby practice).
  4. TheCycledTank CO2 Calculator — the formula and verdict bands this page runs on (Our tool).

Related tools