Egg-Free and Dairy-Free Chocolate Cake with Chocolate Frosting

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

5 from 4 votes
A decadent chocolate cake and creamy chocolate frosting, made without egg or dairy products.


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
  • 1/4 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 1/2 batch.



  • 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.


  • 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. 

Courtney Rich

I’m a self-taught baker, obsessed with cake.

I long ago ditched box mixes in pursuit of melt-in-your-mouth, to-die-for flavor combinations, fillings and textures. I believe cake must be decadent, life-changing and worthy of celebration! And I believe anyone should be able to bake that kind of cake – and I’m here to teach you just that!

Get my free cake decorating guide
Everything you need to know about decorating a cake like a pro!

You Might Also Like

Leave a Comment


  1. Anyway to make this with the cooked quinoa like you have in your gluten-free chocolate cupcakes?? My son is allergic to life. The only flours we have been able to test for sure are quinoa, corn, buckwheat, and almond flours!

  2. Hey, I noticed that the vanilla egg-and dairy-free cake uses cake flour and this chocolate egg-and dairy-free cake uses APF. I’m going to try baking them egg-free but use buttermilk but was simply wondering why the difference between the two 🙂

    1. I like the cake flour in the vanilla one to make it really light and fluffy, but I use AP in the chocolate one because it’s a richer, even more moist cake and needs a slightly heavier flour.

  3. Will it work if I used buttermilk instead of the coconut milk? I need egg-free cake for a party guest but my daughter doesn’t like coconut.

  4. Planning to make this cake with 3” deep Fat Daddio six inch pans. How should I adjust baking time and temp? Thanks!!

  5. I need dairy free but eggs are fine. If I use coconut milk and eggs, do I still need the vinegar (to make like a cake buttermilk)?

    1. Hey Crystal – did you make this cake just dairy free? Im wondering the same. Only need DF not egg free. If you did, would love to know how it turned out!

  6. 5 stars
    Hey Courtney! This is my go-to recipe for my vegan family. I was wondering if I could make this into a sheet pan cake? Would I just cook it for less time?

Load More Comments