Chocolate Cupcakes with Sour Cream Frosting Recipe
In this article
Time: 1 hr 30 min, Serves: 12, The key step: Beating the butter and sugar until pale and fluffy to ensure the frosting holds its shape.
These chocolate cupcakes feature a moist, dark crumb paired with a tangy, creamy frosting. The addition of sour cream to the frosting cuts through the sweetness of the cocoa, making them a balanced choice for afternoon tea or a birthday party.
Chocolate Cake Base
The structure of a chocolate cupcake depends on the balance of fats and acids. Using a combination of oil and butter provides both a tender crumb and a rich flavor. The cocoa powder provides the deep color and chocolate intensity, while the leavening agents ensure the cake rises evenly without collapsing in the center. To avoid the risk of foodborne illness, heat-treat the flour to 160°F (71°C) and use pasteurized eggs, as raw flour and raw eggs can contain bacteria. Pregnant people, young children, older adults, and anyone with a weakened immune system should avoid raw eggs and raw flour.
Ingredients
Serves 12 · Prep 20 min · Cook 22 min · Total 1 hr 30 min
- 1 1/2 cups (190 g) all-purpose flour, heat-treated to 160°F (71°C)
- 1 cup (200 g) granulated sugar
- 1/2 cup (45 g) unsweetened cocoa powder
- 1 teaspoon (5 g) baking powder
- 1/2 teaspoon (3 g) baking soda
- 1/2 teaspoon (3 g) salt
- 1 large pasteurized egg
- 1/2 cup (120 ml) whole milk
- 1/4 cup (60 ml) vegetable oil
- 2 teaspoons (10 ml) vanilla extract
- 1/2 cup (120 ml) boiling water
- 1/2 cup (115 g) unsalted butter, softened to room temperature
- 3 cups (360 g) powdered sugar, sifted
- 1/2 cup (120 g) full-fat sour cream, chilled
- 1 teaspoon (5 ml) vanilla extract
- 1 tablespoon (15 ml) heavy cream, if needed for consistency
Instructions
- Preheat the oven to 350°F (175°C). Line a 12-slot cupcake pan (approx. 2 inches/5 cm per slot) with paper liners.
- Whisk together the heat-treated flour, sugar, cocoa powder, baking powder, baking soda, and salt in a large bowl until no lumps remain.
- Add the pasteurized egg, milk, oil, and vanilla extract to the dry ingredients. Beat with a hand mixer on medium speed for about 2 minutes until the batter is smooth.
- Stir in the boiling water by hand using a whisk. The batter will be very thin; this is normal and helps bloom the cocoa powder for a deeper flavor.
- Divide the batter evenly among the 12 liners, filling each about 2/3 full. Use a scoop or a measuring cup to ensure consistency.
- Bake at 350°F (175°C) for 18-22 minutes. Check for doneness by inserting a toothpick into the center of a cupcake; it should come out clean or with a few moist crumbs. The internal temperature should reach 160°F (71°C) for egg-based cakes to be safe.
- Remove the pan from the oven and let the cupcakes cool in the pan for 5-10 minutes before transferring them to a wire rack to cool completely.
- To make the frosting, beat the softened butter in a medium bowl with an electric mixer on high speed for about 3 minutes until it is pale and fluffy.
- Gradually add the sifted powdered sugar one cup at a time, beating on low speed until incorporated, then increasing to medium for 1 minute.
- Mix in the chilled sour cream and vanilla extract. Beat on medium-high for another 2 minutes until the frosting is smooth and holds a stiff peak. If it is too thick, stir in the heavy cream one teaspoon at a time.
- Pipe or spread the frosting onto the completely cooled cupcakes.
Frosting Texture and Stability
The stability of sour cream frosting relies on the ratio of fat to moisture. Because sour cream contains more water than cream cheese, it can become runny if the butter is too soft or the room is too warm. To keep the frosting firm, ensure the sour cream is cold when added to the room-temperature butter. If the frosting appears to separate or looks curdled, it usually means the butter and sour cream were at vastly different temperatures. You can fix this by gently warming the bowl over a pot of simmering water for 10 seconds, then beating again on high speed.
For those who prefer a thicker frosting for tall swirls, you can increase the powdered sugar by 1/4 cup (30 g). If you want a more tangy flavor, replace one tablespoon of the butter with an additional tablespoon of sour cream, though this will make the frosting softer. If you do not have sour cream, Greek yogurt is a viable substitute; it provides a similar tang but is slightly thinner, which may require an extra 2-4 tablespoons of powdered sugar to maintain the same piping consistency.
Cupcake Failures and Fixes
Overfilling the cupcake liners is a common error that causes the batter to overflow and create a mushroom-top shape or sink in the middle. To avoid this, fill the liners no more than 2/3 full. If the cakes sink after being removed from the oven, it is often a sign that they were underbaked or that too much leavening agent was used. Always use a food thermometer to ensure the center has reached the safe minimum temperature of 160°F (71°C).
Another issue is a dry crumb, which usually happens when the cupcakes are left in the oven for too long. Start checking the cupcakes at the 18-minute mark. If the toothpick comes out completely dry without any crumbs, they may be overbaked. Using oil instead of all butter in the cake base helps prevent this dryness, as oil remains liquid at room temperature, keeping the cake feeling moist for longer.
Serving and Pairing
These cupcakes pair well with drinks that balance the richness of the chocolate. A cup of unsweetened black coffee or a strong Earl Grey tea provides a bitter contrast to the sweet frosting. For a cold beverage, a glass of cold milk or a tart raspberry lemonade works well. To present them for a party, place them on a tiered platter and garnish each one with a single fresh raspberry or a shaving of dark chocolate. The acidity of a fresh berry complements the sour cream in the frosting.
Cupcake Storage
Because of the dairy content in the sour cream frosting, these cupcakes must be refrigerated. Place them in an airtight container and refrigerate within 2 hours of frosting. They will stay fresh and safe to eat for 3-4 days in the refrigerator. To restore the texture of the cake, let a cupcake sit at room temperature for about 30-60 minutes before serving, as the butter in the cake and frosting firms up when cold.
Unfrosted cupcakes can be frozen for up to 3 months. Wrap them individually in plastic wrap and place them in a freezer-safe bag. Thaw them in the refrigerator overnight before frosting. If you freeze the cupcakes after they have been frosted, the frosting may develop small cracks upon thawing. To prevent this, freeze them quickly in the freezer for 1 hour before transferring them to a sealed container. When reheating any cake leftovers that contain dairy or eggs, ensure they are warmed through, though cupcakes are typically served cold or at room temperature.