Egg-Free and Dairy-Free Vanilla Cake

Mar 20

This egg-free and dairy-free vanilla cake is paired with a light and fluffy vanilla frosting and fresh strawberries.

It’s finally time! My egg free and dairy free cakes are ready for you!

After your positive reviews of my gluten-free vanilla cake, I decided it was time to tackle other common food allergies, like eggs and dairy. I just can’t stand the thought of you not eating good cake because of a few ingredients! So 12 rounds of cake making later, I think I’ve come up with some pretty fabulous egg-free and dairy-free vanilla and chocolate cakes. Yes, that’s right. Not one, but two egg-free and dairy-free cakes!

This was a major labor of love, but I can’t even begin to tell you how excited I am with how both cakes turned out. While each failed attempt was discouraging, I actually really enjoyed teaching myself the science behind creating a recipe without the typical dairy and eggs I’m used to. Plus, finally coming up with two recipes I love, was worth every failed attempt.


Before I got in the kitchen, I tried to do as much research as possible on what the best egg and dairy substitutes are. I read loads of articles, blogs, and recipes, trying to figure out what worked and didn’t work for other bakers. But there was really no way of knowing what I like best if I didn’t try it all for myself. So, I narrowed down the substitutes to just a handful – one that were rated highly by others, but also ones that I thought would be easiest for you to find in your home or at any ordinary grocery store.

Here were the key players in the game and a quick personal review of each, followed by more detail of how each substitute worked in my cake.

(I was originally going to make the cakes gluten-free too but decided it was a little too much to tackle all at once. I do love this brand of gluten-free flour, Cup4Cup, and use it in all my GF baking BUT just a heads up – it’s not dairy-free. Bob’s Red Mill Gluten Free 1 to 1 Baking Flour would be a good dairy-free and gluton-free option.)

Egg Substitutes
  • Bob’s Red Mill Egg Replacement: rated highly by others but I didn’t think it did a good job binding the ingredients together. My cake with this egg replacement crumbled easily.
  • Flaxseed Egg: (1 tablespoon golden flaxseed with 3 tablespoons water). Another egg replacement liked by many, including me. I think it did a good job binding the ingredients but I found out it’s not necessary in a cake. I think it will be useful to use in cookies and brownies though. Keep this one in mind for other egg-free baked goods for sure!
  • Chickpea Water: Yup, as gross as it sounds, some people like it for an egg replacement, but I could totally taste the flavor in my cake and in a meringue frosting I made with it. I don’t recommend it.
  • Vinegar: My winner! Forget the egg substitutes and just throw in a tablespoon of white distilled vinegar with a couple teaspoons of baking soda and you’ll get a cake that rises beautifully.
Dairy Substitutes
  • Earth Balance Butter: too much of this butter in a frosting was overly sweet, but just a little and it provided a great texture and flavor. This butter replacement works well in cookies too.
  • Hi-Ratio Shortening: for frostings, I prefer hi-ratio shortening because it contains emulsifiers which make the shortening smoother and creamier. This shortening is also more stable than regular shortening. In the frosting, I noticed shortening by itself was a little bland, but when combined with a little Earth Balance Butter, the flavors balanced each other well.
  • Almond Milk: I always have almond milk on-hand, so this is one of the easiest substitutions for me to make.
  • Canned Coconut Milk: I was worried about having a coconut flavor in my frosting or batter, but with the cocoa powder (for my chocolate cake), you don’t even notice it. The canned coconut milk (mixed well) is a great replacement for buttermilk, and also makes for a silky and rich chocolate buttercream (which I decided not to post, because it wasn’t stable enough for a layered cake, but man did it taste good!).

The Base of the Cake

For the base of my vanilla cake, I decided to use my classic yellow cake as a starting point. It’s not only one of my favorite cakes, but I think you’ll also be able to alter it a few ways to get some different flavors (i.e. sub 1/4 cup sugar for 1/4 cup strawberry Jell-O or add some cinnamon and a layer of brown sugar and cinnamon mixed together to recreate my Churro Cake).

My original recipe calls for butter, eggs and sour cream. When converting a cake to egg and/or dairy free, and losing those ingredients, some of the biggest hurdles to cross are making sure your cake rises and that it gets enough moisture – which will give it right flavor and texture – the most important elements of any cake, in my opinion. If I couldn’t achieve a flavor and texture that met my expectations for cake, it wouldn’t be worth sharing with you.

Rounds 1 – 5

Bob’s Red Mill Egg Replacement: Let’s start with the egg substitutes, since figuring this out was my biggest challenge. I had read great things about the Bob’s Red Mill Egg Replacement and decided to give that a try first. For round one of the vanilla cake, I used Earth Balance Vegan Butter to replace my regular butter, as well as the Bob’s Red Mill Egg Substitute and some dairy-free yogurt to replace the sour cream. The result of this attempt was a cake that didn’t rise and was too dense. It was also very fragile. I’m not sure the Bob’s Red Mill Egg Replacement did a good job at binding the ingredients.

Flaxseed Egg: I then went on to try the flaxseed egg (1 tablespoon flaxseed mixed with 3 tablespoons water) instead of the Bob’s Red Mill Egg Replacement. I also switched the non-dairy yogurt for almond milk. This second round produced a cake with flex of flaxseed, which I didn’t love to see in the cake, but also didn’t mind since the cake stuck together better. However, this cake sunk a little in the middle so it wasn’t a winner either.

Chickpea Water: For my third and fourth rounds, I stuck with the flaxseed egg and almond milk, but changed up my ratio of baking soda and baking powder. Neither round met my expectations. For my fifth round, I tried chickpea water as a substitute for the egg, but could totally taste the flavor of the chickpeas and threw it away without a second thought.

Rounds 6 – 8

Vinegar: Heading into my sixth round, I decided to add some vinegar mixed with baking soda to the recipe – similar to what you do with a red velvet cake. I mixed all the ingredients and then added the vinegar and baking soda mixture at the end. The batter tasted great, but the cake sank again! Ugh! I was so confused. I went back to my research and reread everything about vinegar. Several sources claimed it was a great way to get your cake to rise… and then it hit me… I needed to do it without the egg replacement.

So, for round seven, I still had the vegan butter, almond milk and then a full tablespoon of vinegar with a couple teaspoons of baking soda. I was eager to see how this one would turn out. I was certain it would be perfect. Nope. Sank again. I nearly gave up, especially when my little Avery told me I should. (Haha!) But there was no way I was going to quit at that point. I gave myself a break and tried to think through it all. What was I missing in this equation? And then it finally dawned on me. I had yet to try a version without the butter. What if the butter was weighing the cake down? It had plenty of moisture from the almond milk and oil, so what purpose was the butter serving?

In round eight, I made the recipe without the butter, increased the almond milk and oil a little, removed the baking powder and only used baking soda and threw in the vinegar again. The result? A tender and perfectly risen vanilla cake. Victory!


As for the frosting, I ended up with a blend of vegan butter and hi-ratio shortening. The texture glides onto the cake beautifully and the taste is sweet, but light and fluffy, so it doesn’t overpower the cake.

I’ll be posting my egg-free and dairy-free chocolate cake with chocolate frosting later this week. Both cakes and frostings work great together, so feel free to mix it up when you start baking.



Egg Free and Dairy Free Vanilla Cake

A tender egg-free and dairy-free vanilla cake with a light and fluffy vanilla frosting and fresh strawberries.



  • 3 1/2 cups (402.5 g) cake flour
  • 2 cups (400 g) granulated sugar
  • 2 teaspoons (8 g) baking soda
  • 1 teaspoon (5.6 g) salt
  • 2 cups (480 g) almond milk or other non-dairy milk at room temperature
  • 4 teaspoons (20.8 g) pure vanilla extract
  • 2/3 cup (145.3 g) canola oil
  • 2 tablespoons (28.75 g) white distilled vinegar


  • 1 cup (226 g) Earth Balance Vegan Butter slightly chilled
  • 1 cup (190 g) Hi-Ratio Shortening or Vegetable Shortening*
  • 5 1/2 cups (687.5 g) powdered sugar measured and then sifted
  • 1 teaspoon (4.2 g) vanilla extract
  • Pinch of salt
  • Garnish
  • Sliced fresh strawberries
  • *This buttercream recipe makes enough to fill and cover your cake. If you want to add additional piping, you’ll want to make an extra 1/2 batch.



  1. Preheat your oven to 350 degrees F. Spray three 8-inch or four 6-inch pans with non-stick spray, line the bottoms of each pan with parchment rounds, and spray again. Set aside.

  2. In a large liquid measuring bowl, combine the almond milk, vanilla, oil and vinegar. Set aside.
  3. In the bowl of a stand mixer fitted with the paddle attachment, combine the cake flour, sugar, baking soda, and salt. Stir to combine.
  4. With the mixer on low speed, add the wet ingredients to the dry ingredients. Stir just until incorporated. Scrape down the sides and bottom of the bowl and mix again on low for another 10 to 20 seconds. 
  5. Divide the batter evenly between the three pans (about 16 ounces of batter in each pan). Bake for 22 to 25 minutes, or until a toothpick inserted in the center of the cake comes out with just a few moist crumbs on it. 
  6. Let cool 10 minutes in the pans before inverting onto wire racks to cool completely. 

  7. If needed, level each cake layer with a cake leveler. To store the cake layers, wrap each cake layer in plastic wrap after it's completely cooled. The cake layers can be stored in the freezer for up to a week with two layers of plastic wrap. To store longer, wrap the layers in an additional layer of foil and place in a zip-lock bag. 


  1. In the bowl of a stand mixer fitted with the paddle attachment, combine the vegan butter and shortening. Beat on medium speed until light and fluffy, about 2 minutes.
  2. With the mixer on low speed, gradually add the sifted powdered sugar and then vanilla. Once the sugar and vanilla are incorporated, turn the mixer to medium-high and beat for an additional 3 to 5 minutes.
  3. To get rid of any air pockets, use a wooden spoon or spatula to stir the frosting by hand for a couple minutes. 


  1. Place the first cake layer bottom-side down, in the center of the cake board. Using an offset palette knife, spread about 3/4 cup frosting evenly across the cake layer. Layer with strawberries, if using.
  2. Place the second cake layer on top of the frosting. Frost the top of the second cake and add strawberries, if using.
  3. Place the third cake layer, top side down, on top of the frosting. 
  4. Crumb coat the entire cake with a thin layer of frosting and freeze for about 10 to 15 minutes to set.
  5. Once the crumb coat is set, continue to frost the cake with the remaining frosting.

Recipe Notes

*Hi-ratio shortening contains more emulsifiers than regular shortening, giving it a smoother and creamier texture than regular shortening. Hi-ratio shortening is also more stable than regular shortening.

101 thoughts on “Egg-Free and Dairy-Free Vanilla Cake

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Thank you so much for this recipe. I’m so excited to try it today! One question though, if I’m good with dairy, can I substitute regular milk for the almond milk in this recipe?

  2. I’m so excited to try this recipe! I haven’t yet had a successful white vegan cake. My daughter has food allergies and her bday is coming up, so I will have to test this out! Where can I find the hi-ratio shortening? Is it best priced on Amazon or can I find it in stores in Utah? Thank you for creating this recipe!

  3. Hi!

    This is fantastic and looks delicious. Thank you so much for your research, as a new mom, I appreciate any help or time saving techniques I can get. My 10 month old son is allergic to dairy, egg, peanuts and all tree nuts. I want to make him a smash cake for his birthday and was wondering what your thoughts are on making a few substitutions. Do you think it would work if we used soy milk, vanilla bean (instead of the extract because it contains alcohol, but would losing the liquid form make it less moist/fluffy) and then lastly, can we make it with less sugar? Maybe one cup?

    Thanks, -Naomi

    1. Hi Naomi! Yes, you can certainly make substitutions. I prefer coconut milk over soy milk for cakes, if he can do coconut. And yes, vanilla bean paste will work perfectly!

  4. Hi! thanks for the recipe. If making with dairy products do you recommend buttermilk? or just milk? also will adding sour cream add to the taste? (if so how much?) thanks!

  5. I recently found out I have a really bad egg allergy and my baby has a dairy allergy. It has been so hard! I was crying reading this it made me so happy! I am so grateful you put in the effort to make these recipes. I love making your cakes and am happy I can continue to do so! Thank you!

  6. Thank you for this recipe, I will definitely try it, we don’t have vegan butter in our normal shops here, can I have you recipe instead for the frosting that used the coconut milk for making the buttercream frosting please? I’ll be making a one layer cake only anyway so I think that recipe might work 🙂

    thanks heaps 🙂

    1. I don’t have a recipe for coconut buttercream unless you use the chocolate vegan buttercream. You could certainly whip coconut cream and add powdered sugar to it and make a whipped cream frosting.

  7. I would like to make a combo of the egg and dairy free vanilla cake with the egg and dairy free chocolate frosting for a church function. I need to drop it off on Sunday morning, but it won’t be served intil Monday night. Will the cake and frosting be okay or will it stiffen up too much because of the dairy free and egg replacement ingredients?

  8. Wow! This cake turned out so good! I am making a smash cake for a little guy with dietary restrictions and I’m so glad I was able to make him something he could eat! Thanks for all your hard work in getting this recipe right! I can’t stop eating the cake tops 🙂 thank you!!

  9. Hey Courtney,

    Loving your instagram feeds!

    I had a question with respect to vinegar for egg substitution. I have read that one tbsp + baking soda is a substitute for 1 egg. In your recipe, you have substituted for three eggs. So how does that work?

    ps: this is for the chocolate cake.. i was not able to post the comment on that page.

  10. ah I’ve tried two other egg &dairy free white cake recipes today from other sites and they were both disasters. after reading about all your attempts and experiments i had suuuuuch high hopes for this cake… but it sank so badly in the middle i wanted to cry when i pulled it out of the oven. the only thing i changed was that i used apple cider vinegar instead of white, but i cant believe that would have such a big effect!

    I’m sure it still tastes fine, so I’m going to try and make it work (after which I will probably not attempt this kind of recipe again for a very very long time haha)

    1. Actually, yes, the vinegar makes a difference, as does the baking soda… it needs to be fresh – nothing older than 6 months from the time you bought it. This cake is supposed to rise beautifully.

  11. Hi! This sounds great and I can’t wait to try it ! I’m wondering- if I want to make this cake but free and leave out the almond milk would rice or soy milk be a good substitute? Or coconut milk but don’t want too much of that coconut taste. ThNks !

  12. Hi! Thank you for sharing this recipe. I an eggless baker but dairy butter and milk are ok. How do you scoop/measure the cake flour? Do you scoop and level? Also, what is the texture of thid cake like? Thanks

  13. I do not have 8 inch cake pans. Can you bake this in two 9-inch pans (instead of the three 8-inch pans); or do you think it would be ok to increase the recipe by 25% to accommodate for the larger pans? Thanks for your help!

    1. Yes to both! you can certainly make my recipe, as is, in two 9-inch pans and increase the bake time by a few minutes, or add another quarter of the recipe and use three 9-inch pans.

  14. This recipe is game changing. I’ve tried it with tremendous success! Thank you so much for this incredible recipe and the thorough research you put into it.

  15. Great recipe! It does wonders for a house that doesn’t allow dairy or eggs! What shortening did you end up using in the last run of the recipe? I used vegetable shortening and think the frosting came out a bit thicker than yours looks.

  16. Hi Courtney,
    I would love to make this cake, but need measurements for 2 8 inch layers. Could you help? Also, is it possible to give a weight measurement for the cake flour?

  17. What an amazing recipe thank you!
    I am baking this for my god daughters birthday on this Saturday. How far in advance can this be made without having to freeze or refrigerate? Is two days ok? It will be stored in a sealed container.

  18. Have you tied this yet with gluten free flour? Have a friend whose child is gluten, dairy and eggg free.

      1. I have made your gluten free cakes with King Arthur Measure for Measure Gluten Free flour and they came out beautifully. I made this one substituting that flour for regular flour. The batter tasted fine – just a bit grainy. The cakes rose beautifully and a toothpick came out clean. When I took them out of the pan they were a bit sticky around the edges and it didn’t taste as good as the batter. Any thoughts of what went wrong? Or what to try? Thank you!

          1. I have celiac as well as a dairy allergy. I d love to try this with GF flour but cup4cup contains milk. Have you tried it with any other brand?

  19. Thank you for trying so many ways to make this dairy and egg free! The tips really help. My son is allergic to egg, dairy, and peanuts so I’m always trying to find ways to convert recipes for him. Really appreciate you taking the time to share and try so many products! Look forward to making this cake.

  20. Thank you, thank you, thank you!! I can’t wait to try this recipes. I do have to do gluten free as well, so we’ll see how it goes. 🙂

  21. I have made your gluten free cakes with King Arthur Measure for Measure Gluten Free flour and they came out beautifully. I made this one substituting that flour for regular flour. The batter tasted fine – just a bit grainy. The cakes rose beautifully and a toothpick came out clean. When I took them out of the pan they were a bit sticky around the edges and it didn’t taste as good as the batter. Any thoughts of what went wrong? Or what to try? Thank you!

  22. Ive recently got into the cake decorating game and have my nieces birthday coming up and need an egg free recipe which I was nervous about. Im excited to try this recipe though! Do you think it would also work for cup cakes?

  23. Would it be okay to freeze the cake? I want to make ahead of time and frost the day of an event. I usually do this when I’m baking but never with egg and dairy free.

    Thanks so much, I can’t wait to try this out 😊

  24. This cake recipe is so absolutely amazing. My daughter is allergic to both dairy and eggs and I have tried subbing ingredients in other recipes and they are always a major flop. I used coconut milk (she is also allergic to tree nuts so no almond milk) and added some coconut emulsion too. It is seriously so delicious and a perfect texture. Thank you for putting so much of your energy into creating this recipe. It is much appreciated. Can’t wait to try the chocolate!

  25. Hey! This looks lovely! Curious though, did you ever try it gluten free also by chance? My little one has allergies and I don’t do great with gluten so we’ve been searching high and low for a dairy, egg, gluten free cake for his first birthday. 🥴

  26. The dairy, egg, nut-free cake recipes I’ve tried always come out gummy or disastrous in some other way. Thank you for sharing your experiments — am excited to try this recipe. 🙂

  27. Hi Courtney,

    Thanks for this Ah-Mazing recipe. I had an order for eggfree cake vanilla cake n I could only think of this. The only change I made was swapped almond milk for regular milk and the cake turned out beautiful n yummy. It rose well n had a good taste n texture. Thank you once again.

  28. This cake turned out incredibly!! My daughter is allergic to dairy and eggs and her first birthday is coming up. I rarely bake but I wanted to endeavour to make something safe and yummy for her to be able to eat! Just did a trial run it was perfect! Definitely does not look as neat and pretty as yours, but will try smoothing it out like your buttercream smoothing tutorial suggests! Please keep more recipes like this coming!!
    Thank you!

  29. Thank you for this recipe! The texture and structure of the cake is perfect. My son is allergic to dairy and eggs and I have tried so many different vegan vanilla cakes before this one and didn’t like any of them. How could I get a stronger vanilla flavour? Or could I use different flavourings, Like almond or caramel?

  30. I tried this recipe a while ago and it was fantastic. Thank you so much. Can I use this for cupcakes as well?

  31. Thank you so much for this recipe. My son has milk and egg allergies and we have struggled to find something that works. This is now a staple in our home. Can it be turned I to a chocolate cake by adding cocoa? Just wondering…

  32. Hey Courtney! So if I want to only make egg-free cake (and not dairy free), do you think regular whole milk would work for this recipe? Thanks much!

  33. 5 stars
    Thank you for such a delicious, perfectly moist, wonderfully textured egg-free vanilla cake! I’ve tried a dozen other recipes and something was always off – either the taste or texture. This is definitely a keeper & so easy to make.

  34. Hi there! I just have to say that this recipe is the best! We are vegan and my kind neighbor discovered your recipe and made cupcakes for me for my daughter’s birthday. Huge hit! I would like to try making a cake myself now but I don’t have cake flour. Would any other flour work, like all purpose or bread flour? Again, thanks so much for figuring out how to make this awesome cake recipe!

  35. This recipe is wonderful! Our little 4-year-old grandson was SO excited to help me make it! He is allergic to milk and eggs ~ and usually has to bypass anyone’s birthday goodies or other holiday treats. And ~ it is delicious! Love the creamy icing, too. ❤️

  36. I am SO happy you’ve come up with these recipes!! I love baking and have always wanted to get better at cake decorating, but my son is allergic to milk, eggs, and all nuts. I hate making so many desserts and have the rest of the family chow down while my son sadly watches 🙁 You are an angel for doing this! I’ve looked around for hi-ratio shortening and I’m not finding it in my go-to stores. Does the label say “hi-ratio” or are there ingredients I need to be looking for on the label? What brand did you end up using?

  37. Was so excited to try this, but it sunk pretty dramatically at the center. Tried it twice in a row, using brand new baking soda, and being extra sure not to over mix the second time. Will try to reduce sugar in the next round.

  38. I’m so grateful for this recipe! Do you think I would have good results if I also made it gluten free by using a dairy free, gluten free flour?

  39. Do you think it possible to also make this cake gluten free by substituting the flour for a gluten free blend? I’ve got to make a dairy free, egg free, gluten free cake….🤣

  40. Thanks for sharing your amazing recipes!! Do you think I can take the stretch and make this gluten free with cup for cup as a substitute?

  41. Do you feel that it would be ok to make the jump, as mentioned, and use gluten free flour? I’m on the hunt for a vegan, gluten-free wedding cake recipe for a client. 😆

  42. 5 stars
    This recipe was delicious! The cake has a nice, soft texture, with a delicious flavor. The frosting was awesome! I used Earth Balance vegan butter which was salted so I omitted additional salt. The salted butter gave the frosting a super yummy flavor with good balance of sweet & salt. Thanks for another great recipe to help expand my cake options!

  43. Can regular whole milk be subbed for the almond milk if you’re just looking for an eggless cake?

  44. 5 stars
    Made this for my daughter’s first birthday and it was AMAZING! Could not tell it was egg and dairy free and it was absolutely delicious.