It might be the most stubborn kitchen debate in the Western world: does mayonnaise go in the refrigerator, or can it live happily on the counter next to the stove like the olive oil? Some families have kept a jar out for generations and swear they have never gotten sick. Others refrigerate it religiously the moment the seal breaks. The science, the food safety guidelines and a few surprising historical facts all point to a clear answer, and plenty of people are genuinely learning it for the first time.
The short version: commercial mayonnaise must be refrigerated after opening, and it should never sit at room temperature for more than two hours. The longer version explains why the myth of the counter-stored jar is so persistent, and what actually happens inside that squeeze bottle when it stays warm.
What Mayonnaise Actually Is
Mayonnaise is an emulsion of oil, egg yolks and an acid, usually vinegar or lemon juice, with the lecithin in the yolks acting as the stabilizer that holds the mixture together. That acid content is historically important: in homemade mayo, the vinegar and lemon juice provide some protection against bacterial growth, which is why old recipes survived at all in pre-refrigeration kitchens. Commercial producers go much further, using pasteurized eggs and preservatives that dramatically extend shelf life and make the jarred product far safer than its homemade ancestor.
Ironically, commercial mayonnaise's acidity is so well controlled that studies have found the product itself is rarely the villain in food poisoning cases. The real problem is what happens around it: mayo-based dishes like potato salad and sandwiches usually also contain chicken, eggs, potatoes and vegetables, and it is those ingredients, held at unsafe temperatures for hours at a picnic, that allow dangerous bacteria to multiply.
What the USDA Says, Clearly
According to the United States Department of Agriculture, mayonnaise should be refrigerated after opening to maintain both its safety and its quality. The broader rule for perishable foods applies here: nothing perishable should sit at room temperature for more than two hours total. Refrigeration does not sterilize the jar, but it slows bacterial growth to a crawl, extending both the safe window and the period during which the mayo still tastes the way it is supposed to taste.
The two-hour rule tightens in warm weather. When the ambient temperature climbs above 90 degrees Fahrenheit, that safe window shrinks to a single hour. So the picnic scenario, a jar of mayo on a sunny table in July, is the worst-case version: within an hour, you are in the danger zone where bacteria can multiply rapidly, and the jar should be tossed rather than saved for the next round of burgers.
The Risks of Leaving It Out
Storing mayonnaise on the counter invites several specific hazards. Bacteria such as Salmonella and Listeria thrive at room temperature, and while the acids in mayo slow them down, they do not stop them indefinitely, especially once the jar has been contaminated by double-dipping knives, crumbs and cross-contamination from other foods. A used jar is never as protected as a fresh one: every sandwich knife carries microscopic traces of whatever it touched before.
Quality degrades too. Oils oxidize, the emulsion can separate, and the flavor turns flat and slightly rancid long before anything looks visibly wrong. If your counter-stored mayo has developed an off smell, unusual color, watery layer on top or a puffed lid, those are textbook spoilage signs, and the only correct response is the trash can, not a taste test.
How to Store It Right Without Thinking About It
The practical routine is simple. Unopened jars can live in a cool, dark pantry until the date on the label. The moment you break the seal, the jar moves to the refrigerator, ideally on a shelf rather than the door, where temperatures fluctuate every time it opens. Keep the rim clean, use a clean utensil every time, and never return leftover mayo that has been sitting out to the jar. An opened jar generally keeps its best quality for about two to three months refrigerated, though it remains safe somewhat longer if handled well.
Why the Counter Myth Survives
Part of the confusion comes from history: before refrigeration, families did keep rendered fats and preserved condiments at room temperature, and older relatives pass those habits down. Part comes from restaurants, where large mayo containers do sit on prep lines, but under strict food code time limits that home kitchens never enforce. And part comes from survivorship bias: the person whose family never got sick from counter mayo was simply lucky, and luck is not a storage method. Compare that with the millions of foodborne illness cases the CDC estimates occur in the United States every year, many traced to temperature-abused foods, and the fridge stops sounding like an overreaction.
The Bottom Line
So yes, this is one of those facts worth learning late: mayonnaise goes in the refrigerator after opening, without exceptions worth taking. Unopened, the pantry is fine. Opened, two hours at room temperature is the absolute ceiling, one hour on a hot day, and any jar that smells, looks or behaves strangely has already lost the argument. Your egg salad, your potato salad, and everyone at the summer cookout will quietly thank you for keeping the coldest ingredient in the sandwich exactly where it belongs, on the shelf next to the milk, not basking on the counter like a souvenir.
