Home » Dessert Recipes » Cakes & Cupcakes » Keto Chocolate Cake

Keto Chocolate Cake

Gluten & Grain Free RecipesLow Carb & Keto RecipesSugar Free Recipes
Jump to Recipe
4.82 from 33 votes
Pinterest Hidden ImagePinterest Hidden Image

This is the ultimate Keto Chocolate Cake recipe. Every bite is fudgy, ultra-rich, and incredible. If you have been looking for a dessert that will impress pretty much anyone, you have finally found it. Delicious chocolate cake topped with a silky chocolate frosting is sure to please. It’s low carb, sugar-free, grain-free, gluten-free, and Trim Healthy Mama friendly too.

a slice of keto chocolate cake on a small plate with the whole cake behind it

There is no shortage of decadent chocolate recipes on my blog because I LOVE chocolate. It’s a lovely way to add flavor and enjoy a treat that is out of this world. This low carb cake has quickly moved up on my list of favorites. Every moist bite leaves me wanting the next even more. Take it to a potluck, and there won’t even be a crumb left over. That’s how incredible it is.

I have one little secret for you. Now, I will tell you, but don’t tell your kids! It can be our little secret. 🙂 This low carb chocolate cake has two full cups of shredded zucchini in it. Can you believe it? Zucchini is a wonderful ingredient for adding some nutrients, but it also helps keep the cake moist. You can set this keto cake in front of someone who doesn’t eat on a low carb diet, and odds are they won’t even be able to tell the difference. Whether you’re following a keto diet or just cutting back on sugar, this is one chocolate cake everyone can enjoy.

For more amazing low carb chocolate cakes, try my Keto Lava Cake or Keto Birthday Cake With Chocolate Icing next!

a platter with keto chocolate cake topped with chocolate shavings

Ingredients

  • Almond Flour – I use blanched almond flour for a soft, tender cake. Almond meal is coarser and won’t give you quite the same texture.
  • Sweetener – Use your favorite keto-friendly sweetener. Check the recipe card for the type and amount needed.
  • Cocoa Powder – Unsweetened cocoa powder gives this cake its rich chocolate flavor.
  • Baking Powder and Baking Soda – Help the cake layers rise and give them a lighter texture.
  • Salt – Just a pinch of salt brings out the rich chocolate flavor.
  • Eggs – Help bind the ingredients together and give the cake structure.
  • Coconut Oil – Adds moisture to the cake.
  • Vanilla Extract – Enhances the chocolate flavor.
  • Unsweetened Macadamia Milk – You can also use unsweetened almond milk. Either works well in the cake batter.
  • Zucchini – Two full cups of shredded zucchini keep this chocolate cake incredibly moist. And no, you can’t taste it!
  • Chocolate Frosting – The homemade frosting uses butter, cocoa powder, sweetener, half and half, and vanilla extract. It’s rich, smooth, and so easy to make.

See the recipe card for quantities.

large bowl of ingredients for the chocolate cake

How To Make Keto Chocolate Cake

This cake is very easy to make. The hardest part is smelling the aroma of the freshly baked cake and not being able to eat it yet. Take a look at these simple directions.

First Step: Preheat your oven to 350°F. Then line three 9-inch cake pans with parchment paper. Give them a spray with nonstick cooking spray and set aside.

bowl of batter for the keto chocolate cake

Second Step: Add the dry ingredients, including the sweetener, almond flour, cocoa powder, baking powder, baking soda, and salt, to a large bowl. Add the eggs, coconut oil, vanilla extract, unsweetened macadamia milk (or almond milk), and zucchini. Mix on low until combined, then increase the speed to medium and continue mixing for 2 minutes.

round pans with batter

Third Step: Bake the cake layers for 30-35 minutes or until the centers are firm when you touch them. Allow the cake layers to cool for 10 minutes before removing them from the pans and letting them cool completely on a wire rack.

baked cakes in round pans

Fourth Step: While the cake is cooling, begin preparing the frosting. Warm the butter, cocoa, sweetener, and half and half in a saucepan. Whisk continuously until smooth, then remove from the heat and stir in the vanilla.

saucepan with frosting and a whisk

Assembly: Pour ¼ of the frosting over the bottom cake layer. Then add another cake layer and ¼ more frosting. Add the top layer of cake and pour on the remaining frosting. Allow some of the icing to drip down the edges, top the keto chocolate cake with some chocolate shavings, and enjoy!

frosting being poured over the cooked stacked cakes

Top Tip💡

Make sure the cake layers have cooled completely before adding the chocolate frosting so it doesn’t run off. I also recommend shredding the zucchini finely so it blends right into the batter. I prefer this cake chilled, but you can let it come to room temperature before serving if you like.

 Other Types of Keto Frosting

I really do love the chocolate pan frosting on this cake. If you’ve never made one before, it’s like an inexpensive version of a ganache. You use cocoa powder and half and half (half milk and half cream) instead of melting chocolate with heavy cream. It is still smooth, rich, and delicious. I could eat it with just a spoon.

But if you’d like other icing choices for your chocolate cake, try my Buttercream Frosting, Cream Cheese Frosting, Raspberry Frosting, Peanut Butter Frosting, or Caramel Frosting!

chocolate pan frosting dripping down the sides of a cake

Can You Taste the Zucchini?

Absolutely not! My kids had no idea there was zucchini. Since the cake is such a dark color, you can’t see it or taste it. The zucchini is what makes this cake so moist, so trust me and don’t leave it out. You can use yellow squash in place of the zucchini if you prefer.

More Ideas and Substitutions

  • Dairy-Free – The cake itself is already dairy-free. To make a dairy-free ganache, heat sugar-free chocolate chips and a little coconut cream until melted.
  • Nut-Free – A great replacement for almond flour in this keto chocolate cake recipe is sunflower seed flour. It can be subbed 1:1 for almond flour. You can use carton coconut milk in place of the nut milk. It is not as easy to sub in coconut flour, so I don’t recommend that.
  • Toppings – Raspberries look great on this cake! Some other ideas are sugar-free white chocolate chips, drizzled white chocolate, or piping peanut butter frosting on top of the chocolate ganache around the edges. You could also stick chopped nuts to the sides or sprinkle some on top.
a slice of cake being removed with a cake server

Equipment

You’ll need three 9-inch round cake pans, parchment paper, a large mixing bowl, and an electric hand mixer. A stand mixer works well, too.

For the frosting, grab a saucepan and a whisk. You’ll also want a wire rack for cooling the cake layers before assembling them.

How Do You Store Chocolate Cake?

You can store this low carb keto chocolate cake in the fridge in an airtight container for up to 4 days. I find that it tastes so much better when it’s cool, but try it both ways and see which way you prefer.

Making the layer cake in advance and saving it for special occasions is easy. This will save you time if you are hosting a party or get-together because you can make it a day or two in advance.

You can also freeze individual slices for up to 3 months. Wrap each slice tightly and place it in a freezer-safe container. Thaw overnight in the refrigerator before serving.

How many net carbs are in keto chocolate cake?

The net carbs per slice are listed in the recipe card below. Keep in mind that the exact amount can vary depending on the sweetener and other ingredients you use.

close up of a bite of chocolate cake on a fork

Want to Save This Recipe?

Enter your email below & we’ll send it to your inbox. Plus get great new recipes from us every week!

Save Recipe

By submitting this form, you consent to receive emails from Joy Filled Eats

keto chocolate cake on a plate with a bite on a fork

Keto Chocolate Cake

Taryn Scarfone
This Keto Chocolate Cake is rich, fudgy, and incredibly moist with silky chocolate frosting. An easy low carb, gluten-free layer cake!
4.82 from 33 votes
Prep Time 15 minutes
Cook Time 35 minutes
Total Time 50 minutes
Course Dessert
Cuisine American
Servings 12
Calories 283

Ingredients
 
 

Frosting:

Instructions
 

Chocolate Cake:

  • Heat oven to 350°F. Line three 9-inch round baking pans with parchment and spray with cooking spray.
  • Beat all the ingredients on low until mixed. Increase the speed to medium for 2 minutes.  Pour batter into prepared pans.
  • Bake 30 to 35 minutes or until the center feels firm to the touch. Cool 10 minutes; remove from pans to wire racks. Cool completely.

Chocolate Frosting:

  • Heat butter in a small saucepan until melted. Add the cocoa, sweetener, and half and half whisking until smooth. Remove from heat and add vanilla.
  • Drizzle 1/4 of the frosting over the bottom cake layer. Top with the middle layer and 1/4 more of the frosting. Top with the top layer of cake and the rest of the frosting. Gently spread to the edges and let some drip down. Top with chocolate shavings, if desired.

Notes

Nutrition: This cake has 12 slices. Each slice has 4 NET carbs.
Oil: After some feedback from readers I recommend reducing the amount of coconut to 1/3 cup for this recipe.
To Store: Keep the chocolate cake in an airtight container for up to 3 days. You can store it on the counter or in the fridge, depending on your preference. It firms up to a fudgy consistency when chilled. 
To Freeze: If you want to freeze the cake, it’s best to freeze the cake layers and frost after taking it out of the freezer. This will give you the best results. Be sure to flash freeze the layers, so they don’t’ stick together as they freeze. 
Prep Time: Prepare the cakes up to 3 days ahead of time. You can frost ahead of time or wait until you are ready to serve, whichever you prefer.  
Chocolate Shavings: To make chocolate shavings simply use a vegetable peeler along the side of a bar of chocolate.
Notes on Sweeteners: 
I use my own blend of xylitol, erythritol, and stevia in my recipes. This is twice as sweet as sugar. It is comparable to Trim Healthy Mama Gentle Sweet and Truvia.
To sub in Swerve or Lakanto Monk Fruit use 1.5 times the amount of sweetener called for. 
 
To sub in Pyure or Trim Healthy Mama Super Sweet use half the amount of sweetener called for.
 
Substitutions will work in most recipes. They may not work in candies, such as caramel.

Nutrition

Serving: 1sliceCalories: 283Carbohydrates: 9gProtein: 6gFat: 27gSaturated Fat: 15gCholesterol: 49mgSodium: 441mgPotassium: 239mgFiber: 5gSugar: 1gVitamin A: 335IUVitamin C: 4mgCalcium: 106mgIron: 2mg
Love this recipe?Please leave a 5 star rating!

Like what you see? Follow me on Facebook and Instagram! Love this recipe? Leave a comment & a 5-star rating right here! Make sure you don’t miss new recipes by getting email updates!

Originally Published . Revised and Republished October 12, 2026.

Similar Posts

58 Comments

  1. I was blown away by the flavor and texture of this cake! So fudgy and moist and the chocolate flavor is on point!5 stars

  2. This is my go-to chocolate cake when I want to WOW people with a huge hit of chocolate flavor! It’s incredible!!5 stars

  3. YUMMY! My family is new to low carb eating. And the hardest part for the kids, honestly, is giving up their beloved treats. This was delicious and definitley a keeper. Your website is full of amazing recipes that have helped our transition.5 stars

  4. We made the cakes so far and they are falling apart when we turn them out. One layer is unfortunately useless….any tips on keeping them firmer? Otherwise, they are very tasty!

    1. Pour it into a blender and blend. Or use an immersion blender. It probably just needs to be mixed more thoroughly. I do this with ganache too because it helps it thicken.

  5. I only have 2 pans. Can I just make this 2 layers instead of 3? And if so, how much more baking time should I do?. Thank you…it looks delicious!!!

      1. There are notes under the recipe about using other sweeteners. I combine xylitol, erythritol, and stevia. joyfilledeats.com/sweetener

4.82 from 33 votes (19 ratings without comment)

Leave a Reply

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

Recipe Rating