Eggs are a kitchen staple, but their shelf life causes a lot of confusion. The direct answer is that raw eggs in the shell typically stay fresh for 3 to 5 weeks from the date they were packed in the carton. If you store them properly in the refrigerator, they are generally safe to eat well past the “Sell By” date printed on the box. However, a “Best By” date is about quality, not safety, so the real test is how the egg looks and smells when you crack it open.
How Long Until Eggs Go Bad in the Refrigerator?
Refrigeration is the single most important factor in egg freshness. When kept at a consistent temperature below 40°F (4°C), whole raw eggs in their shells remain safe to eat for 4 to 5 weeks after the pack date. The pack date is a three-digit number on the carton representing the day of the year the eggs were washed, graded, and placed in the carton. For example, 001 is January 1st and 365 is December 31st.
The “Sell By” or “Expiration” date is not a safety deadline. It is a quality indicator. Eggs will often remain perfectly fine for consumption for several weeks after this date, provided they have been continuously refrigerated. The USDA states that eggs are at their best quality within 3 to 5 weeks of the pack date, but they do not suddenly become dangerous the day after that window closes.
How Long Do Eggs Last at Room Temperature?
Room temperature is where eggs go bad quickly. In the United States, eggs are washed and sanitized before packaging, which removes the natural protective coating (the bloom) that keeps air and bacteria out. Because of this, American eggs must be refrigerated to prevent bacterial growth.
Once an egg is left out at room temperature, the clock starts ticking. The FDA recommends that eggs not be left out of the refrigerator for more than 2 hours. After that, the risk of Salmonella growth increases significantly. If you leave eggs out overnight, even if they look fine, you should throw them away. The 2-hour rule applies to raw eggs in the shell, cooked eggs, and any dishes containing eggs.
How Long Do Cooked Eggs and Egg Dishes Last?
Cooked eggs have a much shorter shelf life than raw ones. Hard-boiled eggs, whether peeled or unpeeled, will last for up to one week in the refrigerator. The cooking process removes the protective coating on the shell, making them more porous and susceptible to bacteria.
Egg-based dishes like scrambled eggs, omelets, frittatas, and quiches should be refrigerated within 2 hours of cooking. Once stored in an airtight container, they will remain safe to eat for 3 to 4 days. If you are meal-prepping, label the container with the date so you do not have to guess later. Leftover egg salad or deviled eggs follow the same 3 to 4 day rule.
How Long Do Raw Eggs Last in the Freezer?
Freezing is an excellent way to extend the life of eggs, but you cannot freeze them in the shell. The liquid inside expands when frozen, which will crack the shell and ruin the egg. To freeze eggs, crack them into a bowl, gently whisk the yolks and whites together, and pour the mixture into a freezer-safe container. You can also separate the whites and yolks and freeze them individually.
Frozen raw eggs will maintain their quality for up to one year. When you are ready to use them, thaw them in the refrigerator overnight. Use thawed eggs only in dishes that are fully cooked, such as baked goods or scrambled eggs. Do not use thawed raw eggs to make mayonnaise, hollandaise sauce, or any recipe that calls for raw or undercooked eggs.
How to Tell If an Egg Has Gone Bad
The most reliable way to tell if an egg has gone bad is to crack it open and use your senses. A fresh egg will have a thick white that is slightly cloudy and a yolk that sits high and round. A bad egg will have a thin, watery white and a yolk that flattens easily. The smell is the ultimate test. A rotten egg has a distinct, sulfurous odor that is unmistakable. If it smells bad, do not eat it.
There is a common myth that a floating egg is always bad. This is not entirely true. As an egg ages, the air cell inside the shell grows larger, causing it to float in water. A float test can indicate age, but it does not confirm spoilage. An older egg may float yet still be perfectly safe to eat if it passes the smell and visual test after cracking. Conversely, a fresh egg that sinks can still be contaminated. The float test is not a safety test; it is a freshness indicator.
How to Store Eggs to Make Them Last Longer
Where you store eggs in the refrigerator matters. The door is the worst place. The temperature fluctuates every time you open and close it, which encourages bacterial growth and speeds up spoilage. Store eggs in their original carton on an interior shelf, where the temperature is most stable. The carton also protects the eggs from absorbing strong odors from other foods like onions or fish.
Keep eggs away from raw meat and poultry to prevent cross-contamination. Always wash your hands before and after handling eggs. If a shell cracks while you are transporting it, use the egg within 2 days and cook it thoroughly. Do not wash eggs before storing them. Washing removes the protective coating and increases the risk of bacteria entering the shell.
Does the “Sell By” Date Matter?
The “Sell By” date is for retailers, not for consumers. It tells the store how long to display the product for sale. It is not a safety date. The “Best By” or “Use By” date is a recommendation for when the product will be at its best flavor and quality. For eggs, this is typically 3 to 5 weeks from the pack date. After this date, the eggs may lose some quality and the yolk may become less firm, but they are not automatically unsafe.
If you are unsure whether your eggs are still good, rely on the cracking test. A bad egg will smell. If the egg smells fine and looks normal, it is safe to eat. Trust your nose over the date on the carton. The date is a guideline, but the sensory test is the definitive check for spoilage.
Frequently Asked Questions
Can I eat eggs 2 months after the sell by date?
It depends on the storage conditions and the pack date. If the eggs were continuously refrigerated and pass the smell and appearance test when cracked, they are likely safe, though quality may be lower.
Is it safe to eat eggs that float in water?
Not necessarily. A floating egg is older and has a larger air cell, but it is not proof of spoilage. Crack it open and check the smell and appearance before deciding.
How long are hard-boiled eggs good for?
Hard-boiled eggs last up to one week in the refrigerator. They should be stored in a covered container and refrigerated within 2 hours of cooking.
Can you freeze eggs to make them last longer?
Yes, but not in the shell. Crack the eggs, whisk them, and freeze in an airtight container for up to one year. Thaw in the refrigerator and use only in fully cooked dishes.

