Skip to main content
Zimt

Home baking recipes and cinnamon favourites

Can You Replace Eggs with Mayonnaise in a Cake?

Yes, you can replace eggs with mayonnaise in many cake recipes, but the substitution changes texture, moisture, and leavening, so you need to adjust the formula accordingly.

Background: Why the Idea Exists

Mayonnaise is essentially an emulsion of oil, egg yolk, vinegar or lemon juice, and seasonings. Because it already contains a high proportion of fat and a small amount of egg protein, home bakers have long wondered whether it can stand in for whole eggs in baked goods. The concept gained popularity during periods when eggs were scarce or expensive, such as wartime rationing or modern vegan trends, even though mayonnaise itself is not vegan.

In traditional cake chemistry, eggs serve three main purposes: they provide structure through coagulation, they trap air during creaming to aid leavening, and they add moisture and richness. Mayonnaise contributes moisture and fat, but it lacks the same protein content and the ability to trap air in the same way. Understanding these functional differences is key to deciding whether a mayonnaise swap will work for a particular cake style.

How It Works: The Science Behind the Swap

When a cake batter is heated, egg proteins denature and coagulate, forming a network that holds the crumb together. Mayonnaise, on the other hand, contains emulsified oil droplets surrounded by lecithin from the egg yolk. The lecithin can act as a mild emulsifier, helping to distribute fat evenly, but it does not create the same protein matrix.

Because mayonnaise is about 80 % oil, it dramatically increases the fat content of the batter. Higher fat can tenderize the crumb, making it softer and more moist, but it can also inhibit gluten development, which may result in a cake that is less springy and more crumbly if not balanced with other ingredients. The acidity from vinegar or lemon juice in mayonnaise can also affect the batter’s pH, slightly increasing the rate of leavening reactions with baking soda.

Choosing the Right Mayonnaise

Not all mayonnaise is created equal. Commercial mayonnaise typically contains soybean oil, egg yolk, water, vinegar, salt, and sometimes sugar or mustard. For baking, it is best to select a plain, unflavored variety without added herbs, garlic, or strong spices, as those flavors can dominate a sweet cake.

Homemade mayonnaise gives you more control: you can use a neutral oil (such as canola or grapeseed) and reduce the amount of added vinegar to keep the batter’s acidity in check. If you are avoiding dairy, ensure the mayonnaise is dairy‑free, as some specialty brands add butter or milk proteins.

How to Substitute: Ratios and Practical Steps

Because a large egg (≈50 g) contributes roughly 6 g of protein and 5 g of fat, a common rule of thumb is to replace each egg with ¼ cup (≈60 g) of mayonnaise. This ratio supplies a comparable amount of fat while providing a modest amount of egg yolk protein.

Follow these steps when using mayonnaise as an egg substitute:

  1. Measure the mayonnaise precisely; a kitchen scale gives the most consistent result.
  2. Reduce the added oil or butter in the recipe by about ¼ cup for each egg replaced, to prevent an overly greasy crumb.
  3. If the original recipe calls for an acidic ingredient (like buttermilk or yogurt), you may need to decrease it slightly because mayonnaise already contributes acidity.
  4. Increase the leavening agents modestly—about ¼ tsp extra baking powder per egg omitted—to compensate for the reduced aeration that eggs normally provide.
  5. Mix the mayonnaise with the sugar and butter (or oil) first, then proceed with the usual creaming or wet‑ingredient steps.

These adjustments help keep the cake light enough while preserving the moisture that mayonnaise introduces.

Common Problems and How to Fix Them

When you first try the swap, you may notice a denser crumb or a slightly greasy mouthfeel. This usually means the fat balance is off. To fix a dense cake, increase the amount of baking powder or add a teaspoon of whipped aquafaba (the liquid from canned chickpeas) to re‑introduce some trapped air.

Another frequent issue is a soggy bottom, especially in deep‑pan or tin cakes. The extra oil can cause the batter to spread more before setting. Using a metal or glass pan instead of a dark non‑stick pan, and chilling the batter for 15 minutes before baking, can help the cake hold its shape.

Comparison with Other Egg Replacements

Mayonnaise is just one of many egg substitutes. Common alternatives include:

  • Applesauce (¼ cup per egg): adds moisture but contributes a fruity flavor and less fat.
  • Yogurt or sour cream (¼ cup per egg): provides acidity and tenderness, similar to mayonnaise but with more protein.
  • Silken tofu (¼ cup blended per egg): neutral taste, high protein, but can make the crumb heavier.
  • Aquafaba (3 tbsp per egg white): excellent for leavening but lacks fat.

Compared with these, mayonnaise shines when you want a very moist, rich crumb and do not mind a slight buttery flavor. It falls short in cakes that rely heavily on the aeration power of egg whites, such as angel food or sponge cakes, where a protein‑rich substitute like aquafaba is preferable.

Cost and Shelf‑Life Considerations

Mayonnaise is inexpensive and widely available, usually costing less per ounce than specialty egg replacers. A standard 16‑oz jar can replace roughly 6–8 eggs, making it a cost‑effective choice for large batches of cake.

Unopened mayonnaise stores at room temperature; once opened, it should be kept refrigerated and used within 2–3 months, per label instructions. If you substitute mayonnaise, treat the baked cake as you would any cake containing eggs: cool it to room temperature, then store in an airtight container in the refrigerator for up to 4 days, or freeze for longer storage.

Safety and Storage: What to Watch For

Even though the mayonnaise is cooked into the cake, the original product may contain raw egg yolk, which some manufacturers pasteurize. To minimize any risk, choose a brand that specifies “pasteurized eggs” or use homemade mayonnaise made with pasteurized eggs. This is especially important for vulnerable populations such as pregnant people, young children, or immunocompromised individuals.

Follow standard food‑safety practices: do not leave batter containing mayonnaise at room temperature for more than two hours, and bake the cake to an internal temperature of at least 190 °F (88 °C) to ensure the egg proteins, if present, are fully coagulated. After baking, cool the cake promptly and refrigerate if not served within a short window.

Frequently Asked Questions

Can I use light or reduced‑fat mayonnaise?

Light mayonnaise contains less oil and more water, which reduces the fat contribution but also changes the texture. If you use a light version, increase the amount slightly (about ⅓ cup per egg) and compensate by adding a tablespoon of oil to retain moisture.

Will the cake still rise properly without eggs?

Mayonnaise alone does not provide the same leavening power as eggs. Boost the leavening agents (baking powder/soda) and, if possible, incorporate a small amount of whipped aquafaba to introduce air bubbles that help the cake rise.

Does the flavor of mayonnaise affect the cake?

Plain mayonnaise adds a subtle buttery and mildly tangy note, which is generally pleasant in vanilla, chocolate, or spice cakes. Flavored mayonnaise (e.g., garlic or herb) will impart those flavors and is best reserved for savory baked goods like cheese biscuits.

Is mayonnaise suitable for gluten‑free cakes?

Yes, mayonnaise does not contain gluten, so it can be used in gluten‑free batter. Just ensure the rest of the recipe uses gluten‑free flours and that the mayonnaise brand does not contain hidden gluten additives.

Can I substitute mayonnaise for just egg whites?

No. Mayonnaise contains yolk and oil, which are high in fat but low in the protein that egg whites provide. For recipes that rely on egg‑white structure (meringues, chiffon cakes), use aquafaba or whipped egg whites instead.

Will the cake be safe to eat if the mayonnaise contains raw eggs?

Most commercial mayonnaise is made with pasteurized eggs, making it safe for baking. If you are unsure, check the label or use a homemade version made with pasteurized eggs to eliminate any risk.

Read next