Keto Chocolate Cake
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.

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!

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.

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.

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.

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.

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.

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!

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!

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.

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.

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!
By submitting this form, you consent to receive emails from Joy Filled Eats

Keto Chocolate Cake
Ingredients
- 2 cups shredded zucchini (about one large or two medium zucchini)
- 1 3/4 cups almond flour
- 1 cup Joy Filled Eats Sweetener (or see alternatives in recipe notes)
- 1 cup unsweetened vanilla macadamia milk (or other nut milk)
- 3/4 cup cocoa powder
- 1/3 cup refined coconut oil melted
- 2 eggs
- 2 tsp vanilla
- 1 1/2 teaspoons baking powder
- 1 1/2 teaspoons baking soda
- 1 teaspoon salt
Frosting:
- 4 oz salted butter
- 1/2 cup Joy Filled Eats Sweetener (or see alternatives in recipe notes)
- 1/3 cup cocoa
- 1/4 cup half and half
- 1 tsp vanilla
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
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.








Could you use canned pumpkin in place of the zucchini? If so, how much would be a good amount?
I think one cup of pumpkin would work.
This is the most incredible cake we’ve had since we started back on our low carb journey! Wonderful and extremely easy to make!
Do I need to squeeze out the water in the zucchini before I add it to the dry ingredients?
No, if it is very very wet you can pour off the excess liquid but don’t squeeze it.
This was SO fudgy and moist with the best chocolate flavor. The frosting on top added the perfect sweetness and turned it into such a decadent treat. My family loved it!
This looks phenomenal! I love that there’s zucchini in the cake as zucchini and chocolate are one of my favorite pairings — cannot wait to try it!
Worst keto cake ever. Had to throw it away. Too much oil. The cake would never firm up. Wasted a bunch of expensive ingredients.
I’m sorry it didn’t work for you. The measurements are correct. Half a cup of oil for 3 1/2 cups of dry ingredients is not excessive. Did you chill it? It firms up in the fridge into a great fudgy consistency. This normally gets 5 star reviews so I’m surprised that happened.
Could you make cupcakes instead?
Sure
Looks so good i will be making tomorrow question if I am using sweerve Powder or Granular ? Also so would that be 1 and 1/2 cup
Hi Linda, I know you saw my email but I want to answer her too for anyone else wondering. I would use 1.25-1.5 cups of granular swerve in this recipe.
Is it possible to make this in a nine by thirteen pan instead of three nine inch ones?
Yes. I’m not sure the exact baking time. I’d check at 30 minutes and every 5 minutes after.
Hello! I entered your recipe into my macros tracker and each slice came back as 17.9 grams of net carbs?!
How are figuring? I used the same ingredients as well
You have to manually subtract the sugar alcohol from the sweetener.
Can shredded frozen zucchini work? It usually has a lot of liquid when thawed, drain or not?
I would drain it if you use frozen zucchini. I haven’t tested it but I think it would work.
Can I use a Bundt pan to cook this, and is the parchment paper necessary?
I have not tried cooking this in a bundt. If you try just make sure to grease it very well. This is a soft, moist cake and I’m afraid it might break when you invert it without parchment. I have had readers make it successfully as cupcakes.
Great idea on the cupcakes…thanks!
Made these into cupcakes and they were delicious. Thank you for the recipe. Yields about 15 cupcakes and it was cooked in about 30 minutes. Also subbed half and half for whipping cream since that’s what I had on hand.
Hi,
Can I use Allulose as my sweetener and how much should I use?
Thanks
Yes, allulose should be fine. I would use 1.25 or 1.5 times the amounts listed of my sweetener as allulose is not as sweet.
Hi Taryn…I am making this right now so I know I won’t get my answer in time, but even though I had to use more sweetener (Monkfruit), thereby increasing bulk ingredients a smidge, this batter is extremely liquid. Every other ingredient was carefully measured to be exactly the same quantity. Is this normal? Fingers crossed this still turns out ok because it sounds amazing!!! Thank you…
This batter is on the thin side. It should be fine!
Zucchini in cakes (even in my grain days) are always the bomb! Any idea on how much coconut flour to use instead of nut flour? Thank you.
That is not an easy sub. I’d suggest trying sunflower seed flour instead. It can be used 1:1 in place of almond flour.