Rich and Moist Keto Chocolate Cake
It is the chocolate cake you bake when a proper slice is the only thing that will do and falling out of ketosis is not on the table. Every forkful is dark, fudgy, and genuinely moist, with zero sugar and just a few net carbs.

You do not need a special occasion. Mix it on a Tuesday, frost it while it is still slightly warm, and watch it disappear before you can say “leftovers.”
Why This Keto Chocolate Cake Works
I have baked my share of low-carb cakes that tasted like dry sponge and broken dreams. This one stays tender and rich because almond flour carries the fat well and cocoa powder brings deep, bitter chocolate flavor that masks any low-carb sweetener aftertaste.
The crumb is what I want from a real cake: soft enough to sink a fork into, with a slight spring when you press the top. The cream cheese frosting cuts the sweetness and makes the whole thing feel a little dangerous.
Ingredients

- 2 cups super-fine almond flour: blanched, not almond meal, for a light texture
- 1/2 cup unsweetened cocoa powder: Dutch-process or natural, whatever you have
- 1 cup granulated erythritol: monk fruit sweetener works just as well here
- 1 tsp baking powder: it gives a gentle lift
- 1/2 tsp fine sea salt
- 3 large eggs: cold from the fridge is fine
- 1/2 cup melted butter: or refined coconut oil if you need dairy-free
- 1/2 cup unsweetened almond milk: at room temperature
- 1 tsp vanilla extract
For the frosting:
- 8 oz cream cheese, softened: full-fat block, not the tub
- 1/4 cup butter, softened: gives the frosting structure
- 1/3 cup powdered erythritol or monk fruit sweetener: powdered helps it whip up silky
- 1 tsp vanilla extract
Variations and Substitutions
- Use coconut oil: swap the melted butter with the same amount of refined coconut oil and the cake stays dairy-free. The flavor is clean; unrefined oil will taste like coconut.
- Make it mocha: add 1 tsp instant espresso powder to the dry ingredients and the chocolate gets deeper.
- Skip the frosting: dust the cooled cake with a little extra cocoa powder and it still looks lovely. The cake itself is tender enough to eat on its own.
- Sweetener swap: if erythritol bothers you, a powdered monk fruit or allulose blend gives a clean sweetness with no cooling effect. Liquids like stevia drops throw off the moisture, so I avoid them here.
- For a thicker, ganache-style topping, try the chocolate frosting from my Keto Vanilla Cupcakes.
How to Make Keto Chocolate Cake
Step 1: Mix the Dry Ingredients

Preheat the oven to 350°F (175°C) and grease an 8-inch round cake pan, then line the bottom with parchment. In a large bowl, whisk together the 2 cups almond flour, 1/2 cup cocoa powder, 1 cup granulated sweetener, 1 tsp baking powder, and 1/2 tsp salt until there are no lumps and the cocoa is evenly dispersed.
You will see dark streaks at first; keep whisking until the mixture looks uniform and smells lightly of chocolate. Getting the baking powder evenly distributed now matters more than you think when the only lift comes from a teaspoon.
Step 2: Whisk the Wet Ingredients

In a separate bowl, beat the 3 eggs for about 30 seconds, just until the yolks and whites are fully combined and a little frothy. Pour in the 1/2 cup melted butter, 1/2 cup almond milk, and 1 tsp vanilla, then whisk hard for a full minute until the mixture looks glossy and slightly thickened.
The butter should be warm but not hot. If it is still steaming, let it cool for a minute so it does not scramble the eggs. This glossy base is what gives the cake its tender crumb later.
Step 3: Fold the Batter

Pour the wet mixture into the dry ingredients and fold with a rubber spatula, scraping the bottom of the bowl, until no dry pockets remain. Stop as soon as the batter looks dark and satiny; over-mixing almond flour cakes can make them gummy.
The batter will be thick but pourable. Scrape it into the prepared pan and smooth the top with the back of the spatula. Give the pan a gentle tap on the counter to settle it.
Step 4: Bake the Cake

Slide the pan into the center of the oven and bake for 25 to 30 minutes. At the 25-minute mark, press the center gently. The top should spring back and a toothpick inserted an inch from the edge should come out with a few moist crumbs.
Trust the toothpick, not the clock. Keto cakes dry out fast if they overbake by even two minutes. Let the cake cool in the pan for 10 minutes, then turn it out onto a rack to cool completely before frosting.
Step 5: Whip the Frosting

While the cake cools, beat the 8 oz cream cheese and 1/4 cup softened butter in a mixing bowl until they come together and look fluffy, about 2 minutes. Scrape down the sides, then add the 1/3 cup powdered sweetener and 1 tsp vanilla. Beat again for another 2 minutes until the frosting is thick and spreadable with no gritty bits.
If it feels too stiff, beat in a teaspoon of almond milk. Taste it and add a little more sweetener if you want it sweeter, but remember the cake itself is already sweet.
Step 5: Frost and Slice the Cake

Once the cake is completely cool, set it on a plate and pile the frosting in the center. Spread it to the edges with an offset spatula, swirling as you go so the surface catches the light. Slice into 12 wedges and serve right away, with a curl of dark chocolate on each plate if you are feeling fancy.
The cake is at its best within an hour of frosting, when the crumb is still light and the frosting is cool.
Tips for a Moist Keto Cake
- Bake with room-temperature almond milk: cold liquid can seize the melted butter and keep the batter from emulsifying smoothly. Just zap the milk for 10 seconds.
- Line the pan: parchment on the bottom is the only sure way to get a fragile almond flour cake out clean. A smear of butter on the sides helps too.
- Cool fully before frosting: even a little warmth melts cream cheese frosting and turns it into a puddle. Let the cake cool on a rack for at least an hour.
- Use a scale for the flour: one cup of almond flour can weigh wildly different amounts depending on how compacted the bag is. If you have a scale, 2 cups should be around 200 g.
Bake times by pan:
| Pan size and type | Bake time at 350°F |
|---|---|
| 8-inch round | 25 to 30 mins |
| 9-inch round | 22 to 26 mins |
| 12-cup muffin tin | 18 to 22 mins |
Keeping the Cake Fresh
- Refrigerate: store the frosted cake in a covered container in the fridge for up to 5 days. The frosting sets firm and the cake stays moist.
- Serve cold: straight from the fridge, the texture is almost like a dense chocolate torte. Let it sit for 15 minutes on the counter if you want a softer bite.
- Freeze unfrosted layers: wrap the cooled cake tightly in plastic and freeze for up to a month. Thaw overnight in the fridge, then frost.
Frequently Asked Questions
Can I use coconut flour instead of almond flour?
No, coconut flour absorbs many times more liquid and the ratios do not translate. The cake would turn out dense and dry.
Is this cake gluten-free?
Yes, both almond flour and the other ingredients are naturally gluten-free. Just check that your cocoa powder and baking powder are certified if cross-contamination is a concern.
Why did my cake sink in the middle?
It probably needed a few more minutes in the oven. Almond flour cakes can look set on the edges while the center is still a little wet, so always test with a toothpick.
Can I make this cake dairy-free?
You can, by using refined coconut oil instead of butter and a dairy-free cream cheese alternative in the frosting. The texture will be slightly softer but still delicious.
Can I double the recipe for a layer cake?
Absolutely. Divide the batter between two 8-inch pans and start checking for doneness at 18 minutes.

Keto Chocolate Cake Recipe
Ingredients
Method
- Preheat oven to 350°F and prepare an 8-inch round cake pan. Whisk together almond flour, cocoa, sweetener, baking powder, and salt.
- In another bowl, beat eggs, then whisk in melted butter, almond milk, and vanilla.
- Fold wet mixture into dry ingredients, scrape into the pan, and smooth the top.
- Bake for 25 to 30 minutes until the center springs back. Cool in pan 10 minutes, then turn out onto a rack.
- Beat cream cheese and butter until fluffy, then mix in powdered sweetener and vanilla until smooth and spreadable.
- Frost the completely cooled cake and slice.
