How Long Eggs Stay Safe at Room Temperature
Eggs can sit out for up to two hours at room temperature, or one hour if the room is above 90°F
Once an egg is cooked, the two-hour window is your safety boundary. This comes from the USDA's food safety guidelines, which track how quickly bacteria multiply in the "danger zone" between 40°F and 140°F. Raw eggs that have been cracked open follow the same rule. If you've left eggs on the counter longer than two hours—or longer than one hour on a hot day—throw them out rather than refrigerate them and eat them later. The bacteria that may have grown during that time won't die when the eggs get cold again.
Raw eggs still in their shells are different. An uncracked egg can sit out much longer because the shell itself is a barrier. The USDA says raw eggs in the shell are safe at room temperature for up to seven days, though most home cooks refrigerate them immediately after purchase because that's when they're freshest and last longest. If you've left raw eggs in their shells on the counter for a few hours, they're still safe to cook and eat.
Key Takeaways
- Cooked eggs or cracked raw eggs must go back in the refrigerator within two hours, or one hour if the room temperature is above 90°F.
- Raw eggs still in their shells can sit at room temperature for up to seven days, though refrigerating them immediately keeps them fresher longer.
- Bacteria grow fastest in warm conditions, so the one-hour limit applies on hot days or in warm kitchens.
- If you're unsure how long eggs have been sitting out, discard them rather than risk foodborne illness.
Why the two-hour rule matters for cooked eggs
Bacteria don't announce themselves. You can't see, smell, or taste the pathogens that cause food poisoning—salmonella and listeria are the main culprits in eggs. They multiply fastest between 40°F and 140°F, which is why this range is called the danger zone. A cooked egg left on the counter at 70°F can double its bacterial load every 20 minutes or so. After two hours, the number of bacteria may be high enough to make you sick.
The risk is real but not may provide. Some people get sick from contaminated eggs; others don't. Older adults, young children, pregnant people, and anyone with a weakened immune system are at much higher risk of serious illness. If you fall into one of these groups, stick to the two-hour rule strictly—don't push it to two hours and five minutes.
Raw eggs in the shell versus cracked eggs
An uncracked eggshell is a natural seal. Salmonella bacteria live on the outside of the shell, not inside the egg itself (in most cases). Because the shell protects the inside, raw eggs in their shells can sit at room temperature for a week without becoming unsafe to cook. That said, the yolk and white inside will start to break down over time, so the egg won't taste or cook as well after a few days on the counter.
The moment you crack an egg open, you've broken that seal. The inside of the egg is now exposed to air and any bacteria on your hands or the counter. Cracked raw eggs follow the two-hour rule just like cooked eggs do. If you're separating eggs for a recipe, crack them into a bowl, use them right away, and refrigerate any leftovers immediately.
What happens on hot days and in warm kitchens
Temperature matters more than time. On a day when your kitchen is 75°F, you have the full two hours. But if it's 92°F outside and your kitchen is warm, bacteria multiply faster, and your window shrinks to one hour. If you're cooking outdoors in summer heat or in a kitchen without air conditioning, set a timer for one hour and don't wait.
The same applies if you're at a picnic, a potluck, or anywhere without reliable temperature control. Eggs in a potato salad or deviled eggs on a buffet table should not sit out longer than one hour if the air temperature is above 90°F. If you're not sure how warm it is, assume it's warm enough to use the one-hour rule.
Storing leftover cooked eggs in the refrigerator
Once you bring cooked eggs back inside the two-hour window, refrigerate them right away. Cooked eggs keep for three to four days in the refrigerator at 40°F or below. Store them in an airtight container or cover them tightly with plastic wrap or foil so they don't dry out and don't absorb odors from other foods.
Scrambled eggs, hard-boiled eggs, omelets, and egg casseroles all follow the same three- to four-day rule. If you've made a big batch of hard-boiled eggs for the week, peel only the ones you plan to eat in the next day or two. Unpeeled hard-boiled eggs last a bit longer—up to a week—because the shell protects them. Once peeled, eat them within a day or two for the best texture and taste.
Eggs in dishes and mixed foods
Egg-based dishes like quiche, frittata, or egg salad follow the two-hour rule too. The eggs themselves are safe for two hours at room temperature, but if the dish also contains mayonnaise, cream, or other perishable ingredients, those ingredients may spoil faster. When in doubt, treat any dish with eggs and other perishables as if it needs to go back in the refrigerator within two hours.
Baked goods that contain eggs—cakes, cookies, brownies—are different. The heat of baking kills bacteria, and the low moisture content of most baked goods means they're stable at room temperature for days. A chocolate cake or batch of cookies can sit on the counter for several days without risk. But a cream-filled cake or one with frosting made from eggs or cream cheese should be refrigerated.
Frequently Asked Questions
Can I put warm eggs directly in the refrigerator?
Yes. Warm eggs won't damage your refrigerator or raise its temperature enough to affect other foods. Put them in a covered container so they don't dry out and don't release moisture that could drip onto other foods. Let them cool to room temperature first if you want to avoid condensation inside the container.
What if I left eggs out overnight?
Discard them. Eggs left out for more than two hours—especially overnight—have had plenty of time for bacteria to multiply to unsafe levels. It's not worth the risk of food poisoning. This applies whether the eggs are cooked, cracked raw, or in a dish.
Are room-temperature eggs safer if they came from a farm?
No. Farm eggs and store-bought eggs follow the same food safety rules. The two-hour window applies to all of them. Some people believe farm eggs are safer because they're fresher, but freshness and safety are different things. Bacteria can grow on any egg left in the danger zone too long.
Can I eat a hard-boiled egg that's been in my lunch bag all day?
Only if your lunch bag has an ice pack and has stayed cold (below 40°F). Without cooling, a hard-boiled egg in a lunch bag at room temperature for eight hours is not safe to eat. If you pack eggs for lunch, use an insulated lunch bag with an ice pack or frozen water bottle to keep everything cold.