How long does mayonnaise last in the fridge?

Quick answer

In the fridge
Opened jar: up to 2 months (Germany's BLE: 6–8 weeks), never past the best-if-used-by date · Homemade with pasteurized eggs: 3–4 days (FoodKeeper's figure for homemade aioli); with raw eggs FSIS advises against it, and Germany's BLE gives such dishes 1 day at most · Potato salad: 3–5 days; egg or tuna salad: 3–4 days
In the pantry
Unopened shelf-stable jar: 3–6 months from purchase, within the best-if-used-by date · Opened: refrigerate · Salads and other dishes made with mayo, and homemade mayo: 2 hours out at most, 1 hour above 32°C (90°F)

Sources: USDA FoodKeeper, USDA FSIS: Shell Eggs from Farm to Table, USDA FSIS: Keeping Food Safe During an Emergency, USDA FSIS: Danger Zone 40°F - 140°F, USDA FSIS: Freezing and Food Safety, USDA FSIS: Molds on Food: Are They Dangerous?, USDA FSIS: Food Product Dating, USDA FSIS: Shelf-Stable Food Safety, North Dakota State University Extension: Is Food in My Kitchen a Safety Hazard? (FN492), BLE (Germany): Lebensmittellagerung im Haushalt, storage tables (in German) · Last reviewed November 1, 2026

Close-up of a hot dog: a sausage in a soft bun with mayonnaise piped over it in loops
Photo by engin akyurt on Unsplash

An opened jar of store-bought mayonnaise keeps up to 2 months in the fridge, and an unopened shelf-stable jar 3–6 months from purchase in the pantry, according to USDA FoodKeeper. Germany's Federal Office for Agriculture and Food (BLE) is a little stricter about the opened jar: 6–8 weeks. The opened-jar times shouldn't run past the best-if-used-by date on the jar, a date USDA FSIS describes as marking best flavor or quality, not safety. Once mayonnaise is mixed into a salad, the clock runs much faster: FoodKeeper gives egg or tuna salad 3–4 days and potato salad 3–5 days in the fridge.

How to store mayonnaise

Store-bought mayonnaise is, as North Dakota State University (NDSU) Extension puts it, a preservative to some degree: it's made with vinegar or lemon juice and salt, and the acid and salt slow bacterial growth. A sealed shelf-stable jar can wait in a cool, dry cupboard. Once it's open, the fridge at 4°C (40°F) or colder is the place for it; FoodKeeper notes that chilling helps sauces and condiments stay fresh for longer, and its only figure for an opened jar is a refrigerator time. The picture changes once mayonnaise is mixed into other food. NDSU explains that low-acid ingredients such as ham, eggs or potatoes can dilute the acid enough for microorganisms to grow.

  • Store unopened jars and squeeze bottles in a cool, dry cupboard, below 29°C (85°F), unless the label says to keep them refrigerated; USDA FSIS warns against keeping shelf-stable foods next to the stove or under the sink. Use up the oldest one first so none outlasts FoodKeeper's 3–6 months or its best-if-used-by date.
  • Refrigerate mayonnaise from the day the seal is broken, and mark that day on the lid. FoodKeeper's 2 months, or BLE's 6–8 weeks, count from then, and the date printed on the jar still comes first.
  • Dip in only with a clean spoon or knife, not the one you just used on the bread or in the tuna. BLE advises clean utensils for every opened pack so that microorganisms don't spread into it.
  • For a cookout or buffet, set out a small bowl with just the amount you'll need and keep the jar itself cold. Anything made with mayonnaise goes back in the fridge within 2 hours, or 1 hour above 32°C (90°F), the limits FSIS sets for food left out.
  • Making potato, egg or tuna salad? Chill the cooked ingredients before you stir in the mayonnaise, as NDSU advises, refrigerate the salad as soon as it's mixed, and finish it within FoodKeeper's 3–5 days, or 3–4 days for egg or tuna salad.

Signs it has gone bad

  • Any fuzzy spot or patch of color, whether on top of the mayonnaise, inside the lid or in the nozzle of a squeeze bottle, is mold. Throw out the whole jar without sniffing it: FSIS warns that sniffing mold can cause respiratory trouble, and mayonnaise isn't among the few foods its mold chart lets you trim or scrub.
  • A smell, taste or texture that's off compared with a freshly opened jar. FSIS says spoilage bacteria give food an off odor, flavor or texture, and that food showing these changes should not be eaten, whatever the date on the jar says. When in doubt, throw it out.
  • When you check or open a jar: cracks in the glass, a lid that is loose or bulging, or contents that spurt out as you unscrew it. FSIS's shelf-stable food guidance says not to use, or even taste, food from containers like these.
  • Egg, tuna, chicken or pasta salad made with mayonnaise that has been out of the fridge for over 2 hours: FSIS's power-outage chart says to discard these salads once they've been above 4°C (40°F) that long, and the same guidance warns that you can't rely on appearance or odor.

Frequently asked questions

How long does mayonnaise last once opened?

Up to 2 months in the fridge, says USDA FoodKeeper, while Germany's BLE gives opened mayonnaise and dressings 6–8 weeks. Count from the day you open the jar, and stop at the best-if-used-by date if it comes sooner.

Does mayonnaise need to be refrigerated?

A sealed shelf-stable jar doesn't, but an opened one belongs in the fridge. FoodKeeper explains that quality, not safety, is why labels on shelf-stable commercial mayonnaise say to refrigerate after opening; even so, FSIS says to throw out opened mayonnaise that has been above 10°C (50°F) for more than 8 hours, as can happen in a power outage. Salads and other dishes made with mayonnaise get 2 hours out of the fridge at most, 1 hour above 32°C (90°F).

Is mayonnaise still good after the best-if-used-by date?

A sealed, undamaged jar may still be fine. According to FSIS, food whose date passes while it's stored at home should stay safe and wholesome as long as it was handled properly, until it shows signs of spoilage. Open it, look for mold first, then check for an off smell, taste or texture; a jar opened before its date is used up by that date.

How long does homemade mayonnaise last?

USDA FSIS advises everyone against eating homemade mayonnaise made from egg ingredients that aren't thoroughly cooked, and says to use pasteurized eggs or egg products when a recipe calls for raw eggs. Made with pasteurized eggs, FoodKeeper's closest entry, homemade aioli (a garlic mayonnaise), gives 3–4 days in the refrigerator; for cold dishes made with raw eggs, Germany's BLE allows 1 day at most at 2–4°C (36–39°F), and either way it should never sit out longer than 2 hours. Infants, young children, older adults, pregnant women and people with weakened immune systems are particularly vulnerable to Salmonella from raw eggs, FSIS notes.

Can you freeze mayonnaise?

It's best not to. FSIS names mayonnaise among the foods that simply don't freeze well: ice crystals that form in the freezer break the emulsion as it thaws, so it separates and looks curdled. FoodKeeper doesn't recommend freezing egg, potato or tuna salad either.

Related foods