Skip to main content

How Long Mayonnaise Stays Safe at Room Temperature

Mayonnaise left out of the refrigerator is safe for up to two hours, or one hour if the room is above 90°F

Mayonnaise is an emulsion—oil, egg yolk, and acid bound together—and that egg yolk is what matters for food safety. Raw or lightly cooked egg can harbor Salmonella, a bacterium that multiplies rapidly between 40°F and 140°F, the temperature range scientists call the danger zone. Once mayonnaise sits in that zone, the clock starts.

The two-hour window assumes a normal kitchen temperature (around 70°F). If your kitchen is warmer—say you're eating outside on a summer day or your air conditioning is off—cut that time to one hour. After that point, the risk of bacterial growth is high enough that the safest choice is to throw it out. This applies whether the mayo is in a jar, on a sandwich, or in a potato salad.

Commercial mayonnaise is acidic enough (the vinegar or lemon juice lowers the pH) that it resists some bacterial growth, but that protection only slows things down; it does not stop the clock. Homemade mayo, which often has less acid, spoils faster and should not sit out at all.

Key Takeaways

  • Mayonnaise left at room temperature (70°F or below) stays safe for two hours; above 90°F, the safe window shrinks to one hour.
  • The egg yolk in mayonnaise can harbor Salmonella, which multiplies rapidly in warm conditions, so temperature and time matter equally.
  • Once mayonnaise has been left out past the safe window, discard it rather than refrigerate it and use it later.
  • Homemade mayonnaise has less acid than store-bought and should not be left at room temperature at all.
  • Mayonnaise mixed into dishes like potato salad or tuna salad follows the same two-hour rule as plain mayo.

Why the two-hour rule matters for mayo specifically

Mayonnaise is not like a hard cheese or a loaf of bread. Those foods have low moisture or high acidity that naturally prevents bacterial growth. Mayo is mostly oil, but it is held together by the egg yolk, and that yolk is the weak point. Even though commercial mayo is acidified, the acid is there to slow growth, not stop it.

The danger zone (40°F to 140°F) is where Salmonella and other pathogens reproduce fastest. Below 40°F, they go dormant. Above 140°F, they die. In between, they double in number every 20 to 30 minutes under the right conditions. After two hours at room temperature, the bacterial population can reach unsafe levels even if you cannot see, smell, or taste any difference in the mayo.

This is why the USDA and FDA set the two-hour limit for all foods containing eggs or mayonnaise. It is not a suggestion; it is the threshold where the risk becomes unacceptable.

What happens if mayo sits out longer than two hours

If mayonnaise has been left out for three hours, four hours, or longer, the safest choice is to discard it. Do not refrigerate it and use it later, and do not taste it to see if it seems off. Bacterial toxins can be present without any change in flavor or smell, and Salmonella infection causes serious illness—fever, diarrhea, and abdominal cramps that can last a week or more.

The risk is higher for young children, older adults, and anyone with a weakened immune system. For these groups, even a small amount of contaminated mayo can cause severe illness. For everyone else, the illness is unpleasant but usually not life-threatening. Still, there is no reason to take the chance when the fix is simple: throw it out and open a fresh jar.

How to keep mayo safe during meals and picnics

If you are making sandwiches for lunch or bringing a mayo-based dish to a picnic, keep the jar or container in a cooler with ice packs. A standard cooler with frozen gel packs or ice will hold food below 40°F for several hours, even in direct sun. Bring the mayo out only when you are ready to use it, and put it back immediately after.

For picnics or outdoor events lasting more than two hours, do not leave mayo-based dishes (potato salad, coleslaw, tuna salad) sitting on the table. Keep them in the cooler and bring out only what you will use in the next 30 minutes. If the dish has been sitting out and you are unsure how long, err on the side of caution and discard it.

At home, if you are preparing a dish with mayo and it will not be eaten right away, refrigerate it immediately. Do not let it sit on the counter while you finish other tasks. The two-hour window is for eating, not for prep work.

Homemade mayonnaise has different rules

If you make mayo at home using raw eggs, it should not sit out at all. Homemade mayo lacks the preservatives and standardized acidity of commercial versions, and the risk of Salmonella is higher. Store it in the refrigerator and use it within a few days. If you are making mayo for a meal, prepare it just before serving and keep it cold until the moment you use it.

Some recipes use pasteurized eggs, which are safer, but even pasteurized-egg mayo should be refrigerated. The lack of added acid means bacteria can grow faster than in store-bought mayo. When in doubt, keep homemade mayo cold.

Signs that mayonnaise has gone bad in the refrigerator

Mayonnaise stored in the refrigerator lasts a long time—usually three to four months after opening—but it can still spoil. Look for separation (oil pooling on top or liquid at the bottom), a sour or off smell, or visible mold. If you see any of these, discard the jar. Taste is not a reliable test; throw it out without tasting.

An unopened jar of commercial mayo lasts much longer, often a year or more past the printed date, because it has not been exposed to bacteria from a spoon or knife. Once you open it, the clock starts, and the three- to four-month window applies. Write the opening date on the jar with a marker so you know when to replace it.

Frequently Asked Questions

Can I put mayo back in the refrigerator if it sat out for an hour?

Yes. If mayo has been out for less than two hours (or one hour if it is very hot), you can refrigerate it and use it later. The bacteria have not yet reached unsafe levels. Once it has been out past two hours, do not refrigerate it—discard it instead.

Does mayo go bad faster in a warm kitchen?

Yes. In a kitchen above 90°F, the safe window shrinks from two hours to one hour. If you live somewhere hot or your kitchen gets warm in summer, keep mayo in the refrigerator at all times and minimize the time it spends on the counter.

What about mayo in a sealed jar that has never been opened?

An unopened jar is safe at room temperature indefinitely, as long as the seal is intact and the jar has not been damaged. Once you open it, the two-hour rule applies to any portion you remove. Keep the jar refrigerated between uses.

Is store-bought mayo safer than homemade?

Yes. Commercial mayo is pasteurized (the eggs are heat-treated to kill bacteria) and acidified to a specific level. Homemade mayo made with raw eggs carries a higher risk of Salmonella and should always be refrigerated and used quickly.

Can I tell if mayo has gone bad by looking at it?

Not reliably. Bacterial growth and toxin production do not always change the color, smell, or texture of mayo. If mayo has been left out past the safe window, discard it without tasting or smelling it first. Trust the time and temperature, not your senses.