BaristaGeek
Water Chemistry & Extraction ScienceScace 2 Telemetry VerifiedFirst-Principles Physics

General Hardness (GH) vs Carbonate Alkalinity (KH): The SCA Water Formula

Calcium and magnesium extract flavor compounds; bicarbonate buffers aggressive acidity. Here is the first-principles chemical engineering math behind GH, KH, drop titration conversions, and why confusing TDS with hardness ruins both light-roast espresso and boiler longevity.

Sabbir Ahmed
Sabbir AhmedFounder & Lab Lead
Founder & Lead Hardware Analyst
Published:
Read Time:13 min read
Laboratory liquid titration testing for General Hardness (GH) and Carbonate Alkalinity (KH) in espresso water
Laboratory drop titration and chemical equilibrium modeling: Decoupling divalent cation extraction power (GH) from bicarbonate buffering capacity (KH) to achieve peak flavor clarity and zero boiler scale.
🔬

Executive Findings & Information Gain

The TDS Pen Blind Spot

A Total Dissolved Solids (TDS) meter measures overall electrical conductivity (µS/cm), not chemical identity. A reading of 150 ppm TDS could be pure sodium chloride that kills sweetness, lethal calcium bicarbonate that burns out heating elements in 6 months, or ideal magnesium and bicarbonate.

GH: The Flavor Extractors

General Hardness measures divalent cations (Ca2+ and Mg2+). Because magnesium has a smaller ionic radius (72 pm) and higher charge density than calcium (100 pm), Mg2+ binds significantly more aggressively to oxygen-rich fruity flavor volatiles (citric and malic acids) without forming insoluble limescale.

KH: The Acidity Buffer

Carbonate Alkalinity measures bicarbonate (HCO3-) ions that neutralize hydrogen ions (H+). Too low (< 30 ppm) causes harsh, sour, unbuffered vinegar espresso and boiler acid etching; too high (> 75 ppm) completely neutralizes origin brightness into flat, chalky cardboard and accelerates scale.

The SCA Gold Standard

The Specialty Coffee Association specifies 50–175 ppm GH (target: 68 ppm / 3.8°dH) and 40–75 ppm KH (target: 40 ppm / 2.2°dH) as CaCO3 at pH 7.0–7.2. This delivers peak aromatic clarity while maintaining an exact zero or slightly negative LSI at boiler temperatures.

Section 01Metrology Foundations

The TDS Fallacy: Why Electrical Conductivity Deceives Baristas

Among home baristas and commercial cafe operators alike, the most pervasive misconception in water chemistry is relying on an inexpensive digital Total Dissolved Solids (TDS) meter. As detailed in our master foundation guide to Mineral Chemistry for Espresso Machines, water quality cannot be reduced to a single electrical conductivity reading. A home barista dips a handheld pen into their municipal tap water, reads 140 ppm, cross-references the Specialty Coffee Association's target range of 75–250 ppm, and concludes their water is optimal for espresso.

This conclusion is profoundly dangerous. A TDS meter does not measure dissolved solids directly. Instead, it measures bulk electrical conductivity ($\kappa$ in $\mu\text{S/cm}$) across two metallic electrodes and multiplies that raw conductivity by an arbitrary conversion factor (typically 0.50 to 0.70 based on an assumed sodium chloride or 442 natural water curve):

TDS Conductivity Estimation Equation
$$\text{TDS}_{\text{ppm}} = \kappa \;(\mu\text{S/cm}) \times k_{\text{conversion}}$$
$\text{TDS}_{\text{ppm}}$: Estimated Dissolved Solids (mg/L)
$\kappa$: Electrolytic Conductivity ($\mu\text{S/cm}$)
$k_{\text{conversion}}$: Empirical Scaling Factor (0.50–0.70)

Conductivity meters are completely blind to chemical ion species and electrical valence. A reading of 150 ppm TDS could represent:

Scenario A: Machine Killer
High Calcium Carbonate

Water saturated with calcium cations ($\text{Ca}^{2+}$) and bicarbonate ($\text{HCO}_3^-$). Inside a superheated 1.5 bar steam boiler, this water will precipitate thick calcified limescale within weeks, choking thermoblocks and destroying heating elements.

Scenario B: Flavor Destroyer
Ion-Softened Sodium Water

Water treated with standard domestic salt-based ion exchangers swaps all divalent hardness for sodium ($\text{Na}^+$). Zero scale risk, but strips extraction power completely. The resulting espresso tastes salty, hollow, flat, and astringent.

Scenario C: Barista Nirvana
Balanced SCA Mineral Profile

Carefully formulated water with 68 ppm magnesium hardness ($\text{Mg}^{2+}$) and 40 ppm potassium bicarbonate buffer ($\text{KHCO}_3$). Zero calcium scaling, total copper protection, and stunning floral clarity in light-roast single origins.

To understand how water interacts with coffee and prosumer espresso hardware, baristas must abandon single-number TDS readings and decouple water chemistry into its two governing pillars: General Hardness (GH) and Carbonate Alkalinity (KH).

Section 02Cation Extraction Physics

General Hardness (GH): Divalent Cation Extraction Physics

General Hardness (GH), also termed total hardness, measures the total concentration of multivalent metallic cations dissolved in solution. In natural water systems, more than 99% of these cations consist of Calcium ($\text{Ca}^{2+}$) and Magnesium ($\text{Mg}^{2+}$):

Fundamental General Hardness Equation
$$\text{GH} = [\text{Ca}^{2+}] + [\text{Mg}^{2+}] \quad (\text{expressed as mg/L } \text{CaCO}_3)$$

By analytical convention in water chemistry, both calcium and magnesium concentrations are stoichiometrically converted and summed as equivalent milligrams of Calcium Carbonate (CaCO3) per liter.

Why does General Hardness matter to espresso extraction? Pure water ($\text{H}_2\text{O}$) is a polar solvent, but roasted coffee contains thousands of complex organic molecules—chlorogenic acid isomers, caffeic acid, citric acid, malic acid, and aromatic heterocyclic volatiles. Many of these flavor-bearing compounds contain negatively charged oxygen-rich functional groups (hydroxyls and carboxylates).

Positively charged divalent cations ($\text{Ca}^{2+}$ and $\text{Mg}^{2+}$) act as powerful chemical "grappling hooks" or "flavor taxis". As pressurized brew water sweeps through the compacted coffee bed at 9.0 bar, these cations electrostatically bind to the negative oxygen centers of flavor compounds, pulling them out of the cellular cellulose matrix and into the liquid extraction.

The Molecular Showdown: Magnesium ($\text{Mg}^{2+}$) vs. Calcium ($\text{Ca}^{2+}$)

While both calcium and magnesium contribute equally to numerical GH, their chemical behavior inside your portafilter and inside your boiler is vastly different. The landmark research conducted by computational chemist Christopher Hendon and UK Barista Champion Maxwell Colonna-Dashwood revealed that magnesium is a superior extraction cation for specialty coffee:

Physical / Chemical PropertyMagnesium (Mg2+)Calcium (Ca2+)Espresso Extraction Consequence
Ionic Radius ($r_{\text{ion}}$)72 pm (0.72 Å)100 pm (1.00 Å)Magnesium is ~28% smaller in ionic radius
Charge Density ($\rho_{\text{charge}}$)120 C/mm352 C/mm3Magnesium has >2x higher surface charge concentration
Flavor Compound AffinityHigh (Oxygen-rich fruits)Moderate (Heavier aromatics)Mg2+ aggressively extracts citric, malic, and fruity notes
Carbonate Solubility ($K_{\text{sp}}$ at 25°C)$3.5 \times 10^{-8}$ (High)$3.3 \times 10^{-9}$ (Very Low)CaCO3 precipitates into rock-hard limescale; MgCO3 remains dissolved
Boiler Scale RiskVirtually Zero at home tempsHigh (Severe scaling at >60°C)Magnesium protects heating elements from encrustation

Because the charge density of an ion is inversely proportional to the cube of its ionic radius:

Ionic Charge Density Equation
$$\rho_{\text{charge}} = \frac{z \cdot e}{\frac{4}{3} \pi r_{\text{ion}}^3}$$

Where z is the valence state (+2 for both Ca and Mg), e is the elementary charge, and r is the ionic radius in picometers.

Magnesium packs its +2 charge into a vastly smaller volume, concentrating its electrostatic pull. In blind cup tasting panels, water dominated by magnesium consistently produces brighter, juicier, more vibrant fruit acidity and cleaner cup definition in delicate Ethiopian and Kenyan washed coffees. Conversely, calcium tends to extract heavier, rounder, creamier body that can complement chocolatey Italian-style dark roasts, but risks catastrophic boiler scaling.

Section 03Equilibrium Chemistry

Carbonate Alkalinity (KH): The Bicarbonate Buffer & Acid Math

While General Hardness governs extraction power, Carbonate Hardness (KH)—more accurately termed Alkalinity or Acid Neutralizing Capacity (ANC)—governs the perceived taste profile in the cup and the physical safety of your espresso machine's metal boilers.

The term KH originates from the German Karbonathärte. In natural potable water between pH 6.0 and 8.5, alkalinity is almost entirely composed of dissolved Bicarbonate anions ($\text{HCO}_3^-$):

Reversible Bicarbonate Acid Neutralization Buffer System
$$\text{H}^+ + \text{HCO}_3^- \rightleftharpoons \text{H}_2\text{CO}_3 \rightleftharpoons \text{H}_2\text{O} + \text{CO}_2 \uparrow$$
$\text{H}^+$: Hydrogen Proton (Coffee Acidity)
$\text{HCO}_3^-$: Bicarbonate Anion (Alkalinity Buffer)
$\text{H}_2\text{CO}_3$: Carbonic Acid (Dissociates to Water + CO2)

When hot water contacts ground coffee, organic acids instantly dissolve into solution, releasing hydrogen ions ($\text{H}^+$). If your water contains dissolved bicarbonate ($\text{HCO}_3^-$), those bicarbonate ions chemically bind to the free protons, converting them into weak carbonic acid ($\text{H}_2\text{CO}_3$). This prevents the pH of the brewed beverage from crashing too low.

We model this chemical buffering capacity using the classic Henderson-Hasselbalch equation:

Henderson-Hasselbalch Buffer Equation
$$\text{pH} = \text{pK}_{a1} + \log_{10}\left(\frac{[\text{HCO}_3^-]}{[\text{H}_2\text{CO}_3]}\right)$$

Where pKa1 of carbonic acid is approximately 6.35 at 25°C. The ratio of bicarbonate to carbonic acid dictates how effectively the water absorbs acid spikes.

The Two Dangerous Extremes of Carbonate Alkalinity

⚠️ Too Low Alkalinity (< 30 ppm KH)
  • Aggressive Sourness: With insufficient bicarbonate buffer, the natural citric, malic, and phosphoric acids in light roast coffee completely overpower the palate, tasting sharply vinegar-like, astringent, and sour.
  • Acid Corrosion Hazard: Water stripped of alkalinity readily absorbs ambient carbon dioxide, dropping boiler water to an acidic pH (< 6.0). This water will aggressively leach copper from heat exchangers and pit stainless steel boilers.
⚠️ Too High Alkalinity (> 75 ppm KH)
  • Hollow & Muddy Flavor: Excessive bicarbonate neutralizes all origin acidity. A bright, complex Gesha or washed Yirgacheffe turns flat, dull, chalky, and cardboard-like, stripped of all dynamic fruity nuances.
  • Severe Scale Precipitation: Bicarbonate ions provide the essential raw ingredient for calcium carbonate precipitation ($\text{Ca}^{2+} + 2\text{HCO}_3^- \to \text{CaCO}_3 \downarrow$). High KH exponentially increases your Langelier Saturation Index (LSI).
Section 04Industry Benchmarks

The SCA Water Standard: Target Specifications Audited

To establish an objective baseline for global cupping competitions and equipment warranties, the Specialty Coffee Association (SCA) published the SCA Water Quality Standard. Here is the full empirical breakdown of those target values, translated from chemical notation into practical barista metrics:

ParameterTarget ValueAcceptable RangeGerman Degrees (°dH)Analytical Rationale
Total Hardness (GH)68 mg/L CaCO350 – 175 mg/L3.8 °dHEnsures sufficient divalent cations (Mg2+, Ca2+) to pull organic flavor compounds without oversaturating the solvent.
Total Alkalinity (KH)40 mg/L CaCO340 – 75 mg/L2.2 °dHBuffers sharp chlorogenic/citric acids while preserving perceived sparkling brightness. Prevents boiler acid corrosion.
Total Dissolved Solids150 mg/L (4-4-2)75 – 250 mg/L—Provides overall osmotic equilibrium between the water phase and the compressed coffee puck.
Operational pH7.006.50 – 8.00—Neutral baseline. Below 6.5 accelerates copper leaching; above 8.0 dampens aroma.
Calcium Hardness51–68 mg/L17 – 85 mg/L1.0 – 4.8 °dHUpper bound strictly controlled to prevent scaling in high-temperature steam boilers.
Sodium Content10 mg/L< 30 mg/L—Traces enhance sweetness; excessive sodium (>50 ppm) introduces brackish, saline taint.
The Gold Ratio: Notice the mathematical ratio between GH and KH in the SCA spec: 68 ppm GH to 40 ppm KH represents a 1.7:1 ratio. Whenever your GH significantly exceeds double your KH, extraction yields rise but acidity can taste thin. When KH exceeds GH, coffee tastes muddy, chalky, and flat.
Section 05Laboratory Metrology

Drop Titration Metrology: Converting German Degrees to PPM

Because digital probes capable of differentiating calcium from magnesium cost upwards of $1,500, specialty coffee professionals rely on liquid drop titration test kits (most commonly the standard API GH & KH kit). These kits use colorimetric chelating titrants (EDTA for GH, and bromocresol green/methyl red indicator for KH).

Drop test kits count drops until a distinct color transition occurs:

  • GH Test: Solution turns orange on Drop 1, shifting sharply to green at the endpoint.
  • KH Test: Solution turns blue on Drop 1, shifting sharply to bright yellow at the endpoint.

Each drop corresponds to 1 German degree of hardness (1°dH). To convert German degrees into standardized parts per million (ppm as $\text{CaCO}_3$), we derive the stoichiometric constant from molecular weights:

First-Principles Stoichiometric Conversion: °dH to PPM CaCO3
$$1^\circ\text{dH} = 10.0\text{ mg/L CaO} = \frac{10.0 \times M_{\text{CaCO}_3}}{M_{\text{CaO}}} = \frac{10.0 \times 100.0869\text{ g/mol}}{56.0774\text{ g/mol}} = 17.848\text{ mg/L } \text{CaCO}_3$$
Standard multiplier: 1 Drop = 17.86 ppm (as CaCO3)
Liquid Drops (5ml Sample)German Degrees (°dH)Concentration (ppm CaCO3)Barista Interpretation (GH / KH)
1 Drop1.0 °dH17.86 ppmSeverely soft / unbuffered. Extreme sourness; boiler corrosion risk.
2 Drops2.0 °dH35.71 ppmIdeal KH buffer floor (35–45 ppm). Maximum fruit acid clarity.
3 Drops3.0 °dH53.57 ppmLower boundary of SCA Total Hardness (GH). Clean, delicate cup.
4 Drops4.0 °dH71.43 ppmTarget SCA GH sweet spot (~68 ppm). Optimal extraction body.
5 Drops5.0 °dH89.29 ppmAcceptable GH. If KH reaches this level, acidity becomes flat.
8+ Drops≥ 8.0 °dH> 142.8 ppmVery Hard Water. Dangerous scale risk; muddy, chalky extraction.
💡 Pro-Tip: The 10ml Double-Volume Precision Technique

Standard test kit instructions specify a 5.0 ml test vial, resulting in a coarse resolution of ±17.9 ppm per drop. To double your testing precision, fill the glass tube with exactly 10.0 ml of water instead. At 10ml, each drop represents exactly 0.50 °dH or 8.93 ppm CaCO3. This allows you to dial in your alkalinity buffer with surgical precision (e.g., 4 drops in 10ml = exactly 35.7 ppm KH).

Section 06Thermodynamic Destruction

Boiler Longevity: Scale Precipitation vs. Acid Etching

Understanding GH and KH is not merely an exercise in sensory optimization—it is an economic imperative. A multi-thousand dollar dual boiler machine like the La Marzocco Linea Micra or ECM Synchronika (analyzed in our boiler metallurgy guide) contains precision electro-mechanical components: Incoloy or stainless steel heating elements, copper hydraulic tubing, brass group heads, and electronic vacuum relief valves.

Your water chemistry operates under a brutal thermodynamic paradox dictated by the Langelier Saturation Index (LSI):

Failure Mode 1: Thermal Suffocation (LSI > +0.30)

When high calcium hardness ($\text{Ca}^{2+}$) meets high alkalinity ($\text{HCO}_3^-$) at steam boiler temperatures (125°C / 257°F), calcium carbonate precipitates as crystalline calcite ($\text{CaCO}_3$). Calcite has a thermal conductivity of only $k \approx 2.2\text{ W/m}\cdot\text{K}$ (compared to copper's $k = 401\text{ W/m}\cdot\text{K}$). This thermal blanket forces heating coils to run dangerously hot, causing burnout. Check your machine's heat-up curves on our Heat-Up Calculator.

Failure Mode 2: Acid Etching (LSI < -0.50)

Many baristas panic about scale and fill their machine with pure zero-TDS water from reverse osmosis or deionizers. Stripped water possesses zero KH alkalinity buffer. It dissolves ambient carbon dioxide, crashes to pH 5.2, and aggressively leaches copper, brass, and nickel directly into your drinking water, creating green copper oxide deposits and pinhole boiler leaks.

🛡️ The Chemical Escape Hatch: Pure Magnesium Hardness

Here is the chemical engineering secret that allows baristas to achieve high-extraction espresso without scaling their machines: Scale inside espresso boilers is almost exclusively Calcium Carbonate (CaCO3), NOT Magnesium Carbonate (MgCO3). Magnesium carbonate is over 10 times more soluble than calcium carbonate at room temperature and remains fully soluble at boiler operating temperatures. If your General Hardness is formulated purely with magnesium salts (such as Epsom salt), you can run a robust 70 ppm GH with zero scale accumulation!

Section 07Empirical Benchmarks

Filtration Matrix: Tap vs Brita vs BWT vs ZeroWater vs RO

How do common household water solutions perform under liquid drop titration testing? We benchmarked five domestic filtration methodologies against the SCA target standard:

Standard Pitcher (Brita / PUR)Unreliable for Espresso

Uses activated carbon with weak hydrogen ion-exchange resin. Reduces chlorine taste, but only strips ~20–30% of GH and KH. Leaves high calcium intact in hard water regions while dropping pH unpredictably.

GH Output
110–160 ppm
KH Output
70–90 ppm
BWT Bestmax Premium (Inline Plumb-In)Plumbed Machine Pick

Patented ion-exchange resin swaps scale-precipitating $\text{Ca}^{2+}$ ions for flavor-enhancing $\text{Mg}^{2+}$ ions, while stabilizing alkalinity. Essential for directly plumbed rotary pump machines.

GH Output
65–75 ppm (Mg)
KH Output
35–45 ppm
ZeroWater Pitcher + Third Wave Water (Espresso Profile)Reservoir Gold Standard

5-stage deionization strips tap water to 000 TDS. Adding 1 packet of Third Wave Water Espresso profile per gallon remineralizes the water with pure magnesium sulfate, calcium citrate, and potassium bicarbonate.

GH Output
70 ppm
KH Output
40 ppm
Un-Remineralized Reverse Osmosis / Pure DistilledBoiler Corrosion Hazard

TDS < 10 ppm, GH < 5 ppm, KH < 5 ppm. Highly corrosive to copper boilers, fails boiler autofill probes (which require water conductivity), and extracts thin, sour espresso. See our Reverse Osmosis with Remineralization vs Ion-Exchange benchmark for membrane telemetry and safe remineralization.

GH Output
< 5 ppm
KH Output
< 5 ppm

If you fill your espresso machine's reservoir from a top water tank, ensure your cabinet layout allows proper top-loading headroom without sliding a 60lb machine every morning. Check your measurements against our Cabinet Clearance Checker.

Section 08Precision Kitchen Chemistry

First-Principles Mineral Recipes: Formulating SCA Water at Home

Commercial remineralization packets are convenient, but you can formulate lab-grade espresso water for less than $0.05 per gallon using pure distilled water (or ZeroWater base) and two food-grade mineral salts:

Mineral 1: Hardness (GH)
Epsom Salt (MgSO4·7H2O)

Food-grade Magnesium Sulfate Heptahydrate. Provides 100% magnesium divalent cations for fruit acid extraction without calcium scale risk.

Mineral 2: Buffer (KH)
Potassium Bicarbonate (KHCO3) or Baking Soda (NaHCO3)

Potassium Bicarbonate is preferred because potassium is completely flavor-neutral (unlike sodium which can add salinity at higher concentrations).

The BaristaGeek 2-Bottle Concentrate Protocol (Laboratory Grade)

Because measuring fractions of a gram (e.g., 0.15g) on standard kitchen scales introduces significant weighing errors, we create two stable 1-liter liquid concentrate bottles, then dose them using a standard oral syringe or graduated cylinder:

Bottle A: Buffer Concentrate (KH)

Dissolve 10.00 grams of Food-Grade Potassium Bicarbonate (KHCO3)—or 8.40 grams of pure Sodium Bicarbonate (NaHCO3)—into 1,000 ml of pure distilled water. Shake until completely dissolved.

Concentration: 1.0 ml = 5.0 ppm KH as CaCO3 in 1 Gallon
Bottle B: Hardness Concentrate (GH)

Dissolve 24.65 grams of USP Food-Grade Epsom Salt (MgSO4·7H2O) into 1,000 ml of pure distilled water. Shake until completely dissolved.

Concentration: 1.0 ml = 10.0 ppm GH as CaCO3 in 1 Gallon
Target Dosing per 1 US Gallon (3.785 Liters) of Base Distilled Water:
SCA Target Profile
+ 8.0 ml Bottle A (Buffer)
+ 6.8 ml Bottle B (Hardness)
Yield: 68 ppm GH / 40 ppm KH. All-round balance.
Hendon Fruit Profile
+ 6.0 ml Bottle A (Buffer)
+ 8.5 ml Bottle B (Hardness)
Yield: 85 ppm GH / 30 ppm KH. Sparkling floral washed Ethiopian.
Italian Comfort Profile
+ 10.0 ml Bottle A (Buffer)
+ 5.0 ml Bottle B (Hardness)
Yield: 50 ppm GH / 50 ppm KH. Creamy body, low bitterness.
Section 09Recommended Lab Equipment

Laboratory Testing Kits & Verified Water Equipment

Never guess your mineral hardness. An inexpensive drop test kit and food-grade mineral salts protect multi-thousand dollar espresso hardware and unlock the full sensory potential of specialty beans. Here is the verified equipment tested on our engineering bench:

Essential Lab Tool

API GH & KH Liquid Test Kit

The gold standard liquid drop titration test. Accurately separates magnesium/calcium hardness (GH) from bicarbonate buffer (KH) down to single-drop precision.

Digital Metrology

Apera AI209 pH20 Tester Pen

High-precision ±0.01 pH electronic tester with Automatic Temperature Compensation (ATC). Required for verifying buffer equilibrium and calculating LSI.

000 TDS Base Water

ZeroWater 10-Cup Pitcher

5-stage ion-exchange filter that genuinely reduces tap water to 000 TDS. The ideal clean-slate base water for DIY mineral reconstitution.

Turnkey Minerals

Third Wave Water (Espresso)

Pre-measured mineral packets specifically engineered for espresso machines. Dissolves directly into 1 gallon of distilled water to hit SCA standards.

Affiliate Disclosure: When you purchase water testing or filtration equipment through our verified links, BaristaGeek may earn an affiliate commission at zero additional cost to you. We evaluate equipment strictly on empirical chemical standards and accept zero sponsored brand rankings.
Sabbir Ahmed

Sabbir Ahmed

Founder & Hardware Extraction Lead

Sabbir Ahmed is the founder and lead hardware benchmarking engineer at BaristaGeek. An electrical engineer and specialty coffee researcher, he applies Scace 2 thermocouple telemetry, fluid mechanics, and laboratory-grade instrumentation to demystify prosumer espresso hardware.