Maybe you meal-prepped a dozen hard-boiled eggs, only to hit a wall by day three. So, how long are hard-boiled eggs actually good for? The answer: Not as long as raw eggs. Hard-boiled eggs are more perishable than raw eggs, which is why they have a shorter storage life.

How long they last also depends on how quickly you refrigerate them. Hard-boiled eggs left out at room temperature can spoil much faster than those chilled promptly, so move them to the fridge within two hours. Otherwise, that last egg in the batch could be a rotten one.

Storing hard-boiled eggs the right way is key. They’re an easy option for healthy breakfasts and high-protein meal prep, but an egg that’s gone bad can cause foodborne illness. Here’s how long hard-boiled eggs last in the fridge—and the best way to store them, whether they’re peeled or still in the shell.

How long do hard-boiled eggs last in the fridge?

According to the U.S. Food & Drug Administration (FDA), eggs should always be refrigerated at a temperature of 40°F or below to ensure the best quality and safety. Whether they're peeled or still in the shell, hard-boiled eggs that are stored properly in the fridge should be consumed within one week after cooking.

How long do hard-boiled eggs last unrefrigerated?

Sometimes hard-boiled eggs end up sitting out, whether they’re part of an Easter egg hunt or you simply forgot to refrigerate the leftovers. But don’t leave them on the counter for too long: According to the Centers for Disease Control and Prevention (CDC), hard-boiled eggs are safe at room temperature for up to two hours. If the temperature is 90°F or higher, that window drops to just one hour—after that, it’s safest to toss them.

Classic Deviled Eggs
Tatyana Consaul//Getty Images

How long do peeled hard-boiled eggs last in the fridge?

Just like unpeeled hard-boiled eggs, peeled eggs can last up to seven days in the refrigerator if they are kept in an airtight container.

How can you tell if a hard-boiled egg is still good?

A hard-boiled egg that’s been stored improperly may harbor harmful bacteria, including Salmonella, which can cause foodborne illness. But smell and appearance aren’t always reliable indicators of safety—contaminated eggs may look and smell normal. If an egg has an unusual odor, slimy texture, or discoloration, toss it, and when in doubt, it’s safest to throw it out.

how long do hard boiled eggs last? a woman peels eggs
Kinga Krzeminska

How should I safely store hard-boiled eggs?

As mentioned before, hard-boiled eggs should be stored at a temperature of 40°F or below. (See below for more on freezing hard-boiled eggs.) When it comes to the best storage methods for hard-boiled eggs, store hard-boiled eggs in a covered food container in the refrigerator—and if you're planning on transporting them (to a picnic, for example), you should try to keep them cold in an insulated cooler or with frozen gel packs. For maximum freshness, you should also leave them unpeeled in their shells until you are ready to eat or prepare them.

Can I freeze hard-boiled eggs?

Hard-boiled eggs aren’t recommended for freezing because the whites become tough and watery. What’s the better way? Beat raw eggs first, then pour them into ice cube trays or resealable plastic bags. For a step-by-step guide, see “How to Freeze Eggs for Baking and Make-Ahead Recipes”.