How Long Mayonnaise Stays Fresh in Your Refrigerator
Mayonnaise lasts three to four months in the refrigerator after opening, and much longer unopened
An unopened jar of mayonnaise will stay safe to eat for about one year in the refrigerator, though the manufacturer's date on the label is your best guide. Once you open it, the clock resets: you have roughly three to four months before the quality starts to decline and the risk of spoilage rises. The exact timeline depends on how you store it, how often you open the jar, and whether anything else has touched the mayo with a dirty spoon or knife.
Mayonnaise is surprisingly stable because of its high fat and acid content—both are natural preservatives. The emulsion of oil, egg yolk, and vinegar or lemon juice creates an environment where harmful bacteria struggle to grow. This is why mayo lasts longer than you might expect, and why a jar sitting in your door for five months might still be fine, while one that has been contaminated with other foods could go bad in weeks.
Key Takeaways
- Unopened mayonnaise keeps for about one year in the refrigerator; always check the manufacturer's date on the jar.
- After opening, mayonnaise remains safe for three to four months if stored in a clean, sealed container at a consistent temperature.
- The biggest threat to mayo is contamination from a dirty utensil or cross-contact with other foods, which can introduce bacteria that spoil it much faster.
- Signs that mayo has gone bad include an off smell, visible mold, separation of oil from the emulsion, or a sour taste.
- Storing mayo in the coldest part of your refrigerator—not the door—and using a clean spoon every time extends its shelf life.
Why mayonnaise lasts so long compared to other condiments
Mayonnaise owes its longevity to chemistry. The high oil content (about 70 percent) and the acidity from vinegar or lemon juice make it hostile to the bacteria that cause food poisoning. Salmonella and E. coli cannot easily survive in this environment. This is why mayo is one of the most stable condiments you can keep in your fridge—far more stable than, say, sour cream or fresh salsa.
The emulsion itself is also a barrier. The oil and water are held together by the egg yolk, creating a tight structure that resists the growth of microorganisms. As long as that structure stays intact and nothing introduces new bacteria, the mayo remains safe. This is also why homemade mayo, which lacks the preservatives and stabilizers in commercial versions, should be used within one to two weeks and kept very cold.
How to tell if your mayonnaise has gone bad
The first sign is usually smell. Fresh mayo has a mild, slightly tangy aroma. If it smells sour, vinegary beyond the normal level, or simply off in a way you cannot quite name, do not use it. Trust your nose—it is often the most reliable indicator before any visible change appears.
Look for visible mold, which appears as spots or a fuzzy layer on the surface or sides of the jar. If you see it, throw the jar away. Do not scoop it out and use the rest; mold spreads through the entire container even when you cannot see it. Separation of the mayo—where oil pools on top and the emulsion breaks down below—is another sign that it has begun to degrade. A sour or off taste is the final confirmation, though you should spit it out immediately rather than swallow a full spoonful.
The right way to store mayonnaise to extend its life
Store mayo in the coldest part of your refrigerator, which is usually the back of a shelf, not the door. The door is the warmest spot because it opens and closes constantly, exposing the contents to temperature swings. These fluctuations speed up spoilage. Keep the jar sealed tightly between uses, and wipe the rim clean before closing the lid so no dried mayo or other food particles create a breeding ground for bacteria.
Always use a clean spoon or knife when scooping mayo out of the jar. A spoon that has touched sandwich bread, deli meat, or anything else introduces bacteria directly into the jar. If you use mayo frequently, consider keeping a small serving container in the fridge and refilling it from the main jar, rather than dipping into the large jar repeatedly. This keeps the bulk of your mayo isolated from contamination.
Unopened mayonnaise: how long it lasts and storage tips
An unopened jar of mayonnaise will remain safe and of good quality for about one year from the date of manufacture, which is printed on the lid or label. The exact date varies by brand and production batch, so check the jar before you buy it if you are stocking up. Unopened mayo does not need to be refrigerated until you open it—many people store unopened jars in the pantry—but once opened, it must go in the fridge.
If you have unopened jars in your pantry, store them in a cool, dark place away from direct sunlight and heat sources like the stove or oven. Temperature swings and light exposure can degrade the product even before you open it. Once you open a jar, move it to the refrigerator immediately, even if you only used a small amount.
What happens if you leave mayonnaise out of the refrigerator
Mayonnaise should not sit at room temperature for more than two hours, or one hour if the room is above 90 degrees Fahrenheit. After that window, bacteria can begin to multiply to unsafe levels, even though the mayo may not show obvious signs of spoilage. If you have left mayo on the counter during a meal or while making sandwiches, put it back in the fridge as soon as you are done.
If mayo has been left out overnight or for several hours in warm weather, it is safer to throw it away than to risk it. The risk is not worth the cost of a jar of condiment. Homemade mayo, which contains raw egg, should never be left out at all and should be used within one to two weeks even when refrigerated.
Commercial versus homemade mayonnaise: shelf life differences
Commercial mayonnaise from brands like Hellmann's, Duke's, or store brands lasts three to four months after opening because it contains preservatives and has been heat-treated to kill bacteria. These products are formulated to be stable and safe for extended storage. Homemade mayo, made by whisking raw egg yolk with oil and acid, lacks these preservatives and should be used within one to two weeks, kept at the coldest part of your fridge the entire time.
If you make mayo at home, use pasteurized eggs to reduce the risk of salmonella, and store it in a clean, airtight container. Even with pasteurized eggs, homemade mayo is more perishable than commercial versions because it lacks the stabilizers and preservatives that extend shelf life. If you are not confident about the safety of homemade mayo, commercial versions are the safer choice for food that will sit in your fridge for weeks.
Frequently Asked Questions
Can you eat mayonnaise that has been in the fridge for six months?
It depends on how it has been stored and whether it shows signs of spoilage. If the jar has been sealed, kept at a consistent cold temperature, and never contaminated with a dirty utensil, it may still be safe. However, the quality will have declined—the texture may be thinner, and the flavor may be off. Check for smell, mold, and separation before using it. When in doubt, throw it out.
Does mayonnaise go bad faster if you leave the lid off?
Yes. An open jar exposes mayo to air, which introduces bacteria and allows moisture to evaporate. It also allows the mayo to absorb odors from other foods in the fridge. Always seal the jar tightly after each use. If you have left the lid off for more than a few minutes, it is safer to discard the mayo.
What should I do if mayonnaise separates in the jar?
Separation—where oil pools on top—is a sign that the emulsion is breaking down. Stir it gently to see if it comes back together. If it does, the mayo is probably still safe, though the quality has declined. If it does not recombine or if it smells off, throw it away. Separation can happen from temperature swings or age, both of which affect safety.
Is it safe to use mayonnaise past the expiration date?
The date on the jar is a guide for unopened mayo. Once opened, the expiration date is less relevant because the clock resets. An opened jar from two years ago is not safe; an opened jar from two months ago may be fine if stored correctly. Use the three to four month rule for opened mayo and trust your senses—smell and appearance—over the date.
Can you freeze mayonnaise to make it last longer?
Freezing is not recommended. Mayonnaise is an emulsion, and freezing breaks down the structure, causing it to separate and become grainy or oily when thawed. The texture and taste will be noticeably worse. Refrigeration is the best storage method. If you have more mayo than you can use in four months, it is better to buy smaller jars more often.