There is something comforting about a warm dessert made right in the mug you will eat from. Growing up, a little cake after supper meant the oven had to be heated and the kitchen cleaned up afterward, which rarely happened on a weeknight. This vanilla mug cake keeps the old-fashioned feeling of a homemade treat but skips the fuss. It is soft and tender, scented with real vanilla, and sweetened with bursts of frozen raspberries. It has become my go-to when a sweet craving shows up at the end of a busy day.

Keto Vanilla Berry Mug Cake
This mug cake has a surprisingly tender crumb for something made with coconut flour and no wheat at all. The cream cheese and melted butter give it a rich, almost custardy softness in the center, while the edges set up light and slightly golden. Vanilla carries the flavor through the whole cake, so each bite tastes like a classic vanilla sponge. The frozen raspberries do the work of fruit in a pie: they turn jammy and bright as the cake rises around them, leaving tart pockets that balance the sweetness. Because it is cooked in a single mug, the texture stays moist rather than dry, and a spoonful of it still feels like a proper dessert.
Ingredients & Substitutions
Butter: Use real butter, melted just until liquid, for the best flavor. A dairy-free butter alternative works in the same amount if needed.
Cream Cheese: Full-fat cream cheese keeps the batter smooth and gives a tender, rich crumb. Softened cream cheese mixes in more easily than cold, so let it sit out for a few minutes first.
Coconut Flour: Coconut flour is very absorbent, so measure it carefully and do not swap it one-to-one for almond flour. Stick with the amount listed for the right texture.
Sweetener: Any granulated keto sweetener you like will work, such as erythritol or a monk fruit blend. Start with the amount listed and add more to taste, remembering that some blends are sweeter than sugar.
Egg: A medium egg binds the batter and helps it rise. Make sure it is at room temperature so it blends in smoothly with the cream cheese.
Berries: Frozen raspberries stay firm while baking and release their juice slowly. Blueberries or chopped strawberries can stand in if you prefer.
Can I Make This Mug Cake Ahead of Time?
A mug cake is really best eaten straight from the microwave, while it is still warm and the berries are soft and jammy. You can, however, mix the dry ingredients ahead of time in a small jar, keeping the coconut flour, baking powder and sweetener together. When you are ready for dessert, add the butter, cream cheese, egg and vanilla, stir well, then fold in the frozen raspberries and microwave. This saves a few minutes of measuring and keeps the cake light and fluffy. Avoid making the full batter in advance, since the baking powder loses its lift once it has been mixed with wet ingredients for too long.

How to Store Keto Vanilla Berry Mug Cake
If you have any cake left over, cover the mug loosely with a piece of plastic wrap or a small plate and keep it in the refrigerator for up to two days. The texture will be denser once chilled, so warm it in the microwave for about 15 to 20 seconds before eating. Eating it fresh is always the best choice, so I usually make only one serving at a time and skip the leftovers altogether.
Can I Freeze Keto Vanilla Berry Mug Cake?
Freezing is possible, though the cake is best enjoyed fresh.
- Let the cake cool completely in the mug, then cover it tightly with plastic wrap.
- Place the mug or a sealed freezer bag in the freezer for up to one month.
- Thaw overnight in the refrigerator, then warm in the microwave for 30 seconds before serving.
Keto Vanilla Berry Mug Cake

Ingredients
- 1 tbsp butter, melted
- 2 tbsp cream cheese, full fat, softened
- 2 tbsp coconut flour
- 1 tbsp granulated sweetener of choice (or more to taste)
- 1 tsp vanilla extract
- 1/4 tsp baking powder
- 1 medium egg, at room temperature
- 6 frozen raspberries
Instructions
- Melt the butter in a microwave-safe mug for about 20 seconds, or until fully liquid.
- Add the softened cream cheese to the mug and mash it into the melted butter with a fork until mostly smooth.
- Stir in the egg and vanilla extract until the mixture is well combined and glossy.
- Add the coconut flour, sweetener and baking powder, and mix thoroughly so there are no dry pockets.
- Gently fold in the frozen raspberries, pressing a few into the batter so they are evenly spread.
- Microwave on high for 60 to 90 seconds, checking at 60 seconds, until the top looks set and springs back lightly when touched.
- Let the mug cake rest for 2 minutes before eating, as the center will finish setting as it cools slightly.
Notes
- Microwave wattage varies, so start with 60 seconds and add 10 to 15 seconds at a time if the center is still wet.
- Coconut flour absorbs a lot of liquid; do not add extra flour or the cake will turn dry.
- For a sweeter cake, add a few drops of liquid stevia or an extra teaspoon of sweetener.

