
Everyone eventually learns that water matters. The usual next step is to buy a filter, notice the coffee tastes a little better, and stop thinking about it.
That is a reasonable place to stop, and it leaves the most interesting part untouched. Water is not a single variable that runs from bad to good. It is a recipe with several ingredients, and two of them, calcium and magnesium, do genuinely different jobs inside your brewer. They are both categorized as hardness, they are usually discussed as one thing, and they produce noticeably different cups.
Once you know which is which, a lot of unexplained coffee behavior makes sense, including why the same beans taste different at a friend's house across town.
Get beans worth brewing with good water.
Pure Water Makes Bad Coffee
Start with the result that surprises people. If water quality were simply about removing things, then distilled water would be ideal. It is close to the worst thing you can brew with.
Coffee brewed with distilled or fully deionized water tastes hollow, flat, and thin. There is a shadow of the flavor that should be there, with no sweetness and very little body. It is a strangely empty cup.
The reason is that extraction is not just water washing flavor out of grounds. Dissolved minerals participate directly. Certain flavor compounds in coffee bind to mineral ions, and that binding is part of what pulls them out of the coffee and holds them in solution. Water with nothing in it has nothing to bind with, so a portion of the available flavor stays where it was.
So minerals in brew water are not contamination to be eliminated. They are reagents. The question is which ones, and how much.

Magnesium, the One You Want More Of
Magnesium is the mineral most likely to make you say a coffee tastes better, and the difference is not subtle when you compare directly.
Magnesium ions are relatively small with a high charge density, which makes them efficient at binding to the flavor compounds in coffee. Brew the same coffee with magnesium forward water and you get more of it in the cup. Notably, magnesium seems to preferentially pull out the compounds associated with fruit character, acidity, and aromatic complexity.
The practical effect is a cup that reads brighter, juicier, and more distinct. Origin character comes forward. A washed Ethiopian tastes more floral. A Kenyan tastes more like blackcurrant and less like generic brightness. Sweetness is more apparent.
If you have ever compared bottled waters for brewing and found one that made everything taste more alive, there is a good chance it was higher in magnesium relative to calcium.
Calcium, the One You Want Less Of
Calcium also extracts, and it also improves on pure water. It simply does the job differently and less well.
Calcium ions are larger and bind less efficiently, and the extraction they drive tends to emphasize heavier compounds over aromatic ones. Calcium forward water produces a cup that is fuller but duller. People describe it as chalky, flat, or heavy. Body goes up, clarity goes down, and the bright top notes get muted.
Calcium has a second problem that magnesium mostly avoids, and it is the one that costs money. When calcium is present alongside bicarbonate and gets heated, it precipitates out as calcium carbonate, which is limescale. That is the white crust in your kettle and the hidden buildup inside an espresso machine boiler that eventually restricts flow and destroys heating elements.
So calcium is doubly unhelpful. It extracts a less appealing cup and it is the primary reason descaling exists as a chore.
Bicarbonate, the Third Ingredient Nobody Mentions
There is a third component that matters as much as either mineral, and it works by a completely different mechanism.
Bicarbonate is what water reports call alkalinity, and it is a buffer. Its job in your water is to resist changes in pH, which in the context of coffee means it neutralizes acids. Coffee is full of organic acids, and those acids are a large part of what makes good coffee taste like anything.
High bicarbonate water actively cancels them out. The cup comes out muted, flat, and often slightly chalky, with the brightness sanded off. If your coffee consistently tastes dull no matter what beans you buy, high alkalinity is one of the more likely explanations, and it is extremely common in municipal water.
Very low bicarbonate goes wrong in the other direction. With no buffering, acidity arrives unchecked, and coffee can taste sharp, sour, or aggressively tangy. Lightly roasted, high acidity coffees get harsh. There is also a practical concern, since water with essentially no alkalinity is more corrosive to metal, which matters for espresso machines.
Bicarbonate needs to be present and modest. It is a balance rather than a thing to eliminate.
Try a coffee where the acidity is supposed to show.
The Numbers Worth Knowing
There are published targets, and while treating them as gospel is a mistake, they give you a frame of reference.
The Specialty Coffee Association's water standard puts total hardness in a range of about fifty to one hundred seventy five parts per million measured as calcium carbonate, with a target near sixty eight. Alkalinity is targeted around forty parts per million. pH should be close to neutral, roughly six point five to seven point five. Total dissolved solids land somewhere near one hundred fifty. Chlorine should be zero, since chlorine and its byproducts produce an unmistakable chemical off flavor.
What that standard does not do is separate calcium from magnesium, because hardness is conventionally reported as a single combined figure. That is exactly the gap this whole discussion sits in. Two waters with identical total hardness can taste distinctly different depending on the ratio between the two minerals.
The direction most people who have tested carefully end up going is hardness weighted toward magnesium, with calcium kept low, and alkalinity kept modest. That combination gives you extraction efficiency and clarity without scale and without the buffer flattening the cup.

Why the Same Beans Taste Different Across Town
This explains one of the most common frustrations in home coffee.
Municipal water varies enormously by source. Water drawn from limestone aquifers is high in both calcium and bicarbonate, so it is hard and heavily buffered, and it makes coffee taste flat while coating your kettle. Water from surface reservoirs in granite regions is often soft and low in alkalinity, which makes bright coffees sing and can make some taste sharp. Well water is its own situation entirely and sometimes very high in minerals.
Cities also blend sources seasonally, which means your water is not even a constant across the year. A recipe you dialed in during the winter can quietly stop working in the summer, and the beans get the blame.
If you want to know what you are working with, your municipal utility publishes an annual water quality report. Look for hardness, calcium, magnesium if listed, and alkalinity or bicarbonate. It takes five minutes and it explains more about your coffee than most equipment upgrades would.
What a Filter Does and Does Not Change
Here is where a lot of people are operating on a false assumption.
An ordinary activated carbon filter, the kind in a pitcher or a fridge line, removes chlorine, chloramine, and various organic compounds that cause off flavors. That is genuinely worthwhile and it is the single easiest improvement available. Removing chlorine alone makes a real difference.
What carbon does not do is change your mineral content in any meaningful way. Calcium, magnesium, and bicarbonate pass straight through. So if your water is hard and highly buffered, a carbon filter gives you the same flat, chalky cup with the chlorine taste removed.
Getting control over minerals requires either an ion exchange system, a reverse osmosis system, or starting from distilled or reverse osmosis water and adding minerals back deliberately. That last approach is how people who care most about this handle it, using either commercial mineral packets designed for coffee or homemade concentrates from magnesium sulfate and sodium bicarbonate.
The Espresso Machine Complication
If you own an espresso machine, you cannot simply optimize for flavor, and it is worth being honest about the conflict.
The water that tastes best is magnesium forward with low alkalinity. The water that is safest for a boiler wants enough alkalinity to avoid corrosion and low enough hardness to avoid scale. Those two goals pull against each other, since alkalinity is what protects metal and also what flattens your cup.
Pure or near pure water is not the answer either. Water with essentially no minerals is aggressive toward the metals in a machine and will also, in many machines, fail to conduct enough current for the water level probes to work properly, which causes the machine to behave as though it is empty.
The workable compromise is moderate hardness weighted toward magnesium with modest alkalinity, which is roughly what the commercial coffee water products are formulated to deliver. Slightly less exciting in the cup than a flavor optimized recipe, considerably better for a machine you paid real money for.

The Short Version
Your cup is over ninety eight percent water, and that water is an active participant rather than a neutral carrier. Magnesium extracts efficiently and brings out acidity, sweetness, and aromatic detail. Calcium extracts less gracefully, pushes the cup toward flat and chalky, and is what forms scale. Bicarbonate neutralizes the acids that make coffee interesting and needs to be present but low.
Filter your water to get rid of chlorine, find out what your local hardness and alkalinity actually are, and if you want to go further, build your brew water instead of accepting it. It is the cheapest large improvement available in coffee, and it costs less than a grinder.
All images shown in this blog are sourced from pexels.com.