Chocolate Cake: The Only Recipe You'll Ever Need
In this article
This is the chocolate cake recipe you'll come back to again and again—moist, deeply chocolatey, and covered in a silky, fudgy frosting that sets up beautifully. It uses simple pantry ingredients and a straightforward method that works every time, whether you're baking for a birthday, a weekend treat, or just because. The secret is the combination of boiling water and buttermilk, which keeps the crumb tender and the flavor rich without being overly sweet.
Ingredients
- 1 ¾ cups (220g) all-purpose flour
- ¾ cup (65g) unsweetened cocoa powder (natural or Dutch-processed)
- 2 cups (400g) granulated sugar
- 1 ½ teaspoons baking powder
- 1 ½ teaspoons baking soda
- 1 teaspoon salt
- 2 large eggs, at room temperature
- 1 cup (240ml) buttermilk, at room temperature
- ½ cup (120ml) vegetable oil
- 2 teaspoons vanilla extract
- 1 cup (240ml) boiling water
For the frosting:
- 1 cup (2 sticks / 226g) unsalted butter, softened
- 3 ½ cups (420g) powdered sugar, sifted
- ¾ cup (65g) unsweetened cocoa powder
- ½ cup (120ml) heavy cream (or milk)
- 2 teaspoons vanilla extract
- Pinch of salt
Instructions
- Preheat your oven to 350°F (175°C). Grease and flour two 9-inch round cake pans, or line the bottoms with parchment paper.
- In a large mixing bowl, whisk together the flour, cocoa powder, sugar, baking powder, baking soda, and salt until well combined.
- Add the eggs, buttermilk, oil, and vanilla extract to the dry ingredients. Beat with an electric mixer on medium speed for 2 minutes, until the batter is smooth and slightly thickened.
- Reduce the mixer speed to low and carefully pour in the boiling water. Mix until just combined—the batter will be thin, that's correct.
- Divide the batter evenly between the prepared pans. Bake for 30–35 minutes, or until a toothpick inserted into the center comes out clean or with a few moist crumbs.
- Let the cakes cool in the pans for 10 minutes, then turn them out onto a wire rack to cool completely before frosting.
- To make the frosting: In a large bowl, beat the softened butter until creamy. Add the powdered sugar, cocoa powder, heavy cream, vanilla, and salt. Beat on low speed until combined, then increase to high and beat for 2–3 minutes until light and fluffy. If too thick, add more cream a tablespoon at a time; if too thin, add more powdered sugar.
- Once the cakes are completely cool, place one layer on a serving plate. Spread about ¾ cup of frosting over the top. Place the second layer on top and frost the top and sides of the cake with the remaining frosting.
Tips
- Room temperature ingredients matter: Cold eggs and buttermilk can make the batter curdle. Set them out 30 minutes before starting.
- Don't overmix after adding the boiling water: Overmixing can develop gluten, making the cake tough. Stop as soon as the water is incorporated.
- Use a kitchen scale for accuracy: Measuring flour by weight gives consistent results. If using cups, spoon the flour into the cup and level it off—don't scoop directly.
- For a cleaner slice: Chill the frosted cake for 20 minutes before cutting, and use a long, sharp knife dipped in hot water and wiped dry between cuts.
Serving Suggestions
This cake is perfect on its own, but a scoop of vanilla ice cream or a dollop of whipped cream takes it over the top. For a special touch, dust the top with powdered sugar or add fresh raspberries and mint leaves. It also pairs wonderfully with a cup of coffee or a glass of cold milk.
Variations
- Chocolate Peppermint: Add ½ teaspoon peppermint extract to the frosting and crush candy canes on top.
- Mocha Chocolate Cake: Replace the boiling water with hot strong coffee for a deeper flavor.
- Gluten-Free: Substitute the all-purpose flour with a 1:1 gluten-free baking flour blend. The texture may be slightly denser.
- Layer Cake or Cupcakes: This recipe makes about 24 cupcakes—bake for 18–20 minutes. For a 9x13-inch sheet cake, bake for 35–40 minutes.
Storage and Reheating
Store the frosted cake in an airtight container at room temperature for up to 3 days, or in the refrigerator for up to a week. Bring refrigerated cake to room temperature before serving for the best texture. Unfrosted cake layers can be wrapped tightly in plastic wrap and frozen for up to 3 months. To reheat individual slices, microwave for 10–15 seconds to soften the crumb and frosting.
Frequently Asked Questions
Can I use milk instead of buttermilk?
Yes, but the cake will be slightly less tender. To make a quick buttermilk substitute, add 1 tablespoon of lemon juice or white vinegar to 1 cup of milk and let it sit for 5 minutes.
Why is my cake dry?
Overbaking is the most common cause. Start checking at 25 minutes and remove the cake as soon as a toothpick comes out with a few moist crumbs. Also, measure your flour correctly—too much flour can dry out the batter.
Can I make this cake without eggs?
You can use a commercial egg replacer or substitute each egg with ¼ cup of unsweetened applesauce. The cake will be a bit more dense and may need a few extra minutes of baking time.
Why does the batter look so thin?
That's normal. The boiling water creates a thin batter that results in a moist, tender crumb. Don't be tempted to add more flour—it will bake up perfectly.
How do I prevent the cake from sticking to the pan?
Grease the pans thoroughly with butter or shortening, then dust with cocoa powder instead of flour (to avoid white spots). Or line the bottoms with parchment paper circles.
Can I use Dutch-processed cocoa instead of natural?
Yes, but the leavening may need adjustment. Dutch-processed cocoa is less acidic, so if you use it, reduce the baking soda to 1 teaspoon and add ½ teaspoon of baking powder. The cake may also be slightly darker and less tangy.