Science, Tech, Math › Science Why Do Egg Yolks Turn Green? Overcooking Hard Boiled Eggs Turns Yolks Green or Gray Share Flipboard Email Print A green ring forms where the yolk meets the white when iron from the yolk reacts with hydrogen sulfide produced by heating the egg white. Maximilian Stock Ltd., Getty Images Science Chemistry Chemistry In Everyday Life Basics Chemical Laws Molecules Periodic Table Projects & Experiments Scientific Method Biochemistry Physical Chemistry Medical Chemistry Famous Chemists Activities for Kids Abbreviations & Acronyms Biology Physics Geology Astronomy Weather & Climate By Anne Marie Helmenstine, Ph.D. Anne Marie Helmenstine, Ph.D. Facebook Twitter Chemistry Expert Ph.D., Biomedical Sciences, University of Tennessee at Knoxville B.A., Physics and Mathematics, Hastings College Dr. Helmenstine holds a Ph.D. in biomedical sciences and is a science writer, educator, and consultant. She has taught science courses at the high school, college, and graduate levels. Learn about our Editorial Process Updated on July 03, 2019 Have you ever had a hard boiled egg that had a green yolk or a yolk with a green to gray ring around it? Here's a look at the chemistry behind why this happens. The green ring forms when you overheat the egg, causing hydrogen and sulfur in the egg white to react and form hydrogen sulfide gas. The hydrogen sulfide reacts with iron in the egg yolk to form a grayish-green compound (ferrous sulfide or iron sulfide) where the white and yolk meet. While the color isn't particularly appetizing, it's fine to eat. You can keep the yolk from turning green by only cooking the eggs long enough to harden them and then chilling the eggs as soon as they have finished cooking. One way to do this is by running cold water over the hot eggs as soon as the cooking time has elapsed. How to Hard Boil Eggs So They Won't Get a Green Yolk There are several ways to hard boil eggs so they won't have the gross gray-green ring, all based on avoiding overcooking the egg. Here's a simple, fool-proof method: Start with room temperature eggs. This doesn't affect the yolk as much, but it does help prevent cracking the egg shells during cooking. Leaving the eggs on the counter about 15 minutes before cooking them usually does the trick.Place the eggs in a pot or saucepan in a single layer. Choose a pot that is just large enough to hold the eggs. Don't stack the eggs!Add enough cold water to cover the eggs, plus an inch more.Cover the eggs and quickly bring them to a boil using medium-high heat. Don't slow-cook the eggs or you'll risk overcooking them.Once the water boils, turn off the heat. Keep the eggs in the covered pot for 12 minutes for medium eggs or 15 minutes for large eggs.Run cold water over the eggs or place them in ice water. This cools the eggs quickly and stops the cooking process. High Altitude Instructions for Hard Boiled Eggs Cooking a hard boiled egg is a bit trickier at high altitude because the boiling point of water is a lower temperature. You'll need to cook the eggs a bit longer. Again, you'll get the best results if the eggs are close to room temperature before you cook them.Place the eggs in a single layer in a pot and cover them with an inch of cold water.Cover the eggs and heat the pot until the water boils.Remove the pot from heat and let the eggs rest, covered, for 20 minutes.Cool the eggs in ice water to stop the cooking process. The green or gray of an egg yolk is usually an unintentional chemical reaction, but it's also possible to change the color of an egg yolk on purpose. One way to control yolk color is to change the diet of the poultry. Another way is to inject a fat-soluble dye into the yolk. Cite this Article Format mla apa chicago Your Citation Helmenstine, Anne Marie, Ph.D. "Why Do Egg Yolks Turn Green?" ThoughtCo, Apr. 5, 2023, thoughtco.com/why-do-egg-yolks-turn-green-607426. Helmenstine, Anne Marie, Ph.D. (2023, April 5). Why Do Egg Yolks Turn Green? Retrieved from https://www.thoughtco.com/why-do-egg-yolks-turn-green-607426 Helmenstine, Anne Marie, Ph.D. "Why Do Egg Yolks Turn Green?" ThoughtCo. https://www.thoughtco.com/why-do-egg-yolks-turn-green-607426 (accessed June 6, 2023). copy citation