Buy a full case and the price per unit drops automaticallyRequest a sample
AccountCart0
All ContainersBottlesJarsCaps & ClosuresPumps & SprayersTubs & PailsJugsDroppersTinsTubesAccessoriesSeals & LinersCansBags & PouchesVialsLabels & DecorationBuckets & PailsDrumsBoxes & MailersBottling Tools
Industries
Learn

Is homemade mayonnaise or aioli safe, and how do I make it?

Updated

On this page9

Homemade mayonnaise and egg-based aioli carry real risk with raw eggs, and the sources agree on how to lower it: use pasteurized eggs, keep the sauce at 41°F or colder, and use it soon. Raw eggs can carry Salmonella even when the shell is clean and uncracked, and University of Minnesota Extension and FDA both advise pasteurized eggs for mayonnaise and similar sauces. Lemon juice or vinegar does not make raw egg safe at home. A garlic-and-oil aioli made without egg raises a different risk, garlic in oil. This page covers the egg question, a method from a named test kitchen, the two kinds of aioli, how cold to keep them, and what the word mayonnaise requires on a label.

Raw egg and Salmonella

University of Minnesota Extension (reviewed 2026) says that "all eggs have the risk of carrying Salmonella bacteria," that the bacteria can be inside eggs that are not cracked, and that eating raw eggs in "homemade Caesar salad dressing, Hollandaise sauce, mayonnaise" increases the risk of foodborne illness [1]. Its advice for dressings, sauces and mayonnaise is to use pasteurized eggs [1]. FDA's guidance for food service says to substitute pasteurized eggs or egg products for raw shell eggs in mayonnaise, hollandaise and Caesar salad [2].

Illness from Salmonella can be severe, "especially in older adults, young children, pregnant individuals," and people with other health conditions [1]. If you are making mayonnaise for any of them, pasteurized eggs are the only choice.

Why lemon juice does not fix raw egg

The lemon juice or vinegar in a mayonnaise is real acid, and commercial mayonnaise relies on acid. That is why the belief persists. The difference is measurement. Industry formulas are built to published thresholds for acid in the water phase and pH, checked in a lab, and SDSU Extension notes that "the current industry practice is to use pasteurized eggs" as well [3]. A homemade mayonnaise has an unmeasured amount of acid in an unmeasured water phase, and none of the agencies above makes an exception for it. Use pasteurized eggs, and treat the acid as flavor. The thresholds themselves are on how much acid makes a dressing safe.

Pasteurized eggs: what to buy

  • Pasteurized shell eggs "have been gently heated to a specific temperature" that does not cook them, and the carton says "pasteurized" [1].
  • Liquid and dried egg products "are always pasteurized" [1]. Liquid yolks work well in mayonnaise.

Gentle heat does not stop yolks from emulsifying. The test-kitchen method below heats its yolk mixture to 160 to 165°F before any oil goes in and still makes a stable mayonnaise [4].

A method from a named test kitchen

No extension recipe for homemade mayonnaise was found for this page. The proportions below are from America's Test Kitchen's mayonnaise, credited to its senior editor Lan Lam [4]; the full recipe, with its seasonings, is on the source. Use pasteurized yolks.

Part of the sauceAmerica's Test Kitchen proportion
Egg yolks to oil2 yolks to 1 1/2 cups oil
Liquid with the yolks3 tablespoons water and 4 teaspoons lemon juice
SeasoningSmall amounts of mustard, salt and sugar

The shape of the method [4]:

  1. Stir the yolks, water and lemon juice together until no streaks of yolk remain.
  2. Heat the mixture in the microwave to 160 to 165°F, stirring every 10 seconds. (ATK uses this step; SDSU's egg safety advice also uses 160°F as the temperature for cooking yolk mixtures for mayonnaise [5].)
  3. Whisk in the first 1/4 cup of the oil with the seasonings.
  4. Strain into a food processor. With the processor running, drizzle in the remaining 1 1/4 cups of oil in a thin stream over about 2 minutes.

Why the slow drizzle: oil has to be broken into tiny droplets and each one coated by the yolk's emulsifiers. ATK puts it simply: if the droplets "merge, the emulsion fails" [4]. A food processor or immersion blender makes that much easier than a whisk. If it breaks anyway, the rescue is on why dressings separate and mayonnaise breaks.

Aioli: two sauces with one name

Egg aioli (garlic mayonnaise)Garlic-and-oil aioli, no egg
What it isMayonnaise made with garlic, or garlic stirred into mayonnaiseGarlic pounded with salt while oil is worked in until it thickens
Main riskRaw eggFresh garlic held under oil
What to doPasteurized yolks or commercial mayonnaise as the base; keep at 41°FMake it to eat the same day; refrigerate leftovers and follow the garlic-in-oil limit
Where the full rule livesThis pageGarlic, herbs and botulism in oil

Fresh garlic is a low-acid food. Under oil, with no air, it is the setting in which Clostridium botulinum can grow, and Penn State advises against storing garlic, herbs or peppers in oil at home [6]. An egg aioli made with fresh garlic carries the same garlic, so give it at least the same care. The garlic-in-oil page holds the refrigerated limit and the outbreak record behind it.

Keeping mayonnaise and aioli

  • Temperature. Keep dressings, sauces and mayonnaise made with pasteurized eggs at 41°F or colder "during storage and use" [1]. FDA's cold-holding figure for egg-containing foods is the same, 41°F [2].
  • Time. No extension or agency source found gives a tested refrigerated keeping time for homemade mayonnaise or aioli. The book's keeping table records that and names what limits it: egg, unmeasured acid and, for aioli, fresh garlic. Make small batches you will finish quickly.
  • Freezing. Do not plan on it. Emulsions are "not normally frozen," because low temperatures destabilize them [7].
  • Serving. Keep it cold on the table and put out small amounts.

What the word mayonnaise requires

On a label, "mayonnaise" is a federal standard of identity: 21 CFR 169.140 requires "not less than 65 percent by weight of vegetable oil" and egg yolk-containing ingredients, among other conditions [8]. A garlic sauce, a vegan spread or a dressing that does not meet the standard takes another name. The full rule, and what the October 2026 salt substitutes rule changes, is on what you can call your sauce.

Every mayonnaise and egg aioli carries egg, a major food allergen. The full list of allergens by sauce is on which sauces carry which allergens.

When your mayonnaise splits

Oil added too fast, or ingredients that are too cold or too hot, will break an emulsion. How to tell which happened and how to bring it back with a fresh pasteurized yolk is on why dressings separate and mayonnaise breaks.

References

  1. University of Minnesota Extension, Purchase, store, and prepare: Eggs, reviewed 2026. https://extension.umn.edu/food-safety-basics/handling-eggs-prevent-salmonella
  2. U.S. Food and Drug Administration, Assuring the Safety of Eggs and Menu and Deli Items Made From Raw, Shell Eggs, content current as of March 7, 2022. https://www.fda.gov/food/training-resources/assuring-safety-eggs-and-menu-and-deli-items-made-raw-shell-eggs
  3. SDSU Extension, Curtis Braun, Making a Safe Salad Dressing, updated October 23, 2023. https://extension.sdstate.edu/making-safe-salad-dressing
  4. America's Test Kitchen, The Science of the World's Greatest Sauce: Mayonnaise, recipe by Lan Lam, undated (read November 19, 2026). https://www.americastestkitchen.com/articles/7391-how-to-make-mayonnaise
  5. SDSU Extension, Lavonne Meyer, Egg Safety with Holiday Foods, updated October 23, 2023. https://extension.sdstate.edu/egg-safety-holiday-foods
  6. Penn State Extension, Martha Zepp, Caution: Canning with Fats and Oils, updated May 13, 2024. https://extension.psu.edu/caution-canning-with-fats-and-oils
  7. Institute of Food Technologists, J. Peter Clark, Emulsions: When Oil and Water Do Mix, Food Technology, August 1, 2013. https://www.ift.org/food-technology-magazine/emulsions-when-oil-and-water-do-mix
  8. Electronic Code of Federal Regulations, 21 CFR Part 169 Subpart B, section 169.140 Mayonnaise, up to date as of October 22, 2026. https://www.ecfr.gov/current/title-21/chapter-I/subchapter-B/part-169/subpart-B