Yes, you can compost eggs, but shells and raw eggs need different handling
Eggshells break down in a compost pile and add calcium to your finished compost. Raw eggs and cooked eggs can also go in, though raw eggs take longer to decompose and may attract pests if your pile is not hot enough. The key difference is speed: eggshells are slow, raw eggs are slower, and cooked eggs with oil or butter are slowest of all.
Most home composters add eggshells without trouble because they are hard and take months to fully break down—which means they do not create the smell or pest problems that wet food scraps sometimes do. If you have a hot, active pile (one that reaches 130°F or higher), raw eggs will decompose within weeks. In a cold pile, they may sit for months and attract flies or rodents.
Key Takeaways
- Eggshells compost slowly but safely and add calcium carbonate to your finished compost.
- Raw eggs can go in a hot, actively managed pile but may attract pests in a cold or neglected pile.
- Cooked eggs with oil, butter, or meat should go in only if your pile reaches 130°F or higher, or they may rot and smell.
- Crushing eggshells into small pieces speeds up decomposition by weeks or months.
- If pests become a problem, bury eggs and shells under 8 to 12 inches of brown material like leaves or wood chips.
How eggshells break down in compost
Eggshells are mostly calcium carbonate, the same mineral in limestone. They do not rot the way food does—instead, they slowly dissolve and crumble as moisture and mild acids in the pile work on them over time. In a typical backyard pile, a whole eggshell takes 6 to 12 months to become unrecognizable. Crushed shells break down in 2 to 4 months.
The slower breakdown is actually an advantage. Because eggshells do not decompose quickly, they do not create the wet, anaerobic (airless) conditions that cause compost to smell bad. They also do not attract flies the way fresh fruit or meat scraps do. You can add eggshells to any compost pile—hot, cold, or in-between—without worrying about odor or pests.
Calcium from eggshells is useful in finished compost. It helps plants build strong cell walls and reduces the risk of blossom-end rot in tomatoes and squash. If your soil is acidic, eggshell compost can help raise the pH slightly over time.
Raw eggs and the heat requirement
Raw eggs—both the white and yolk—are high in nitrogen and protein, which makes them valuable compost material. But they also decompose slowly and can smell if they sit in a cool pile. A raw egg in a cold pile may take 3 to 6 months to break down, and during that time it can attract flies, ants, or rodents looking for protein.
In a hot, actively managed pile that reaches 130°F or higher, raw eggs decompose much faster—usually within 2 to 4 weeks—and the heat kills any pathogens or fly eggs that might be present. If you maintain a hot pile by turning it regularly and keeping the carbon-to-nitrogen ratio balanced, raw eggs are safe to add without hesitation.
If your pile is cold or you do not turn it often, raw eggs are still safe to add, but bury them under 8 to 12 inches of brown material like dried leaves, straw, or wood chips. This slows decomposition slightly but keeps pests away from the smell.
Cooked eggs and foods prepared with fat
Cooked eggs are harder to compost than raw ones because they often come with oil, butter, cheese, or meat. Fats decompose very slowly in a compost pile and can create a waterproof layer that blocks air and moisture from reaching the material underneath. This leads to anaerobic decomposition, which smells like rotten eggs or sulfur.
A cooked egg by itself—boiled with no added fat—can go in a hot pile. But a fried egg, scrambled egg with butter, or egg mixed with cheese or meat should only go in if your pile is actively managed and reaches 130°F or higher. If you have a cold pile or bin, leave cooked eggs out.
Eggshells from cooked eggs are fine to add to any pile. It is the yolk and white that cause trouble when they are cooked with fat.
Crushing shells to speed decomposition
If you want eggshells to break down faster, crush them into small pieces before adding them to your pile. Whole shells take up to a year; crushed shells take 2 to 4 months. The smaller surface area exposed to moisture and acids in the pile means faster decomposition.
You do not need special equipment. Rinse the shells, let them dry, and crush them by hand, in a food processor, or by putting them in a bag and stepping on them. Some people save shells in a container and crush a batch once a week. Others crush them as they cook.
Crushing also makes the shells less visible in your finished compost, which some people prefer. Whole shells can still be present in compost that is otherwise ready to use, and they will continue to break down slowly in the soil.
Preventing pest problems with eggs
The main reason to be cautious with eggs is flies. Fruit flies and other insects are attracted to the protein in raw eggs and the smell of decomposing yolk. If you notice flies around your pile after adding eggs, you have a few options.
First, bury all future eggs and shells under 8 to 12 inches of brown material—dried leaves, straw, shredded paper, or wood chips. This creates a barrier between the eggs and the air, which slows the smell and keeps flies from finding them. Second, turn your pile more often if it is a bin or tumbler. Turning breaks up the material and speeds decomposition, which means eggs spend less time in the attractive stage.
Third, if you have a lot of eggs to compost, consider a hot pile or a bokashi bucket instead. A bokashi bucket is a sealed container that ferments food scraps (including eggs, meat, and dairy) in a few weeks, then the fermented material goes into a regular compost pile where it breaks down without smell or pests. Bokashi is not true composting, but it is a good option if you generate a lot of food waste and want to avoid pests.
What to do with eggshell compost
Finished compost that contains eggshells is safe to use in gardens, potted plants, and lawns. If whole shells are still visible, you can sift them out before using the compost, or you can leave them in. They will continue to break down in the soil and release calcium slowly over the next year or two.
Eggshell compost is especially useful for plants that need calcium, like tomatoes, peppers, squash, and brassicas (cabbage, broccoli, cauliflower). You can also use it as a soil amendment by mixing finished compost into garden beds at a rate of 1 to 2 inches per year.
Frequently Asked Questions
Do eggshells attract rats or mice?
Whole eggshells do not usually attract rodents because they are hard and do not smell. Raw eggs and cooked eggs with yolk can attract rats and mice if they are exposed on the surface. Bury eggs under 8 to 12 inches of brown material to keep them hidden.
Can I compost eggs with the carton?
No. Remove the eggs from the carton first. Cardboard and paper cartons can go in your compost pile, but eggs should be separated. Rinse the shells if they have bits of egg white or yolk stuck to them, so they do not attract pests.
What if my eggshells have not broken down after a year?
Whole eggshells can take 12 months or longer to fully decompose, especially in a cold pile. This is normal. You can sift them out before using the compost, crush them and return them to the pile, or leave them in the soil where they will continue to break down slowly.
Can I compost rotten eggs?
Yes, but they smell much worse than fresh eggs and will attract more pests. Bury them deep under brown material, or add them only to a hot, actively managed pile. If you have a bokashi bucket, rotten eggs are a good use for it.
Do I need to rinse eggshells before composting?
Rinsing is optional but helpful. A quick rinse removes bits of egg white or yolk that might attract pests. Let the shells air-dry before adding them to your pile, or add them wet—both work fine.