This savory mug cake is soft, tender and packed with bright, tangy flavor. Sun dried tomato pesto gives it a rich, herby punch that cuts through the nutty almond flour.

It comes together in one mug, with no mixer and no oven. When you want something warm and satisfying in minutes, this is the one we reach for.
Why you’ll love this recipe
This mug cake turns a jar of pesto into a fluffy, golden snack that feels far more special than it takes to make. We like it for lunch, or alongside a simple salad on a busy evening. It is one mug, one spoon and about five minutes from start to finish.
Ingredients
Full quantities are in the recipe card below.
- Egg: provides structure and lift, so the cake rises and sets. Substitute with 2 tablespoons of aquafaba for a lighter, eggless version.
- Almond flour: gives a tender, slightly nutty crumb without gluten. Substitute with fine coconut flour, using half the amount.
- Butter: adds richness and keeps the crumb moist. Substitute with melted coconut oil or a neutral oil.
- Baking powder: makes the cake rise in the microwave. Substitute with the same amount of baking soda plus a pinch of cream of tartar.
- Sun dried tomato pesto: brings the main flavor, with sweetness, acidity and herbs. Substitute with regular basil pesto mixed with a spoon of chopped sun dried tomatoes.
- Salt: balances the richness and sharpens the tomato flavor. Substitute with a pinch of sea salt or a little grated Parmesan.
How to make sun dried tomato pesto mug cake
Step 1: Whisk the egg and butter
Beat the egg in a large microwave-safe mug until smooth. Add the softened butter and stir until fully combined.
Room-temperature butter blends evenly, which keeps the batter smooth.
Step 2: Add the pesto
Stir in the sun dried tomato pesto until the mixture turns a uniform orange-pink color. This spreads the flavor through the whole batter.
Step 3: Mix in the dry ingredients
Add both portions of almond flour, the baking powder and a small pinch of salt. Stir for about 30 seconds until no dry streaks remain.
Mixing just until smooth keeps the crumb tender rather than dense.
Step 4: Microwave
Microwave on high for 60 to 90 seconds, until the top looks set and springs back when touched. Start with 60 seconds if your microwave runs hot.
Step 5: Rest and serve
Let the mug cake sit for one minute. This lets the center finish setting so it doesn’t collapse when you cut into it.
Tips
- Use a large mug: the batter rises a lot, so a roomy mug prevents spillover.
- Watch the timing: microwaves vary, so check at 60 seconds before adding more time.
- Taste your pesto: some brands are very salty, so add salt only after tasting.
- Keep the butter soft: softened butter blends smoothly and avoids lumps.
- Don’t overmix: stirring too long after adding flour makes the cake tough.
- Drain oily pesto: excess oil can make the crumb greasy, so blot the spoon before measuring.

Storage
This mug cake is best eaten right away, while it is warm and fluffy. Once it cools, it firms up and loses some of its lift.
If you have leftover batter, cover it and refrigerate for up to one day, then microwave for an extra 20 to 30 seconds before eating. Cooked cake keeps covered in the fridge for up to two days.
Variations
Cheesy version
Stir in a tablespoon of grated Parmesan before microwaving. The cheese adds savory depth and a crisp edge.
Herb boost
Add a pinch of dried oregano or Italian seasoning. It deepens the Mediterranean flavor without changing the method.
Frequently Asked Questions
Can I make this mug cake without an egg?
Yes. Replace the egg with 2 tablespoons of aquafaba or unsweetened applesauce. The cake will be a little denser, but it still rises and stays moist.
Can I use oil-packed sun dried tomatoes instead of pesto?
You can chop oil-packed sun dried tomatoes finely and mix them with a spoon of basil pesto. Blot them well first, since extra oil makes the crumb greasy.
Why did my mug cake turn out rubbery?
Overmixing or overcooking usually causes this. Mix only until smooth and check the cake at 60 seconds, removing it as soon as the top is set.
Can I make this mug cake in the oven?
Yes. Pour the batter into a greased ramekin and bake at 180 C (350 F) for 12 to 15 minutes, until the top is firm and golden.
Sun-Dried Tomato Pesto Mug Cake

Ingredients
- 1 large egg
- 2 tablespoon almond flour
- 2 tablespoon butter (room temperature)
- 1/2 teaspoon baking powder
- 5 teaspoon sun-dried tomato pesto
- 1 tablespoon almond flour
- salt (to taste)
Instructions
- Beat the egg in a large microwave-safe mug until smooth.
- Add the softened butter and stir until fully combined.
- Stir in the sun-dried tomato pesto until evenly colored.
- Add 2 tablespoon almond flour, the baking powder and a small pinch of salt. Stir until no dry streaks remain.
- Sprinkle in the remaining 1 tablespoon almond flour and stir gently to blend.
- Microwave on high for 60 to 90 seconds, until the top is set and springs back when touched.
- Let the mug cake rest for 1 minute before eating.
Notes
- Microwaves vary, so start checking at 60 seconds.
- Use a large mug, since the cake rises during cooking.
- Taste the pesto before adding salt.

