How long do hard-boiled eggs last in the fridge?
The short version: hard-boiled eggs kept in their shell and refrigerated promptly are usually good for about a week — roughly five to seven days. Peel them, and that window shrinks to two or three days. This is a genuinely different number from a raw egg in the carton, which can keep for three to five weeks, and the reason for the gap is worth understanding, because it is the opposite of what most people assume: cooking the egg does not make it safer for longer. It makes it safer for less time.
Why boiling shortens the clock instead of extending it
A raw egg is built to keep. The shell is genuinely porous, but the egg itself is coated in a thin, natural layer called the bloom or cuticle, which seals most of those pores and keeps bacteria out far better than the shell does on its own. That coating, plus a naturally low internal pH and a few antimicrobial proteins in the egg white, is why an uncooked egg in its shell can sit in the fridge for a month and still be fine.
Boiling undoes most of that. Hot water and the cracking that happens during cooking and cooling damage or wash away the cuticle, so the shell's natural pores are far more open than they were an hour earlier. At the same time, a boiled egg spends real time cooling from a near-boil down to room temperature, which is exactly the temperature range bacteria multiply fastest in — the same "danger zone" logic that applies to any cooked food left out too long. The egg you just made safe by cooking it is, for a short window right afterward, more exposed than the one still in the carton.
In the shell versus peeled
The shell, even with its protective coating gone, is still a physical barrier, and that is most of why an egg kept whole outlives a peeled one. It slows moisture loss, which is what makes a boiled egg turn rubbery and shrink away from the shell over time, and it keeps the egg from directly touching whatever else is in the fridge — a real factor, because eggs are porous enough to pick up smells from strong neighbours like onions or leftover fish.
Peel an egg and both of those protections are gone at once. The exposed white dries out faster, absorbs fridge odours faster, and offers bacteria a surface with nothing standing in the way. This is why the standard advice is to leave eggs unpeeled until close to when you plan to eat them, and if you do need to store peeled eggs — for meal prep, or because a batch is already shelled for a salad — keep them in an airtight container, ideally submerged in cold water that gets changed daily, and treat two or three days as the real limit rather than a cautious one.
How to actually get the full week
- Cool them quickly after boiling. An ice bath straight after cooking, rather than letting the pot cool slowly on the stove, gets the eggs out of the bacteria-friendly temperature range faster and is one of the few steps that genuinely extends the window rather than just describing it.
- Refrigerate within about two hours. The same rule that applies to any cooked food applies here — the longer a boiled egg sits at room temperature, the more of its shelf life it has already spent before it even reaches the fridge.
- Store them in the fridge proper, not the door. The door is the warmest, most temperature-variable part of the fridge every time it opens, which is the wrong place for something whose clock started the moment it left boiling water.
- Leave the shell on until you're ready to eat. It costs nothing and it is doing real protective work the whole time it stays on.
The grey-green ring is not spoilage
A dull green-grey ring around a hard-boiled yolk looks alarming and is almost always harmless — it is a reaction between sulfur in the egg white and iron in the yolk, and it shows up more with overcooking or eggs that were older to begin with when boiled. It is a sign the egg spent too long at too high a heat, not a sign it has gone bad. Genuine spoilage looks and smells different, and the next section covers what to actually watch for.
What actually tells you an egg has gone off
A boiled egg past its window announces itself unambiguously — this is one of the less ambiguous calls in the whole fridge. A strong sulfur or rotten smell as soon as you peel or cut into it is the clearest signal, and it is a different, sharper smell than the faint, normal one a fresh boiled egg has. A slimy or chalky-feeling white, or any grey or greenish discolouration beyond the usual yolk ring, is a reason to stop. When none of those show up, a week-old boiled egg kept properly cold is doing exactly what it is supposed to do.
Where batches actually go wrong
Almost nobody boils just one egg. A dozen made for the week's lunches or a batch prepped for salads is the normal way people run into this, and it is also exactly where the tracking problem shows up — a pot of eggs made on Sunday looks identical to a pot made the Sunday before, and in a shared kitchen the person eating the last one is rarely the person who remembers when it was boiled. Munch lets you log a batch with the day it was actually made, not just the day the raw eggs were bought, so "are these still the ones from this week" has an answer on your phone instead of a guess based on how full the bowl looks.
The rule that actually holds up: treat a boiled egg as running on its own, much shorter clock from the moment it left the pot, not from whatever date is on the carton it came from. A week in the shell, a couple of days once peeled, cooled quickly and refrigerated promptly — that is most of what there is to remember.