Guide

← Compost Ratio Calculator

Can You Compost Onions and Garlic? Yes, With One Big Exception

Can you compost onions and garlic? Yes, in a normal backyard pile. That answer surprises people, because onions and garlic sit on a lot of do not compost lists. The lists are not wrong. They are written for worm bins, and most backyard piles are not worm bins.

The confusion comes from sulfur compounds and acidity. Onion and garlic scraps contain sulfur compounds that smell strong and can irritate the worms and microbes in a vermicomposting bin. Worms avoid areas with too much allium, and a small enclosed bin has nowhere for them to go. In a big outdoor pile, those same compounds dilute fast, microbes break them down, and the pile keeps working. The Cornell extension answer on this question says it plainly: the no onion rule applies to worm composting, not to a compost heap or three bin system.

Quantity is the real rule. Keep allium scraps under about 5 percent of what you add at one time, a handful in a large bin, not a bucket from a restaurant prep shift. Chop them small, bury them in the middle of the pile, and cover them with dry browns like leaves or shredded paper. Burying does two jobs at once: it hides the smell from pests, and it keeps the scraps in the hot, active zone where microbes work fastest.

Run the compost ratio calculator on this site before you add a big batch. Enter your greens and browns and check that the carbon to nitrogen ratio stays near the 30 to 1 target. Onion and garlic are greens, wet and nitrogen rich, so a pile already heavy on kitchen scraps does not need more of them. If the calculator shows you are green heavy, add browns first and save the alliums for the next load.

Can you compost onions and garlic without smell, sprouts, or pests?

Smell is the first complaint, and it is preventable. Whole onion halves sitting on top of a pile smell. Chopped pieces buried 10 inches deep under browns mostly do not, until you turn the pile, when you will smell them again briefly. That is normal. If the pile smells between turns, it is usually too wet or too green overall, not one onion's fault.

Sprouting is the second problem. A whole onion bulb or garlic head tossed in intact can sprout in a cool pile and grow in your finished compost. Chop bulbs into small pieces first. The smaller the piece, the faster it breaks down and the less chance it has to regrow. Skins and outer peels are fine as they are. They are dry, they break down slowly, and they do not sprout.

Moldy onions and garlic are fine to compost. Mold is already part of decomposition, and a hot pile handles it without trouble. What does not belong in the pile is onion or garlic cooked in large amounts of oil, or mixed with meat and dairy. The oil and the animal products are the problem there, not the allium.

Worm bins are the exception, and it is a firm one. If you vermicompost, leave onions, garlic, and citrus out, or add only tiny amounts and watch whether the worms avoid that corner. A worm bin is a small, enclosed ecosystem. A backyard pile is a big, forgiving one. Treating them as the same system is how a good rule for one becomes a bad rule for the other.

So yes, compost your onion peels, garlic skins, and chopped scraps, in small amounts, buried, balanced with browns. Keep them out of the worm bin, keep whole bulbs out of a cold pile, and let the pile do what it does. The garden will not taste like onion soup, and neither will the compost.

What happens if you add too much allium

Add a large batch of onions to a small pile and three things happen in order. First the smell rises, because sulfur compounds escape faster than microbes can break them down. Then pests notice, because a strong smell is an advertisement. Then the pile slows, because the same compounds that bother worms can suppress some microbes at high concentration. None of this ruins a pile permanently. It stalls it, and the fix is the same every time: add browns, turn the pile, and wait.

City and curbside programs are a separate case. Some municipal compost programs exclude onions and garlic, not because a big industrial composter cannot handle them, but because sorting, smell, and contamination rules are written for the whole stream. Follow your local program's list even if your backyard pile would handle the scraps fine. A program rule is about the system, not your pile.

If you are unsure about a batch, run a small test. Add a handful of chopped allium to one corner of an active pile, cover it well, and check it in a week. If it has broken down and the pile smells normal, your pile can handle that amount. If it is still sitting there smelling strong, your pile is too cold, too wet, or too green for allium right now. Fix the pile first, then add the scraps.

Related guides:

Can You Compost Citrus Peels?

Can You Compost Coffee Grounds?

Browns and Greens Ratio Chart

Want more of these? One practical guide a week. Subscribe free here.