A green or gray ring around hard-boiled eggs is a common and harmless result of overcooking. It does not mean the egg is spoiled or unsafe to eat. Instead, it forms due to a natural chemical reaction that occurs when eggs are exposed to high heat for too long.
Inside the egg, sulfur compounds in the white and iron in the yolk interact under these conditions, creating iron sulfide, which causes the discoloration.
These gases travel toward the yolk and react with iron, forming a thin layer of iron sulfide at the surface. While the green or gray ring may look unappealing, it does not affect safety or nutritional value.
To prevent this issue, proper cooking technique is important. Eggs should be placed in boiling water, then the heat should be reduced to a gentle simmer rather than maintained at a hard boil.
Cooking time is also important, with most eggs needing about nine to twelve minutes depending on size. After cooking, transferring eggs immediately into cold or ice water helps stop the cooking process and preserves texture.