Soil & Compost
Why Your Compost Pile Smells Bad and How to Fix It
Compost pile smells bad? Learn what rotten-egg, ammonia, or sour odors actually mean and the exact fix for each cause, from moisture to nitrogen balance.
A smelly pile is a message, not a failure
Healthy compost has an earthy, forest-floor smell — pleasant, mineral, almost sweet. If your pile smells like rotten eggs, ammonia, or sour garbage, that odor is the pile telling you something specific about what’s happening inside. Composting is really just controlled decomposition, and decomposition only smells bad when the wrong type of microbes take over. The good news is that every common odor points to a specific, fixable cause. Once you learn to read the smell, you can usually correct it within a day or two of turning and adjusting the pile.
Most bad smells trace back to one of three root problems: too much moisture, too much nitrogen-rich material, or not enough oxygen. Often these three are tangled together, since a soggy, compacted pile is both wet and airless at the same time. Work through the causes below in order, since fixing moisture and airflow first often resolves the nitrogen imbalance on its own.
Rotten-egg smell means anaerobic decomposition
A sharp, sulfurous, rotten-egg odor is the classic sign that your pile has gone anaerobic — meaning the oxygen-loving bacteria that produce that pleasant earthy smell have been replaced by bacteria that thrive without oxygen and release hydrogen sulfide gas as a byproduct. This almost always happens when a pile is compacted, oversaturated with water, or built with too many wet, dense materials layered together without any coarse material to hold air pockets open.
The fix is aeration. Turn the pile thoroughly with a pitchfork or compost aerator, breaking up any dense, matted clumps, especially near the center and bottom where compaction is worst. As you turn, mix in a good amount of coarse, dry carbon material such as shredded cardboard, dry leaves, or straw. These bulky materials physically prop the pile open so air can circulate. If the pile is sitting in a solid-walled bin with no drainage, consider drilling extra holes in the sides or switching to a bin with better ventilation. Turn the pile every few days until the odor clears, which usually takes one to two weeks.
Ammonia smell means too much nitrogen
If the odor is sharp and stings your nose more like ammonia or urine than rotten eggs, your pile has too much nitrogen-rich “green” material relative to carbon-rich “brown” material. Excess nitrogen from things like fresh grass clippings, food scraps, or manure breaks down quickly and releases ammonia gas when there isn’t enough carbon to balance it. A well-balanced pile generally uses roughly two to three parts brown material to one part green material by volume.
To fix an ammonia smell, mix in more brown material right away: shredded cardboard, dry leaves, straw, or wood chips all work well. Turn the pile as you add these materials so they blend evenly rather than sitting in a separate layer. Going forward, keep a stash of dry leaves or shredded cardboard near your compost area so you can add a handful of brown material every time you add kitchen scraps or grass clippings. This habit alone prevents most ammonia odor problems before they start.

Sour, vinegary smell means the pile is too wet
A sour or vinegary smell, sometimes with a slightly fermented quality, usually signals excess moisture rather than a nitrogen problem specifically. When a pile stays waterlogged, it starts to ferment in low-oxygen pockets rather than decompose aerobically, producing organic acids that smell sour. This is common after heavy rain, if the pile lacks a cover, or if you’ve added a lot of wet materials like melon rinds or coffee grounds without balancing them with dry material.
The ideal moisture level feels like a wrung-out sponge — damp but not dripping. Grab a handful from the middle of the pile and squeeze it. If water runs out, the pile is too wet. Turn the pile to release trapped moisture and mix in plenty of dry brown material such as shredded cardboard, dry leaves, or sawdust to soak up the excess. If your climate is rainy, add a tarp or a solid lid to keep future rainfall from soaking the pile, while still allowing some airflow at the sides.
Rotting garbage smell means buried food scraps
If the smell is closer to rotting trash than sulfur or ammonia, check whether food scraps are sitting near the surface or exposed at the edges of the pile rather than being buried within it. Exposed food scraps decompose in the open air differently than buried ones, attract pests, and produce a distinctly garbage-like odor as they rot rather than compost properly.
Always bury fresh food scraps at least eight to ten inches deep in the center of the pile, and cover them with a layer of brown material immediately after adding them. This buries the odor-causing surface area, discourages pests, and speeds up proper decomposition since the scraps are surrounded by other actively composting material. If this keeps happening, consider designating one corner of the pile for fresh additions and always covering that spot with a scoop of dry leaves or shredded cardboard right after you add scraps.
When the smell doesn’t go away
If you’ve corrected moisture, aeration, and the carbon-to-nitrogen balance but the odor persists after a couple of turns, check the pile’s size. A pile smaller than about three feet in each dimension often struggles to hold heat and airflow evenly, making it more prone to soggy, airless pockets. Building the pile up to roughly a three-foot cube, if you have the material, gives it enough mass to compost more evenly and resist odor problems. It’s also worth checking that nothing inappropriate has been added, such as meat, dairy, or oily foods, which decompose poorly in a home compost pile and produce persistent odors regardless of how well the pile is otherwise managed.
Quick recap
- Rotten-egg smell means the pile is compacted or airless — turn it and mix in coarse, dry material to restore airflow.
- Ammonia smell means too much nitrogen — add more brown, carbon-rich material and turn to blend it in.
- Sour or vinegary smell means the pile is too wet — turn it, add dry material, and cover it from rain.
- Rotting garbage smell usually means exposed food scraps — bury them deep and cover with brown material immediately.
- If odor persists after fixing moisture and balance, check that the pile is large enough and free of meat, dairy, or oily foods.
Keep going
Seasonal reminders in your inbox
One short email at the start of each season: what to sow, what to prune, and what to fix before it costs you a harvest.
Want something today? Grab the free One-Bed Quick Start Sheet.