The short answer
Garlic that turns blue, green or blue-green in a ferment is going through a natural chemical reaction, not spoiling. It happens when sulfur compounds in garlic react with amino acids in an acidic environment, forming colored pigments. The discolored garlic is generally considered safe to eat, and its flavor is usually unchanged. If the rest of the ferment looks and smells normal, there’s no reason to throw it out.
What makes garlic change color
When garlic is cut, crushed or otherwise damaged, an enzyme in the clove converts a compound called alliin into allicin and related sulfur compounds. These are the compounds that give garlic its sharp smell and bite.
Under certain conditions, some of these sulfur compounds react with amino acids naturally present in the garlic. The products of those reactions can link together into pigments that look blue or green. Acid is one of the conditions that encourages this, which is why the color change shows up so often in ferments and vinegar pickles. As lactic acid builds up in the brine, the garlic becomes more likely to change color.
The same basic reaction is behind the vivid green of Laba garlic, a traditional Chinese preparation in which peeled garlic is soaked in vinegar until the cloves turn jade green. In that case, the color is the goal.
Why some garlic turns blue and some doesn’t
You may have two jars made the same way where the garlic turns blue in one but not the other. That’s common. Several factors seem to affect it:
- Garlic maturity and storage. Young, freshly harvested garlic often discolors more than mature, well-cured garlic. Garlic that has been stored in cool conditions may also be more prone to it.
- Variety. Some garlic varieties seem more reactive than others.
- How it’s cut. Crushed or chopped garlic releases more of the reactive compounds than whole cloves.
- Acidity. The color often appears as the ferment sours.
- Trace minerals. Small amounts of copper or iron in water or from equipment have been suggested as possible contributing factors.
Sometimes only part of a clove turns color, or only a few cloves in a jar. That’s normal too.
Is blue or green garlic safe to eat
Blue and green garlic is generally regarded as safe to eat. University extension services that cover home pickling commonly describe this color change as harmless. The pigments come from the garlic’s own compounds, not from bacteria or mold.
Flavor and texture usually aren’t affected. Some people find the color unappetizing, which is a perfectly fine reason to pick those cloves out, but it’s not a safety concern.
How to tell color change from spoilage
The key is that blue or green garlic has a smooth, even color within the clove. It looks like the clove has been tinted. Spoilage looks different:
- Mold is fuzzy or raised and sits on the surface of the brine or on exposed vegetables. It can be green, blue, black, white or pink. Garlic that has changed color while submerged in brine doesn’t look fuzzy.
- Slime coats the vegetables or makes the brine thick and stringy.
- Bad smells such as rotten, putrid or sewage-like odors point to a problem. A strong garlicky, sulfurous or sour smell is normal for a garlic-heavy ferment.
If you see fuzzy growth on the surface, that’s a separate issue from the garlic’s color. Our guide to mold on fermented vegetables explains how to decide whether to keep or discard a batch, and our article on how to tell if fermented vegetables have gone bad lists other warning signs.
Can you prevent it
You can’t always prevent garlic from changing color, but a few things may help reduce it:
- Use mature, well-cured garlic rather than fresh, green garlic.
- Leave cloves whole instead of crushing or slicing them.
- Blanch the cloves briefly in boiling water before adding them. Some picklers report that this reduces discoloration, possibly by deactivating the enzyme, though it also softens the garlic’s raw bite.
- Use filtered water if you suspect your water is high in minerals.
None of these is guaranteed. Since the color change is harmless, many fermenters simply accept it as one of the quirks of the process.
If your ferment uses a lot of garlic, such as fermented dill pickles or fermented honey garlic, you’re more likely to see it happen. In honey garlic, cloves often darken to amber or brown rather than turning blue, though some people see green tints there as well.