Chocolate Cupcakes with Buttercream — Easy Homemade Recipe
Soft chocolate cupcakes, piped frosting, chocolate chips on top — bakery trays without the bakery price.

- Time
- 40 min
- Yield
- 12 cupcakes
- Level
- Intermediate
Homemade chocolate cupcakes fail when the crumb is dry or the frosting is soupy. Oil keeps them moist longer than butter cakes, and a splash of hot coffee blooms the cocoa. Pipe tall swirls only after cupcakes are fully cool.
Nutrition
Estimated per 1 frosted cupcake. Values are approximate and change with brands and toppings.
- Calories
- 360
- Fat
- 18 g
- Carbs
- 48 g
- Protein
- 4 g
- Sugar
- 36 g
- Fiber
- 2 g
- Sodium
- 250 mg
Ingredients
- 1 cup (125 g) all-purpose flour
- 1 cup (200 g) sugar
- ⅓ cup (35 g) unsweetened cocoa powder
- 1 tsp baking soda
- ½ tsp baking powder
- ½ tsp fine salt
- 1 large egg
- ½ cup (120 ml) milk
- ⅓ cup (80 ml) neutral oil
- 1 tsp vanilla extract
- ½ cup (120 ml) hot coffee or hot water
- Frosting: ½ cup (113 g) soft butter, 1½ cups (180 g) powdered sugar, ¼ cup (25 g) cocoa, 1–2 tbsp milk, pinch salt
- Mini chocolate chips, for topping
Method
Heat oven to 350°F / 175°C. Line a 12-cup muffin tin.
Whisk flour, sugar, cocoa, baking soda, baking powder, and salt.
Whisk egg, milk, oil, and vanilla. Add to dry ingredients and mix until smooth.
Stream in hot coffee; batter will be thin — that is correct.
Fill liners ⅔ full. Bake 16–18 minutes until a toothpick is clean. Cool completely.
Beat frosting ingredients until fluffy. Pipe onto cupcakes and finish with chocolate chips.
Why hot coffee in the batter
Hot liquid blooms cocoa for deeper chocolate flavor. Coffee enhances chocolate without making cupcakes taste like mocha unless you add a lot. Water works if you are caffeine-avoiding — use decaf coffee for the same bloom. The batter will look thin after you add the hot liquid; that is what keeps the crumb soft instead of dense.

Fill liners the right amount
Two-thirds full is the bakery default. Overfilled liners mushroom and stick to the pan; underfilled cupcakes look sad and dry out faster. An ice-cream scoop keeps portions even so the tray bakes at the same rate.
Frosting that holds a swirl
- Butter must be soft, not melted.
- Add milk a teaspoon at a time.
- Beat until light and fluffy — underbeaten frosting looks dull and heavy.
- Chill frosting 10 minutes if your kitchen is hot before piping.
- Use a large star tip for tall café swirls; a zip-top bag with the corner snipped works in a pinch.
Storage without sad frosting
Frosted cupcakes keep overnight in a covered container at cool room temp. Refrigerate only if your kitchen is hot — then let them sit out 20 minutes before serving so the buttercream softens. Freeze unfrosted cakes tightly wrapped; thaw and frost the day you need them.
Coffee pairing
Cappuccino or latte
Chocolate cupcakes with buttercream are pure cocoa richness. Steamed milk and foam soften that intensity the way café dessert cases intend — you get chocolate-on-chocolate without a bitter wall. A cappuccino keeps more espresso punch; a latte is gentler if the frosting is very sweet. The hot milk drink also mirrors the soft crumb temperature when cupcakes are served fresh.
Also try: Decaf cappuccino works for evening dessert. If you used hot coffee in the batter, a milder milk drink avoids stacking too much roast bitterness on top.
Frequently asked questions
How do you keep chocolate cupcakes moist?
Oil-based batter, do not overbake, and store airtight. Hot coffee in the batter also helps a tender crumb.
Can I make cupcakes ahead?
Bake a day ahead and frost the day you serve. Unfrosted cupcakes freeze well for up to a month.
Why are my cupcakes dry?
Usually overbaking or too much flour. Start checking at 16 minutes and weigh flour if you can — scooping from the bag packs in extra.
Can I use Dutch-process cocoa?
Yes in this recipe because baking soda and baking powder both appear. Natural cocoa also works; flavor will be a bit brighter.