top of page

DIY Coffee Water Recipe: How Magnesium and Bicarbonate Change Extraction

Writer: Tom Findlay
Tom Findlay
5 days ago
6 min read

Updated: 3 days ago

A cup of filter coffee is 98.5% water, yet most home brewers spend hundreds on grinders while brewing with hard tap water or flat zero-mineral distilled water. Learning a DIY coffee water recipe with magnesium sulfate (Epsom salt) and sodium bicarbonate (baking soda) lets you dial in sweetness, fruit clarity, and acidity buffer for less than three cents a liter while keeping your kettle and espresso boiler completely scale-free.


I compare tap mineral levels in Hard vs Soft Water for Coffee: How Minerals Change Extraction and Taste, thermal extraction rules in Coffee Water Temperature: Which Water Should You Use?, and acid-imbalance troubleshooting in Why Does My Coffee Taste Sour and Salty? How Under-Extraction Works. Separating extraction hardness (magnesium) from acid buffer (bicarbonate) in two liquid concentrate bottles gives you complete control over light-roast pour-overs and espresso alike.


This practical water-chemistry guide gives you the exact two-bottle concentrate recipe, explains how magnesium and bicarbonate shape flavor, and includes tailored recipes for bright pour-over vs. chocolatey espresso.


The short version


  • Bottle 1, GH Hardness Concentrate (extracts sweetness & fruit): Dissolve 2.45 g (0.086 oz / ~0.5 tsp) food-grade Epsom salt (magnesium sulfate heptahydrate) into 100 g (100 ml / 3.4 fl oz) of distilled or reverse-osmosis (RO) water. Each 1 ml adds 10 ppm GH (as CaCO3).

  • Bottle 2, KH Buffer Concentrate (tames sharp sourness): Dissolve 1.68 g (0.059 oz / ~0.35 tsp) pure baking soda (sodium bicarbonate) into 100 g (100 ml / 3.4 fl oz) of distilled or RO water. Each 1 ml adds 10 ppm KH alkalinity.

  • Standard SCA Pour-Over Recipe (per 1 liter / 33.8 fl oz distilled water): Add 4.0 ml GH concentrate + 2.0 ml KH concentrate = 40 ppm GH hardness and 20 ppm KH buffer (~65 ppm TDS total), with zero calcium carbonate limescale.

  • Rich Espresso & Dark-Roast Recipe (per 1 liter distilled water): Add 5.0 ml GH concentrate + 3.5 ml KH concentrate = 50 ppm GH and 35 ppm KH for syrupy crema and rounded chocolate sweetness.


How magnesium (GH) and bicarbonate (KH) change coffee extraction


Understanding why dialing in a 1:15 V60 pour-over tastes completely different in soft water vs. mineral-balanced water comes down to two distinct ions:


Infographic showing DIY Coffee Water Formula: 1. GH Hardness Bottle (2.45g Epsom Salt + 100ml Distilled Water), 2. KH Buffer Bottle (1.68g Baking Soda + 100ml Distilled Water), and 3. 1 Liter Brew Water (4ml GH + 2ml KH = 40 ppm GH / 20 ppm KH)

  • Magnesium ions (Mg2+, General Hardness / GH): Magnesium carries a strong positive charge that binds tightly to oxygen-rich flavor molecules inside coffee grounds (such as fruity esters, caramel sugars, and floral aromatics), pulling sweetness into the cup without leaving hard limescale inside heating elements.

  • Bicarbonate ions (HCO3-, Carbonate Hardness / KH): Bicarbonate acts as a pH buffer that neutralizes sharp organic acids (citric, malic, and phosphoric acids). Too little KH (0 to 10 ppm) leaves light roasts tasting sharply sour; too much KH (over 80 ppm) flattens vibrant fruit notes into dull, chalky flatness.

  • Why zero-calcium DIY water never scales your kettle or espresso machine: Traditional limescale forms when calcium ions bond with carbonate under heat; using magnesium sulfate instead of calcium chloride keeps heating coils spotless, saving you from frequent rounds of descaling your gooseneck kettle.


Step-by-step: how to mix your 2-bottle DIY coffee water kit


Follow these four steps using a 0.1 g digital scale and distilled or reverse-osmosis water (see the Coffee Glossary for quick TDS and alkalinity definitions):


Temperature-controlled stainless steel gooseneck kettle beside a 1-liter clear glass carafe of remineralized water, two glass dropper bottles, a 0.1 g digital scale, and a ceramic pour-over dripper

  1. Step 1: Weigh 2.45 g (0.086 oz) of USP food-grade Epsom salt into Bottle 1 and top up to 100 g (100 ml) with distilled water. Cap and shake for 30 seconds until the crystals dissolve completely into a crystal-clear GH stock solution (1 ml = 10 ppm GH per liter).

  2. Step 2: Weigh 1.68 g (0.059 oz) of fresh baking soda into Bottle 2 and top up to 100 g (100 ml) with distilled water. Shake well until completely clear to create your KH alkalinity buffer stock solution (1 ml = 10 ppm KH per liter), and label both bottles clearly.

  3. Step 3: Dose 4.0 ml of GH concentrate and 2.0 ml of KH concentrate into 1 liter (1,000 g / 33.8 fl oz) of distilled water. Use a graduated oral syringe or weigh directly on your 0.1 g scale (4.0 g GH + 2.0 g KH) for dead-on repeatability.

  4. Step 4: Swirl the 1-liter jug gently and adjust KH by ±1.0 ml per liter to match your coffee roast. Use 1.5 to 2.0 ml KH for bright washed Ethiopian or Kenyan filter coffees, and 3.0 to 4.0 ml KH for espresso or dark-roasted blends.


Common DIY coffee water mistakes to avoid


Using scented bath-grade Epsom salt instead of plain USP food-grade magnesium sulfate


Bath salts often contain lavender essential oils, menthol, or anti-caking additives that ruin coffee flavor and leave oily residue in your kettle. Buy plain, unscented USP-grade Epsom salt with '100% Magnesium Sulfate Heptahydrate' as the sole ingredient.


Brewing with 100% pure distilled or reverse-osmosis water without adding minerals


Zero-mineral distilled water lacks the magnesium ions needed to pull sugars out of coffee grounds, producing thin, hollow, sour coffee, and can actually corrode brass and copper espresso boilers over time.


Adding dry Epsom salt and baking soda crystals directly into each kettle


A single liter of brew water needs only 0.098 g of Epsom salt and 0.034 g of baking soda, amounts too tiny for a 0.1 g kitchen scale to measure accurately. Mixing 100 ml liquid stock concentrates makes dosing effortless and accurate.


Timing, measurements and aftercare


  • GH Stock Concentrate (1 ml = 10 ppm GH per liter): 2.45 g (0.086 oz) USP magnesium sulfate heptahydrate + distilled water to 100 g (100 ml) total.

  • KH Stock Concentrate (1 ml = 10 ppm KH per liter): 1.68 g (0.059 oz) sodium bicarbonate + distilled water to 100 g (100 ml) total.

  • Shelf life: Concentrate bottles stay shelf-stable at room temperature for 6 months; mixed 1-gallon (3.78 L) jugs stay fresh for 4 weeks.

  • 1-Gallon (3.78 L) batch shortcut: Multiply the 1-liter dose by 3.78: add 15.1 ml GH concentrate + 7.6 ml KH concentrate directly to a 1-gallon jug of distilled water.


Equipment mentioned in this guide


Two 100 ml glass bottles, a 1 ml graduated syringe, and USP magnesium sulfate let you mix years of cafe-grade brew water for pennies.



Frequently Asked Questions


What is the best DIY coffee water recipe for pour-over coffee?


Mix two 100 ml stock concentrates using distilled water: Bottle 1 (GH) with 2.45 g USP Epsom salt and Bottle 2 (KH) with 1.68 g baking soda. Add 4.0 ml of GH concentrate and 2.0 ml of KH concentrate per 1 liter (33.8 fl oz) of distilled water for a balanced 40 ppm GH / 20 ppm KH brew water.


How do magnesium and bicarbonate affect coffee taste?


Magnesium (GH) binds to sweet, fruity, and floral flavor compounds inside coffee grounds to boost extraction and body, while bicarbonate (KH) buffers organic acids to prevent sharp sourness without dulling clarity.


Can I use DIY magnesium-bicarbonate water in an espresso machine?


Yes, DIY water made with magnesium sulfate and sodium bicarbonate is ideal for espresso machines because it contains zero calcium carbonate, preventing limescale buildup inside boilers and solenoid valves while delivering 50 ppm GH and 35 ppm KH.


Why should I start with distilled or reverse-osmosis water instead of filtered tap water?


Tap water already contains unknown, fluctuating amounts of calcium, carbonate, and chloride; starting with 0 ppm distilled or reverse-osmosis water ensures your added magnesium and bicarbonate hit exact, repeatable mineral targets every single batch.



Want to measure your tap or filtered water's exact GH hardness and KH alkalinity before mixing minerals? Follow How to Test Coffee Water Hardness and Alkalinity at Home (GH & KH Drop Kit Guide).


Custom mineral water makes an even bigger difference once you compare pour over vs drip coffee maker flavor and control.



About the author. Hi, I'm Tom, creator and curator of Brew Craft Guide. I'm not a barista or an expert, just someone passionate about coffee and the many ways of brewing it. I share what I learn from my own experience and from fact-checking everything I can find, so you can make a better cup at home. Read more about me

bottom of page