Mocha Cupcakes

When you combine the rich, bold flavor of coffee with the smooth sweetness of chocolate, you get mocha — a match made in dessert heaven. Mocha cupcakes take this beloved flavor pairing and transform it into a perfectly sized treat that’s both indulgent and comforting. Whether you’re a coffee lover or just in the mood for a luscious chocolate dessert with a little extra kick, these cupcakes hit the spot every time.
What’s really delightful about mocha cupcakes is how the coffee flavor enhances the chocolate instead of overpowering it. The espresso or strong brewed coffee adds depth and a subtle bitterness that balances the sweetness of the cupcake and frosting beautifully. It’s a sophisticated flavor combo that works just as well for an afternoon pick-me-up as it does for a special occasion dessert.
Plus, mocha cupcakes are incredibly versatile. You can keep them classic with a silky mocha buttercream, or mix things up by adding a sprinkle of chocolate chips, a dash of cinnamon, or even a hint of caramel. They’re surprisingly simple to bake, too — perfect for when you want to impress friends without spending hours in the kitchen. If you’re ready to bake something deliciously cozy and a little decadent, this mocha cupcake recipe is a great place to start.
Why You’ll Love It
- Perfect Balance of Flavors: The combination of rich chocolate and robust coffee creates a deliciously balanced taste that’s neither too sweet nor too bitter. It’s just right for anyone who loves both flavors.
- Moist and Tender Texture: These cupcakes come out incredibly moist and soft, thanks to the coffee in the batter which helps keep them tender and full of flavor.
- Easy to Make: Despite their gourmet taste, mocha cupcakes are surprisingly simple to bake. With straightforward ingredients and steps, they’re great for both beginner and experienced bakers.
- Customizable: Whether you want a classic mocha frosting or like to experiment with toppings like chocolate shavings, espresso powder, or even a drizzle of caramel, these cupcakes give you plenty of room to personalize.
- Great for Any Occasion: From casual coffee breaks to birthdays and holiday gatherings, mocha cupcakes are a crowd-pleaser that fits seamlessly into any event or cozy moment.
Ingredient List
For the Mocha Cupcakes:
- 1 ½ cups all-purpose flour
- 1 cup granulated sugar
- ¼ cup unsweetened cocoa powder
- 1 teaspoon baking soda
- ½ teaspoon salt
- 1 large egg
- ½ cup buttermilk
- ½ cup brewed strong coffee or espresso, cooled
- ⅓ cup vegetable oil
- 1 teaspoon vanilla extract
For the Mocha Buttercream Frosting:
- 1 cup unsalted butter, softened
- 3 cups powdered sugar, sifted
- 2 tablespoons brewed coffee or espresso, cooled
- 2 tablespoons unsweetened cocoa powder
- 1 teaspoon vanilla extract
- Pinch of salt
Ingredient Notes
- I always use freshly brewed espresso or very strong coffee for the best mocha flavor — instant coffee can work, but fresh always tastes richer.
- Using buttermilk helps keep the cupcakes moist and tender. If you don’t have buttermilk, mix 1 tablespoon lemon juice or vinegar with ½ cup milk and let it sit for 5 minutes.
- Unsweetened cocoa powder is key here — it gives that deep chocolate taste without adding extra sweetness.
- Make sure your butter for the frosting is softened to room temperature for a smooth, creamy texture.
- Don’t skip sifting the powdered sugar and cocoa in the frosting; it prevents lumps and makes the buttercream extra silky.
Kitchen Equipment Needed
- Mixing bowls: For combining your dry and wet ingredients separately. I like using glass bowls because they’re easy to clean and don’t retain odors.
- Electric hand mixer or stand mixer: Makes beating the batter and frosting smooth and effortless. A stand mixer is my go-to for hands-free mixing.
- Measuring cups and spoons: To get precise ingredient amounts — accuracy matters for baking!
- Muffin tin: Holds the cupcake liners and shapes your cupcakes perfectly. A standard 12-cup muffin tin works great.
- Cupcake liners: Prevents sticking and makes cupcakes easy to handle and serve. I prefer greaseproof liners.
- Cooling rack: Allows cupcakes to cool evenly without getting soggy on the bottom.
- Spatula: Ideal for scraping down the sides of bowls and folding ingredients gently.
- Piping bag and tip (optional): For decorating your cupcakes with a professional-looking swirl of frosting. If you don’t have one, a zip-top bag with a corner snipped works too!
Instructions
Step 1: Prepare Your Ingredients and Oven
- Preheat your oven to 350°F (175°C).
- Line a 12-cup muffin tin with cupcake liners.
- Brew your coffee or espresso and let it cool to room temperature.
- Gather all ingredients measured out and ready to go — this makes the process smooth and stress-free.
Step 2: Mix the Dry Ingredients
- In a large mixing bowl, sift together the all-purpose flour, cocoa powder, baking soda, and salt.
- Add the granulated sugar and whisk everything together until well combined.
- Pro tip: Sifting the cocoa powder and flour helps prevent lumps and ensures an even texture in your cupcakes.
Step 3: Combine the Wet Ingredients
- In a separate bowl, whisk the egg until lightly beaten.
- Add the buttermilk, cooled coffee, vegetable oil, and vanilla extract. Mix until all the liquids are fully combined.
Step 4: Incorporate Wet and Dry Ingredients
- Slowly pour the wet ingredients into the bowl with the dry ingredients.
- Using a spatula or the mixer on low speed, gently fold everything together until just combined.
- Pro tip: Avoid overmixing here! Overworking the batter can make the cupcakes dense rather than light and fluffy. Stop mixing as soon as you see no more dry streaks.
Step 5: Fill the Cupcake Liners
- Evenly divide the batter among the 12 cupcake liners, filling each about 2/3 full.
- This helps the cupcakes rise perfectly without spilling over the edges.
Step 6: Bake the Cupcakes
- Place the muffin tin in the preheated oven and bake for 18-22 minutes.
- Check for doneness by inserting a toothpick in the center of a cupcake — it should come out clean or with a few moist crumbs, but no wet batter.
- Pro tip: Start checking at 18 minutes to avoid overbaking, which can dry out the cupcakes.
Step 7: Cool Completely
- Remove the cupcakes from the oven and let them sit in the tin for 5 minutes.
- Transfer them to a cooling rack to cool completely before frosting.
- Frosting warm cupcakes can cause the buttercream to melt and slide off.
Step 8: Prepare the Mocha Buttercream Frosting
- In a large bowl, beat the softened butter on medium speed until creamy and pale (about 2-3 minutes).
- Gradually add the sifted powdered sugar and cocoa powder, mixing on low to combine.
- Add the brewed coffee, vanilla extract, and a pinch of salt. Beat on medium-high speed until the frosting is smooth and fluffy.
- Pro tip: If the frosting feels too thick, add a little more coffee, one teaspoon at a time, until you reach your desired consistency. If it’s too thin, add more powdered sugar gradually.
Step 9: Frost the Cupcakes
- Using a piping bag fitted with your favorite tip or a spatula, generously frost each cupcake.
- Decorate with a sprinkle of cocoa powder, chocolate shavings, or a dusting of espresso powder if you like.
Step 10: Serve and Enjoy!
- Your mocha cupcakes are best enjoyed fresh but can be stored in an airtight container at room temperature for up to 2 days or in the fridge for up to a week.
- Bring them to room temperature before serving if refrigerated for the best flavor and texture.

Tips and Tricks for Success
- Always use freshly brewed coffee or espresso for the richest mocha flavor. Instant coffee works but won’t be as vibrant.
- Don’t skip sifting your dry ingredients; it helps keep the batter smooth and light.
- Make sure your coffee is completely cooled before adding it to the batter or frosting to avoid curdling or melting the butter.
- Use room temperature eggs and butter — they blend more easily and create a better texture.
- Avoid overmixing the batter to keep your cupcakes tender and fluffy.
- Check cupcakes early for doneness with a toothpick to prevent drying out.
- Let cupcakes cool completely before frosting to keep the buttercream from melting.
- Adjust the frosting consistency with coffee or powdered sugar as needed for easy piping or spreading.
Ingredient Substitutions and Variations
- Coffee substitute: Use instant espresso powder dissolved in a tablespoon of hot water if you don’t have brewed coffee.
- Buttermilk substitute: Mix 1 tablespoon lemon juice or white vinegar with ½ cup milk and let sit for 5 minutes.
- Oil substitute: You can swap vegetable oil with melted coconut oil or unsalted butter for a slightly different flavor.
- Sugar substitute: Use coconut sugar or brown sugar for a deeper, caramel-like sweetness.
- Frosting variations: Swap the mocha buttercream for chocolate ganache or cream cheese frosting with a hint of espresso for a tangier option.
- Add-ins: Fold in mini chocolate chips or chopped nuts into the batter for extra texture and flavor.
- Toppings: Sprinkle sea salt on top of the frosting for a salted mocha twist.
Serving Suggestions
- I love serving mocha cupcakes alongside a hot cup of black coffee or espresso to really highlight that coffee flavor.
- These cupcakes make a perfect afternoon treat with a glass of cold milk or vanilla almond milk for a creamy contrast.
- For a special occasion, serve them with a scoop of vanilla or coffee ice cream — it’s like having dessert and coffee all in one!
- They’re great paired with fresh berries or a berry compote to add a bright, fruity balance to the rich mocha taste.
- If you’re hosting a brunch, place these cupcakes on a dessert tray with assorted pastries and fresh fruit for a beautiful, crowd-pleasing spread.

Storage and Reheating Instructions
- Store cooled, unfrosted cupcakes in an airtight container at room temperature for up to 2 days.
- If frosted, keep the cupcakes in an airtight container in the refrigerator for up to 5 days.
- Bring refrigerated cupcakes to room temperature before serving for the best texture and flavor — about 30 minutes on the counter works well.
- To reheat, gently warm cupcakes in the microwave for 10-15 seconds, but avoid overheating to prevent drying them out.
- For longer storage, freeze unfrosted cupcakes in a sealed container for up to 3 months; thaw overnight in the fridge before frosting and serving.
Frequently Asked Questions
Can I use regular coffee instead of espresso for these cupcakes?
Yes! Strong brewed coffee works just fine and will give you that lovely mocha flavor. Just make sure it’s cooled before adding it to the batter or frosting.
What if I don’t have buttermilk?
No worries! You can make a quick buttermilk substitute by mixing 1 tablespoon of lemon juice or vinegar with ½ cup of milk. Let it sit for 5 minutes before using.
How do I store mocha cupcakes to keep them fresh?
Store them in an airtight container at room temperature for up to 2 days if unfrosted, or in the fridge for up to 5 days if frosted. Bring them to room temp before serving for the best taste.
Can I make these cupcakes gluten-free?
Absolutely! Substitute the all-purpose flour with a gluten-free flour blend that’s designed for baking. Just make sure it includes xanthan gum or another binder for the best texture.
Is there a way to make these cupcakes dairy-free?
Yes, you can use plant-based milk like almond or oat milk and replace the butter with dairy-free margarine or coconut oil. Just keep the coffee and cocoa powder the same!
Can I freeze mocha cupcakes?
Definitely! Freeze unfrosted cupcakes in an airtight container for up to 3 months. Thaw them overnight in the fridge, then frost just before serving for fresh-tasting treats.
Did you try this recipe? Let me know in the comments how it turned out!
Don’t forget to share your photos on Instagram and tag me (@tasiahub_) or use the hashtag (#tasiahub). I’d love to see your creations!

Mocha Cupcakes
Equipment
- Mixing Bowls
- Electric hand mixer or stand mixer
- Measuring cups and spoons
- Muffin Tin
- Cupcake liners
- Cooling Rack
- Spatula
- Piping bag and tip (optional)
Ingredients
For the Mocha Cupcakes:
- 1 ½ cups all-purpose flour
- 1 cup granulated sugar
- ¼ cup unsweetened cocoa powder
- 1 teaspoon baking soda
- ½ teaspoon salt
- 1 large egg
- ½ cup buttermilk
- ½ cup brewed strong coffee or espresso cooled
- ⅓ cup vegetable oil
- 1 teaspoon vanilla extract
For the Mocha Buttercream Frosting:
- 1 cup unsalted butter softened
- 3 cups powdered sugar sifted
- 2 tablespoons brewed coffee or espresso cooled
- 2 tablespoons unsweetened cocoa powder
- 1 teaspoon vanilla extract
- Pinch of salt
Instructions
Step 1: Prepare Your Ingredients and Oven
- Preheat your oven to 350°F (175°C).
- Line a 12-cup muffin tin with cupcake liners.
- Brew your coffee or espresso and let it cool to room temperature.
- Gather all ingredients measured out and ready to go — this makes the process smooth and stress-free.
Step 2: Mix the Dry Ingredients
- In a large mixing bowl, sift together the all-purpose flour, cocoa powder, baking soda, and salt.
- Add the granulated sugar and whisk everything together until well combined.
- Pro tip: Sifting the cocoa powder and flour helps prevent lumps and ensures an even texture in your cupcakes.
Step 3: Combine the Wet Ingredients
- In a separate bowl, whisk the egg until lightly beaten.
- Add the buttermilk, cooled coffee, vegetable oil, and vanilla extract. Mix until all the liquids are fully combined.
Step 4: Incorporate Wet and Dry Ingredients
- Slowly pour the wet ingredients into the bowl with the dry ingredients.
- Using a spatula or the mixer on low speed, gently fold everything together until just combined.
- Pro tip: Avoid overmixing here! Overworking the batter can make the cupcakes dense rather than light and fluffy. Stop mixing as soon as you see no more dry streaks.
Step 5: Fill the Cupcake Liners
- Evenly divide the batter among the 12 cupcake liners, filling each about 2/3 full.
- This helps the cupcakes rise perfectly without spilling over the edges.
Step 6: Bake the Cupcakes
- Place the muffin tin in the preheated oven and bake for 18-22 minutes.
- Check for doneness by inserting a toothpick in the center of a cupcake — it should come out clean or with a few moist crumbs, but no wet batter.
- Pro tip: Start checking at 18 minutes to avoid overbaking, which can dry out the cupcakes.
Step 7: Cool Completely
- Remove the cupcakes from the oven and let them sit in the tin for 5 minutes.
- Transfer them to a cooling rack to cool completely before frosting.
- Frosting warm cupcakes can cause the buttercream to melt and slide off.
Step 8: Prepare the Mocha Buttercream Frosting
- In a large bowl, beat the softened butter on medium speed until creamy and pale (about 2-3 minutes).
- Gradually add the sifted powdered sugar and cocoa powder, mixing on low to combine.
- Add the brewed coffee, vanilla extract, and a pinch of salt. Beat on medium-high speed until the frosting is smooth and fluffy.
- Pro tip: If the frosting feels too thick, add a little more coffee, one teaspoon at a time, until you reach your desired consistency. If it’s too thin, add more powdered sugar gradually.
Step 9: Frost the Cupcakes
- Using a piping bag fitted with your favorite tip or a spatula, generously frost each cupcake.
- Decorate with a sprinkle of cocoa powder, chocolate shavings, or a dusting of espresso powder if you like.
Step 10: Serve and Enjoy!
- Your mocha cupcakes are best enjoyed fresh but can be stored in an airtight container at room temperature for up to 2 days or in the fridge for up to a week.
- Bring them to room temperature before serving if refrigerated for the best flavor and texture.
Notes
Nutritional Value Per Cupcake:
- Calories: 330 kcal
- Fat: 18g
- Carbohydrates: 40g
- Sugar: 28g
- Protein: 3g
- Fiber: 1g