My new egg-free and dairy-free chocolate cake with chocolate frosting is as decadent and delicious as the real deal.
It’s time for one more allergy friendly cake! My new Egg-Free and Dairy-Free Chocolate Cake with Chocolate Frosting is just as rich and decadent as my regular chocolate cake and chocolate frosting. Had I not told you it doesn’t include any egg or dairy products, I don’t think you’d ever be able to tell. At least my kids couldn’t!
Chocolate Cake
For the base of this cake, I used my go-to chocolate cake recipe. I subbed canned coconut milk for the buttermilk, excluded the eggs and added white distilled vinegar – which, if you read my full post from my egg-free and dairy-free vanilla cake, you’ll know was the key to success in these cakes.
The cake turned out just as moist and rich as my regular chocolate cake.
Chocolate Frosting
For the frosting, I did the same combination of vegan butter and hi-ratio shortening as I did for my dairy free vanilla frosting. I also added some melted dark chocolate and a little cocoa powder with the powdered sugar. It’s a creamy, silky frosting but does tend to harden as it sits. If you find this to be the case, just add a little canned coconut milk and re-beat the frosting.
I noticed that the frosting worked best when applied to the cake right away – while it was still creamy.
Like most of my cakes, this one can be made in three 8-inch pans or four 6-inch pans. The baking time will stay the same for both size pans.
I also tested the chocolate frosting with my vanilla cake and the chocolate cake with vanilla frosting. Both combinations were total winners!
I can’t wait to hear what you think of both of my egg-free and dairy-free cakes and frosting. I hope they meet your expectations and wow your crowds!
Egg-Free and Dairy-Free Chocolate Cake and Chocolate Frosting
Ingredients
For the cake
- 2 cups minus 2 tablespoons (375 g) granulated sugar
- 1 3/4 cups plus 3 tablespoons (232.5 g) all-purpose flour
- 3/4 cup (88.5 g) unsweetened dark cocoa powder
- 2 teaspoons (8 g) baking soda
- 1/2 teaspoon (2 g) baking powder
- 1/2 teaspoon (2.8 g) kosher salt
- 1 cup (240 g) canned coconut milk mixed well
- 1 cup (236.6 g) hot water or hot coffee
- 1/2 cup (109 g) vegetable oil
- 1 tablespoon (14.4 g) white distilled vinegar
- 1 teaspoon (4.2 g) pure vanilla extract
For the frosting
- 12 oz. Enjoy Life or other dairy free chocolate chips melted
- 1/4 cup (37.5 g) unsweetened dark cocoa powder
- 4 1/2 cups (562.5 g) powdered sugar
- 1 cup (226 g) Earth Balance Vegan Butter or other non-dairy butter
- 1 cup (190 g) Hi-ratio shortening
- 1 teaspoon (4.2 g) pure vanilla extract
- 1/2 teaspoon (2.8 g) kosher salt
- ¼ to 1/2 cup (60-120 g) canned coconut milk mixed
- *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 ½ batch.
Instructions
FOR THE CAKE
- Preheat your oven to 350 degrees. Spray three 8-inch or four 6-inch pans with non-stick baking spray, line the bottoms with parchment paper and spray again. Set aside.
- In a medium-sized bowl, combine the coconut milk, water, oil, vinegar and vanilla. Set aside.
- In the bowl of a stand mixer fitted with the paddle attachment, combine all the dry ingredients. Stir for about 10 seconds to mix the ingredients together.
- With the mixer on low speed, add the coconut milk mixture. Mix until just combined. Stop the mixer and scrape down the sides and bottom of the bowl. Mix again for about 10 seconds.
- Evenly distribute the batter between the four 6-inch pans or three 8-inch pans. Bake for 25 to 27 minutes, or until a toothpick inserted in the center of the cake comes out with just a few moist crumbs on it.
- Cool in the pans for 10 minutes before inverting onto wire racks to cool completely. Once cooled completely, carefully wrap each layer in plastic wrap and freeze for at least an hour before you start to assemble the cake. Can be frozen in plastic wrap for up to a week. If you freeze the cake longer than a week, wrap in foil as well and place in a zip lock bag.
FOR THE FROSTING
- Sift the powdered sugar and cocoa powder. Set aside.
- In the bowl of a stand mixer fitted with the paddle attachment, combine the butter and shortening. Beat on medium until well blended.
- With the mixer on low, gradually add the melted chocolate. Mixture will be thin. Turn the mixer off and scrape down the sides and bottom of the bowl. Mix again for about 10 seconds.
- Keep the mixer on low and gradually add the powdered sugar, followed by the salt and vanilla. Turn the mixer to medium and beat the frosting for a couple of minutes. The frosting should be creamy. If it’s a little stiff, add a couple tablespoons of coconut milk.
- If you don’t use the frosting right away, it will thicken as it sits. To get it back to a creamy and spreadable consistency, re-beat the frosting and add more coconut milk.
Yay! First review – the cake turned out delicious! I was initially a little skeptical about the coconut milk as I could smell and taste it in the batter, but it helps add a richness to the cake. Yum. I’ll definitely be making this one again 😊
I’m so glad you liked it!
Courtney this cake is fantastic! I have tried so many different recipes and failed. It’s so easy and delish. I used 9inch tins and made two layers and it still turned out good. This will definitely go into my recipe book. Thank you!!
Yay! I’m so glad you liked it.
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?
Hello! Just wondering how long the chocolate frosting could stay good in the fridge for?? THANKS!!
If it’s covered well, I’d say about a week.
Hi Courtney!
First of all, let me tell you that I loved your vanilla cake and turned out perfect.
This time I tried making the chocolate cake and it sank considerably in the middle, and looked very wet so had to leave the cake in the oven for an extra 12 minutes. So I wanted to make sure with you if the ratios of the ingredients are accurate. I noticed that the amount of flour and vinegar is a much lesser proportion than the vanilla cake. I also used hot coffee on the batter.
I want to try and do it again tomorrow so I just wanted to double check with you if I need to change something in my process.
Thank you so much,
Oh no. I’m sorry to hear that. Obviously it shouldn’t sink, but that happens when we over mix the batter or the baking powder or baking soda are old. You could also try removing about 1/4 cup sugar to help it rise better too.
I am SO grateful for you and your sharing of your recipes. I have lived by your recipes for other cakes as they are always delicious and my go-to. I was recently asked to create a vegan cake for someone. After FOUR attempts at trying “worlds best vegan chocolate cakes” listed online ( and about crying after each one), I thought wait, I need to check Courtney’s site, and sure enough you saved the day. Your egg free dairy free chocolate cake is phenomenal and by far the best I have tried! Others were just “off” a tad on the “chewy” side etc. Thank you thank you thank you! You saved the day! (once again)
My pleasure! I’m so glad you liked it!!!
So to add another allergy into the mix, any chance you think this would work with cup for cup due to gluten allergy?
Yes for sure. I love the brand Cup4Cup as a sub
I absolutely love this chocolate cake I accidentally added 1 can of coconut milk instead of 1 cup and I think it was a delicious accident! I’m not actually vegan. I have family members that are and I just use this as my chocolate cake for any cakes that I make because I love it so much! I personally prefer more coconut milk than 1 cup so I usually use about 3/4 of the can! I have not tried the frosting yet so I can’t give my opinion on that but this chocolate cake recipe is a winner in my book!
Hi Courtney! I am so excited to try this for my son’s 3 bday tonight! I bought the enjoy life chocolate chips in both semi-sweet and dark, which one would you recommend? Thank you!
Either one is great!
Also, one last question, I have four 7 inch pans. Should I try to squeeze it all in 3 or 4 of the pans? Thanks, -Naomi
3 and bake at 325 degrees.
Can I substitute coconut milk with oat or rice milk due to coconut allergy… thanks
Sure!
One more question… can this recipe be used for cupcakes too?
Yes!
I tried both your vanilla and chocolate eggless, dairy-free recipes but substituted coconut milk with oat milk… they came out wonderful. I also modified your vanilla eggless, dairy free recipe and made strawberry cupcakes with real strawberries by reducing the strawberries and adding them at the end after mixing wet and dry ingredients… (I did reduce little bit of milk to account for the added reduced strawberries) …. of the three I liked strawberry cupcakes the as flavor was refreshing with the fresh strawberries… I hope this helps someone… thanks for your wonderful recipes
This might be a no-brainer, but I’m a novice baker, so I’ll ask anyway!
I only have two 6-inch cake pans. Can I cut the recipe in half and just have a cake that’s not as tall?
TIA!
Yes you can!
Good morning ☺️ Would love to use this for cupcakes will it work well? ☺️
Yes! Bake at 325 and keep your eye on them!
Hi,
I absolutely love this cake. I have made it multiple times, and I was just wondering what brand of shortening do you recommend for this frosting?
Thank you!!
Chana
Crisco
Hello! I have a quick question. I am about to make this cake for an egg-free friend, but wondered if I should still use the coconut milk instead of buttermilk? They are completely fine with dairy, so should I use buttermilk for the best tasting result? Thank you so much!!
You can use buttermilk.
Can I substitute this for the chocolate cake in your chocolate blackberry cake? My brother wants that cake but he’s vegan. I’ve figured out how to do the frosting for it, but I’d like to try this cake with it!
Of course!
Thank you for coming up with these recipes! My grandson is on a very limited diet right now & I need to make this also using gluten-free flour.
How would I do this as a sheet cake instead of layer cake? For decorating I need a larger area than a layer cake would give. I noticed you suggested a lower temperature for someone using larger layer pans. Just wondering what temp and time I should use for a 9×13 pan
Bake at 325 and it will take longer. So keep an eye on it!
How long should we remove the cake from the fridge before serving ?
A couple hours.
I had a couple questions. I wanna make this cake for my nephew with a dairy allergy, but he’s fine with eggs. How would I still incorporate eggs into this cake? Or would it be better to stick to the eggless recipe?
Second, I can’t find “hi-ratio” shortening, but just plain old crisco. Is that fine to use? Thanks Courtney, I’m obsessed with your cakes!
Just make my regular chocolate cake if he can have eggs! https://cakebycourtney.com/the-ultimate-chocolate-cake/#wprm-recipe-container-476
Hi! Also a dairy-free baker here. Your regular recipe has buttermilk, right? Can we use your regular recipe + the buttermilk substitution? Thank you!!
I haven’t tried the sub for all my recipes, just for my dairy free chocolate and vanilla cakes.
Hi Courtney! (First, major fan of everything you do and bake!!!). I am baking the cakes now (Friday) for a Sunday event, and was wondering if I could frost and freeze, or wait to frost until the day of. I typically follow your amazing tips for baking and freezing ahead of time, but wasn’t sure if those tips could be applied to this cake. (You made mention of this frosting working best when used right away, so I wasn’t sure if the vegan butter would not freeze well.).
Made it, froze it, and loved it! Tasted just as amazing as one with dairy and eggs.