Why Does My Compost Smell?
Healthy compost smells earthy, like a forest floor. A bad smell almost always means the pile is too wet, has too much green material, or is not getting enough air, and the fix is to mix in dry browns like leaves or cardboard and turn it.
On this page
What healthy compost should smell like
A working compost pile smells earthy. Think of a forest floor, damp soil, or a bag of good potting mix. Fresh scraps on top may smell like whatever they are, but a handful from the middle should smell like dirt.
When compost stinks, the cause is almost always one of three things:
- Too wet. Water fills the air spaces and microbes that need oxygen die off.
- Too much green material. Food scraps, grass, and manure are rich in nitrogen. Without enough carbon-rich browns, the extra nitrogen escapes as ammonia.
- Not enough air. A dense, compacted, or never-turned pile goes anaerobic, and anaerobic microbes produce the bad smells.
These problems usually travel together. A pile full of wet grass clippings is too green, too wet, and airless all at once. The fix is also usually the same: add dry browns and turn it.
Smell by smell: cause and fix
| Smell | What it means | Likely cause | Fix |
|---|---|---|---|
| Ammonia (sharp, like cleaning products or cat litter) | Excess nitrogen escaping as gas | Too many greens: grass clippings, manure, lots of food scraps | Mix in 2 to 3 times as much dry browns by volume, such as leaves, straw, or shredded cardboard; turn |
| Rotten eggs or sulfur | Anaerobic conditions | Too wet, compacted, or never turned | Turn thoroughly; add coarse browns like straw or wood chips; improve drainage |
| Sour, vinegar, or pickled | Fermentation without enough air | Wet food scraps packed tightly, often in a closed bin | Turn; add dry browns; drill more air holes in the bin |
| Garbage or rotting food | Scraps sitting exposed and not breaking down | Food dumped on top, not buried; too much at once | Bury scraps 8 to 12 in (20 to 30 cm) into the pile; cover with browns |
| Putrid, like dead animal | Meat, fish, or dairy rotting | Animal products in an open pile | Remove them if you can; bury the rest deep; keep them out in future |
| Musty or moldy | Usually fine | Normal fungal activity, often in dry leaves | Add a little water if it is dry; otherwise leave it |
A note on bokashi: a sour, pickled smell is normal in a bokashi bucket, because it is a fermentation method. Only a rotten smell there is a problem.
Getting the mix right so it does not come back
Most university extension guides recommend roughly 2 to 3 parts browns to 1 part greens by volume. That is a loose target, not a formula. In practice it means every bucket of kitchen scraps should go in with two or three buckets of leaves, shredded cardboard, or straw.
Moisture should feel like a wrung-out sponge, about 40 to 60 percent. Squeeze a handful. If water drips out, it is too wet. If it crumbles apart and feels dusty, it is too dry.
A few habits prevent most smells:
- Keep a pile of browns next to the bin. Bag up leaves in fall so you have them all year.
- Add grass clippings in thin layers or let them dry for a day first. A thick layer of fresh grass clippings turns to slime within days.
- Tear or shred cardboard so it mixes in and absorbs moisture.
- Turn the pile every 1 to 2 weeks in warm weather, or poke holes with a garden fork if you do not want to turn.
- Cover open piles in heavy rain with a tarp or lid.
The compost calculator helps you balance browns and greens if you are unsure.
Smells in closed bins, tumblers, and worm bins
Closed containers smell more easily than open piles because moisture and gases have nowhere to go. The causes are the same, but you need to act sooner.
- Tumblers often go sour when they are filled with kitchen scraps alone. Add a scoop of dry browns every time you add food, and leave the door or vents open for a few hours on dry days.
- Plastic bins sweat in the sun. Drill extra air holes in the sides and lid, and add browns until a squeezed handful no longer drips.
- Worm bins smell when overfed. Stop feeding for a week or two and add dry shredded paper. The vermicomposting guide covers the rest.
Pests and flies
Pests are the other half of compost complaints. Most are a sign of exposed food, not a failing pile.
Fruit flies
Fruit flies come from uncovered fruit and vegetable scraps. They are harmless but annoying, especially near the house.
- Bury fresh scraps in the center of the pile and cover them with a layer of browns.
- Keep a lid on the kitchen caddy and empty it every few days.
- In a worm bin, add a layer of dry shredded paper on top.
- Trap indoor flies with a dish of cider vinegar and a drop of dish soap.
Black soldier fly larvae
These are the large, flat, segmented grubs, about 1 in (2.5 cm) long, that appear in wet, food-rich piles in warm weather. They look alarming but are harmless. The adult flies do not bite or feed, and the larvae eat food scraps very quickly. Many composters welcome them.
If you do not want them, add more browns and turn the pile to dry it out. They thrive in wet, green-heavy conditions.
Rodents
Rats and mice come for food, especially meat, fish, dairy, bread, and cooked food, and they like the warmth and shelter of a pile in winter.
- Keep animal products and greasy cooked food out of open piles.
- Bury fresh scraps in the center, never on top.
- Use a closed bin with a solid lid. Line the base with galvanized hardware cloth, about 1/4 in (6 mm) mesh.
- A raised tumbler is very hard for rodents to get into. See bin vs tumbler vs pile.
- Turn the pile regularly. Rodents avoid being disturbed.
Raccoons, dogs, and other animals
Larger animals dig for food scraps and are strong enough to open flimsy lids.
- Use a bin with a latching or weighted lid.
- Bury food deep and cap it with browns so there is no food smell on the surface.
- Keep meat, fish, and dairy out entirely. They are the main attraction.
Quick diagnostic
Run through these questions in order. Most smelly piles are fixed by the first two.
- Squeeze a handful from the middle. Water drips out? Too wet. Add dry browns and turn.
- Look at the mix. Mostly food scraps or grass? Too green. Add 2 to 3 times the volume in browns.
- Check the texture. Dense, matted, or slimy? Not enough air. Turn it and add coarse material like straw or wood chips.
- Look for animal products. Meat, fish, or dairy in an open pile? Remove or bury deep, and leave them out in future.
- Check the surface. Food sitting on top? Bury it and cover with browns.
- Still smells after a week? Turn again. Stubborn piles sometimes need two or three rounds to recover.
A properly balanced pile can also run hot. If you want faster results and fewer pests, hot composting keeps things moving and smells less because material breaks down before it can rot.
Next step
If you are rebuilding a smelly pile, follow how to start a compost pile for the layering and ratios. If rodents or raccoons are the issue, compare closed options in bin vs tumbler vs pile.
Frequently asked questions
What should compost smell like?
Like damp soil or a forest floor after rain. An active pile may smell faintly sweet or musty. Anything sharp, sour, or rotten means something is out of balance.
Why does my compost smell like ammonia?
Too much nitrogen-rich green material, such as grass clippings, fresh manure, or lots of food scraps, compared with carbon-rich browns. Mix in dry leaves, straw, or shredded cardboard and turn the pile.
Why does my compost smell like rotten eggs?
The pile has gone anaerobic. It is too wet or packed too tightly, so oxygen cannot get in and sulfur-producing microbes take over. Turn it thoroughly and mix in coarse, dry browns to open it up.
Is it normal for compost to smell when I turn it?
A brief earthy or mildly sour smell when you open up the center is normal. A strong rotten smell that lingers after turning means the pile is too wet or too dense and needs more dry, bulky material.
Will adding lime fix a smelly compost pile?
Not usually, and it can make ammonia smells worse by driving off nitrogen as gas. Adding browns and air fixes the cause. Lime only treats a symptom.
Are the big grubs in my compost bad?
Probably not. Large, flat, grayish-brown larvae are usually black soldier fly larvae. They are harmless, do not spread disease, and eat food scraps fast. They mean the pile is wet and food-rich, not that it is failing.
How do I keep rats out of my compost?
Keep meat, fish, dairy, and cooked food out of open piles, bury fresh scraps in the center, and use a closed bin with a solid lid and fine wire mesh (about 1/4 in or 6 mm) under the base. A tumbler raised off the ground also works.
How long does it take to fix a smelly compost pile?
Usually a few days. Once you add browns and turn the pile, the smell fades as oxygen returns. Stubborn cases may need a second turn a week later.