Coconut Flour Chocolate Cake

Jump to Recipe ▼
Reader Rating
Total Time 45 minutes
Servings 8

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

This Coconut Flour Chocolate Cake is the best gluten free birthday cake (although you don’t need to use a special occasion as an excuse to treat yourself to a slice)! It’s moist, fudgy, made with simple ingredients, and decorated with a homemade chocolate buttercream. 

round chocolate cake on a plate topped with chocolate frosting and chocolate sprinkles

Why you’ll love this gluten free chocolate cake:

  • There’s nothing dry about this gluten free cake. It’s super dense, chocolatey, fudgy, and delicious.
  • Quick and easy! It’s a bakery-quality chocolate cake recipe that’s ready in 30 minutes. 
  • Grain free, nut free, gluten free, and refined sugar free. It’s (almost) free of most allergens!

If you’re looking for a moist and fudgy gluten free birthday cake, look no further than this Coconut Flour Chocolate Cake. Not only is it just as easy and special as my almond flour chocolate cake, but it’s a chocolate lover’s dream come true! Each slice is dense, decadent, and quite frankly, the BEST.

Coconut flour is a staple in my kitchen. I’m always using it to make gluten free and grain free baked goods, like coconut flour cookies and coconut flour banana muffins. I love it because it’s low carb, high in fiber, and a great nut-free flour option.

If you’re new to baking cakes with coconut flour, add eggs to your grocery list because it’s a VERY absorbent flour. Even though you need less coconut flour than you would regular flour, you make up for it by needing half a dozen eggs. That may seem like a lot for one cake layer, but coconut flour cakes need A LOT of moisture.

a slice of chocolate cake on a small plate

Ingredient notes:

  • Coconut flour – It wouldn’t be a coconut flour chocolate cake recipe without the coconut flour, which means there’s no substituting it. You might need to sift your coconut flour if it clumps up in the packaging.
  • Milk – I used soy milk, but you can use any kind of dairy free milk.
  • Eggs – Eggs are vital to making a moist coconut flour cake. For the best results, use room temperature eggs. 
  • Maple syrup – I love the natural sweetness maple syrup provides without needing refined sugar. No substitutions here.
  • Coconut oil – Your coconut oil needs to be melted and cooled off before making the cake batter. You can use refined or unrefined coconut oil here (unrefined coconut oil has a more robust coconut flavor).
  • Vanilla extract – For depth and flavor. The better quality the vanilla, the better the cake will taste. 
  • Cocoa powder – This is where all of the chocolatey goodness comes in. If you’re a dark chocolate lover, use dark chocolate cocoa powder. 
  • Baking soda – Without it, your cake will fall flat. The goal is a plump, fudgy cake. 
  • Chocolate buttercream frosting – You’ll need softened butter, milk, vanilla, powdered sugar, and cocoa powder to make the chocolate frosting. I used soy milk, but you can use any plant based or regular milk here.
Want to save this recipe?
Just enter your email and get it sent to your inbox! Plus you’ll get great new recipes from us every week!

Step-by-step instructions

Step 1: Whisk wet ingredients. Whisk the eggs, almond milk, maple syrup, coconut oil, and vanilla in a large mixing bowl. 

Step 2: Mix dry ingredients. Stir the coconut flour, cocoa powder, baking soda, and salt together in a separate bowl. 

Step 3: Combine mixtures. Add the dry mixture to the wet mix and GENTLY stir to combine. 

chocolate cake batter in a large mixing bowl

Step 4: Bake and cool. Pour the batter into a parchment paper-lined cake pan and bake. Let the cake rest before turning it onto a cooling rack to finish cooling before icing.

baked chocolate cake in a round cake pan

Step 5: Make the icing. First, whisk the butter, milk, and vanilla together. Then add the sugar and cocoa, and whisk until smooth. 

Step 6: Ice cake. Once the cake is cool, place a large dollop of icing on top and ice your cake. Slice and enjoy!

Erin’s tips and tricks

  • It’s so important that you line your cake pan with parchment paper before adding the batter. Without it and the cake will stick to the bottom. If you want to go a step further, you can grease the sides of the pan with butter or coconut oil.
  • Coconut flour needs to be measured precisely because it’s so absorbent. Too much or too little can ruin the cake. 
  • To make this a layer cake, simply double the cake and frosting recipes and bake the cake batter in two 8” round cake pans.

My Pro Tip

Recipe Tip

Don’t over-mix the batter. To keep your cake soft and tender, stir and whisk everything by hand. You run the risk of over-mixing if you use an electric mixer. Only mix until the flour is just combined (it’s ok if the batter is a little lumpy).

Variations

Vegan – I’ve never tested this recipe without eggs, but feel free to try a vegan egg replacement or flax eggs. Use your favorite plant based butter and dairy free milk to make vegan buttercream frosting

Paleo – Use paleo-friendly milk (like almond milk) in the cake and swap the buttercream frosting for your favorite paleo frosting. 

Keto – Replacing the maple syrup with a keto-friendly sweetener, like erythritol syrup, will significantly slash the carb count. 

Coconut Flour Cake FAQs

Can you use almond flour instead of coconut flour?

No. Coconut flour is significantly more delicate and absorbent than almond flour. If you use almond flour, you’ll need to change the amount. Check out my almond flour chocolate cake if you’d rather use almond flour. 

What size can pan should I use?

This recipe was tested using 8” round cake pans. You should be able to use 6” or 9” pans instead. Just keep an eye on the oven as the baking times may differ slightly. 

a slice of chocolate cake on a plate with a bite taken out of it

Storage

  • Room temperature: Coconut flour chocolate cake can be kept at room temperature for 1 to 2 days
  • Refrigerator: Store the coconut flour cake in an airtight container in the refrigerator for up to 1 week. 
  • Freezer: Wrap the baked, unfrosted cake (whole or individual slices) in a couple of layers of plastic wrap and freeze for up to 3 months. Make sure to thaw the cake completely before adding the icing.

More coconut flour baked goods

If you made this recipe, be sure to leave a comment and star rating below. Thanks!

5 from 7 votes

Coconut Flour Chocolate Cake

Servings: 8
Prep: 15 minutes
Cook: 30 minutes
Total: 45 minutes
This Coconut Flour Chocolate Cake is the best gluten free birthday cake (although you don’t need to use a special occasion as an excuse to treat yourself to a slice)! It’s moist, fudgy, made with simple ingredients, and decorated with a homemade chocolate buttercream. 

Video

Save this recipe?
Get this sent to your inbox, plus get new recipes from us every week!

Ingredients 

  • 5 eggs
  • 3/4 cup soy milk, or milk of choice
  • 1/2 cup maple syrup
  • 1/3 cup coconut oil, melted and cooled to room temperature
  • 2 tsp vanilla
  • 3/4 cup coconut flour
  • 2/3 cup cocoa powder
  • 1/2 tsp baking soda
  • 1/2 tsp salt

for the frosting:

  • 2 tbsp butter, softened
  • 1 tbsp soy milk, or more as needed; can use any kind of milk
  • 1/4 tsp vanilla
  • 1 1/4 cup powdered sugar
  • 2 tbsp cocoa powder

Instructions 

  • Preheat oven to 350° and line one 8" or 9" round cake pan with parchment paper; set aside.
  • In a large mixing bowl, whisk the eggs, milk, maple syrup, coconut oil, and vanilla together.
  • In a separate bowl, stir the coconut flour, cocoa powder, baking soda, and salt together. Then, pour the dry ingredients into the wet and GENTLY stir to combine — only stir until the flour is just incorporated (it's ok if the batter is a little lumpy) — over-mixing will cause the cake to be too dense.
  • Pour the batter into the prepared cake pan, place it into the oven and bake the cake for 30-34 minutes, or until a toothpick comes out clean. Leave the cake in the pan for 10 minutes, then carefully invert it onto a cooling rack. Allow the cake to cool before icing it.
  • For the frosting: with a stand or hand mixer, whisk the butter, milk and vanilla together, then add the powdered sugar and cocoa powder and continue mixing until it's smooth. Place a large dollop of icing on top of the cake, then use an offset knife or the back of a spoon to smooth it out. Slice and enjoy!

Notes

*Calories are per slice and are an estimation
*Storage:
  • Room temperature: Coconut flour chocolate cake can be kept at room temperature for 1 to 2 days
  • Refrigerator: Store the coconut flour cake in an airtight container in the refrigerator for up to 1 week.
  • Freezer: Wrap the baked, unfrosted cake (whole or individual slices) in a couple of layers of plastic wrap and freeze for up to 3 months. Make sure to thaw the cake completely before adding the icing.

Nutrition

Calories: 351kcal | Carbohydrates: 45g | Protein: 7g | Fat: 18g | Saturated Fat: 13g | Polyunsaturated Fat: 1g | Monounsaturated Fat: 3g | Trans Fat: 1g | Cholesterol: 110mg | Sodium: 318mg | Potassium: 248mg | Fiber: 7g | Sugar: 32g | Vitamin A: 330IU | Vitamin C: 2mg | Calcium: 83mg | Iron: 2mg
Did you make this?Leave a comment and star rating below!
A fresh lentil salad topped with fried halloumi, roasted tomatoes and zucchini | thealmondeater.com
Get new recipes sent to your inbox!
Subscribe to get new recipes first!
girl standing in kitchen

Welcome! I’m Erin, author of the Almond Eater.

Here, you'll find recipes for all diet types, because I believe that healthy food should be delicious without being complicated.

Similar Recipes

5 from 7 votes (3 ratings without comment)

Leave a comment

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

Recipe Rating




23 Comments

  1. Natalia says:

    Hi Erin, could I freeze the layers?

    1. Erin Alvarez says:

      You should be able to!

  2. sloane says:

    just made this! it’s pretty good for a flourless cake, but i think it’s not nearly sweet enough (it’s actually kinda bitter) without frosting

    1. Erin Alvarez says:

      I definitely recommend frosting for all coconut flour-based recipes 🙂 It helps!

  3. September says:

    Hey Erin,

    I tried making this cake but it came out more like a brick and the texture was pretty bad. Obviously I did something wrong. Could you help me figure out what I need to change? I measured things out by weight. Also on your site it has things like coconut flour and cocoa powder measured in ml. Shouldn’t those things be measured in grams? Thanks! 🙂

  4. Sara says:

    Made this for my son today. Did white a few modifications but my son was so happy to eat it . Because I was experimenting I halved the recipe and made them into cupcakes. Used half the amount of maple syrup and the other half mashed banana but a good amount of banana, . It probably could have been a little more moist so next time I’ll do a little more coconut oil ..
    For the frosting I didn’t use powdered sugar . I did not half this .. I added a little extra butter and some mild goat chz I made kinda like cream chz. Then I added a scoop of collagen powder and a scoop of complete milk protein powder , a little maple syrup and like 1/3 the amount of cacao powder . .. and then my son requested fresh strawberries on top.. I wish I could share the time lapse I took of him eating it .. chocolate cake for the win ! Thank you 😊

    1. Erin says:

      I’m glad the cake worked with the modifications and that it was a hit!

  5. sky ... says:

    hello i wanted to know if i can substitute the maple syrup for coconut sugar and if i can should i use the same amount?

    1. Erin says:

      I haven’t tried it myself, and baking with coconut flour is a little finicky. If you want to give it a try, go ahead and do a 1:1 substitute.

      1. sky ... says:

        thank you

  6. Brachah says:

    Frosting:
    Is there a replacement for the butter?
    And for the powdered sugar?

    1. Erin says:

      Instead of butter, you could use softened coconut oil, but I don’t have a great substitution for powdered sugar.

      1. Notnormallypaleo says:

        You usually can made a syrup using 10 second bursts in the microwave, with a small amount of water and the equivalent amount of sugar just stir it like crazy. just reduce the amount of “milk” you add by the water added

  7. Frances says:

    5 stars
    This was the best grain-free chocolate cake I have found, and I’ve tried a few! Thank you!

    1. Erin says:

      Wow, thank you so much! I’m glad you enjoyed the cake 🙂

  8. Denise says:

    5 stars
    Erin,
    Thank you so much for this coconut flourless chocolate cake recipe! Because of your added tip of not over mixing, it turned out perfectly! I will be using this recipe a lot. It is so kind of you to share.

    1. Erin says:

      Yes, so important to not over-mix, especially with coconut flour. I’m so glad you liked the cake, and really appreciate the review!

      1. September says:

        Hey Erin,

        I just have a quick question. I read that since gluten free desserts don’t contain gluten that you really can’t over mix it because there is no gluten in there to develop which can cause the tough texture sometimes. I’m pretty new to gluten free baking so I’m just trying to figure out why some gluten free recipes say to not over mix and some don’t. I look forward to making this recipe. Thanks! 🙂

      2. Erin says:

        Great question! It really depends on what kind of gluten free flour you’re using. This recipe calls for coconut flour, which easily absorbs liquid. So, if you overmix, the batter will become too thick and the overall texture of the cake will be impacted. I hope this helps — let me know if you try the cake!

  9. Janeke says:

    5 stars
    Great texture, not dry at all. Made it without icing and still delicious.

    1. Erin says:

      Thanks for the 5-star rating — I’m so glad you enjoyed the cake!

  10. Melissa says:

    5 stars
    Perfect texture. Made it without icing but added mini chocolate chips. Oh and substituted coconut oil for canola oil and sprinkled in some espresso powder into the mix. Yum!

    1. Erin says:

      Thanks for the positive rating, and I’m glad you liked the cake!