A boiled egg stays safe to eat for about one week in the refrigerator, whether it is peeled or still in the shell. That is the standard food safety guidance from the U.S. Department of Agriculture. The clock starts the moment the egg finishes cooking, not the day you bought it. Left at room temperature, a boiled egg is only safe for about two hours.
Those two numbers — one week cold, two hours warm — answer most of what people actually need to know. The rest comes down to how the egg was cooked, how it was stored, and how you can tell when it has gone bad.
How Long Can A Boiled Egg Stay Good in the Fridge?
Hard-boiled eggs keep for about seven days in the refrigerator. This applies to eggs cooked fully through, with a firm white and a solid yolk. The USDA sets this limit because the cooking process removes the natural protective coating on the shell, which leaves the egg more vulnerable to bacteria than a raw egg in its shell.
A raw egg in the shell can last three to five weeks in the fridge. A boiled one cannot. That surprises people, since cooking is supposed to make food safer. Cooking does kill bacteria, but it also damages the shell’s defenses. Once that barrier is compromised, spoilage organisms have an easier path in.
The seven-day window assumes the eggs went into the refrigerator within two hours of cooking. If they sat out longer, the safe window shrinks. If they were left out overnight, throw them away.
Does It Matter If the Egg Is Peeled or Unpeeled?
Yes, and the difference is smaller than most people expect. The USDA gives the same one-week guidance for both peeled and unpeeled hard-boiled eggs stored in the refrigerator. The shell offers some protection, but not enough to change the official recommendation.
In practice, peeled eggs tend to dry out faster and pick up fridge odors more readily. They may also spoil slightly sooner if their surface is exposed to air. Many food safety sources suggest eating peeled eggs within a few days for the best quality, even though the safety window is technically the same.
If you want peeled eggs to last closer to a week, store them in a covered container with a little water. The water keeps them from drying out and limits air exposure. Change the water daily if you keep them longer than a day or two.
How Should You Store Hard-Boiled Eggs?
Refrigeration is not optional. Hard-boiled eggs belong in the refrigerator at 40°F or below, the same temperature range the USDA recommends for other perishable foods. A sealed container is better than an open bowl.
- Keep them in the main body of the fridge, not in the door, where temperatures swing each time it opens.
- Store unpeeled eggs in their shells in a covered container.
- Store peeled eggs in a covered container, ideally with a little water.
- Label the container with the date you cooked them.
That last step matters more than it sounds. Most people cannot remember when they boiled a batch of eggs. A piece of tape with a date removes the guesswork and prevents the “is this still good?” debate entirely.
Do not freeze hard-boiled eggs. The whites become rubbery and watery after thawing. Freezing works for raw eggs and for egg yolks in some preparations, but a boiled egg white does not survive the process well.
What About Easter Eggs and Dyed Eggs?
Dyed hard-boiled eggs follow the same rules as any other hard-boiled egg: about one week in the refrigerator. The dye itself does not shorten the shelf life. The problem with Easter eggs is usually time, not dye.
Eggs used for an outdoor hunt or left in a basket on the counter for hours should be discarded. If an egg’s shell cracked during dyeing or handling, bacteria can enter through the crack. Cracked hard-boiled eggs should be eaten right away or thrown out — they should not be stored for days.
One clarification worth making: the “float test” that people use to check raw egg freshness does not work the same way for boiled eggs. A boiled egg may float or sink for reasons unrelated to spoilage. Do not rely on it.
How Can You Tell If a Boiled Egg Has Gone Bad?
Your nose and eyes are the most reliable tools. A spoiled hard-boiled egg usually announces itself clearly.
- Smell: A sulfur-like or rotten odor is the clearest sign. A faint sulfur smell is normal in hard-boiled eggs, but a strong, unpleasant one is not.
- Appearance: Slimy texture, a cloudy or discolored white, or any visible mold means discard it.
- Color: A greenish ring around the yolk is harmless. It comes from a reaction between sulfur in the white and iron in the yolk during overcooking. It does not mean the egg is spoiled.
- Texture: A rubbery or unusually firm white is a sign of overcooking, not spoilage, though it may not taste good.
If you are unsure, throw it out. The cost of one egg is not worth a case of foodborne illness.
What Is the Risk of Eating a Bad Boiled Egg?
The main concern is foodborne bacteria, particularly Salmonella and other organisms that can multiply on a cooked egg left at room temperature. Symptoms of foodborne illness typically include nausea, vomiting, diarrhea, and stomach cramps, and they can appear within hours to a few days after eating contaminated food.
Most healthy adults recover without treatment. But some groups face higher risk of serious illness: adults over 65, young children, pregnant women, and people with weakened immune systems. For these groups, being strict about the two-hour rule and the one-week limit matters more.
This is one area where the guidance is firm. The two-hour rule for perishable foods at room temperature is a long-standing public health standard, not a rough estimate.
Does the Cooking Method Change How Long Eggs Last?
Not much, as long as the egg is fully cooked. Hard-boiled, soft-boiled, and medium-boiled eggs all fall under the same general refrigeration guidance, though soft-boiled eggs with a runny yolk are best eaten within a day or two for quality reasons.
What matters more is how the egg was handled after cooking. An egg cooled quickly and refrigerated promptly will last longer than one left in a warm pot on the stove for hours. Rapid cooling limits the time bacteria have to multiply in the temperature range where they grow fastest.
If you boil eggs in advance for the week, cool them in ice water or under cold running water, then refrigerate them right away. This is a simple step that makes a real difference.
Can You Eat a Boiled Egg That Smells Fine but Is Old?
If a boiled egg has been refrigerated continuously and is within the seven-day window, it is generally safe even if it looks and smells normal. Past seven days, the risk rises even if nothing seems wrong. Bacteria can multiply without producing obvious signs.
This is the part people get wrong. A boiled egg that looks and smells fine is not automatically safe if it has been sitting in the fridge for two weeks. The absence of a bad smell is not proof of safety. The date on the container is the better guide.
When in doubt, the answer is simple: throw it out.
Frequently Asked Questions
How long do hard-boiled eggs last in the fridge?
About one week, according to USDA food safety guidance. This applies to both peeled and unpeeled hard-boiled eggs stored at 40°F or below.
Can you eat a boiled egg left out overnight?
No. Perishable foods left at room temperature for more than two hours should be discarded, and overnight is well past that limit.
How do you know if a boiled egg has gone bad?
A strong rotten or sulfur smell, a slimy texture, or visible mold are clear signs to throw it out. A greenish ring around the yolk is harmless and does not mean the egg is spoiled.
Do peeled boiled eggs last as long as unpeeled ones?
The USDA gives the same one-week refrigeration guidance for both. Peeled eggs may dry out faster and are often best eaten within a few days for quality.

