Dairy Free Chocolate Cake
This post contains affiliate links. Read the full disclosure here.
This is the BEST dairy free chocolate cake ever! It’s moist, fluffy, with rich chocolate flavor and a fudgy chocolate buttercream. It’s the perfect dairy free cake recipe that will keep you coming back for more!

Do you remember the cake from the movie Matilda? Arguably one of the best looking chocolate cakes ever. Well, this dairy free chocolate cake tastes how I imagine the cake from that movie tasted.
Decadent and rich and incredibly hard to stop eating! I’m not ashamed to admit I sometimes just sit in front of the entire cake and go at it with a fork (and no, I am not kidding!).
Seriously, this is the only chocolate cake recipe you’ll need. It’s a perfect go-to dairy free cake recipe for weddings, birthdays, holidays, or any other occasion!
You can decorate it however you like, and I promise no one will ever know it’s dairy free! If you’re a chocolate lover, you’ll also love this dairy free chocolate orange cake or this vegan Oreo cake!
Featured Reader Review
“Made this for a dairy free friend’s birthday. Turned out beautiful, delicious and decadent! Cake set well and frosting was easy to work with. People couldn’t believe it was dairy free. I used almond milk and a dairy free butter.”
Liz
Why This Dairy Free Chocolate Cake Works
- You can easily adapt this recipe to fit different pan sizes (instructions are further down in the post).
- This cake pairs perfectly with just about any type of frosting!
- The recipe uses oil instead of butter to create the ultimate light and fluffy texture.
- Did I mention how easy it is to make? Seriously – one bowl and no mixer required for the cake!
Ingredients Needed

- Dairy free milk: My preferred dairy free milk for making cakes and cupcakes is unsweetened soy milk, but you can use any dairy free milk you’d like!
- Hot water: hot water helps dissolve the cocoa powder and causes it to “bloom”, which basically means it brings out a ton of chocolate flavor! The water doesn’t have to be boiling, it can just be hot tap water.
- Oil: this cake uses canola oil instead of butter which is key to a fluffy, light crumb and makes the cake stay moist for days. You can also use sunflower oil or other neutral vegetable oil.
- Vegetable Shortening: I always use shortening in my buttercream recipes. It makes the buttercream more firm and easy to frost or pipe the cake with. You can replace this with dairy free butter but the buttercream may not hold it’s shape quite as well as it would with shortnening.
- Cocoa powder: I recommend using dutch processed cocoa powder and measuring it with a kitchen scale to ensure you don’t use too much. Over-measuring your cocoa powder (or flour) will lead to a dry cake.
- Flour: This recipe uses all-purpose flour, and the best way to achieve a perfect chocolate cake every time is to properly measure your flour using a kitchen scale. You can use white whole wheat flour as well but the cake will be a bit more dense than the all purpose flour version!

Step By Step Instructions
Note: Full ingredient measurements and instructions can be found in the recipe card at the bottom of this page.
Step One: Preheat the oven to 350°F. Prepare two 8 inch round cake pans. Spray the inside with cooking spray, then cut round pieces of parchment paper so that they fit in the bottom of each pan. Set aside.
Step Two: In a large bowl, whisk together flour, cocoa powder, sugar, salt, baking soda, and baking powder.

Step Three: Mix in the eggs, vanilla, and oil, then add the milk. Pour in the hot water and whisk until smooth.
Step Four: Divide the batter between the cake pans and bake for 20-26 minutes, or until a toothpick inserted in the middle of the cakes comes out clean.
Let the cakes cool in the pans then remove them from the pans upside down onto a cooling rack.
Step Five: Make the buttercream by mixing the butter and shortening together until smooth. Add in the cocoa powder, vanilla extract, powdered sugar, and salt.
Add milk to thin out the buttercream if needed. Place the buttercream in the fridge then assemble the cake once the cakes have cooled completely.

Expert Tips
- Number one tip: properly measure your flour! The cake texture will not be as light and fluffy and the cake could turn out dry if you over-measure your flour. I recommend a $10 kitchen scale to weigh your flour or fluff up the flour in the bag, scoop it into the measuring cup using a spoon, then level it off.
- Do not over-mix! This can lead to a dense cake texture. The cake batter only needs to be mixed until the dry ingredients are just incorporated.
- Check on the cakes early to make sure that they are not over-baked (over-baking will lead to dry cake).
- Don’t skip the parchment paper lining at the bottom of the pan! My cakes always used to stick to the pan or break when they came out until I started lining the bottom with parchment paper.
- Let the cakes cool for at least 20 minutes in the pan before trying to remove them. Run a butter knife around the outside of the cake before flipping it upside down onto the cooling rack.
- Adjust the amount of powdered sugar (confectioner’s sugar) or add milk to achieve the perfect buttercream consistency. If the buttercream seems to thin, add a bit more powdered sugar (1/4 cup at a time). If it seems too thick, add in dairy free milk, 1 tablespoon at a time until your desired consistency is reached.

Storage Instructions
The cake can be stored covered at room temperature for 3-4 days. I store mine in a cake carrier.
When possible, wait until close to the time you want to serve the cake to frost it.
To freeze the cake layers, let them cool completely, then tightly wrap them in plastic wrap, then aluminium foil. Freeze in ziploc bags for up to 3 months, then let them thaw at room temperature.
Leftover buttercream can be stored in an airtight container in the freezer for up to 2 months. Thaw it in the fridge then mix it up using a handheld or standing mixer before using it.
More Cake Recipes You’ll Love
If you make this recipe, let me know how it went in the comments below, I’d love to hear from you! You can also tag me on Instagram or Facebook so I can check it out!

Dairy Free Chocolate Cake
Ingredients
Dairy Free Chocolate Cake
- 1½ cups (187.5 g) all-purpose flour
- 1¼ cup (250 g) granulated sugar
- ½ tsp salt
- 1 ½ tsp baking soda
- ½ tsp baking powder
- ¾ cup (64.5 g) unsweetened cocoa powder
- 2 eggs
- 1 cup (225 ml) water, hot
- ½ cup (107.5 ml) canola oil (or sunflower oil)
- ½ cup (125 ml) dairy free milk of choice (I use unsweetened soy milk)
- 1 tsp vanilla extract
Dairy Free Chocolate Buttercream
- 1 cup (210) vegan butter
- ½ cup (125 g) vegetable shortening OR vegan butter, (SEE NOTES)
- 1 ¼ cup (107.5 g) cocoa powder
- 2¾-3 cup (330 g) icing sugar
- 1 tsp vanilla extract
- 1-2 tbsp dairy free milk of choice, (as needed)
Instructions
- Preheat the oven to 350°F and prepare two 8 inch round cake pans. Spray the inside with cooking spray, then cut round pieces of parchment paper so that they fit in the bottom of each pan (do not skip the parchment paper lining!)
- Whisk flour, cocoa powder, sugar, salt, baking powder, baking soda together in a large bowl.
- Add in the eggs, vanilla, oil, and milk. Pour in the hot water and mix until smooth.
- Divide the batter evenly between the two cake pans and bake on the middle rack of the oven for 20-26 minutes or until a toothpick inserted in the middle of the cakes comes out clean.
- Let the cakes cool in the pans for 20 minutes, then run a butter knife around the outside of the cake to loosen it from the pan and flip upside down onto a cooling rack to cool completely.
- Make the buttercream. In the bowl of a standing mixer or handheld mixer, beat vegan butter and vegetable shortening together until combined. Beat in the cocoa powder until smooth.
- Add in the vanilla extract, then add the icing sugar, 1/4 cup at a time until desired consistency is reached. If the buttercream is too thick, add in milk 1 tablespoon at a time to thin it out to the consistency you want. If it's too thin, add in more confectioner's sugar (powdered sugar) 1/4 cup at a time.
- Once the cakes have cooled completely, frost them and enjoy!
Notes
The calorie information provided for this recipe is an estimate. The accuracy of the calories listed is not guaranteed.


The batter seemed really thin but the cupcakes were moist and delicious.
I made only the cake and a different frosting – cake was so SO good. I chose to do some things slightly differently (same baking principles) and it paid off for me: replaced 1/4 cup of the cocoa with black cocoa to make it oreo-esque, used Bob’s 1:1 GF flour, and swapped 1/2 cup of the white sugar for brown sugar to add more moisture and flavor. For the nondairy milk I used Califia Organic Coconut Milk which I highly recommend as one of the fattier and creamier nondairy milks. Think I found my new go-to chocolate cake… thanks a bunch 🙂
Would using cake flour for this instead of the AP flour work?
I can’t recommend this as I’ve only tested it with all-purpose, but if you give it a try, let us know how it worked for you!
This recipe looks AMAZING; can’t wait to try! Per your note on cocoa powder, do you recommend using Dutch-processed cocoa powder for both the cake and the frosting?
Yes for both if you have it!
How would you make the frosting vanilla instead of chocolate, don’t can be colored? Omit the cocoa and replace with icing sugar? Planning to use this recipe for my baby’s Cookie Monster 1st birthday!
Hi Joy! I have a dairy free vanilla frosting recipe here that you could use with this!
I noticed the chocolate buttercream recipe has shortening but the vanilla one doesn’t. Will it hold the same?
I would like to color it (which cannot be done with chocolate like the previous commenter pointed out) but now I’m worried it won’t hold as well since there’s not shortening
Yes the vanilla buttercream should hold the same! I actually have another version of my dairy free chocolate buttercream recipe without shortening as well that I sometimes use for this recipe.
I have made this recipe around 6 times now and every time it is a hit. Comes together quickly and consistently. For my taste, I usually add instant coffee to the hot water and decrease the sugar by about 30 grams, and it is rich and delicious. I have also added warm spices like cinnamon, ginger, or garam masala to enhance the cocoa in the winter time. Works super well for cupcakes and mini cakes. Thank you for an easy and delicious recipe!
This recipe is magical–no one believed it was dairy-free! My daughter (a seasoned dark-chocoloholic) just found out she needs to be dairy-free and I made this for her birthday. No one at the party believed me when I said it was dairy-free, and all said it was completely delicious! I am amazed. Thank you for posting this recipe so I could give my daughter a cake she could enjoy without pain 🙂
So happy to hear everyone enjoyed this recipe! Thank you for your review Kristin!
Hi, can I use this recipe for cup cakes?
Yep! This cake recipe will make 20 cupcakes. Bake at the same temperature for around 12-15 minutes or until toothpick inserted in the middle comes out clean.
Made this for a dairy free friend’s birthday. Turned out beautiful, delicious and decadent! Cake set well and frosting was easy to work with.
People couldn’t believe it was dairy free. I used almond milk and a dairy free butter.
Thank you for your review Liz! So happy everyone enjoyed this cake!
Used this recipe for my wedding cake! SOOOO GOOD!
Congratulations!! Honored you chose my recipe for the big day 🩵
This turned out perfect for my son’s birthday! I used oatmilk and everyone loved it 😊
I’m so happy to hear that Brittany! Thanks for taking the time to leave a review!
This recipe was a big hit at my partner’s birthday party last year! I made it with oat milk then, and I’m making it again this year (by popular demand), but using almond milk this time. I like to use the vanilla flavoured (but unsweetened) plant milks for a little extra vanilla flavour. Last year I topped it with raspberries, and this year I’m adding coffee to the icing, which I think will give it a really nice depth of flavour!
Hi Lex! Love the idea of adding coffee to the icing! I appreciate your review 😍
Perfect birthday cake and easy-to-follow recipe. Described as “melt-in-your-mouth kind of fluffy” by one recipient.
Hi there! I’m so glad you enjoyed this! Thank you for your review 🫶
I made this recipe using Great Value gluten free flour with the exact gram measurement in the recipe. That’s the only change I made. It was absolutely the best chocolate cake recipe I’ve ever used, and I’m a professional cake decorator of 15 years. I will use this recipe for all my chocolate cake orders, allergen friendly needed or not. Excellent and delicious! Client confirmed in several texts, it was the best cake she’d ever had. Thank you for a great recipe!
So happy to hear this! Thank you so much for your kind review!
I made the frosting with only shortening and no vegan butter, it tastes so good!! It is creamy and smooth! I am a 19 year old experienced cake decorator and as I have tried many dairy free chocolate frosting recipes this is one of my new favorites!
Hi Kate! So happy to hear you enjoyed the frosting, thank you for your review!
This looks amazing! I want to try it this weekend for a friends birthday – they can’t have lactose so was thinking to just use lactose-free milk?
Also for the icing – is the shortening 100% necessary? Can I use a dairy-free butter in it’s place for the full quantity?
Lactose free milk is fine! The shortening can be replaced at 1:1 with dairy free butter. Enjoy!
Hello!
To use this recipe for cupcakes, how much would you fill the cupcake liners?
I would fill them up ⅔ of the way. Hope you enjoy!
Can I make the frosting using only vegetable shortening? Thx!
I wouldn’t recommend it honestly, since butter has a much better flavor than shortening. But it would work, yes.
Would this be considered soy free as well??
You’d have to check the labels individual ingredients that you are using for soy or traces of soy if this is a concern. For example, vegetable shortening may contain soy, and certain vegan butter is not soy free. You can use any type of dairy free milk (doesn’t have to be soy milk) and always read the labels of all your ingredients to make sure they are free from any allergens that you are avoiding.
The flavors were so amazing! But it crumbled so badly when I sliced it that it kind of ruined the presentation, any suggestions for slicing it so that it stays together? Thank you for the yummy dairy-free recipe.
Hi Lori! I’m so happy you loved the cake! It is a soft and tender crumb, but it shouldn’t crumble to that extent…next time you could try refrigerating or freezing it for a short while before slicing. If you haven’t already, also maybe make sure that the liquid and dry ingredients were measured correctly (in grams). Thanks for the review!
Gorgeous cake. I looked for a lovely dairy free chocolate cake for my nephew and this came up and I have to say none of us were disappointed. It was lovely.
I am so happy the cake was a hit Alison! Thank you for the review!