Yes, mayonnaise needs to be refrigerated after opening. An opened jar of mayo stays safe at room temperature for no more than 2 hours total, and even that is pushing it—the USDA and every major mayo maker say to put it back in the fridge right after use. The reason is simple: mayo is made with eggs and oil, and while the acid in it slows bacteria, it does not stop them.
If you left a jar of mayo out on the counter overnight by accident, throw it out. The 2-hour rule is not a suggestion, and mayo left out for 8 hours can grow bacteria that cause food poisoning, even if it looks and smells fine.
Why Opened Mayo Goes Bad at Room Temperature
Mayonnaise is an emulsion of egg yolks, oil, vinegar or lemon juice, and seasonings. The acid (vinegar or lemon) lowers the pH enough to slow bacterial growth, which is why unopened mayo can sit in a pantry for months. But once the jar is opened, bacteria from the air, your spoon, or the edge of the jar get in. At room temperature, those bacteria multiply quickly—especially Staphylococcus aureus, which can produce a toxin that causes vomiting and diarrhea within a few hours.
The 40°F (4°C) to 140°F (60°C) range is the danger zone where bacteria double in as little as 20 minutes. Your fridge should be at or below 40°F (4°C) to keep mayo safe. If your fridge runs warmer than that, even refrigerated mayo can spoil faster.
The 2-Hour Rule and What Changes It
Perishable foods like mayo, eggs, dairy, and cooked meats should not sit out for more than 2 hours total. That includes the time the jar is open while you make a sandwich, the time it sits on the table during a picnic, and the time it takes to put it away. If the room is above 90°F (32°C)—a hot car, a sunny patio, a summer picnic table—the limit drops to 1 hour.
What changes the rule? Not much. A tiny smear of mayo on a sandwich that sits in a lunchbox for 3 hours is a different situation than a jar left open. The sandwich is a dry-ish, low-moisture environment compared to a jar of mayo, but it still contains eggs and oil. The safe answer: if the sandwich has mayo and is not in a cooler, eat it within 2 hours of making it, or toss it. A commercial shelf-stable mayo (like the kind sold in tubes or single-serve packets) can stay at room temperature until opened, but once the packet is torn, treat it like any opened mayo.
How Long Does Mayo Last in the Fridge?
An opened jar of commercial mayonnaise keeps for about 2 months in the fridge. That is the general window from the manufacturer and the USDA. After that, the quality drops—the emulsion can break, the flavor turns sharp, and the color may darken. It will not necessarily make you sick, but it will not taste good.
Homemade mayonnaise is a different story. Because it uses raw egg yolks and no preservatives, homemade mayo lasts only 3 to 4 days in the fridge. It must be refrigerated immediately after making it, and it should never sit out for more than 2 hours total. If you make your own mayo, write the date on the jar so you remember when to toss it.
Unopened commercial mayo has a long shelf life—often 3 to 6 months past the printed date if stored in a cool, dark pantry. Once opened, the clock starts: 2 months in the fridge, no exceptions.
Does the Type of Mayo Matter? (Light, Vegan, Flavored)
All opened mayonnaise—regular, light, olive-oil, avocado-oil, vegan, or flavored—needs refrigeration. The egg content is not the only factor; the water and oil mixture is a breeding ground for bacteria once exposed to air. Vegan mayo (made with aquafaba or soy protein) still contains water and oil, so it spoils the same way. Flavored mayos (chipotle, sriracha, garlic) often have added ingredients that can spoil faster, so keep them refrigerated and use them within the same 2-month window.
One exception: commercial shelf-stable mayonnaise sold in unrefrigerated aisles (like some single-serve packets or certain European-style tubes) is formulated to be safe at room temperature until opened. The label will say so. Once you open it, refrigerate it. If the label does not say shelf-stable, assume it needs refrigeration from the start.
How to Tell If Mayo Has Gone Bad
Your nose and eyes are the first line of defense. Spoiled mayo smells sour, rancid, or yeasty—not the clean, tangy smell of fresh mayo. It may also change color, turning yellow-brown or developing a grayish tint. The texture can separate, with liquid pooling on top or the emulsion looking curdled. If you see any mold—green, black, or white spots—throw the whole jar out. Mold means the mayo is contaminated, and scraping it off does not make the rest safe.
Do not taste mayo to check if it is bad. If it smells off, looks wrong, or has been out of the fridge for more than 2 hours, discard it. A spoonful of spoiled mayo is not worth a bout of food poisoning.
What to Do If You Left Mayo Out Overnight
Throw it away. There is no way to make it safe again. The 2-hour rule is absolute for perishable foods, and overnight is far beyond that. Even if the jar looks fine and smells fine, bacteria may have produced toxins that heat cannot destroy. Refrigerating it after the fact does not undo the damage.
If you are not sure how long the mayo was out—maybe it sat on the counter during a party and you do not remember when it was put away—the safest choice is to toss it. A new jar costs a few dollars; a trip to the emergency room costs far more.
A Rule of Thumb to Remember
Think of mayo like milk: once it is open, it lives in the fridge, and it is only out for the time it takes to use it. If you are making a sandwich, take the jar out, use it, and put it back within a few minutes. If you are at a picnic, keep the mayo in a cooler with ice packs, and do not let it sit in the sun. When in doubt, throw it out.
For your fridge, set it to 40°F (4°C) or lower. A fridge thermometer costs a few dollars and takes the guesswork out. If you have a large jar of mayo that you use rarely, buy a smaller one—it will be fresher and you will waste less.
Spotted a mistake? Tell us and we will correct it. How we write and check articles.