Totally understandable question—this surprises a lot of people 🙂
Short answer: yes, they’re safe to eat.
Why the yolk turns greenish
That green or gray ring around a hard-boiled egg yolk is a chemical reaction, not spoilage.
Here’s what’s happening:
Egg whites contain sulfur
Egg yolks contain iron
When eggs are overcooked or cooked at too high a temperature, sulfur and iron react and form iron sulfide
Iron sulfide is what causes that green/gray color
It’s more likely to happen when:
Eggs are boiled too long
Eggs are cooled slowly
Older eggs are used (they’re more alkaline)
Is it dangerous?
Nope.
The discoloration is harmless
The egg is safe to eat
The texture and flavor might be a bit drier or chalkier, but not unsafe
How to prevent it next time
If you want bright yellow yolks:
Bring eggs to a boil, then lower to a gentle simmer
Cook 9–12 minutes (depending on size)
Immediately transfer eggs to an ice bath for 5–10 minutes
Peel once cooled