This post may contain affiliate links. Please read my disclosure policy.

This Gluten-Free Chocolate Layer Cake may just be the best chocolate cake we have ever eaten, gluten-free or not. It is super moist, with deep chocolate flavor, and truly easy to put together. The chocolate cake layers are dairy-free and paleo-friendly, and we can promise this gluten-free cake will be a hit for any occasion!

Gluten Free Chocolate CakeGluten-Free Chocolate Cake

We heard you! After we published the BEST Gluten-Free Layer Birthday Cake recipe a while back you’ve been asking us to make a chocolate version. We got to it right away and we are CRAZY HAPPY with the results. This truly is the best chocolate cake we’ve ever tasted! You won’t know it’s gluten-free (not that that matters around here) and it is so rich and moist!

Making this recipe wasn’t as easy as adding in chocolate to our vanilla layer cake. A chocolate cake is a whole different beast. We started with a base of almond and coconut flour, which we love. It lends itself to have just the right crumb and moisture level. And then we added in cocoa powder and adjusted the level of sweetener to balance the bitterness. We added some coffee in to boast the chocolate flavor, but feel free to swap it out with additional milk instead. It took us a few tries to get the right amount of fat, which we use avocado oil here, but once we did this cake was SO GOOD.

Gluten Free Chocolate Cake Recipe Slice

The cake layers themselves are dairy-free. We choose to frost it with a chocolate buttercream, but if you don’t tolerate dairy you can certainly use a dairy-free chocolate ganache made with coconut milk and dairy-free chocolate to frost your cake.

As we said above, this cake does have nuts. If you’re looking for a nut-free and school-safe cake recipe, go for the two in my cookbook or this July 4th Classic Cake!

Gluten Free Chocolate Cake Overhead

Tips Tools Needed to Frost a Cake Like a Pro

It’s not essential to frost the cake like we did. But if you want to give it a whirl, getting these tools make it easier to get an even and smooth cake!

Gluten Free Chocolate Cake

If you like this celebration dessert, check out these other recipes:

Watch the video:

Pin this recipe to save it for later!

Pin it!

The BEST Gluten-Free Chocolate Cake Recipe

4.94 from 16 votes
Servings 6 -10
Prep Time 10 minutes
Cook Time 25 minutes
Total Time 35 minutes


For Cake Layers:

  • 2-1/2 cups 240g almond flour
  • 3/4 cup 64g high-quality cocoa powder
  • 1/4 cup 24g coconut flour
  • 1-1/2 teaspoon baking powder
  • 1 teaspoon baking soda
  • 1/2 teaspoon fine sea salt
  • 4 eggs
  • 1-1/4 cup coconut sugar
  • 1/2 cup milk of choice
  • 1/4 cup coffee see note
  • 1/4 cup avocado oil
  • 1-1/2 teaspoon vanilla extract

For Chocolate Buttercream:

  • 4 sticks grass-fed butter softened
  • 1 1/2 cups cocoa powder sifted
  • 6 cups powdered sugar sifted
  • 2 teaspoons vanilla extract
  • 1/4 cup almond milk


For Cake Layers:

  • Pre-heat oven to 350ºF and grease 3 6" layer pans (we used avocado spray) and line with parchment paper that fits directly inside. Skipping this step could result in a cake that sticks to the pan. Set aside.
  • In a medium bowl add almond flour, cocoa, coconut flour, baking powder, baking soda, and sea salt.
  • In a large bowl whisk eggs. Add in coconut sugar, milk, coffee, avocado oil and vanilla extract. Whisk to combine.
  • Add dry ingredients into wet ingredients and whisk to combine completely.
  • Divide batter evenly between 3 cake pans and bake in pre-heated oven for 25  minutes, or until a toothpick inserted and removed is clean or any wet cake batter.
  • Let cake layers cool in the pan for 10 minutes before removing by running a thin knife or offset spatula around the side of the pan to loosen the cake and turning over pan on wire rack. Remove the parchment paper liner if still on the cake. Cool completely before frosting.

For Buttercream Frosting:

  • In the bowl of a stand mixer fitted with paddle attachment beat the butter until light and fluffy, 3-5 minutes.
  • Add the sugar and cocoa powder and mix on low speed until well blended. Increase the speed to medium and beat until fluffy, 1 to 2 minutes.
  • Add the vanilla and 1/4 cup of almond milk (or more if needed) and beat on medium speed until lightened in color.

To Assemble the Cake:

  • Once cake is cooled place first layer on serving plate and frost with a buttercream layer to prevent the cake from moving once assembled.
  • Add next layer of cake and repeat with layer of buttercream, smoothing over, and place last cake layer on top.
  • Place cake in refrigerator for at least 15 minutes, to let set up and to make frosting cake easier.
  • Once cake has chilled, add about half of frosting to the top of the cake and using an offset spatula frost cake starting with the top and moving excess down the sides of the cake and smoothing as going.
  • Decorate as desired with additional frosting, chocolate cups and sprinkles on the side.
  • Cake will keep 3-5 days in refrigerator.


You can omit the coffee and substitute in 1/4 cup almond milk or water. Coffee helps bring out the chocolate flavor, but is not essential.
We have a heavy hand when we frost our cakes. If you think you'll want less frosting, swap the recipe with  3 sticks of butter, 1 cup cocoa powder, 4 cups powdered sugar and follow the recipe as stated. If you do end up with leftover frosting, you can freeze it for later use.
Author: Lexi

You May Also Like

Secrets to Quick Dinners
Get my practical tips & advice for a healthier life dropped right into your inbox!
newsletter collage

Leave a Comment

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

Recipe Rating


  1. 4 stars
    Hey Lexi!

    I tried making this cake, and mine came out pretty fudgy but gritty. Other than that it was great! Do you have any recommendations on how I can fix that. No one else seems to be dealing with it. I tried to use a super fine almond flour, but still have it. I definitely would like to make it less gritty because other than that the cake is fantastic! Thanks! 🙂

  2. Lexi!
    I tried to print the recipes twice the quantity, but for 12 people but no change in grams, only in cups.
    I was seriously disappointed!
    Best regards!

  3. 5 stars
    Ok, I finally need to comment on this recipe, seeing as I’ve made it dozens of times at this point. It is amazing. Just the perfect texture and sweetness (not too sweet-leave that business to the frosting!). Make this, especially with the coffee for an added chocolate boost. Perfect recipe: thanks Lexi and team!

  4. 5 stars
    This cake is DELICIOUS! So yummy! The flavour and texture of the cake are so good and the icing is soooo smooth and tasty and not overly sweet. We haven’t even finished it and hubby is already asking for it to be a repeat recipe. Yum!

  5. Can I substitute another flour for the almond flour in the chocolate cake recipe because of nut allergies?

    1. We haven’t tried, so we can recommend any and promise the same results. If you do experiment, let us know how it goes!

  6. 5 stars
    This cake was hands down the best homemade cake I have made and the best part was that my family loved it and didn’t know it was gluten free!

  7. 5 stars
    Hi Lexi. I love this cake. I made it a few times last year for a friend. I want to make it again. But I was wondering about the coconut sugar and oil. In your reply to Chris Endicott I see you mentioned that the crumb is affected by the sugar as well. Have you made it with granulated sugar or brown sugar and what was the result? Also, I think the avocado oil is giving it a bit of an aftertaste. Have you tried it with vegetable, canola or grape seed oil? What was the result? Acceptable? Just coconut sugar and avocado oil gave it a slightly better texture? Thank you!

  8. 5 stars
    I made this cake and it was absolutely delish!! The frosting was exceptional and the cake was moist without being too heavy or oily tasting. I decided to go vegetarian a year ago and I used homemade cashew milk and earth balance vegan butter. I will definitely include this in my dessert rotation!!!!! Thank you!

  9. Wondering about baking in a different size pan. Maybe 13×9 sheet pan or 2 8’’ pans or
    10 ‘’ round for a single layer cake
    Going to make with golden monk fruit sweetener in the cake and powdered monk sweetener in frosting . On a low carb diet and this will be my birthday cake February 29th once every four years , so need a special cake to celebrate

    1. That IS a special occasion. You can bake this in a different pan but this cake is delicate because there is no gluten in it. We recommended the smaller cake pans because it was easier to handle the cake. If you made it as a sheet cake, it might be safer to frost it directly in the pan. A word of caution on using an alternative sweetener: it might not work. This recipe didn’t even work the same when I switched from coconut sugar to brown sugar. Sugar in a baking recipe works in many ways, not just sweetening. It effects the moisture, the crumb and the structure. Let us know how it goes if you do try. And happy early birthday! -Kelli

    1. Hi Rachek. What size cake pan where you using? I can assure you this recipe makes a 3 layer 6″ cake. I know–I’ve tested and made it roughly 11 times now. But happy to help you figure out what went wrong on your end. – Kelli

  10. 5 stars
    I made it for a birthday and it was amazing! both gluten-free and gluten eaters liked it! easy to make yet still phenomenal! even people who don’t usually like cake liked it! I used two 9 inch pans that were 1 1/2 inches deep and it turned out great!

  11. I have made this cake twice and WOW!! So good. I found though that my cakes sink a bit in the middle, especially after pricking them with the toothpick to see if they’re done – is this normal? and if not, what might I be doing wrong? Also, side note – I have 8 inch pans, so I’ve been making 2 layers out of this recipe, and making 2 batches to end up with 4 decent layers for a tallish cake. I bake them for about 30-35 minutes, would that be long enough?

  12. 5 stars
    I have made this cake twice. Once for my daughter that is GF and then my husband requested it for his birthday as well because he liked it so much! I made 1 1/2 of the recipe and poured it into three 9″: pans and it was a beautiful cake! I would love to make the 6″ version. Can you please tell me the height of your pans? Are they 2″ or 3″ – I don’t want to purchase the wrong ones. This cake is absolutely delicious by the way! Thank you so much for it!

    1. So glad you loved the recipe! Either 2″ or 3″ inch works here, so long as you are making 3 layers of them as instructed. If you were looking to make 2, you might need the 3″.