Hard boiled eggs last three to four days in the refrigerator

A hard boiled egg that has been cooled and stored in the refrigerator stays safe to eat for three to four days after cooking. This applies whether the shell is still on or off. The clock starts the moment the egg finishes cooking and cools down, not from when you bought it.

The shell does not extend the safe window — a peeled egg and an unpeeled egg stored side by side in the same container will both last the same length of time. What matters is temperature: the egg must stay at 40°F or colder the entire time. If it sits on the counter for more than two hours, or one hour if your kitchen is above 90°F, throw it away.

Key Takeaways

  • Hard boiled eggs are safe in the refrigerator for three to four days, whether peeled or unpeeled.
  • The three-to-four-day window begins when the egg cools after cooking, not from purchase or storage date.
  • An egg left on the counter for more than two hours (or one hour in heat above 90°F) should be discarded.
  • Freezing hard boiled eggs is not recommended because the white becomes rubbery and the yolk becomes grainy.
  • A hard boiled egg that smells sulfurous, looks slimy, or feels mushy is unsafe and should be thrown away.

How to tell if a hard boiled egg has gone bad

A hard boiled egg that has spoiled will show clear signs. The most reliable is smell: crack the shell and sniff near the yolk and white. A strong sulfur or rotten smell means the egg is unsafe. Do not taste it to check.

Look at the surface of the white and yolk. If either feels slimy, looks discolored, or has a gray-green ring around the yolk (which is actually harmless iron and sulfur compounds, not spoilage), discard it. A gray-green ring that appears during cooking is normal and safe, but if the ring is thick or the yolk looks dark, the egg may have been stored too long.

If you are uncertain, throw the egg away. The cost of replacing one egg is far lower than the cost of food poisoning.

Storage methods that extend the safe window

Keeping hard boiled eggs in their shells extends usability slightly because the shell acts as a barrier to bacteria and drying. Store unpeeled eggs in a covered container on a shelf in the refrigerator, not on the door where temperature fluctuates. A sealed plastic container or glass bowl with a lid works well.

Peeled eggs dry out faster and should be stored in a container with a damp paper towel or kept submerged in water. Change the water daily if you are storing them submerged. Even with these methods, the three-to-four-day window does not extend — the egg is still only safe for that length of time.

Do not store hard boiled eggs in the freezer. Freezing damages the texture of both the white and yolk, making them rubbery and grainy. Thawed frozen hard boiled eggs are unpleasant to eat and are not worth the space.

What happens if you eat a hard boiled egg past the safe window

Eating a spoiled hard boiled egg can cause food poisoning from bacteria like Salmonella or Listeria. Symptoms usually appear within six to 72 hours and include nausea, vomiting, diarrhea, abdominal cramps, and fever. Most people recover without treatment, but the illness is uncomfortable and can be serious for young children, older adults, or people with weakened immune systems.

The risk is real but not certain — some people eat spoiled eggs without getting sick because the bacterial load was low or their immune system fought it off. That does not mean it is safe. The only safe choice is to discard any egg you are unsure about.

Eggs cooked at different temperatures have different timelines

Hard boiled eggs — cooked until both the white and yolk are fully solid — follow the three-to-four-day rule. Soft boiled eggs, where the yolk is still runny, are less stable because the yolk has not been heated to a temperature that kills all bacteria. Soft boiled eggs should be eaten within one to two days and handled more carefully.

If you are cooking eggs for storage, cook them fully hard. The higher internal temperature gives you a longer safe window and reduces the risk of foodborne illness.

How to cool hard boiled eggs quickly and safely

After boiling, transfer the eggs to a bowl of ice water when ready. This stops the cooking process and cools them fast. Leave them in the ice bath for at least five minutes, or until they are cool to the touch. The faster you cool them, the sooner the three-to-four-day clock can start — and the sooner you can refrigerate them.

Do not leave hot eggs on the counter to cool on their own. Bacteria can multiply in the warm zone between 40°F and 140°F. Once the eggs are cool, move them to the refrigerator right away.

Frequently Asked Questions

Can I eat a hard boiled egg that has been in the fridge for five days?

No. After four days, the risk of bacterial growth is too high. Discard it. If you regularly cook more eggs than you eat, cook smaller batches more often instead of storing them longer.

Is the gray-green ring around the yolk a sign the egg is bad?

No. That ring is a harmless chemical reaction between iron in the yolk and sulfur in the white, caused by overcooking or storing the egg too long after cooking. It is safe to eat. If the ring is very thick or dark, the egg may have been stored past the safe window, so use your other senses to check.

What if I left hard boiled eggs on the counter overnight?

Discard them. Bacteria multiply rapidly in the danger zone between 40°F and 140°F. Eggs left out for more than two hours should not be eaten, even if they smell and look fine.

Can I store hard boiled eggs in the shell in a cool basement instead of the fridge?

No. A basement is not cold enough. Hard boiled eggs must stay at 40°F or colder. Only a refrigerator or freezer maintains that temperature reliably. A cool basement will warm up during the day and allow bacteria to grow.

Do store-bought hard boiled eggs last longer than ones I cook at home?

No. The safe window is the same — three to four days from when they cool. Store-bought eggs may have a printed date, but that date is a guide, not a may provide. Once you open the package, treat them the same way you would treat eggs you cooked yourself.