Water Chemistry: Understanding pH, KH & GH Together Guide for Aquarium Keepers
A unified chemical guide to pH, Carbonate Hardness (KH), and General Hardness (GH): how the carbonic acid–bicarbonate equilibrium locks pH, why GH does not buffer pH, optimal Ca:Mg ratios, and worked US/metric blending examples.
Updated 2026-11-20 · 1681 words
Three Distinct Measurements That Aquarists Constantly Confuse
Few topics generate more troubleshooting confusion in freshwater and planted aquaria than the relationship between pH, KH (Carbonate Hardness / Alkalinity), and GH (General Hardness). Hobbyists routinely try to lower pH by installing a water softener, or attempt to raise GH by adding baking soda—moves that either fail completely or trigger osmotic stress. Understanding these three parameters together requires separating what each test actually measures at the ionic level.
- pH (Hydrogen Ion Activity): Defined as pH = -log10[H+], pH measures the instantaneous balance between free hydrogen ions (H+) and hydroxide ions (OH-) on a logarithmic scale from 0 to 14. Each 1.0-unit change represents a tenfold change in acidity. pH tells you where acidity sits right now, but tells you nothing about how strongly the water resists future pH shifts.
- KH (Carbonate Hardness / Total Alkalinity): Measures the concentration of acid-neutralizing anions—principally bicarbonate (HCO3-) and carbonate (CO32-), with minor contributions from borate, phosphate, or silicate in specialized buffers. KH is your tank's chemical shock absorber against nitric acid produced by nitrification.
- GH (General Hardness): Measures the total concentration of divalent metal cations—principally calcium (Ca2+) and magnesium (Mg2+). GH governs fish osmoregulation, shrimp molting, snail shell integrity, and plant chlorophyll synthesis, not pH buffering.
The Carbonic Acid–Bicarbonate Equilibrium: How KH Governs pH
KH and pH are linked through the reversible carbonic acid equilibrium that operates in every open aquarium:
CO2 (aq) + H2O ⇌ H2CO3 ⇌ H+ + HCO3- ⇌ 2 H+ + CO32-
When atmospheric CO2 (around 420 ppm in room air, yielding ~0.5–1.5 mg/L dissolved CO2 at equilibrium) meets water containing bicarbonate (HCO3-), the ratio of HCO3- to dissolved CO2 sets the pH according to the Henderson-Hasselbalch equation (pKa1 ≈ 6.35 at 25°C):
pH = 6.35 + log10( [HCO3-] / [CO2] )
This single equation explains three classic aquarium phenomena:
- Why High-KH Water Is Always Alkaline: If your tap water has 8.0 dKH (143 ppm CaCO3) and sits at atmospheric CO2 equilibrium (~1.0 mg/L), the Henderson-Hasselbalch ratio forces pH up to ~8.0–8.2. You cannot stably hold 8.0 dKH water at pH 6.8 without injecting pressurized CO2 or stripping the KH first.
- Why Pressurized CO2 Drops pH Without Changing KH: Injecting CO2 to 30 mg/L increases the denominator [CO2] roughly 25-fold, pulling pH down by ~1.0–1.4 units (e.g., from 7.8 down to 6.6) while leaving [HCO3-]—and therefore your drop-kit KH reading—completely unchanged!
- Why Household Water Softeners Break Planted Tanks: Ion-exchange home water softeners swap Ca2+ and Mg2+ ions for Na+ ions. That drops GH to 0°dGH while leaving KH unchanged (now paired as sodium bicarbonate, NaHCO3). The water still reads high pH and high KH, yet fish and plants suffer from calcium/magnesium deficiency and excess sodium.
Why GH Does Not Buffer pH (and the CaCO3 Exception)
Calcium sulfate (CaSO4, gypsum) and magnesium sulfate (MgSO4, Epsom salt) dissolve to release Ca2+, Mg2+, and SO42-. Sulfate (SO42-) is the conjugate base of a strong acid and has virtually zero ability to accept H+ protons at aquarium pH. Therefore, you can raise GH from 0 dGH to 12 dGH using CaSO4 and MgSO4 (the exact principle behind Caridina shrimp "GH+" remineralizers) and pH will barely budge by 0.1 units.
Confusion arises only because natural limestone, crushed coral, and aragonite are made of calcium carbonate (CaCO3). When CaCO3 dissolves, it releases both a Ca2+ cation (raising GH by 1.0 dGH) and a CO32- anion (raising KH by 1.0 dKH). Thus, limestone raises GH and KH in lockstep, whereas pure sulfate/chloride salts raise GH alone and pure sodium/potassium bicarbonates raise KH alone.
Parameter Interaction Matrix
| Water Profile Archetype | Target pH | Target KH | Target GH | Ca : Mg Ratio | Ideal Livestock & Flora |
|---|---|---|---|---|---|
| Soft Acidic Blackwater / Caridina | 5.8–6.5 | 0–1 dKH (0–18 ppm) | 4–6 dGH (71–107 ppm) | 3:1 to 4:1 | Crystal Red Shrimp, Paracheirodon axelrodi, Apistogramma |
| High-Tech CO2 Planted Aquascape | 6.4–6.8 (CO2 on) | 2–4 dKH (36–71 ppm) | 5–8 dGH (89–143 ppm) | 3:1 to 4:1 | Stem plants, carpeting species, Rasboras, Otocinclus |
| General Community Freshwater | 7.0–7.6 | 3–6 dKH (54–107 ppm) | 6–10 dGH (107–179 ppm) | 3:1 to 4:1 | Tetras, Corydoras, Danios, Gouramis, Cherry Shrimp |
| Hard Alkaline Livebearer / Tanganyika | 7.8–8.4 | 8–14 dKH (143–250 ppm) | 10–16 dGH (179–286 ppm) | 2:1 to 3:1 | Guppies, Mollies, Neolamprologus, Tropheus |
Optimal Calcium-to-Magnesium Ratios (Ca:Mg)
A liquid GH test kit sums Ca2+ and Mg2+ together into a single number, hiding an important biological detail: the Ca:Mg ratio. In most natural river waters, calcium outnumbers magnesium by a mass ratio of roughly 3:1 to 4:1 (molar ratio ~2:1 to 2.5:1). Because Ca2+ and Mg2+ compete for the same divalent cation uptake channels in aquatic plant roots and crustacean gill epithelia, wildly skewed ratios cause trouble. Water with 10 dGH composed almost entirely of calcium (e.g., pure limestone runoff with < 2 ppm Mg2+) induces magnesium deficiency—visible as interveinal chlorosis (yellowing between leaf veins) in older plant leaves. Conversely, excessive magnesium (> 1:1 Mg:Ca) blocks calcium uptake, causing twisted new growth in stems and failed molts in dwarf shrimp.
US Customary Worked Example: Blending Hard Tap Water With RO for a 55-Gallon Planted Tank
Suppose your municipal US tap water tests at pH 8.1, 214 ppm CaCO3 KH (12 dKH), and 285 ppm CaCO3 GH (16 dGH) at 74°F. You want to run a CO2-injected 55-gallon planted tank (net 48.0 US gallons) at a gentler ~54 ppm KH (3.0 dKH) and ~71 ppm GH (4.0 dGH).
- Calculate Tap-to-RO Dilution Ratio: To reduce KH from 214 ppm to 53.5 ppm (a 4× dilution), blend 25% tap water with 75% Reverse Osmosis (RO) water (0 ppm KH, 0 ppm GH).
- Volume Split for 48.0 US Gallons: 48.0 × 0.25 = 12.0 US gallons of tap water + 48.0 × 0.75 = 36.0 US gallons of RO water.
- Resulting Chemistry: KH lands at 214 × 0.25 = 53.5 ppm (3.0 dKH); GH lands at 285 × 0.25 = 71.3 ppm (4.0 dGH).
- Resulting pH With & Without CO2: Without CO2 injection, 3.0 dKH water equilibrates around pH 7.5. With pressurized CO2 tuned to 30 mg/L (a 1.0-unit pH drop), daytime pH stabilizes cleanly at pH 6.5—ideal for both nutrient bioavailability and fish comfort.
UK/EU Metric Worked Example: Remineralizing Pure RO Water for a 150-Liter Community Tank
Consider a European keeper using pure RO water (0 dKH, 0 dGH, < 10 μS/cm) to fill a 150-liter community aquarium (net 130 L) at 25°C, targeting 3.0 dKH and 6.0 dGH with a 3:1 Ca:Mg mass ratio.
- Raise KH to 3.0 dKH: Dose 1.68 g NaHCO3 per 100 L per dKH: (130 / 100) × 1.68 × 3.0 = 6.55 grams NaHCO3.
- Raise GH to 6.0 dGH With Gypsum & Epsom Salt: 1.0 dGH equals 7.15 mg/L Ca2+ or 4.34 mg/L Mg2+. To reach 6.0 dGH (~32 mg/L Ca2+ and ~11 mg/L Mg2+, roughly a 3:1 mass ratio), dose 4.5 dGH from CaSO4·2H2O (3.07 g per 100 L per dGH → 1.3 × 3.07 × 4.5 = 17.96 grams gypsum) plus 1.5 dGH from MgSO4·7H2O (4.39 g per 100 L per dGH → 1.3 × 4.39 × 1.5 = 8.56 grams Epsom salt).
- Verify With Liquid Titration: Mix thoroughly for 30 minutes, then confirm 3 drops KH and 6 drops GH on standard German-degree drop kits before transferring fish.
Diagnosing pH Instability: KH vs. Substrate vs. CO2
If your tank's pH swings wildly between morning and evening (> 0.5 units), look first at KH and biological carbon flux. In unbuffered soft water (< 1.5 dKH), daytime photosynthesis consumes dissolved CO2 and pushes pH up to 7.8, while nighttime plant and fish respiration releases CO2 and pulls pH back down to 6.4. Raising KH to 3.0–4.0 dKH dampens this diurnal swing to less than 0.2 units. Conversely, if pH climbs steadily week over week despite water changes, check for calcareous rocks (seiryu stone, Texas holey rock, marble) slowly dissolving CaCO3 into your water column.
pH, KH & GH Testing and Management Checklist
- Always test tap water after aerating a sample for 24 hours so dissolved CO2 equilibrates and reveals the true stable pH.
- Never chase a specific pH number with "pH Down" phosphoric acid bottles in high-KH water; the KH buffer neutralizes the acid, spikes phosphate (fueling algae), and causes pH to rebound violently.
- Adjust GH and KH via RO blending or remineralizer salts in a mixing bucket before water enters the aquarium.
- Check whether your municipal supply uses an ion-exchange softener (0 dGH with high dKH) before using tap water for planted tanks.
- Record pH, KH, and GH monthly—and after heavy rainfall or seasonal utility shifts—to catch source-water drift early.
Using Photometers, Digital pH Pens, and Drop Kits Together
Even the sharpest water-chemistry plan fails if your measurement tools drift out of calibration. Digital pH pens use a thin hydrated glass bulb whose reference junction slowly clogs or dries out; an uncalibrated pH meter can easily read 0.4 to 0.8 units off—enough to misdiagnose a CO2 injection target or a low-KH crash. Calibrate digital pH meters monthly using fresh two-point NIST buffers (pH 7.01 and pH 4.01 for soft/CO2 tanks, or pH 7.01 and pH 10.01 for alkaline Rift Lake tanks), and always store the probe tip in 3M KCl electrode storage solution, never distilled or RO water.
For KH and GH, liquid drop-titration kits remain far more accurate than multi-parameter test strips, which suffer from reagent bleed between pads and humidity degradation. Keep reagent caps tightly sealed, rinse glass test vials with deionized or tank water rather than tap water before every test, and replace liquid KH/GH bottles every 12 to 18 months once opened, as atmospheric CO2 slowly alters alkaline indicator dyes.
Non-Carbonate Buffers: Phosphates, Humic Acids, and Aquasoils
While the bicarbonate-carbonic acid system governs 95% of natural freshwater aquaria, three non-carbonate buffering systems can confuse aquarists who see low pH despite moderate KH—or stable pH at 0 dKH:
- Phosphate Buffers: Commercial "Neutral Regulator" or "pH 6.5/7.0" powders use monobasic and dibasic sodium phosphate (NaH2PO4 / Na2HPO4, pKa2 ≈ 7.20). While they lock pH effectively in bare-tank breeding setups, they inject 20 to 80+ mg/L of ortho-phosphate, fueling severe green water or staghorn algae outbreaks in lighted planted tanks.
- Humic & Fulvic Acids (Blackwater): Driftwood, Indian almond (Terminalia catappa) leaves, and peat moss release weak organic polycarboxylic acids (pKa 4.0–5.5) that softly buffer water in the pH 5.0–6.2 range once KH is near zero.
- Cation-Exchange Aquasoils: Active volcanic soils strip HCO3- and Ca2+/Mg2+ while releasing H+ until reaching their target pH (~6.0–6.5). Never fight an active aquasoil with baking soda; it rapidly exhausts the soil's ion-exchange capacity.
Choosing Livestock That Matches Your Local Water Chemistry
While remineralizing reverse osmosis water gives you complete control over pH, carbonate hardness, and general hardness, matching your livestock selection to your local municipal tap water remains the lowest-maintenance path for long-term aquarium stability. Soft-water South American tetras, rasboras, and dwarf cichlids thrive effortlessly in low-hardness tap regions without constant chemical tweaking, whereas livebearers, rainbowfish, and African Rift Lake cichlids flourish in naturally hard, alkaline supplies. Reserve RO blending and custom mineral salts for sensitive Caridina shrimp, wild-caught blackwater species, or high-tech aquascapes where precision control directly drives plant health.