Tessa’s Recipe Rundown
Taste: Chocolate overload in the best possible way!
Texture: Moist and tender without being too delicate or crumbly, topped with a beautifully light and creamy frosting.
Ease: The cupcakes are super simple, and although the frosting may seem complicated, I promise it’s super straightforward.
Why You’ll Love This Recipe: These are truly my favorite cupcakes EVER!
This post may contain affiliate links. Read our disclosure policy.
These cupcakes are seriously the BEST Chocolate Cupcakes you’ll ever try!

I love to utilize Baking Science to tweak and test recipes until I think they’re the ULTIMATE version of that recipe.
I’ve done it with my ultra-fudgy Ultimate Brownies, my perfectly chewy Ultimate Chocolate Chip Cookies, and my heavenly Ultimate Classic Cheesecake. What better recipe to perfect next than Chocolate Cupcakes?!

Free Baking Science Mini-Course!
From cookies that spread to undercooked brownies, this FREE 5-day Baking Science course helps you conquer common baking challenges and make bakery-worthy treats every time.

It took about 5 straight batches over a couple days, after previous casual tests over several months, to finally nail the recipe.
These cupcakes are perfectly moist and tender. They’re sturdy enough to hold up to plenty of frosting, with TONS of chocolate flavor. There are three kinds of chocolate in here in total!


Sprinkle of Science
How to Make the BEST Chocolate Cupcakes
The Chocolate
We can’t make stellar homemade Chocolate Cupcakes without first considering the chocolate! The cupcakes themselves use a whole 5 ounces of bittersweet chocolate AND Dutch-process cocoa powder, for as much chocolate flavor as possible.
Make sure to use freshly chopped baking chocolate and not chocolate chips, which don’t melt down as smoothly. Learn more about Chocolate in Baking here.
Do I Have to Use Dutch Process Cocoa Powder?
I recommend sticking with Dutch-process cocoa as it works differently on a chemical level compared to natural cocoa. You can find it at many gourmet food stores or online via Amazon.
Dutch Process Cocoa typically contains more cocoa butter (fat!) than your typical grocery store cocoa powder. This means more moisture, richness, and rich chocolate flavor! Learn more about cocoa powder’s fat content here.
Help! I Only Have Natural Cocoa Powder!
If you must use regular unsweetened cocoa powder in this recipe, then omit the vinegar – just note that your cupcakes may be a little more dry. Learn more about the differences between cocoa powders here.

The Secret to Super MOIST Chocolate Cupcakes
- This recipe calls for vegetable oil instead of butter. This creates an ultra-moist texture and an open, slightly spongy crumb. For more details on how these two fats work in baking, check out my Butter vs. Oil in Baking article.
- Since oil is liquid at room temperature, it leaves a sensation of moistness on the palate.
- Be sure to also use full-fat ingredients and don’t reduce the sugar in this recipe. Sugar actually helps contribute to moistness! Learn more about the role sugar plays in baking here.
- Be sure to measure your flour and cocoa powder correctly. Use a digital kitchen scale, or the spoon and level method if you don’t have a scale.

Hot Water and Espresso Powder in Chocolate Cupcakes
- If you bake chocolate cakes or cupcakes a lot, you’ve probably seen quite a few recipes that utilize hot water, or even hot coffee.
- This helps to dissolve and ‘bloom’ the cocoa powder to bring out as much flavor with as few cocoa lumps as possible.
- The espresso simply enhances the chocolate flavor without actually being perceptible.
Do I Have to Use Espresso Powder?
Feel free to use hot coffee in place of the hot water and espresso powder. Instant coffee and water will also work. If preferred, simply omit the espresso powder – no modifications needed.
The Eggs
The more whole eggs a cake recipe has, the richer it’ll be. I used one of my favorite baking tricks and added an extra egg yolk. This works beautifully for brownies and cookies, so why not chocolate cupcakes? It adds more richness, chewiness, and structure so the cupcake can stand up to a generous or heavy frosting.
Be sure to use large eggs – about 56 grams in shell. Don’t use eggs larger or smaller than this, as this will impact your cupcakes.
Egg Substitute For Chocolate Cupcakes?
I have yet to find an amazing egg substitute for this recipe. I recently experimented with egg substitutes in cookies, but I haven’t found any great substitutes in cupcakes yet. Let me know in the comments below if you experiment with that!
The Leavener
After much experimentation, I chose to use baking soda, so I had to add vinegar to the recipe. Why? Because without it, there wasn’t enough acid for the baking soda to react with. Dutch-process cocoa powder has been neutralized of its acid, so it was only the sour cream and the small amount of brown sugar.
For tall, tender, light cupcakes, we need the right amount of leavening, so baking soda + vinegar does the trick. This is why you omit the vinegar if you’re using natural cocoa powder.
The Flour
After testing all-purpose vs. bread flour, I found that all-purpose worked just as well. Since AP flour is more readily available, I stuck with that to make this recipe as simple as possible.
Sour Cream in Chocolate Cupcakes?
I find that sour cream adds such a lovely richness and balance of flavor to Chocolate Cupcakes. Full-fat plain yogurt makes a good alternative if needed.

The Chocolate Buttercream Frosting
When I originally published this recipe, it used a more complicated Chocolate Swiss Meringue Buttercream as the frosting. Although delicious, it’s more advanced and requires more time and special equipment.
In the interest of making this recipe simpler but still delicious, I swapped in a special version of American-style chocolate buttercream.
The frosting contains cooled chocolate ganache for pure chocolate flavor and fudgy richness. I like to use semisweet chocolate, but feel free to use milk or bittersweet chocolate instead.
For an extra smooth, flavorful, rich frosting, opt for organic powdered sugar and high-fat cocoa powder.
My Favorite Cupcake Tools:
- Cupcake liners: These cupcake liners are my favorite for cupcakes that don’t stick to the liner.
- Piping tip: I used the Ateco #828 piping tip for swirling the chocolate frosting on these cupcakes – but any large open star tip will work.
- Piping bags: I love these disposable piping bags.
Can I Make a Layer Cake with This Recipe?
Check out my Best Chocolate Cake recipe for that! It’s very similar to this recipe. You can also check out my guide for How to Convert Cupcakes Into Cake (and vice versa!).
How to Store Chocolate Cupcakes
Complately cooled Chocolate Cupcakes can be stored inside an airtight container at room temperature for up to 1 day.
Can You Freeze Chocolate Cupcakes?
- If storing for longer than a week, wrap unfrosted cupcakes individually in plastic wrap, to prevent freezer burn and taste transference.
- Place cupcakes inside a freezer bag on a shelf in your freezer where they won’t get smashed.
- Freeze for up to 3 months.
- Unwrap the cupcakes and allow them to defrost at room temperature for about 1 to 2 hours.

More Cupcakes Recipes You’ll Love:
More Frosting Recipes:

Best Chocolate Cupcakes
Email This Recipe
Enter your email, and we’ll send it to your inbox.
Ingredients
For the cupcakes:
- 5 ounces (142 grams) bittersweet baking chocolate, finely chopped
- 1/3 cup (28 grams) Dutch-process cocoa
- 1 teaspoon instant espresso powder
- 1/2 cup (118 grams) boiling water
- 3/4 cup (95 grams) all-purpose flour
- 1/2 cup (100 grams) granulated sugar
- 1/2 cup (100 grams) packed light brown sugar
- 1/2 teaspoon fine sea salt
- 1/2 teaspoon baking soda
- 1/2 cup (113 grams) sour cream (or plain full-fat yogurt), at room temperature
- 1/4 cup (56 grams) vegetable oil
- 2 large eggs plus one egg yolk, at room temperature
- 2 teaspoons white vinegar
- 1 teaspoon vanilla extract
For the frosting:
- 1/2 cup (119 grams) cold heavy whipping cream
- 4 ounces (113 grams) finely chopped semisweet chocolate (don't use chocolate chips)
- 3 sticks (340 grams) unsalted butter, at a cool room temperature
- 2 cups (250 grams) powdered sugar, sifted (preferably organic*)
- 1 cup (85 grams) Dutch-process cocoa powder, sifted
- 2 teaspoons vanilla extract
- 1/4 teaspoon fine sea salt
Instructions
Make the cupcakes:
- In a medium heatproof bowl, combine the chocolate, cocoa powder, and espresso powder. Pour hot water over mixture. Cover and let stand for 5 minutes. Whisk mixture gently until smooth, then set aside to cool.
- Meanwhile, preheat oven to 350°F. Line a standard 12-cup muffin tin with paper liners.
- In a small bowl, whisk together the flour, sugars, salt, and baking soda.
- Whisk sour cream, oil, eggs, egg yolk, vinegar, and vanilla into the cooled chocolate mixture until smooth, scraping down the sides and bottom of the bowl as you mix. Stir in the flour mixture until smooth, being careful not to overmix.
- Using a spring-loaded scoop, divide the batter evenly among prepared muffin cups until 3/4 full. Bake until cupcakes are set and firm to the touch, about 17 to 18 minutes.
- Let cupcakes cool in pan on a wire rack for 10 minutes before removing from pan to cool completely, about 1 hour. Cupcakes can be stored in an airtight container at room temperature for up to 1 day.
Make the frosting:
- In a small saucepan, bring the cream to a simmer. Remove from heat and add the chopped chocolate. Let stand for a few minutes before stirring until smooth. Set aside and cool to approximately 75°F or until thickened but still pourable.
- In the bowl of a stand mixer fitted with the paddle attachment, add the butter, powdered sugar, cocoa, vanilla, and salt. Mix on low speed until well blended and then increase the speed to medium and beat for another 3 minutes, or until very well blended, scraping down the bowl as needed.
- Reduce speed to medium-low and add the cooled chocolate cream mixture. Continue beating until the frosting has lightened in color and texture, about 2 minutes more, scraping down the bowl as needed.
- Frosting can be made 1 day ahead of time and stored in an airtight container in the refrigerator. Warm frosting in the microwave for 5 to 10 seconds and stir until creamy again before frosting cupcakes.
- Frosting can also be transferred to a ziptop bag and frozen for up to 1 month. Defrost in the fridge overnight then rewhip in the stand mixer until light and smooth.
Recipe Notes

The Ultimate Cookie Handbook
Learn the sweet SCIENCE of cookie baking in a fun, visual way to customize your own recipes frustration-free. Plus, my best 50+ homemade cookies!
This recipe was originally published in 2016 and updated to make the cupcakes more moist and tender, with an easier frosting. New photos by Ashley McLaughlin.
made this couple of times n my hubby loved it!!
hi. made this a few times and turned out somewhat gummy, what am i doing wrong?
Hi Rachelle! A strange gummy texture is usually due to overmixing, or incorrect amounts of ingredients. When you mix your batter, be sure not to overmix, and stop when the ingredients just come together. Also, how do you measure your ingredients? By volume (using cups), or by weight (using a digital kitchen scale)? When measuring by volume, it’s so easy to mis-measure flour/sugar/etc and throw off the entire chemistry of a recipe. Tessa talks about how to best measure ingredients to ensure accuracy every time, in this article here! I hope something here helps, and I hope you give these cupcakes another try!! Happy baking 🙂
These cupcakes are amazing. Do any changes need to be made if doubling this recipe?
Hi Cheryl! No, not adjustments need to be made if doubling this recipe; however, we do have an alternate suggestion. It’s so easy to miss something out, or mis-measure ingredients when doubling. Also, double batch might not necessarily fit well in a typical bowl of a stand mixer, and therefore not necessarily mixing properly. As a result, we recommend simply making the recipe start to finish twice, rather than doubling. Of course, if you have a big enough bowl and feel confident you won’t mis-measure, go for it 🙂 Happy baking!
Hi,
May I say that with cupcake recipe I made the best cupcakes I have ever made! I’m actually not that fond of butter cream but wow this buttercream was so smooth and just so delicious. I want to try your chocolate layer cake recipe but do you think I can use this buttercream recipe instead of the swiss meringue for that cake or will it be too sweet? I don’t have the right equipment for the Swiss meringue and I just loves this one.
Hi Sara! So glad you enjoyed these cupcakes and the frosting!! I think using this frosting on Tessa’s cake recipe would work just fine! Happy baking 🙂
I have never left a comment on a recipe before mainly because of time constraints, however I had to for this recipe. I have struggled for so long to find a chocolate cake/cupcake recipe that I was happy with AND a chocolate buttercream icing recipe that was worth repeating. You clearly put time into its development. The cake is a perfect consistency – light holds its shape and is delicious on its own period. I tried the icing today and it is light, but the chocolate flavour hasn’t been compromised. It isn’t too sweet or buttery. AND it pipes well. Thank you. I’ll be holding onto these recipes for a long time!
Hi Renee! Wow, what a review! We are SO excited that you loved these cupcakes and the frosting so much!! Thanks so much for the comment 🙂
Hi! I love this recipe!!! Any chance I can make this gluten free? If so, how?
Hi Lyndsay! I’m sorry, but we don’t bake gluten-free recipes, so I really couldn’t say! I know some readers have had success with other recipes using cup-for-cup gluten free flour in place of all-purpose flour, but again, having not tested this out ourselves, I can’t say for sure!
Absolutely delicious! I had made another chocolate cupcake recipe that I wasn’t quite fond of, it wasn’t dense enough for me. This was just a bit more dense and chocolatey and was perfect for what I was looking for! I added an oreo into the bottom of the cupcake before baking and used an oreo buttercream on top. They were fantastic 🙂
That sounds delicious, Aleisha!! So glad you loved this recipe! 🙂
Just got to say – the heading is correct. These really are the best….better than a cakemaker, the texture, the taste, and the appearance are perfection. Devoured by adults and kids alike at a recent party, these are definitely a keeper in the recipe file. Thank you!
Yay! So excited to hear that these cupcakes were such a hit, Maria!! 🙂
And, what is the reason for these only having a shelf life of 1 day?
Hi Noah! Unfrosted, these have a shorter shelf life just because the tops are more exposed to the air, and therefore dry out faster. Once frosted, they will last longer, since the frosting provides a barrier for the top of the cupcake. I hope that helps! 🙂
If I wanted Cupcakes that had a domed round top, could I add a little Baking powder to this recipe, like 1/2 to 1 Tsp?
Hi Noah! We haven’t tried that for this recipe, but you could definitely experiment and add a little to see if you can achieve the domed top you want! I would start by only adding 1/4 to 1/2 a teaspoon, though. Check out Tessa’s full article on the differences between leavening agents here!
Made these cupcakes today they are the most amazing tasting cupcakes I’ve ever made, and the frosting is to die for.
Wow, what a compliment!! So happy to hear that you enjoyed these cupcakes and the frosting so much, Jim!! 🙂
Hi HTH team! I’ve made these many times following the directions to a tee, yet the cupcakes always turn out flat and spread a lot. Help?!
Hi Kristi! Oh no! I’m sorry to hear the cupcakes aren’t turning out as they should! It’s so hard to pinpoint exactly what is going wrong without baking alongside you, but here’s a couple things to check first. How do you measure your flour? By weight using a digital scale, or by volume using cups? Weighing vs. measuring by volume can have a huge impact on your baked goods. It’s so easy to accidentally add too much flour if measuring by volume, and too much flour can have a huge impact on any baked goods. Tessa talks about how best to measure ingredients in this article here. Another issue could be your leavening agents may not be fresh. If your baking powder or soda are not fresh, this can impact the cupcake’s ability to rise properly. Tessa talks about how to test for leavener freshness in this article here! Lastly, I just want to double check that you’re definitely using Dutch-process cocoa, and full-fat sour cream? The wrong cocoa, or low-fat sour cream, could easily be the culprit here! Please let me know if any of these things could be the answer – or feel free to reach back out here, or by emailing [email protected] so we can help troubleshoot more! 🙂