Jump to Recipe
This post may contain affiliate links.
These are the best chocolate cupcakes: rich, tender, and simple to prepare. The cake has an incredibly soft crumb and is finished with a smooth chocolate buttercream. This recipe is ideal for anyone who loves chocolate.

This chocolate cupcake recipe delivers moist, flavorful cupcakes with a delicate texture. They come together quickly with straightforward ingredients and are finished with a creamy chocolate frosting that complements the cake perfectly.
These cupcakes are excellent for birthdays, holidays, or any celebration. They store well and can be prepared ahead so you can enjoy stress-free entertaining.
If you enjoy cupcakes, also consider other recipes like Peanut Butter Chocolate Cupcakes, Red Velvet Cupcakes, and Chocolate Fudge Cupcakes.
[feast_advanced_jump_to]
WHY THIS RECIPE WORKS
- Chocolate buttercream: A rich, smooth frosting that’s easy to pipe and full of chocolate flavor.
- Chocolate cupcake: The cake is tender and moist, and quick to prepare.
- Showstopper: Simple to make yet impressive when piped with chocolate swirls.


INGREDIENT NOTES
Below are key ingredient notes to help you get the best results. For the full quantities and the complete list, see the recipe card further down.
- Eggs: Bring eggs to room temperature for 30–60 minutes before baking for best incorporation.
- Sour cream: Using room-temperature sour cream keeps the cupcakes tender and moist.
- Boiled water: Prepare hot water or coffee in advance and let it cool slightly before adding. Hot liquid helps bloom the cocoa for deeper chocolate flavor.
- Cocoa powder: Use a high-quality Dutch-processed cocoa for the richest flavor.
- Vegetable oil: Choose a neutral oil like canola for a soft crumb without affecting flavor.
STEP BY STEP INSTRUCTIONS
These instructions outline how to make and bake the cupcakes. You’ll need an electric mixer (or hand mixer), two bowls, a whisk and a spatula.
The full recipe is in the recipe card below.
Preheat the oven to 160ºC / 320ºF (conventional). Line a 12-cup cupcake pan with paper liners.
STEP 1: Make the cupcake batter. In a large bowl whisk together the dry ingredients until evenly combined. In a separate bowl whisk the wet ingredients until smooth.
STEP 2: Gradually add the wet ingredients to the dry and stir gently until the batter is smooth with no lumps. Divide the batter among the 12 liners and bake for 20–23 minutes. Allow cupcakes to cool on a wire rack.


STEP 3: To make the buttercream, beat the butter in a stand mixer or with a hand mixer for about 4 minutes on medium-high speed until light and creamy. Scrape the bowl and beat an additional 2 minutes.
STEP 4: Add the sifted powdered sugar and cocoa, vanilla and milk in two additions, mixing on low speed until each addition is fully incorporated. Adjust milk to reach desired piping consistency and transfer the frosting to a piping bag fitted with a star tip such as Wilton 1A.
STEP 5: Pipe swirls of buttercream onto cooled cupcakes. Press the back of a teaspoon into each swirl to create a little well and finish with chocolate sprinkles if desired.


EXPERT BAKING TIPS
- Use a kitchen scale: Weighing ingredients in grams gives the most consistent results.
- Don’t overmix: Fold gently at the end to ensure the batter stays light and the cupcakes remain tender.
- Pan color matters: Light-colored aluminum pans bake more gently and help keep a soft crumb. Dark pans absorb more heat and can produce a drier edge.

FAQ
Yes. Use the same batter and bake mini cupcakes for about 8–10 minutes, or until a cake tester comes out clean.
Store unfrosted cupcakes in an airtight container at room temperature for 1–2 days. Keep unused frosting refrigerated up to one week; bring to room temperature and stir before piping.
Insert a toothpick or cake tester into the center of a cupcake. If it comes out clean or with a few moist crumbs, the cupcakes are done.
HOW TO STORE
Store frosted cupcakes in an airtight container in the refrigerator. They are best enjoyed within 1–2 days; bring to room temperature before serving for the best flavor and texture.

Other Cupcake Recipes To Try
- Moist Blueberry Cupcakes with Blueberry Buttercream
- Raspberry Lemon Cupcakes with Lemon Curd Filling
- Soft Carrot Cake Cupcakes with Cream Cheese Frosting
- Salted Caramel Cupcakes
If you tried this recipe, please leave a star review and tag @juliemarieeats on Instagram. Save ideas by following the author on Pinterest.

The Best Chocolate Cupcakes
Pin Recipe
20
22
42
Equipment
-
12-cup cupcake pan
Ingredients
CHOCOLATE CUPCAKE
- 120 g warm coffee or water (for instant coffee use 1 teaspoon)
- 200 g granulated sugar
- 50 g unsweetened Dutch cocoa powder
- 160 g all-purpose flour
- ½ teaspoon baking powder
- ½ teaspoon baking soda
- ½ teaspoon salt
- 120 g sour cream 14-18% room temperature
- 75 g vegetable oil
- 2 large eggs room temperature
- 1 ½ teaspoon vanilla extract
CHOCOLATE BUTTERCREAM
- 200 g butter room temperature
- 275 g powdered sugar
- 50 g unsweetened Dutch cocoa powder
- 1 ¼ teaspoon vanilla extract
- 2-3 teaspoon whole milk room temperature
Instructions
CHOCOLATE CUPCAKE
-
Preheat the oven to 160ºC/320ºF and line a 12-cup cupcake pan with liners.
-
Prepare the coffee or hot water and let it cool slightly while you assemble the other ingredients.
-
Whisk the dry ingredients together in a large bowl: sugar, cocoa, flour, baking powder, baking soda and salt.
-
In another bowl combine the wet ingredients: sour cream, oil, eggs, vanilla and the warm coffee or water. Whisk until combined but avoid overmixing the eggs.
-
Fold the wet ingredients into the dry until smooth and free of lumps. Divide the batter among the liners and bake for 20–23 minutes. Let cupcakes rest in the pan for 5 minutes, then transfer to a wire rack to cool completely.
CHOCOLATE BUTTERCREAM
-
Sift the powdered sugar and cocoa powder together.
-
Beat the butter for about 4 minutes until pale and fluffy. Scrape the bowl and beat 2 more minutes.
-
Add the powdered sugar and cocoa in two additions, along with vanilla and milk, mixing on low speed until incorporated. Adjust milk for consistency.
-
Give the buttercream a final scrape and mix on low for 2 minutes. Transfer to a piping bag fitted with a star tip.
-
Pipe swirls onto cooled cupcakes, press a small indent with a teaspoon if desired, and top with sprinkles.
Nutrition
Carbohydrates: 55g
Protein: 4g
Fat: 24g
Saturated Fat: 12g
Sugar: 40g
Sodium: 284mg
Tried this recipe?
Let us know how it was!