This savory mug cake is soft, tender, and packed with bright, tangy flavor. Sun-dried tomato pesto gives it a rich, herby punch that feels like a treat.

It comes together in one mug and a microwave, so you can skip the oven and the cleanup. We rely on it when we want something warm and satisfying in minutes.
Why you’ll love this recipe
This mug cake tastes like a savory bread with all the comfort of a warm snack. It is low in carbs, uses pantry staples, and is ready before the kettle finishes boiling. Once you make it, it becomes an easy go-to.
Ingredients
Full quantities are in the recipe card below.
- Large egg: Provides structure and lift, so the cake sets instead of crumbling. Substitute with 2 tablespoons of unsweetened applesauce for a lighter texture, though the cake will be less rich.
- Almond flour: The low-carb base that gives a tender, slightly nutty crumb. Substitute with finely ground sunflower seed flour if you need nut-free.
- Butter: Adds richness and moisture. Substitute with melted coconut oil or ghee at the same amount.
- Baking powder: Makes the cake rise in the mug. Substitute with the same amount of baking soda plus a pinch of cream of tartar.
- Sun-dried tomato pesto: The star flavor, bringing tang, garlic, and herbs. Substitute with homemade pesto blended with a few chopped sun-dried tomatoes.
- Extra almond flour: Helps firm up the batter so it is not too wet. Substitute with ground flaxseed in the same amount.
- Salt: Balances the richness and sharpens the tomato flavor. Substitute with a pinch of seasoned salt if you like extra herbs.
How to make sun-dried tomato pesto mug cake
Step 1: Prepare the mug
Choose a microwave-safe mug with at least 12 ounces of capacity. Make sure the butter is soft at room temperature so it blends smoothly.
Step 2: Mix the wet ingredients
Crack the egg into the mug and whisk it well. Add the butter and sun-dried tomato pesto, then stir until creamy, because even mixing keeps the crumb uniform.
Step 3: Add the dry ingredients
Stir in the almond flour, baking powder, and a small pinch of salt. We add the flour last so the batter stays smooth without overmixing.
Step 4: Microwave
Microwave on high for 60 to 90 seconds. The cake should look set on top and spring back when touched. Let it rest for one minute so the center finishes setting.

Tips
- Use room temperature butter: Cold butter stays in lumps and makes the batter uneven.
- Watch the mug size: A larger mug gives a flatter cake that cooks more evenly.
- Check the pesto: Choose a pesto without added sugar to keep the cake truly keto.
- Adjust the salt: Pesto varies in saltiness, so taste the batter before adding more.
- Do not overcook: Almond flour dries out quickly, so start with 60 seconds and add more in 10-second bursts.
- Let it rest: A short rest helps the center firm up and prevents a gummy texture.
- Add a topping: A little grated parmesan on top adds a golden edge and extra savoriness.
Storage
This mug cake is best eaten warm the same day it is made. Mug cakes firm up as they cool, so reheat for about 15 seconds before serving.
Leftovers can be wrapped and refrigerated for up to two days. Because the cake is small, we usually make it fresh instead of storing it.
Frequently Asked Questions
Is sun-dried tomato pesto mug cake keto friendly?
Yes, it is keto friendly when you use almond flour, butter, and a pesto with no added sugar. Check the pesto label for carbs before you make it.
Can I make this mug cake without an egg?
You can try a flax egg made from one tablespoon ground flaxseed and three tablespoons water. The texture will be denser, but it still works as a quick snack.
What if my mug cake is rubbery?
Rubbery texture usually means it was overcooked. Reduce the microwave time next time and let it rest for a minute after cooking.
Can I use store-bought pesto?
Yes, store-bought sun-dried tomato pesto works well. Choose one without sugar or fillers and taste it first, since saltiness varies by brand.
Sun-Dried Tomato Pesto Mug Cake

Ingredients
- 1 large egg
- 2 tablespoons almond flour
- 2 tablespoons butter (room temperature)
- 1/2 teaspoon baking powder
- 5 teaspoons sun-dried tomato pesto
- 1 tablespoon almond flour
- Salt, to taste
Instructions
- Choose a microwave-safe mug with at least 12 ounces of capacity.
- Crack the egg into the mug and whisk well.
- Add the room temperature butter and sun-dried tomato pesto, then stir until smooth.
- Stir in 2 tablespoons almond flour, the baking powder, and a pinch of salt.
- Add the remaining 1 tablespoon almond flour and mix until no dry streaks remain.
- Microwave on high for 60 seconds, then check. Add 10-second bursts until the top is set.
- Let rest for one minute before eating.
Notes
- Use a pesto with no added sugar to keep carbs low.
- Reheat leftovers for about 15 seconds.
- Adjust salt to taste, since pesto varies in saltiness.

