Why Your Compost Smells Bad (and How to Fix It)

Close-up of finished compost

Key Takeaways

  • A healthy compost pile smells earthy, not rotten.
  • Ammonia smells usually mean too much nitrogen (greens).
  • Rotten egg or sulfur smells usually mean the pile is too wet and short of oxygen.
  • Add browns, turn the pile and improve drainage to fix most smells.

Compost smells bad when it has too many greens, too much moisture or not enough oxygen, and the fix is usually to add dry browns and turn the pile. Use the table to match the smell to the cause.

SmellLikely causeFix
AmmoniaToo many nitrogen-rich greensAdd dry browns such as leaves or shredded cardboard, then mix
Rotten eggs or sulfurSoggy, compacted pile without airTurn the pile, add dry browns and coarse material, improve drainage
Sour or vinegarAnaerobic fermentation, often too wetAerate and add dry material
Rancid or greasyMeat, dairy or oily food addedRemove if possible; avoid these items going forward

How to Fix a Smelly Pile

  1. Stop adding wet kitchen scraps for a few days.
  2. Mix in two to three buckets of dry browns for each bucket of greens already in the pile.
  3. Turn the pile thoroughly to introduce oxygen.
  4. Add coarse material such as twigs to open air channels.
  5. Cover the pile during heavy rain so it does not become waterlogged.

Preventing Smells

Shovel resting on a pile of compost
  • Balance greens and browns, roughly two to three parts browns to one part greens by volume.
  • Keep moisture like a wrung-out sponge.
  • Bury food scraps in the center of the pile.
  • Chop large items small.
  • Avoid meat, dairy and oils.

Sources

Figures and advice in this guide were checked against these university extension and government publications. Last reviewed November 5, 2026.

Frequently Asked Questions

Why does my compost smell like ammonia and how do I fix it?

A sharp ammonia smell usually means too much nitrogen from greens and not enough carbon. Mix in dry browns such as shredded leaves or cardboard and turn the pile. The smell normally fades within a few days. Adding more browns is the quickest fix.

Why does my compost smell like rotten eggs?

A rotten egg odour points to waterlogged, airless conditions where anaerobic microbes thrive. Turn the pile, add dry browns, improve drainage and open the bin so fresh air can reach the middle. Fixing airflow solves most odour problems quickly.

Is smelly compost still safe to use in the garden?

Once the smell is fixed and the pile has matured until dark and earthy, yes. Do not use material that is still slimy or foul smelling, because it may harm seedlings and delicate roots. Finished compost should smell like forest soil.

How do I get rid of flies in my compost bin?

Bury fresh scraps under a layer of browns, keep a tight lid and avoid adding meat or dairy. Fruit flies breed in exposed food, so covering each new addition usually stops them quickly. Fine mesh over vents also keeps pests out.

Related Guides

Fallen autumn leaves used as dry brown material for compost

Featured image: Compost pile.JPG by Ksd5, CC0, via Wikimedia Commons.

More Guides