Healthy compost should smell earthy and pleasant, like a forest floor after rain. If your pile reeks of rotten eggs, ammonia, or sour garbage, something has gone wrong — and the underlying problem is almost always the same: the pile has gone anaerobic, meaning it has run out of oxygen, and the wrong kind of microbes have taken over. That happens when a pile gets too wet, too packed down, overloaded with nitrogen-rich greens, or fed the wrong materials like meat and dairy. The specific smell is a useful clue: a rotten-egg, sulfurous stink points to wet, airless conditions, while a sharp ammonia smell points to too much nitrogen. The good news is that smelly compost is easy to fix and easy to prevent once you understand what the odor is telling you. This guide breaks down every cause of compost smell, how to diagnose it from the odor, and how to get your pile back to that clean, earthy scent.
Key Takeaways
- Healthy compost smells earthy. A bad smell means the pile has gone anaerobic (out of oxygen) and needs air and dry browns.
- A rotten-egg or sour smell usually means the pile is too wet and compacted — turn it and add dry carbon material.
- An ammonia smell means too much nitrogen (too many greens) — add browns to rebalance.
- Meat, dairy, oily foods, and pet waste cause strong odors and attract pests — keep them out of a home pile.
- Turning regularly, balancing greens with browns, and managing moisture prevent nearly all compost odors.
The Pile Is Too Wet and Anaerobic
The most common reason compost smells is that it has become too wet, which drives out the oxygen and turns the pile anaerobic. Beneficial composting microbes need air; when water fills all the air spaces, oxygen-loving (aerobic) microbes die off and oxygen-hating (anaerobic) microbes take over. Those anaerobic microbes produce the sulfurous, rotten-egg, sour, and putrid smells associated with bad compost, along with other foul gases. A soggy pile is essentially fermenting and rotting rather than composting.
How to diagnose it
The smell is the first clue — a rotten-egg (sulfur) or sour, putrid odor signals anaerobic conditions. Confirm it by feel: grab a handful from the center and squeeze. If water streams out and the material is dense, soggy, and matted rather than loose and crumbly, the pile is waterlogged. You may also see water pooling at the base. This often follows heavy rain on an uncovered pile or a mix loaded with wet materials.
How to fix it
Add air and dry material. Turn the pile thoroughly to reintroduce oxygen and break apart the compacted, soggy layers — this alone often clears the smell within a day or two. Mix in plenty of dry browns such as shredded cardboard, straw, dry leaves, or sawdust to absorb the excess moisture and create air pockets. Make sure the pile sits on well-draining ground, and cover it during heavy rain to keep it from re-saturating. The target moisture is that of a wrung-out sponge — damp but never soggy.
Too Many Greens (Excess Nitrogen)
A pile overloaded with nitrogen-rich greens — grass clippings, food scraps, manure — produces a sharp ammonia smell. When there is far more nitrogen than the microbes can use with the available carbon, the excess nitrogen is released as ammonia gas, which is both smelly and a waste of valuable nutrients. Fresh grass clippings are the classic culprit: piled up thick, they mat down, exclude air, and rot into a slimy, reeking layer.
How to diagnose it
The smell is distinctively sharp and ammonia-like (think cleaning products or cat litter) rather than the rotten-egg odor of a too-wet pile. Look at what you have been adding: a pile that is heavy on grass clippings, kitchen scraps, and manure with few dry browns is nitrogen-overloaded. It often also looks wet, dense, and slimy because greens are high in moisture.
How to fix it
Add carbon to balance the nitrogen. Mix in a generous quantity of dry browns — shredded leaves, cardboard, straw, paper, wood chips — and turn the pile to distribute them and add air. Aim back toward roughly two to three parts browns to one part greens by volume. When adding grass clippings, mix them in with browns rather than dumping a thick layer, or let them dry first. The ammonia smell fades quickly once the carbon-to-nitrogen balance is restored and the excess nitrogen is captured by the microbes instead of escaping as gas.
The Wrong Materials: Meat, Dairy, and Oils
Some materials simply do not belong in a home compost pile because they smell terrible as they break down and attract pests. Meat, fish, bones, dairy products, greasy and oily foods, and cooked leftovers with fats all putrefy with strong, offensive odors and draw rodents, raccoons, flies, and maggots. Pet waste from dogs and cats can carry pathogens and also stinks. These materials overwhelm a normal pile’s ability to process them cleanly.
How to diagnose it
Think about what you have been adding. If the smell is a strong, rotten, garbage-like putrefaction and you have been tossing in meat scraps, dairy, oily leftovers, or pet waste, those are the cause. Signs of pest activity — flies, maggots, disturbed material, or animal digging — strongly suggest off-limits foods are in the mix.
How to fix it
Remove the offending materials if you can find them, and bury any remaining food scraps deep in the center of the pile rather than leaving them on the surface. Cover food scraps with a layer of browns each time you add them to contain odor and deter pests. Going forward, keep meat, fish, bones, dairy, oily and greasy foods, and pet waste out of the pile entirely — stick to vegetable and fruit scraps, coffee grounds, eggshells, and yard waste. If you want to compost meat and dairy, a sealed bokashi system or a municipal facility is designed to handle them; an open backyard pile is not.
The Pile Is Compacted and Needs Air
Even with a reasonable mix and moisture, a pile that has settled and compacted loses its internal air spaces and can turn anaerobic and smelly in the dense center. This happens when materials pack down over time, when fine or matting materials like grass and leaves form airless layers, and when a pile goes a long time without being turned. The outer layer may seem fine while the core stinks.
How to diagnose it
If the pile looks dense and settled, has not been turned in a while, and the smell comes from deep inside when you dig in, compaction is the issue. Matted layers of grass clippings or wet leaves are a giveaway. The moisture and mix may be roughly right, but the air simply is not reaching the middle.
How to fix it
Turn the pile to break up the compacted material and reintroduce oxygen throughout. Fluff in some coarse, bulky browns — straw, wood chips, or roughly torn cardboard — to keep air channels open and prevent the material from packing back down. Avoid adding thick, uniform layers of fine matting material; always mix grass and similar greens with bulkier browns. Turning every week or two keeps the whole pile aerobic and odor-free.
How to Prevent Compost Odors
A well-managed pile barely smells at all, and keeping it that way comes down to four habits. First, balance your materials: maintain roughly two to three parts browns to one part greens so there is always enough carbon to absorb moisture, keep the pile airy, and lock up nitrogen before it escapes as ammonia. Second, manage moisture: keep the pile as damp as a wrung-out sponge, add dry browns when it gets soggy, and cover it during heavy rain. Third, keep air moving: turn the pile every one to two weeks and include bulky materials so the center never goes anaerobic. Fourth, be careful what goes in: stick to plant scraps, coffee grounds, eggshells, and yard waste, always cover fresh food scraps with browns, and keep meat, dairy, oils, and pet waste out. Do those things and your compost will smell pleasantly earthy from start to finish. If your pile also seems slow, our companion guide on why compost is not breaking down covers the same balance and moisture factors from the decomposition angle, our explainer on worm castings vs compost compares the finished products, and the Urban Gardening hub has more small-space tips.
Frequently Asked Questions
What should healthy compost smell like?
Healthy, active compost smells earthy and pleasant — like rich soil or a forest floor after rain. If your pile smells like rotten eggs, sour garbage, or sharp ammonia, something is off. A bad odor always means the pile has gone anaerobic or is overloaded with nitrogen or the wrong foods, and it needs adjusting.
Why does my compost smell like rotten eggs?
A rotten-egg, sulfurous smell means the pile is too wet and has gone anaerobic — water has driven out the oxygen, and the wrong microbes are producing foul gases. Turn the pile to add air, mix in dry browns like cardboard or straw to absorb moisture, and ensure it drains well and is covered in heavy rain.
Why does my compost smell like ammonia?
An ammonia smell means there is too much nitrogen — too many greens like grass clippings and food scraps relative to carbon-rich browns. The excess nitrogen escapes as ammonia gas. Mix in plenty of dry browns to rebalance toward about two to three parts browns to one part greens, and turn the pile.
Can I put meat and dairy in my compost?
Not in an open backyard pile. Meat, fish, bones, dairy, and oily foods putrefy with strong odors and attract rodents, raccoons, flies, and maggots. Keep them out and stick to plant scraps and yard waste. If you want to compost them, use a sealed bokashi bin or a municipal composting program designed to handle them safely.
How do I get rid of the smell quickly?
Turn the pile right away to add oxygen, then mix in a generous amount of dry browns — shredded cardboard, straw, or dry leaves — to soak up excess moisture and open up air channels. Bury or remove any food scraps sitting on the surface. The odor usually clears within a day or two once air and the carbon balance are restored.