A rotten smell means the pile is short on air or too wet, so add dry browns and turn it. An ammonia smell means too much nitrogen, so mix in more browns. EPA and Colorado State Extension both point to moisture, air, and the browns-to-greens balance, and finished compost smells earthy.

Match the Smell to the Fix

What you smellLikely causeFix
RottenAnaerobic conditions: excess moisture, compaction, or small particlesTurn the pile, add dry porous browns, make a smaller pile
Sharp ammoniaToo much nitrogen (greens)Mix in brown materials
Food or grass odor at the surfaceScraps or clippings not coveredCover scraps with 4 to 8 inches of dry browns

The first two rows come from Colorado State’s compost troubleshooting table. The third is our reading of EPA’s rule that food scraps should always be covered by four to eight inches of dry leaves or other browns.

Fix It in Four Steps

  • Check moisture. Colorado State says the pile should be moist but not soggy: squeeze a fistful and only a few drops should come out. More than that means it is too wet and will stink.
  • Add browns. Dry leaves and other dry material take up excess water and open air spaces. EPA recommends at least two to three times as much brown as green by volume.
  • Turn it. Use a garden fork to turn the outside of the pile inward, as EPA describes. Breaking up clumps lets air back in.
  • Cover fresh scraps. Bury new kitchen waste and cover it with four to eight inches of browns every time you add, per EPA.

A Worked Example

Say a week of mowing leaves a 20 gallon bag of grass clippings. Colorado State notes that grass clippings tend to smell unless mixed with browns, because they are fine and high in nitrogen. At EPA’s ratio you need 2 x 20 = 40 gallons of dry leaves at minimum and 3 x 20 = 60 gallons at most. That is about 5.3 to 8 cu ft of leaves at 7.5 gallons per cu ft. If you do not have that many, add the clippings in thin batches over several weeks, or leave them on the lawn as Colorado State suggests.

Causes Worth Ruling Out

  • Wrong ingredients. EPA lists meat, fish and bones, dairy, and fats, oils and grease as items to leave out of a backyard pile. Colorado State ties pests to meat, dairy, and fatty wastes.
  • Poor drainage. Colorado State warns that in-ground pits can pool water and create low-oxygen conditions, and EPA advises a spot with good drainage. If you use a bin with a lid, add extra browns in a wet spring.
  • Fine, packed material. Colorado State says too fine a particle size and packing both cut oxygen. Mix in coarse material such as twigs or chopped stalks.

If the smell returns after you have corrected moisture and air, recheck the browns ratio before changing anything else.

Where to Go Next

For setup basics, see how to start composting at home. A lid and good airflow matter in a bin, so compare best compost bins and best compost tumblers. If odor keeps you from composting outdoors, composting vs vermicomposting and how to compost in an apartment cover indoor options. Once the pile smells like soil, how long compost takes tells you when it is ready.

Changelog: November 2026: first published.