Chocolate Frosting Recipe: Cooked, Fudgy, Foolproof
In this article
This is a cooked chocolate frosting — a smooth, glossy, intensely chocolatey buttercream made by cooking a flour-and-milk paste before beating in butter and melted chocolate. It works because the cooked paste stabilizes the frosting, so it pipes cleanly, holds its shape, and never tastes gritty or powdery like a quick cocoa-and-sugar icing can. It is rich but not cloying, and it spreads like a dream on layer cakes, sheet cakes, and cupcakes.
Ingredients
- 1 cup (120 g) all-purpose flour
- 1 1/2 cups (360 ml) whole milk
- 1 1/2 cups (300 g) granulated sugar
- 1/4 teaspoon fine salt
- 1 1/2 cups (340 g) unsalted butter, softened but still cool
- 6 ounces (170 g) semisweet or bittersweet chocolate, melted and cooled to room temperature
- 1/4 cup (25 g) unsweetened cocoa powder, sifted
- 1 teaspoon vanilla extract
Instructions
- Cook the flour and milk. Whisk the flour and milk together in a medium saucepan until completely smooth with no lumps. Set over medium heat and cook, whisking constantly, until the mixture thickens into a paste that holds a whisk track and bubbles gently, about 5 to 7 minutes. It should be the consistency of thick pudding.
- Cool completely. Scrape the paste into a shallow bowl or spread it on a plate to speed cooling. Cover with plastic wrap pressed directly onto the surface so it does not form a skin, and let it cool to room temperature, about 30 to 40 minutes. Do not rush this step with cold butter — a warm paste will melt the butter and give you soup.
- Melt the chocolate. Melt the chocolate in a heatproof bowl over barely simmering water or in short microwave bursts, stirring between each. Let it cool until it is no longer warm to the touch, about 10 minutes. Warm chocolate will also break the frosting.
- Beat the butter and sugar. In the bowl of a stand mixer fitted with the paddle attachment (or with a hand mixer), beat the softened butter, sugar, and salt on medium speed for 3 to 4 minutes, until pale and fluffy. Scrape down the bowl.
- Add the cooled paste. With the mixer on medium-low, add the cooled flour paste one spoonful at a time. Once it is all in, raise the speed to medium-high and beat for 3 to 4 minutes, until the frosting is smooth, glossy, and no longer tastes of raw flour.
- Finish with chocolate, cocoa, and vanilla. Add the cooled melted chocolate, sifted cocoa, and vanilla. Beat on low just until combined, then scrape the bowl and beat for 30 seconds more. Overbeating at this stage can make the frosting grainy, so stop as soon as it looks uniform.
- Use or chill. The frosting is soft and spreadable right away; for piping, chill it for 20 to 30 minutes, then beat briefly to loosen before using.
Tips
- Temperature is everything. The cooked paste and the melted chocolate must both be at room temperature before they meet the butter. If either is warm, the butter will melt and the frosting will look curdled. If that happens, chill the whole bowl for 20 minutes and rebeat.
- Beat long enough after the paste goes in. The flour taste disappears with air and time. If your frosting tastes starchy, it needs another 2 minutes on medium-high, not more sugar.
- Sift the cocoa. Cocoa powder clumps badly. Sifting it takes ten seconds and prevents dark speckles and a gritty texture.
- Do not substitute margarine or tub spread. This recipe depends on real butter's structure. Low-fat spreads contain too much water and will give you a loose, separating frosting.
Serving Suggestions
This frosting makes enough to generously fill and coat two 8-inch round cake layers, or to frost about 24 cupcakes. It is excellent on devil's food and chocolate layer cakes, but it also works beautifully on yellow cake, banana cake, and vanilla cupcakes where the chocolate is the star. For a bakery-style finish, chill the frosted cake for 20 minutes, then smooth the sides with a bench scraper dipped in hot water and dried. It also makes a fine filling for whoopie pies and sandwich cookies, and a spoonful stirred into hot milk makes an excellent mug of drinking chocolate.
Variations
- Milk chocolate: Replace the semisweet chocolate with 6 ounces of milk chocolate and reduce the sugar to 1 1/4 cups, since milk chocolate is sweeter.
- Mocha: Dissolve 1 tablespoon of instant espresso powder in the milk before cooking. The coffee deepens the chocolate flavor without tasting like coffee.
- Extra-dark: Use bittersweet chocolate (70% cacao) and add 2 tablespoons of Dutch-process cocoa in place of an equal amount of the regular cocoa for a deeper color and flavor.
- Orange-chocolate: Add 1 teaspoon of finely grated orange zest with the vanilla.
Storage and Reheating
Store frosted cakes at cool room temperature for up to 2 days, or refrigerate for up to 4 days in a sealed container; let slices sit at room temperature for 20 minutes before serving so the frosting softens. Leftover frosting keeps in an airtight container in the refrigerator for up to 1 week or in the freezer for up to 2 months. To revive chilled frosting, let it stand at room temperature for 30 to 45 minutes, then beat it on medium speed for 1 to 2 minutes until smooth and spreadable. If it looks curdled after chilling, that is just cold butter — keep beating, and it will come back together. Frozen frosting should thaw overnight in the refrigerator before rebeating.
Frequently Asked Questions
Can I make this frosting ahead of time? Yes. Make it up to 3 days ahead and refrigerate it in an airtight container. Bring it to room temperature and rebeat for a minute or two before using. It also freezes well for up to 2 months.
Why did my frosting curdle or look grainy? Almost always a temperature problem. Either the cooked flour paste or the melted chocolate was still warm when it hit the butter, or the butter itself was too soft. Chill the bowl for 20 minutes and beat again; it usually smooths out.
Can I use this frosting for piping? Yes, but chill it for 20 to 30 minutes first so it firms up. Use a large star tip for swirls on cupcakes. If it becomes too stiff in the bag, squeeze the bag gently with your hands to warm it rather than adding liquid.
Does the flour taste raw in the finished frosting? It should not. Cooking the flour and milk together until thick gelatinizes the starch, and beating the cooled paste into the butter for several minutes eliminates any raw flour taste. If you detect a starchy note, beat it longer.
Can I make it dairy-free? The milk can be replaced with a plain, unsweetened plant milk such as oat or soy, but the butter is harder to swap. A stick-style vegan butter works best; tub spreads contain too much water and will give a loose frosting.
How much frosting does this recipe make? About 4 cups, enough to fill and frost two 8-inch layers or frost 24 cupcakes. For a tall three-layer cake, make one and a half times the recipe.