A milky liquid inside an onion is usually a sign of bacterial rot, though in some cases it can be harmless moisture trapped between the layers. The key to telling the difference comes down to smell, texture, and how the onion looks once you cut into it.
What Causes the Milky Liquid
Onions are made up of tightly packed layers (scales), and the spaces between those layers can trap fluid for a few different reasons. The most common cause of a truly milky or cloudy discharge is bacterial infection. Two diseases are responsible for the majority of cases you’d encounter at home: slippery skin and sour skin. Both are caused by bacteria that colonize the onion from the inside out, breaking down cell walls and releasing liquid as the tissue deteriorates.
Slippery skin is particularly sneaky. Infected bulbs often look completely normal from the outside but feel softer than usual when you squeeze them. Once you cut in, you’ll find a watery, glassy appearance in one or more of the inner layers. Sour skin, on the other hand, tends to produce a slimy, yellowish fluid with a distinct vinegar-like smell. Both can create the milky, off-putting liquid that likely prompted your search.
How to Tell If It’s Bacterial Rot
Smell is the fastest test. Bacterial rot in onions is almost always stinky. The odor ranges from sour and vinegary to outright putrid, depending on which bacteria are involved and how far the rot has progressed. If you cut into your onion and get hit with any sharp, unpleasant smell, that’s your answer.
Texture is the second giveaway. Rotten layers will feel mushy or slimy rather than firm and crisp. You might notice that liquid oozes from the neck (the top of the bulb where the stem was) even before cutting. A healthy onion should feel solid all the way through, with layers that snap cleanly when bent. If individual layers slide against each other or feel slippery, that’s consistent with bacterial breakdown.
Color matters too. Healthy onion juice is clear. A milky, cloudy, or yellowish tint to the liquid between layers points toward bacterial activity. The affected layers themselves may look translucent or waterlogged compared to the bright white or pale yellow of healthy tissue.
When Milky Liquid Is Harmless
Not every bit of moisture inside an onion means it’s gone bad. Onions sometimes develop translucent scales, where one or two inner layers look glassy or slightly wet. This is a physiological condition, not a disease. The critical distinction, according to Cornell’s diagnostic guidelines for onion bulb rot, is that translucent scale does not cause odor or sliminess. If the liquid is clear, the onion smells normal, and the texture is still firm, you’re likely looking at trapped moisture rather than infection.
Similarly, internal dry scale (a papery brown layer between otherwise healthy layers) is cosmetic and not associated with bacterial rot. You can peel it away and use the rest of the onion without concern.
Can You Eat Part of the Onion?
If the milky liquid is limited to one or two outer layers and the inner layers look clean, smell fine, and feel firm, you can remove the affected layers and use what’s left. Bacterial rot in onions tends to progress from the outside in or affect individual layers while leaving others untouched, at least in the early stages.
If multiple layers are slimy, the liquid smells sour or rotten, or the onion is soft throughout, discard the whole thing. The bacteria responsible for these infections produce compounds that spread beyond what’s visible, and the flavor will be off even in layers that look okay.
Why This Happens and How to Prevent It
Bacterial rot usually starts in the field or during the curing process, long before the onion reaches your kitchen. But improper storage at home accelerates the problem. Onions stored in warm, humid environments are especially vulnerable. Cooling onions too quickly, such as moving them from a warm counter into a cold fridge, can cause them to draw moisture from the surrounding air, creating conditions where bacteria thrive.
For the longest shelf life, store whole onions in a cool, dry, well-ventilated spot. A mesh bag or open basket in a pantry works well. Avoid sealed plastic bags, which trap humidity. Keep onions away from potatoes, which release moisture and gases that speed up spoilage. At purchase, choose onions that feel firm and heavy for their size, with dry, papery outer skins and no soft spots near the neck. A bulb that already feels slightly soft or squishy in the store is one to skip.

