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.

















Shweta says
Hi, can I replace the oil with equivalent amount of melted butter? And, isn't the sugar in the recipe too less for that amount of flour?
Amanda Powell says
Hi! Apologies for the late reply. Yes, you can substitute with melted butter. No one has ever complained about the level of sweetness in these cupcakes that I am aware of, but if you prefer something sweeter, you can try adding a little more! I think the sweetness of the frosting does really well with the cupcakes.
Penny Barry says
This frosting is so delicious. Used all the liquid and added more of the sugar to thicken and then refrigerated. My husband doesnt drink coffee but loves this fluffy frosting. Thanks for this recipe. Will be using it often.
Amanda Powell says
I'm so glad you enjoyed it!!!
Evelyn says
Be careful if you are using a scale to measure out your ingredients!!
Some of the mass measurements conflict with the volume measurements. I started with massing out the oil and it seemed like too much, so I poured it into a measuring cup and it was far more than half a cup. A half cup of vegetable oil = 8 tablespoons, each at 14 g = 112 grams, not 223 grams.
Amanda Powell says
Thank you for pointing that out!! We had an intern who was helping to add grams, so I will be sure to fix that and have the other measurements in the other recipes double checked!
Mary says
I liked these, but the cinnamon flavor overtook the coffee flavor. Next time I would leave out cinnamon and make 2 1/2 dozen as they were much too full.
Carolyn Roth says
In the ingredient list you have "1/4 cup tablespoons heavy cream". That's a bit confusing lol.
Amanda says
Oh my gosh, thank you for pointing that out! How embarrassing! It should be 1/4 cup...no tablespoons!
Clara B says
I thought the cupcakes were good! I liked the bake and the flavor. The icing was going very well - until I added the 1/2 cup of liquid. It completely ruined my icing, turning it into a soupy mess 🙁 I ended up reviving it by adding a LOT of additional confectioner's sugar - but by then the taste was off (far too sweet) and really was not as good. I definitely recommend giving the cupcakes a try - although, to me, they didn't taste much like coffee - and give the buttercream a try but be a LOT more sparing with the liquid.
Amanda says
Hi Clara, thanks for your honest review! I've not had many people note that the frosting turned soupy for them. Only one other that I can recall immediately, but I adjusted the instructions so that it advises people to add the liquid slowly and may not need all of the liquid. Hopefully that will keep others from experiencing this same issue. Also, if a frosting ever does become too sweet for whatever reason, a pinch or two of salt usually helps cut some of that sweetness down!
Jodie says
Would it be possible to make this into a 2 layer cake instead of cupcakes?
Amanda says
Yes, you can! I've actually done this and shared it on the website as well. You can use the same frosting as these cupcakes if you'd like or the frosting I used with the cake version. https://cookienameddesire.com/coffee-flavored-cake-recipe/
Tracey says
How can I adjust the recipe for a 12 count yield? Sounds good but 24 is too many for my needs.
Amanda says
You should be able to divide the recipe directly in half and have them come out great!
Tracey says
Thanks! Newer to baking and the recipe has such small fractions to begin with, I didn't want to mess it up!
Maya Byrse says
I love your recipe but with eggs it is not vegetarian. Can I substitute something else for eggs.
Amanda says
I usually like to use flax eggs as a substitute. I use 1 tablespoon ground flaxseed and 2 tablespoons water. Stir and leave to rest for five minutes before using.
Dollie says
I made these but I have my frosting in the fridge at the moment. It turned out really runny. What could I have done wrong? I followed the recipe completely. My coffee was completely cool. My butter and sugar mixed awesomely but when I added everything else it just turned to liquid ☹
Amanda says
Oh no!! I am not sure what could have happened. I've not come across this issue from anyone before, so the only thing I can think of is that maybe the humidity level in your kitchen affected the frosting? Perhaps slowly drizzling in the cream and coffee while the frosting is beating would work to prevent that. I am sure once it's in the fridge, it will firm up. You can also try adding more powdered sugar to help thicken it. Just add a couple of pinches of salt to combat the added sweetness. Please keep me updated!!
Doris says
These look so yummy...before I make them I just wanted to double check the baking time...25-30 minutes is that correct? seems a little long for cupcakes
Amanda says
Yes, that is correct. You can start checking after 15 minutes if it makes you nervous, but the batter is a little runny which is why it takes longer than normal cupcakes. When in doubt, check sooner and use a toothpick to test the batter inside!
Doris says
Okay great...thanks for your quick response!! 🙂
Madhu Anvekar says
Hi Amanda , Is 1 cup of coffee and brewed coffee the same or different ? If it is different please give me the recipe for the cup of coffee mentioned in the recipe .
Thank you
Amanda says
It is the same!
Madhu Anvekar says
Thank you 🙂
Coffee.addict says
Tried this recipe and followed it religiously. My daughter said it tasted like carrot cake without the carrots. I agree with her. The spices ruined the coffee taste. What a disappointment.
Amanda says
Hi Coffee Addict, I am so terribly sorry that the cupcakes did not meet your expectations. I understand how frustrating it can be to try a recipe only to have it not taste the way you want. This happens to be one of the more popular recipes on the site and while many enjoy the blend of spices and coffee, it obviously depends on your personal tastes. Hopefully you are not so discouraged by the original recipe to retry the recipe again with fewer or no spices so as to meet your particular preferences! Thank you for taking the time to give my recipe a chance and sharing your honest feedback! 🙂
Coffee.addict says
Hi again! Dont get me wrong, the cupcakes were not bad. I was just expecting the have the coffee taste. (after all, it called for 1 cup of brewed coffe and 2 T of espresso powder).
If I make these again, I will have some minor adjustments. I will omit the spices, lessen the milk and add one more egg. Thanks for sharing.
Keisha Ishino Prayatno says
by "coffee" does that mean brewed coffee or just the powder? Sorry I'm new at baking
Amanda says
Hi Keisha! In the cupcakes you use instant espresso powder as well as your favorite brewed coffee. You use a mix of instant and brewed coffee in the frosting as well. I hope this helps!
Cecilia says
I made these and eventhought i put the quantity of nutmeg as the recipe says, i think it was too much. They taste more like nutmeg rather than coffe.
Amanda says
Hi Cecilia,
First, thank you for taking the time to try the recipe! It is one of the more popular recipes on the site and a personal favorite. I am sorry that the nutmeg was too much for you! It is the first time I've had that mentioned. Is it possible that the coffee used was not strong enough? Or maybe a brand new container of nutmeg (or fresh nutmeg)? Either way, I will certainly take this into consideration with the recipe!
Cecilia says
Oh, I used the right amount of really good coffe but i used fresh nutmeg. If it's fresh nutmeg, how much should I use?
Amanda says
That's it! I used pre-ground nutmeg which is not nearly as strong as fresh. If you are using fresh you need a very small amount. Just a scant 1/4 teaspoon would be plenty. Thank you for commenting, now I know to make the distinction within the recipe!!