Eggs can go into compost, but how you add them matters
Yes, you can compost eggs—shells, whites, and yolks all break down. Eggshells are mostly calcium carbonate and decompose slowly but steadily. Egg whites and yolks are protein-rich and break down faster, feeding the microbes that drive decomposition. The catch is that raw eggs and their contents can attract rats, raccoons, and flies if not buried properly or if your pile doesn't heat up enough to kill pathogens.
The safest approach depends on your setup. If you have a hot compost pile that reaches 140°F or higher, you can add raw eggs anywhere in the pile. If you're doing cold composting in a bin or pile that doesn't heat up, bury eggs deep in the center, away from the edges where pests can smell them. Cooking eggs first—boiling or baking—reduces (but doesn't eliminate) pest attraction and speeds decomposition of the whites and yolks.
Key Takeaways
- Eggshells decompose in compost and add calcium, but whole raw eggs can attract pests if not buried deeply or if your pile stays cool.
- Hot compost piles (140°F+) kill pathogens and reduce pest risk, making them the safest place for raw eggs.
- In cold compost bins, bury eggs at least 8 to 12 inches deep in the center of the pile to keep pests away from the smell.
- Cooking eggs before composting reduces pest attraction and speeds up how fast the whites and yolks break down.
- Avoid composting eggs if you have an open pile in a yard with frequent wildlife or a compost system you cannot monitor regularly.
Why eggshells break down slowly but are worth adding
Eggshells are about 95 percent calcium carbonate—the same material in chalk and limestone. This makes them valuable for compost because calcium helps plants grow and neutralizes acidic soil. The downside is that shells take months or even a year to fully break down, depending on how finely crushed they are and how active your pile is.
You can speed this up by crushing shells before adding them. A mortar and pestle, a food processor, or even stepping on them in a bag will break them into smaller pieces that decompose faster and mix more evenly into finished compost. Whole shells will eventually disappear, but crushed ones integrate into your finished product in half the time.
Raw eggs versus cooked eggs in compost
Raw egg whites and yolks are high in nitrogen and protein, which microbes consume quickly. They decompose in weeks if your pile is active and warm. The problem is the smell—raw eggs attract rodents and other pests, especially in the first few days after you add them.
Cooking eggs before composting—whether boiled, baked, or scrambled—changes the protein structure and makes the smell less obvious to pests. Cooked eggs still decompose, though slightly more slowly than raw ones. If you're composting leftover cooked eggs from breakfast or dinner, you can add them directly without extra steps. If you're composting raw eggs (from cracked or spoiled eggs, for example), cooking them first is a practical way to reduce pest risk without burying them as deeply.
Hot compost piles and the safety advantage
A hot compost pile is one that heats up to at least 140°F in the center, usually because it has a good mix of nitrogen-rich materials (like food scraps and grass clippings) and carbon-rich materials (like leaves and straw). At this temperature, harmful bacteria and pathogens die, and the pile decomposes much faster—sometimes in just a few months.
If your pile reaches 140°F or higher, you can add raw eggs anywhere without worrying about pests or pathogens. The heat kills bacteria that might be on the shell or in the raw egg, and the smell is less likely to attract wildlife because the decomposition happens so quickly. To know if your pile is hot enough, use a compost thermometer (available at garden centers for $10 to $20) and check the center of the pile, where the heat is greatest.
Cold composting and burying eggs safely
Cold compost piles—the kind most home gardeners use in bins or open piles—stay at or near air temperature and decompose slowly over a year or more. In these piles, raw eggs can smell for days or weeks, which attracts pests. The solution is to bury them.
Dig a hole at least 8 to 12 inches deep in the center of your pile, away from the edges and the surface. Place the egg (shell and contents) in the hole and cover it with at least 6 inches of brown material—leaves, shredded paper, or straw. This distance and the covering material block the smell from reaching pests outside the pile. Cooked eggs can be buried less deeply (4 to 6 inches) because they smell less.
Never add raw eggs to an open pile in your yard if you live in an area with frequent raccoons, rats, or opossums. These animals will dig into the pile to find the eggs, and once they know food is there, they'll keep coming back.
What to do with eggshell-only composting
If you only want to compost the shells and not the raw whites and yolks, rinse the shells and let them dry completely before adding them to your pile. Dry shells don't smell and don't attract pests. You can save them in a container on your kitchen counter or in a paper bag until you have enough to add to your compost in one batch.
Crushing the dry shells before adding them speeds decomposition. Some gardeners keep a dedicated container of crushed eggshells and add them directly to planting holes when setting out seedlings, bypassing the compost pile altogether. This works well if you're growing plants that benefit from extra calcium, like tomatoes, peppers, and brassicas (cabbage, broccoli, kale).
Common mistakes to avoid
The biggest mistake is adding raw eggs to a cold pile without burying them. They'll smell, pests will find them, and your compost area becomes a feeding station for wildlife. Another common error is adding whole uncrashed shells and expecting them to disappear quickly—they will, but it takes a long time.
Don't add eggs (raw or cooked) if your compost bin has a mesh or screen bottom that pests can dig through from underneath. Don't add them to a pile you can't monitor regularly, especially if you're away for weeks at a time. And don't assume that a pile that was hot once will stay hot—if you stop adding fresh materials, the temperature drops, and buried eggs can become a pest problem again.
Frequently Asked Questions
Will eggshells make my compost smell bad?
Eggshells alone don't smell—they're mostly calcium and decompose without odor. Raw egg whites and yolks are what smell. If you rinse and dry the shells before composting, you can add them without any smell or pest risk.
Can I compost eggs in a worm bin?
Worm bins are sensitive to pH and moisture. Raw eggs can make the bin too acidic and attract pests. Cooked eggs in small amounts are safer, but it's better to stick to vegetable scraps, coffee grounds, and shredded paper in a worm bin.
How long do eggshells take to fully decompose?
Whole eggshells take 6 to 12 months in an active compost pile. Crushed shells break down in 2 to 4 months. In a cold pile, add several more months to both timelines.
What if I add raw eggs and then see pests digging in my pile?
Stop adding eggs when ready and bury any fresh eggs much deeper—at least 12 inches. Add a layer of hardware cloth or chicken wire over the top of the pile to keep larger animals out while still allowing air flow. If the problem continues, remove the eggs and finish composting them in a sealed bin or hot pile.
Can I compost eggs if I have chickens?
Yes, but keep the compost pile away from the chicken coop. Chickens will dig into compost looking for insects and seeds, and they may eat decomposing eggs, which can lead to them eating their own eggs. A separate, enclosed compost bin works best.