Chocolate Keto Cake

Chocolate keto cake with smooth, glossy chocolate frosting, baked in a square glass dish and cut into nine servings.
---Advertisement---

This Chocolate Keto Cake is rich, moist, deeply chocolatey, and made with almond flour and a sugar-free sweetener for a low-carb dessert that truly feels like cake.

It bakes into a fudgy, tender square cake with a smooth chocolate frosting and a flavor that doesn’t taste like a compromise. If keto baking has let you down before, this one is worth a closer look.

The method is straightforward, but cooling matters here because a warm cake will melt the frosting fast.

Why This Is the Best Keto Chocolate Cake

A square slice of chocolate keto cake on an off-white plate, served with a cup of hot coffee on a wooden table.
A perfect afternoon treat: a rich slice of keto chocolate cake and a warm cup of coffee.

If you want a keto dessert that actually satisfies a chocolate craving, this one gets there. The crumb is moist and fudgy, the cocoa flavor is bold, and the frosting adds a silky finish without making the cake heavy.

Yes, you can absolutely enjoy chocolate cake on a keto diet when the structure comes from low-carb ingredients like almond flour and the sweetness comes from a keto-friendly sweetener instead of sugar. The result is a true dessert, not a sad substitute.

It also keeps the format practical. One pan, nine squares, and no layer-cake drama unless you want to turn it into something fancier later. If you enjoy dependable keto baking, moist keto banana bread is another good one to keep in your rotation.

Ingredients for the Perfect Chocolate Keto Cake

Each ingredient pulls its weight here, building chocolate flavor, soft structure, moisture, lift, and a frosting that spreads smoothly instead of fighting back.

Frosting

  • 1/2 cup unsalted butter (softened, not cold; 112 grams)
  • 1/4 cup heavy cream (room temperature)
  • 1/4 cup unsweetened cocoa powder (20 grams, sifted)
  • 1 teaspoon vanilla extract
  • 1 1/2 teaspoon stevia glycerite (equals 1/2 cup powdered sugar)

Cake

  • 1 tablespoon unsalted butter (for pan)
  • 4 large eggs
  • 1/2 cup unsalted butter (melted and slightly cooled; 112 grams)
  • 2 teaspoons stevia glycerite (equals 2/3 cup sugar)
  • 1 teaspoon vanilla extract
  • 1 cup almond flour (112 grams)
  • 1/2 cup unsweetened natural cacao powder (40 grams)
  • 1/4 teaspoon kosher salt
  • 1/2 teaspoon baking soda

Almond flour is the main reason this cake stays moist and tender. It brings fat and softness that regular low-carb substitutes sometimes miss, so the cake tastes plush instead of dry. Coconut flour works very differently, which is why it cannot replace almond flour one for one in the main recipe.

The sweetener choice matters too. This recipe uses stevia glycerite, which sweetens the cake and frosting without adding bulk from sugar. If you use another keto sweetener in a variation, texture can shift a bit. Powdered sweeteners usually blend more smoothly into frosting, while some granulated ones can leave a slight gritty feel.

Natural cocoa powder is especially important here because it reacts with the baking soda to help the cake rise. Dutch-processed cocoa is smoother and darker, but it is less acidic, so the lift will not be the same in this exact formula.

Room temperature ingredients make everything easier. Eggs blend more evenly into the batter, melted butter stays incorporated instead of seizing up, and the frosting turns creamy instead of lumpy. Cold dairy is one of the fastest ways to make keto frosting fussy.

I always sift the cocoa for the frosting, even when it looks fine in the container, because tiny lumps love to hide until spreading time.

How to Make Chocolate Keto Cake

This cake comes together in a clear order, and each stage has a useful cue so you know what to expect before you even pull out the pan.

  1. Make the frosting first by whisking the softened butter, room temperature heavy cream, sifted cocoa powder, vanilla extract, and stevia glycerite in a medium bowl until smooth, or beat with a handheld mixer on low speed for 1 to 2 minutes.

    The finished frosting should look fluffy and even, with no visible cocoa lumps or butter streaks.
  2. Heat the oven to 325°F and generously butter an 8-inch square glass baking dish, adding a parchment square on the bottom if you want easier removal.

    A well-greased pan helps this tender cake release cleanly after cooling.
  3. Whisk the eggs, melted and slightly cooled butter, stevia, and vanilla extract in a large bowl until the mixture looks glossy and well combined.

    You should not see separate streaks of egg or pools of butter at this stage.
  4. Add the almond flour and cocoa powder gradually, then whisk in the kosher salt and baking soda until the batter is fully mixed.

    The batter will be quite thick, closer to brownie batter than a pourable cake batter.
  5. Spread the batter into the prepared dish and smooth the top with a rubber spatula.

    An even surface helps the cake bake level and keeps the center from lagging behind the edges.
  6. Bake for 18 to 20 minutes, then check the center before pulling it out.

    The cake is ready when the edges pull away slightly, the center springs back lightly, and a toothpick shows moist crumbs rather than wet batter.
  7. Leave the cake in the pan to cool for about 1 hour before adding the frosting.

    If it is even a little warm, the frosting will soften and slide instead of sitting in a neat layer.
  8. Spread the frosting over the cooled cake with an offset spatula, or leave the cake plain and finish it with a dusting of powdered sweetener if you prefer.

    The frosting should glide on easily and hold soft swirls on the surface.
  9. Cut the cake into 9 squares and serve.

    The crumb should look rich and fudgy, with enough structure to lift each piece cleanly from the pan.

For deeper chocolate flavor, you can bloom the cocoa as an optional extra step before mixing the batter. Stir the cake cocoa powder with a small splash of hot water or hot coffee to make a paste, then add it with the dry ingredients. It is not required, but it does make the chocolate taste a little fuller and darker.

Tips for a Perfect, Moist Cake Every Time

Extreme close-up of a fork lifting a piece of chocolate cake, showing the moist, fudgy crumb and glossy frosting.
The secret to a moist cake is not overbaking—look for a fudgy crumb like this.

A few small choices make a big difference with keto baking. These are the ones that save this cake from dryness, graininess, and weak structure.

Use Room Temperature Ingredients

  • Let the eggs lose their chill before mixing so they blend smoothly with the melted butter instead of tightening the batter.
  • For the frosting, softened butter and room temperature cream are even more important because cold ingredients can make the mixture look lumpy or slightly curdled.
  • This simple step also helps the batter and frosting emulsify better, which means a more even crumb and smoother finish.

Measure Flour Correctly

  • Spoon the almond flour into the measuring cup, then level the top rather than scooping directly from the bag.
  • Packed almond flour can make the cake dense and dry, even when everything else is right.
  • If your batter seems much stiffer than thick brownie batter, overmeasured flour is often the reason.

Don’t Overbake

  • This is the biggest make-or-break tip for a moist keto cake.
  • Start checking at the early end of the baking window because ovens vary and almond flour cakes can go from fudgy to dry faster than you expect.
  • Look for moist crumbs on the toothpick, not a bone-dry center. A perfectly clean toothpick usually means you waited too long.

For Deeper Flavor, Bloom the Cocoa

  • If you want a more intense chocolate flavor, mix the cocoa with a little hot water or hot coffee into a paste before adding it to the batter.
  • This wakes up the cocoa and gives the finished cake a deeper, rounder taste.
  • It is optional, not part of the required method, so you can skip it and still get an excellent cake.

Common Problems and Easy Fixes

Keto cakes can be a little touchy, but the usual problems have clear causes. If something goes sideways, this is where to look first.

Fixing a Dry or Crumbly Cake

  • A dry cake is usually overbaked. Pull it when the toothpick has moist crumbs, not when it comes out completely clean.
  • Too much almond flour can also dry the crumb. Spoon and level it instead of packing the cup.
  • If the cake tastes good but crumbles when cut, let it cool fully before slicing. Warm keto cakes are more fragile than they look.

Preventing a Sunken Middle

  • A cake that sinks in the center often needed a little more time in the oven.
  • Opening the oven door too early can also interrupt the rise before the center has set.
  • Wait until the edges look set and slightly pulled away from the pan, then use the toothpick test near the center.

How to Get Smooth, Creamy Frosting

  • Grainy frosting usually comes from the sweetener or the temperature of the ingredients.
  • Use the liquid sweetener called for here, or choose a powdered keto sweetener if you make a swap. Granulated sweetener is much more likely to stay gritty.
  • Keep the butter softened and the cream at room temperature so the frosting blends into a smooth, spreadable mixture.

If the cake seems like it might fall apart, the most common reason is moving it too soon. Letting it cool in the pan for the full cooling period gives the crumb time to set, which makes frosting and slicing much easier.

Recipe Variations to Try

The main cake is excellent as written, but these optional variations can help if you want a different format or need to work around dairy or nuts.

Keto Chocolate Cupcakes

This batter works well as cupcakes. Line a muffin pan, divide the batter evenly, and start checking for doneness around 12 to 15 minutes since smaller portions bake faster than the square cake.

The same cue applies here: look for a springy center and moist crumbs rather than a dry toothpick. If you like single-serve keto baking, keto blueberry muffins are another handy option.

Dairy-Free Modification

For the cake, use coconut oil in place of the butter. For the frosting, use a dairy-free butter alternative and swap the heavy cream for coconut cream. The texture stays rich, though the frosting may pick up a light coconut note depending on the brand.

If you want to keep the flavor as close as possible to the original, choose a neutral dairy-free butter and make sure all the frosting ingredients are at room temperature before mixing.

Nut-Free (Coconut Flour) Modification

This one needs more than a straight swap. Coconut flour is much more absorbent than almond flour, so it cannot replace it 1 to 1.

A general starting point is about 1/3 cup of coconut flour for every 1 cup of almond flour, and you will likely need extra egg or more liquid to keep the batter from turning stiff. Expect a different texture too. Coconut flour cakes are usually a bit firmer and less plush.

If nut-free baking is your everyday lane and you want another rich low-carb dessert for later, a creamy keto cheesecake is also worth bookmarking.

How to Store Your Cake

Slices of frosted chocolate keto cake arranged in a single layer inside a rectangular glass container for storage.
To keep the cake fresh, store slices in a single layer in an airtight container.

Good storage keeps the crumb from drying out and helps the frosting stay neat instead of smearing all over the container.

  • Unfrosted cake can sit covered at room temperature for a while if your kitchen is cool, but it holds best once covered well and kept away from heat.
  • For refrigerated storage, let the cake cool completely first so trapped steam does not create a damp surface.
  • If the cake is unfrosted, wrap the pan tightly or transfer slices to a covered container to protect the crumb.
  • If the cake is frosted, chill it until the frosting firms up a bit, then cover it so the top stays tidy.
  • When serving straight from the fridge, give the cake a little time at room temperature so the frosting softens and the chocolate flavor opens back up.

A cold slice is great on its own, but a slightly cool or gently warmed piece is especially good with a scoop of keto ice cream if you want to lean into full dessert mode.

If you are planning ahead, bake the cake, cool it completely, wrap it well, and refrigerate it before frosting. For the freshest look and smoothest finish, frost it closer to serving time.

Conclusion

This cake delivers what most people want from a chocolate dessert: rich flavor, a moist crumb, and frosting that actually feels indulgent. It also happens to fit a keto kitchen beautifully.

If you remember one thing, let it be this: do not overbake it. Pull it when the center still gives you moist crumbs, and you will be rewarded with the fudgy texture that makes this cake so satisfying.

Frequently Asked Questions

What Is the Best Keto-Friendly Sweetener for This Cake?

For the cake batter, the stevia glycerite in the recipe works well because it sweetens without adding sugar. For frosting, powdered erythritol or an allulose blend can work nicely if you need a swap, because they usually blend more smoothly than granulated sweeteners. Avoid granulated sweetener in frosting if possible, since it can leave a grainy texture.

Can I Use Coconut Flour Instead of Almond Flour?

Not as a direct 1-to-1 swap. Coconut flour absorbs much more liquid than almond flour. A common starting guideline is to use around one-third as much coconut flour, then adjust with more egg or liquid as needed. Even with adjustments, expect a different texture that is usually a bit firmer and less tender.

How Do I Prevent My Keto Chocolate Cake From Being Dry?

Do not overbake it. Start checking early and pull the cake when a toothpick comes out with moist crumbs. Measure the almond flour carefully with the spoon-and-level method. Let the cake cool in the pan before slicing, which helps the crumb settle instead of breaking apart.

Can I Make This Cake Ahead of Time?

Yes. Bake the cake in advance, cool it completely, and keep it well wrapped in the refrigerator. For the best texture and appearance, frost it closer to the time you plan to serve it. If you already frosted it, keep it chilled so the top stays clean and easy to slice.

Chocolate keto cake with smooth, glossy chocolate frosting, baked in a square glass dish and cut into nine servings.

Chocolate Keto Cake

Jason Brooks
This Chocolate Keto Cake is rich, moist, and deeply chocolatey. Made with almond flour, it has a fudgy, tender crumb and a smooth chocolate frosting for a truly satisfying low-carb dessert.
4.75 from 31 votes
Prep Time 15 minutes
Cook Time 20 minutes
Rest time 1 hour
Total Time 1 hour 35 minutes
Course Dessert
Cuisine American
Servings 9 squares
Calories 326 kcal

Equipment

  • Medium bowl
  • Handheld mixer
  • 8-inch square glass baking dish
  • Large bowl
  • Whisk
  • Rubber spatula
  • Offset spatula

Ingredients

Frosting

  • 1/2 cup unsalted butter softened, not cold; 112 grams
  • 1/4 cup heavy cream room temperature
  • 1/4 cup unsweetened cocoa powder 20 grams, sifted
  • 1 teaspoon vanilla extract
  • 1 1/2 teaspoon stevia glycerite equals 1/2 cup powdered sugar

Cake

  • 1 tablespoon unsalted butter for pan
  • 4 large eggs
  • 1/2 cup unsalted butter melted and slightly cooled; 112 grams
  • 2 teaspoons stevia glycerite equals 2/3 cup sugar
  • 1 teaspoon vanilla extract
  • 1 cup almond flour 112 grams
  • 1/2 cup unsweetened natural cacao powder 40 grams
  • 1/4 teaspoon kosher salt
  • 1/2 teaspoon baking soda

Instructions

  • Make the frosting first by whisking the softened butter, room temperature heavy cream, sifted cocoa powder, vanilla extract, and stevia glycerite in a medium bowl until smooth, or beat with a handheld mixer on low speed for 1 to 2 minutes. The finished frosting should look fluffy and even, with no visible cocoa lumps or butter streaks.
  • Heat the oven to 325°F and generously butter an 8-inch square glass baking dish, adding a parchment square on the bottom if you want easier removal. A well-greased pan helps this tender cake release cleanly after cooling.
  • Whisk the eggs, melted and slightly cooled butter, stevia, and vanilla extract in a large bowl until the mixture looks glossy and well combined. You should not see separate streaks of egg or pools of butter at this stage.
  • Add the almond flour and cocoa powder gradually, then whisk in the kosher salt and baking soda until the batter is fully mixed. The batter will be quite thick, closer to brownie batter than a pourable cake batter.
  • Spread the batter into the prepared dish and smooth the top with a rubber spatula. An even surface helps the cake bake level and keeps the center from lagging behind the edges.
  • Bake for 18 to 20 minutes, then check the center before pulling it out. The cake is ready when the edges pull away slightly, the center springs back lightly, and a toothpick shows moist crumbs rather than wet batter.
  • Leave the cake in the pan to cool for about 1 hour before adding the frosting. If it is even a little warm, the frosting will soften and slide instead of sitting in a neat layer.
  • Spread the frosting over the cooled cake with an offset spatula, or leave the cake plain and finish it with a dusting of powdered sweetener if you prefer. The frosting should glide on easily and hold soft swirls on the surface.
  • Cut the cake into 9 squares and serve. The crumb should look rich and fudgy, with enough structure to lift each piece cleanly from the pan.

Notes

Don’t Overbake: The cake is ready when a toothpick inserted in the center shows moist crumbs, not when it comes out perfectly clean. A clean toothpick usually means it’s already overbaked.
Cool Completely: The cake is fragile when warm. Let it cool in the pan for the full hour before frosting to prevent the frosting from melting and the cake from crumbling.
Room Temperature Ingredients: For the smoothest frosting, make sure your butter is softened and the heavy cream is at room temperature. Cold ingredients can make the frosting lumpy.
Storage: Keep the frosted cake in a covered container in the refrigerator. For the best flavor and texture, let slices sit at room temperature for a few minutes before serving.
Nutrition information is an estimate based on common ingredients and serving sizes. Values may vary depending on brands, portions, and substitutions.

Nutrition

Nutrition Facts
Chocolate Keto Cake
Amount per Serving
Calories
326
% Daily Value*
Fat
 
32
g
49
%
Saturated Fat
 
16
g
100
%
Cholesterol
 
125
mg
42
%
Sodium
 
170
mg
7
%
Potassium
 
300
mg
9
%
Carbohydrates
 
7
g
2
%
Fiber
 
4
g
17
%
Sugar
 
1
g
1
%
Protein
 
7
g
14
%
Vitamin A
 
10
IU
0
%
Calcium
 
50
mg
5
%
Iron
 
2
mg
11
%
* Percent Daily Values are based on a 2000 calorie diet.
Keyword Almond Flour Cake, Chocolate Keto Cake, Low Carb Dessert
Tried this recipe?Let us know how it was!
---Advertisement---

Jason Brooks

Jason Brooks is a food contributor at Recipes Keto Diet. He supports the team with keto meal ideas, ingredient inspiration, serving suggestions, and practical kitchen tips for low carb cooking.

You’ll Also Love

A whole keto pumpkin pie with a flaky almond flour crust and creamy orange filling, with one slice removed to show the texture.
A stack of homemade keto peanut butter cups with rich dark chocolate shells, one showing its creamy peanut butter filling.
A loaf pan filled with rich, scoopable keto ice cream, showing a smooth, creamy dark chocolate texture.
A perfect slice of the keto cheesecake recipe, showing its rich, creamy filling and buttery almond flour crust on a white plate.
A sliced loaf of keto banana bread with a golden-brown top and moist crumb, topped with crushed walnuts.

41 comments on “Chocolate Keto Cake”

  1. 5 stars
    I appreciated the note about cooling before frosting because I definitely would have rushed it. Mine still looked a little soft at 19 minutes, but after cooling it sliced perfectly.

    Reply
    • I am so glad that tip helped. This cake really does finish setting as it cools, so a slightly soft center at the end of baking is often exactly right.

      Reply
  2. 5 stars
    I used hot coffee to bloom the cocoa and the chocolate flavor came out deeper without being bitter. Had a square with coffee this afternoon and it honestly felt like a treat, not a workaround.

    Reply
  3. 4 stars
    Quick question, did you use a glass pan because it bakes more evenly here, or would a metal 8 inch pan be fine too

    Reply
    • A metal 8 inch pan should work fine. Just start checking a little earlier since metal can bake a bit faster than glass in some ovens.

      Reply
  4. 5 stars
    This saved my weekend dessert plan. I had one of those gritty frosting disasters last month with another recipe, so the room temp cream tip was gold.

    Reply
  5. 5 stars
    I overbaked my first batch by maybe 3 minutes because my oven runs hot, and you were right, it went from fudgy to a bit dry fast. Second try I pulled it earlier and it was so much better. Posting this mostly so other impatient people like me don’t wait for a clean toothpick.

    Reply
    • This is super helpful feedback. Almond flour cakes can change quickly at the end, so pulling it at moist crumbs really makes the difference.

      Reply
  6. 4 stars
    Has anyone tried this with allulose in the frosting instead of stevia glycerite? I have everything else on hand and would love to make it tonight.

    Reply
    • Yes, allulose can work in the frosting. If you use it, a powdered version will usually give the smoothest texture and blend in more easily.

      Reply
  7. 5 stars
    The one pan thing is underrated. I like layer cakes, but sometimes I just want chocolate cake without turning the kitchen upside down.

    Reply
  8. 5 stars
    I made these as cupcakes instead and started checking at 12 minutes like you suggested. They came out great and didn’t sink, which has happened to me with other low carb cupcake recipes.

    Reply
  9. 5 stars
    My batter was super thick, almost thicker than brownie batter, so I thought I messed it up. It baked fine though. Just mentioning it because your description kept me from adding random extra liquid.

    Reply
    • That is exactly why I like to mention the batter texture. It is meant to be quite thick, so it sounds like you were right on track.

      Reply
  10. 4 stars
    I left mine plain with just a little powdered sweetener on top because I was short on time, and it still worked really well. Next time I’m doing the full frosting because the cake itself was solid.

    Reply
    • Absolutely. Bake it, cool it completely, wrap it well, and refrigerate it. Frosting it the next day should work nicely for serving later.

      Reply
  11. 5 stars
    This one surprised me. I’ve had a lot of almond flour cakes that were either oily or weirdly eggy, but this had a better balance. The salt amount seems small, but it really helped the chocolate pop.

    Reply
  12. 5 stars
    I made this after dinner because I wanted something chocolatey and not a giant project. The frosting came together smoother than I expected, probably because I actually listened for once and let the cream come to room temp first 😂

    Reply
  13. 4 stars
    My center sank a little, but I’m pretty sure I opened the oven too early because I got nervous at 15 minutes. It still tasted amazing. Next time I’m keeping the door shut and trusting the process.

    Reply
    • That very likely did it. Waiting until the edges are set before opening the oven usually helps the center stay more stable.

      Reply
  14. 5 stars
    I served this slightly chilled and the frosting texture was incredible. Almost like a cross between cake and fudge in the best way.

    Reply
  15. 5 stars
    I’ve been burned by coconut flour swaps before, so thank you for being direct that it’s not a one for one thing. That note alone saved me from ruining ingredients.

    Reply
  16. 5 stars
    I used parchment on the bottom like you mentioned and the squares lifted out cleanly. That never happens for me with softer cakes, so I’m keeping that move.

    Reply
  17. 5 stars
    I made this for my sister who keeps low carb and everyone else ate it too. Usually family desserts turn into two separate versions at our house, but this one didn’t need a backup cake. That alone makes it worth saving.

    Reply
    • Sifting for the frosting matters the most, but you can absolutely sift the cake cocoa too if your cocoa tends to clump. It can make mixing a little easier.

      Reply
  18. 4 stars
    The frosting almost looked curdled for a second because my cream was still a little cold, but it smoothed out after I kept mixing. Sharing in case anyone else panics halfway through like I did.

    Reply
    • That can definitely happen with cooler ingredients, so no panic needed. Once everything comes together, it usually smooths right out just like you saw.

      Reply
  19. 5 stars
    Finally a keto chocolate cake recipe that explains the why, not just the steps. The note about natural cocoa and baking soda was especially useful.

    Reply
  20. 5 stars
    This brought back the old potluck brownie energy for me, except it sliced cleaner once fully cooled. I took a batch to a small family get together and didn’t say anything about it being keto until later. Nobody guessed, which honestly made me laugh.

    Reply
  21. 5 stars
    I know this sounds dramatic, but I’ve had such bad luck with low carb chocolate cakes that I almost didn’t try another one. Last winter I made one that turned into a dry sponge and nobody touched the leftovers. This one actually stayed moist the next day, and the crumb held together when I packed a slice for work.

    Reply
    • Not dramatic at all, keto chocolate cake can be frustrating when the texture misses. I am really glad this one worked better for you and even held up well the next day.

      Reply
4.75 from 31 votes

Leave a Comment & Rate this Recipe

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

Click the Stars to Rate This Recipe