Home › Blog › How Long Can Mayonnaise Sit Out

How Long Can Mayonnaise Sit Out?

Once you open a jar of mayonnaise, the same 2-hour rule applies to it as any other hazardous food. Mayonnaise is made with eggs, and eggs are high in protein and moisture, which makes any food mixture containing them potentially hazardous. An unopened jar is different. It can sit safely in your cupboard for up to 6 months, but that protection disappears the moment you break the seal.

Why Is Mayonnaise Considered Hazardous?

Eggs are the reason. Eggs are high-protein foods with a lot of moisture, which officially makes them potentially hazardous foods. Any food mixture that contains eggs, such as mayonnaise, automatically becomes hazardous. Hazardous foods provide the perfect environment for harmful bacteria to grow, multiply, and make people sick.

A potentially hazardous food is legally defined as any food in a form or state that can support the rapid growth of infectious or toxin-producing micro-organisms, which is why it requires strict time and temperature control to remain safe.

Why Can It Sit Unopened for Months, Then?

Because it is packaged with zero oxygen. Commercially packaged and canned foods are sealed perfectly in factories to prevent bacterial growth. There is a specific type of harmful bacteria called aerobic bacteria, and, like humans, they need oxygen to live, breathe, and grow. When mayonnaise is sealed in a jar on the grocery store shelf, there is no oxygen inside, so there is no bacterial growth, and the mayonnaise can safely sit in your cupboard for up to 6 months.

The moment you buy it, take it home, and open the lid, you introduce oxygen into the jar. Suddenly the bacteria have everything they need to wake up: protein from the eggs, moisture, and now oxygen. From that point on, the strict 2-hour rule applies, and once opened and refrigerated, the jar stays safe for 1 to 2 months before it should be thrown out.

Sealed mayonnaise jar labeled safe for months next to an opened jar labeled 2 hour rule applies

The 2-Hour Rule for Mayonnaise

The 2-hour rule is one of the most important laws in food safety. Under Ontario's food safety regulations, potentially hazardous foods may be left out at room temperature for up to 2 hours. Once those two hours are up, the food is no longer safe to eat and must be thrown away.

How Restaurants Keep Mayonnaise Out Safely

You might wonder how hot dog stands, burger shops, and sandwich counters leave mayonnaise out for customers all day without breaking the rule. The answer is that they do not leave it out all day. Smart businesses rotate their ingredients in and out of the fridge every 30 minutes, using a method called small batches.

Instead of putting a large jar of mayonnaise on the counter, a food worker puts out a small squeeze bottle and keeps the main supply pre-chilled in the fridge. Every 30 minutes, the warm bottle is swapped for a fresh cold one, so the mayonnaise never actually reaches the 2-hour limit. Some businesses instead pack the bottom of the mayonnaise container in a deep ice bath to keep it cold while it sits on the counter. This kind of time and temperature control is exactly what a food handlers certificate course trains food workers to do correctly.

Small squeeze bottle of mayonnaise being rotated with a fridge every thirty minutes

The Temperature Danger Zone

The Danger Zone is the temperature range between 4°C and 60°C (40°F and 140°F). When an open jar of mayonnaise sits on a kitchen counter or a picnic table, it falls squarely within this zone.

Inside the Danger Zone, bacteria are very comfortable. They grow fastest at 37°C, the same as normal human body temperature. Bacteria reproduce by dividing themselves in half, and in the Danger Zone, they double their numbers every 10 to 20 minutes. Starting from one bacterial cell, you have two after 20 minutes, four after 40 minutes, and eight after an hour. Because they double so quickly, bacteria reach dangerous levels in a very short time. The 2-hour limit exists because two hours is generally too short for the bacteria to multiply enough to cause harm, but past that point, the bacterial count is too high, and the food is unsafe.

What Happens If You Eat Mayonnaise Left Out Too Long

Eating mayonnaise that has been sitting out for more than two hours puts you at risk of food poisoning. The most common symptoms are severe stomach cramps, nausea, vomiting, diarrhea, and fever, and depending on the type of bacteria, these symptoms can start anywhere from 30 minutes to 72 hours after eating.

One of the biggest risks is intoxication from bacteria like Staphylococcus aureus, which not only multiply in warm food but also produce toxic waste products as they grow. This toxin cannot be destroyed by heat. Even if you cooked the warm mayonnaise at a high temperature, the bacteria might die, but the toxin would remain, and you would still get sick. This is why throwing out temperature-abused food is the only safe option, and reheating is never a fix per Health Canada's food safety guidance.

Picnic table with potato salad and a clock showing more than two hours past the danger zone limit

What Would You Do? Three Real Scenarios

Tap each scenario to reveal what actually happens.

The Summer Picnic: potato salad sits out from 12:00 PM to 3:30 PM. Safe to eat?
No, stop them immediately. The potato salad is a hazardous food mixture because of the egg-based mayonnaise. It has been sitting in the Danger Zone for three and a half hours, well past the 2-hour limit, so it must be thrown in the garbage.
The Sandwich Shop: a squeeze bottle of garlic mayo gets swapped for a fresh cold one every 30 minutes during a 2-hour lunch rush. Safe?
Yes, this is the small batch and rotation method done correctly. Because the mayonnaise keeps rotating in and out of the cold fridge every 30 minutes, it never stays in the Danger Zone long enough to become unsafe.
The Midnight Snack: an open jar of mayonnaise sits on the counter overnight, 8:00 PM to 7:00 AM. Can you just put it back in the fridge?
Absolutely not. The mayonnaise has been exposed to oxygen and sitting at room temperature for 11 hours, well past the 2-hour rule. Putting it back in the fridge will not kill the bacteria that have already grown; since refrigeration only slows bacteria down, it does not kill them. The jar must be thrown out.

The short version

  1. Unopened mayonnaise is shelf-stable for up to 6 months because it contains no oxygen.
  2. Once opened, the 2-hour rule applies, and it stays safe in the fridge for 1 to 2 months after that.
  3. The danger zone is 4°C to 60°C, and bacteria double every 10 to 20 minutes inside it.
  4. Restaurants keep it safe with the small-batch method: swap for a cold one every 30 minutes or use an ice bath.
  5. Bacterial toxins, such as those from Staphylococcus aureus, are not destroyed by reheating.
  6. If mayonnaise has been out for more than 2 hours, throw it out. Chilling it again does not make it safe.

Learn the rules that keep customers safe

Get your Food Handler Certificate 100% online in as little as 6 hours. Registration takes 30 seconds.

Register Now

Food Safety Quiz: Test Your Knowledge

Pick an answer to see if you got it right, plus a quick explanation.

1. Why does an unopened jar of commercial mayonnaise sit safely on a grocery store shelf for months?

Commercially sealed jars have no oxygen inside. Once you open it, oxygen is introduced and bacteria can grow.

2. What is the Temperature Danger Zone where bacteria multiply the fastest?

Bacteria love warm room temperatures and grow rapidly between 4°C and 60°C.

3. Under Ontario food safety rules, what is the maximum time opened mayonnaise can sit out at room temperature?

Hazardous foods can only be left out for a maximum of 2 hours before they must be thrown away.

4. If mayonnaise is left in the Danger Zone, how quickly do the bacteria double their numbers?

Under warm conditions, bacteria divide and double their numbers every 10 to 20 minutes, which is why time control matters.

More food-by-food guides

Mayonnaise follows the same 2-hour rule as every hazardous food. See the full breakdown or check another food:

Frequently asked questions

How long does mayonnaise last once opened and refrigerated?

Once you open a jar and keep it refrigerated at 4°C or below, it stays safe for 1 to 2 months. This is different from the 2-hour rule, which applies only while it is sitting out at room temperature.

Can I put opened mayonnaise back in the fridge if I forgot it out overnight?

No. If it has been sitting out for more than 2 hours, including overnight, it must be thrown out. Refrigeration only slows bacteria; it does not kill bacteria that have already grown, so chilling it again does not make it safe.

Why is mayonnaise considered a hazardous food if it is mostly oil?

Because of the eggs. Eggs are high in moisture and protein, which meets the legal definition of a potentially hazardous food. Any mixture containing eggs, including mayonnaise, is treated the same way.

Does cooking or reheating mayonnaise that sat out too long make it safe again?

No. Some bacteria, such as Staphylococcus aureus, produce toxins as they grow, and heat does not destroy them. Even if the bacteria are killed by cooking, the toxin can remain and still make you sick.

Sources

Food Handler Certificate

★★★★★
4.8 / 1,711 reviews

100% online. Done in as little as 6 hours. Valid 5 years across Canada.

Register Now