These moist coffee cupcakes get their bold flavor from double-strength brewed coffee and instant espresso powder. I top each one with a swirl of fluffy mocha buttercream frosting. If you order your mocha with an extra shot, these are the cupcakes for you.
Why you'll love it
When I make coffee-flavored cupcakes, I want to taste the coffee even if I sneak a bite from the bottom. That’s why I use both brewed coffee and espresso powder. The cocoa goes in the buttercream, so you get a little chocolate with each swirl while the coffee still comes through in the cupcake itself.
- You can use your favorite roast. I like a dark roast here. Brewing it strong gives the cake the flavor of the coffee you picked, and the espresso powder deepens it without thinning the batter.
- You can mix the batter by hand. This is an easy coffee cupcake recipe to mix by hand because the batter uses oil. A whisk and two bowls are all you need. You can save the mixer for the frosting.
- You decide how to frost them. For tall swirls, stop adding the coffee mixture while the buttercream still holds a peak. For a softer swoop you can spread with a knife, beat in a little more.
- Bonus: bake one in a coffee mug. I baked one in an oversized, oven-safe coffee mug and finished it with a big swirl of mocha frosting. Mine took at least four cupcakes’ worth of batter. It’s a fun one to share with two forks.
Ingredient overview
- Brewed coffee. I brew mine about twice as strong as I would for drinking, then let it cool to room temperature. You can also use homemade cold brew concentrate straight from the batch, before diluting it for a glass of iced coffee.
- Instant espresso powder. You'll use it in both the batter and the frosting. Look for instant espresso that dissolves in liquid. Ground espresso beans will leave grit in your buttercream. If you have powder left in the jar, my espresso chocolate chip cookies are another way to use it.
- Milk and oil. I prefer whole milk, though 2% works here too. The ½ cup (99 g) of vegetable oil keeps the crumb tender and lets the coffee flavor come through.
- Cinnamon, nutmeg, and vanilla. A little cinnamon and a pinch of nutmeg give the coffee a hint of spice. I like a little cinnamon and nutmeg with my coffee. If you’d rather taste just the coffee and vanilla, you can leave out both spices.
- Butter, powdered sugar, cocoa, and cream. Start with softened unsalted butter and sift the powdered sugar for a smooth frosting. Cocoa gives the buttercream its chocolate flavor. The cream and coffee let you adjust how thick it is.
How to make coffee cupcakes
- Heat the oven to 350°F and line standard cupcake pans. Use enough liners for 24 standard cupcakes.
- Whisk the flour, baking powder, baking soda, salt, spices, espresso powder, and sugar in a medium bowl. Whisk the oil, milk, cooled coffee, eggs, and vanilla in a separate large bowl until combined.
- Stir the dry ingredients into the wet ingredients a little at a time. Stop when the last streak of flour disappears. Leave the batter thin enough to pour.
- Fill each standard cupcake liner two-thirds full to leave room for the cupcakes to rise. Bake the standard cupcakes for 20–25 minutes. Start checking at 20 minutes. Insert a toothpick into the center and look for a few crumbs. Bake for another 1–2 minutes if you see wet batter, then check again. Let the cupcakes cool completely before frosting.
How to make mocha buttercream frosting
Flavor the buttercream with brewed coffee, espresso powder, and cocoa for that familiar mocha flavor.
Beat the softened butter until fluffy. Beat in the sifted powdered sugar and salt a little at a time. Whisk the cooled coffee, cream, espresso powder, and cocoa in a small bowl until smooth.
Beat the coffee mixture into the buttercream one tablespoon at a time. Let each spoonful blend in before adding the next. Lift the beater to check the texture. Stop adding the coffee mixture when the frosting holds a soft curl that stays in place. Leave any remaining liquid in the bowl.
Amanda's Expert tips
- Measure the flour with a light hand. For the most accurate measurement, weigh your flour on a kitchen scale. If you're using cups, fluff the flour first, spoon it gently into the cup, and sweep the top level. Scooping straight from the bag packs in extra flour and can make the cupcakes dry.
- Use the thin batter to your advantage. A measuring jug with a spout makes it easier to fill the liners evenly. Resist the urge to add another spoonful of flour to thicken it.
- Cool the coffee before making the frosting. If it's still warm, it can soften the butter enough that your piped swirls start to slump.
Coffee Cupcake FAQs
I prefer instant espresso powder over instant coffee for a stronger coffee flavor. If you use instant coffee, dissolve the granules in a little warm milk from the recipe. Let the milk cool to room temperature before mixing the batter.
First, stop adding the coffee and cream. If the buttercream feels warm, chill it briefly, then beat it again and test a small swirl. For the next batch, let the brewed coffee cool completely and beat in only as much of the mixture as the buttercream needs.
Let the cupcakes cool completely before storing them in an airtight container. They'll keep at room temperature for up to 3 days. For longer storage, freeze the unfrosted cupcakes for up to 1 month, then thaw them overnight in the refrigerator and frost when you're ready to serve. Once frosted, they'll keep in an airtight container in the refrigerator for up to 1 week, or at room temperature for up to 3 days.
Spoon the extra buttercream into an airtight freezer container and freeze it for up to 3 months. Thaw it overnight in the refrigerator. Let it soften just until it’s easy to beat, then whip it until smooth and fluffy before piping.
If you'd like to try these with less caffeine, look for both decaf brewed coffee and decaf instant espresso. NESCAFÉ Gold Decaf Espresso is one instant option.
If you'd like to serve slices, my coffee-flavored cake with whipped mocha icing has directions for baking and frosting a layer cake. For a two-layer birthday cake, leave the two baked layers whole. I split mine because I like a little more filling in each slice.
For the two eggs in this batter, stir 2 tablespoons of ground flaxseed into 6 tablespoons of water. Let it sit for about 5 minutes to gel before adding it to the wet ingredients. The cupcakes still contain milk, and the frosting contains butter and cream.
Related Recipes
Recipe Card

Coffee Cupcakes With Mocha Buttercream Frosting
Ingredients
Cupcakes
- 3 cups all-purpose flour 360 g
- 1 teaspoon baking powder 4 g
- 2 teaspoons baking soda 12 g
- 1 teaspoon table salt 6 g
- ¼ teaspoon ground cinnamon
- 1 pinch ground nutmeg
- 3 tablespoons instant espresso powder 21 g
- 2 cups granulated sugar 396 g
- ½ cup vegetable oil 99 g
- ¾ cup whole milk 170 g, room temperature
- 1 cup strong brewed coffee 236 g, double-strength or cold brew concentrate, room temperature
- 2 large eggs room temperature
- 2 teaspoons pure vanilla extract 9 g
Mocha Buttercream
- 1 cup unsalted butter 226 g, softened
- 3 ½ cups powdered sugar 396 g, measured before sifting
- ¼ teaspoon table salt 1.5 g
- ¼ cup heavy cream 57 g
- ¼ cup brewed coffee 59 g, cooled to room temperature
- 1 tablespoon instant espresso powder 7 g
- 2 tablespoons unsweetened cocoa powder 10.5 g, plus more for garnish
Instructions
- Heat the oven to 350°F and line standard cupcake pans. Have 1¼ cups of cooled brewed coffee ready. You’ll use 1 cup for the cupcakes and ¼ cup for the mocha buttercream
- Whisk the flour, baking powder, baking soda, salt, cinnamon, nutmeg, espresso powder, and sugar in a medium bowl.
- Whisk the oil, milk, cooled coffee, eggs, and vanilla in a separate large bowl until combined.
- Stir the dry ingredients into the wet ingredients a little at a time. Stop when the last streak of flour disappears. Leave the batter thin enough to pour.
- Fill each of the 24 standard cupcake liners two-thirds full to leave room for the cupcakes to rise.
- Bake for 20–25 minutes. Start checking at 20 minutes. Insert a toothpick into the center and look for a few crumbs. Bake for another 1–2 minutes if you see wet batter, then check again.
- Let the cupcakes cool completely before frosting.
- Beat the softened butter until light and fluffy.
- Beat in the sifted powdered sugar and salt a little at a time.
- Whisk the cream, cooled coffee, instant espresso powder, and cocoa until smooth. Beat the mixture into the buttercream one tablespoon at a time. Stop when the frosting holds a piped swirl. Leave any remaining liquid in the bowl.
- Frost the cooled cupcakes and dust with cocoa powder if desired.

















Connie McKee says
I've made this recipe 2 times and luved them. My question is.... can you make this as a double layer cake?
Amanda Powell says
I actually have it as a cake recipe on the website! You can make it just two thicker layers by not cutting the two cakes you initially bake in half again. I did it because I wanted more opportunities to add the filling 🙂
Sydney Everett says
I’ve tried making this buttercream twice and both times it has curdled on me. My butter was room temperature. I used heavy cream and cold brew. The same cold brew I used in the cupcakes.
Amanda Powell says
Does the consistency get liquidy? Try adding in less the cold brew and cream at a time. It might be good to add in a tablespoon or two at a time and beat it in well before adding in more.
Sydney Everett says
Yes it did get really liquidy. I will try that
Em says
These were delicious! I made them as mini cupcakes and added a chocolate ganache filling to make them a little more chocolatey and it paired really well. As others noted, I also left out the cinnamon and nutmeg and they had a really nice coffee-forward flavor.
Markie says
Don't want to leave a bad review. Just need help. Made the recipe exactly as followed at 350 and the cupcakes were burnt black on the bottom, has never happened before so I'm not sure what went wrong. Any ideas? The tops looked the same as the picture and the buttercream is delicious
Amanda Powell says
Hi Markie, Apologies for the late reply. I have never had this happen, so I am not sure. Was there anything different? A different pan you were using, or perhaps the rack you were using was at a lower level? I don't think there is anything specific to the recipe that could cause it from what I am seeing. I wish I could be more help.
Sophia says
Hey I wanted to make this recipe but I don’t have any instant coffee powder, but I do have usual brewed coffee would it still taste good without the powder?
Ana says
For the vegetable oil, it says to use 1/2 cup or 223 grams. 1/2 is 113 grams, so which one is correct?
Erik says
Tried this recipe today for my wife's birthday and they turned out great. A couple things I noticed with the recipe was that a few weight measurements didn't match up with their cup/Tbls measurements. For example the vegetable oil was closer to 1 cup when weighed and for the frosting the cocoa powder was 10 grams for 2 Tbls and the instant espresso was 5 grams for 1 Tbls.
JoAnn says
I made these cupcakes back in October 2021, for my daughter's birthday and she loved them. Not only did she love them but so did the rest of the family. I will be making these again on Saturday for her uncle's birthday party!
sheetal patel says
For the milk in the recipe so I use whole
Milk or 2%?
Thank you!
Amanda Powell says
Either one will work. I prefer using whole milk though 🙂
Jenny says
Hello! First off, thank you so much for this recipe! I work in kitchens and was assigned the task of making a coffee cupcake for an event this weekend. I used today for recipe testing and am utilizing your recipe as a jumping off point. I am commenting because perhaps my experience can help a fellow baker.
A few notes:
1) I made a half batch *VEGAN* version of *JUST* the cupcake, not the frosting. I made two substitutions: flax egg for the egg (as per your suggestion), almond milk, and instant coffee in place of the instant espresso.
2) As noted above, I would definitely omit the cinnamon and nutmeg in my next batch in order to achieve a more *pure* coffee flavor.
3) As also noted above, the cupcake tin was definitely too full of batter prior to baking. I filled a dozen batch muffin tin thinking it was a little too full but decided to follow the recipe. The cupcakes overflowed and resulted in muffin tops (not a good look when you're trying to make cupcakes). The way to avoid this is to only fill the cupcake tin paper liners 2/3rds full.
4) I can't speak for the instant espresso powder (I've never used it), but with the instant coffee in my next batch I would definitely dissolve the granules in hot milk - the milk from the recipe (then obviously cool it to room temp before proceeding). You could still see the granules on the tops of the cupcakes after baking (i.e. they did not dissolve properly). This is an easy fix.
5) The crumb's end result was a little dry; I baked them for 25 minutes before testing. I think this may be due to the long bake time (as someone also noted in a prior comment). Next time I would check the cupcakes with a toothpick at 20 minutes (at 15 when I rotated the pan they still looked wet in the middle).
6) To combat the dryness I would also substitute the flax egg with 1/4 cup (1/2 cup for a full batch) plain nondairy yogurt, such as Forager or Kite Hill brand. I believe this would aid in a more moist crumb. If the crumb is still dry, I would simply brush the tops with coffee simple syrup (1 part hot coffee combined with 1 part dissolved sugar; 1/4-1/2 cup of each would probably be enough).
Again, thank you for your work! I am not here to criticize, only to provide my [vegan] experience. I will update you on Friday after baking another batch with the above adjustments.
RR says
This was so good! I made these while still at home social distancing. I used instant coffee instead of freshly brewed coffee, and I didn't have espresso powder but I just added a ton of extra instant coffee powder to the mix (until the batter tasted good ;)). It turned out amazing. Also topped it with cream cheese frosting and the pairing was phenomenal. Thanks for this recipe - SO quick and easy and turned out great. The only thing I guess I wasn't clear about was how much to fill the cupcake pan (I'm an amateur baker), but 2/3 seemed just right!
Amanda Powell says
I am so glad you enjoyed it!!! Cream cheese frosting actually sounds amazing with this!!