Chocolate Cake
There’s something comforting about a slice of chocolate cake that never goes out of style. This version is rich, soft, and deeply chocolaty without being fussy or complicated. You’ll use simple pantry ingredients and a few smart techniques to get bakery-level results at home.
The batter comes together quickly, the crumb is tender, and the frosting is silky and smooth. Whether it’s a birthday, a cozy night in, or a “just because” moment, this cake delivers.
What Makes This Special

This cake balances intense chocolate flavor with a moist, tender texture thanks to a blend of cocoa powder and hot coffee or water. The acidity from buttermilk keeps the crumb soft, while oil ensures it stays moist for days.
A not-too-sweet chocolate buttercream lets the cake shine without overwhelming it. It’s forgiving, dependable, and great for both beginner bakers and seasoned pros.
Ingredients
- For the Cake:
- 1 and 3/4 cups (220 g) all-purpose flour
- 3/4 cup (65 g) unsweetened cocoa powder (natural, not Dutch-processed)
- 1 and 1/2 cups (300 g) granulated sugar
- 1/2 cup (100 g) light brown sugar, packed
- 2 teaspoons baking powder
- 1 teaspoon baking soda
- 1 teaspoon fine sea salt
- 2 large eggs, at room temperature
- 1 cup (240 ml) buttermilk, at room temperature
- 1/2 cup (120 ml) neutral oil (canola, vegetable, or light olive oil)
- 2 teaspoons vanilla extract
- 3/4 cup (180 ml) hot brewed coffee or hot water
- For the Chocolate Buttercream:
- 1 cup (225 g) unsalted butter, softened to room temperature
- 2 and 1/2 cups (300 g) powdered sugar
- 1/2 cup (45 g) unsweetened cocoa powder
- 1/4 cup (60 ml) heavy cream or milk, plus more as needed
- 1 teaspoon vanilla extract
- Pinch of salt
Step-by-Step Instructions

- Prep your pans and oven: Heat the oven to 350°F (175°C). Grease two 8-inch round cake pans, line the bottoms with parchment, and lightly flour the sides.
Tap out any excess flour.
- Whisk the dry ingredients: In a large bowl, whisk flour, cocoa powder, granulated sugar, brown sugar, baking powder, baking soda, and salt until no cocoa streaks remain. This helps prevent lumps later.
- Combine the wet ingredients: In a separate bowl or large measuring cup, whisk eggs, buttermilk, oil, and vanilla until smooth and slightly frothy.
- Make the batter: Pour the wet ingredients into the dry and whisk until almost combined. Slowly add the hot coffee (or hot water) while whisking.
The batter will be thin—this is what makes the cake moist.
- Divide and bake: Pour the batter evenly into the prepared pans. Bake for 28–32 minutes, or until a toothpick inserted in the center comes out with a few moist crumbs.
- Cool completely: Let the cakes cool in the pans for 10 minutes, then turn them out onto a wire rack. Peel off the parchment and cool fully before frosting.
- Make the buttercream: Beat the butter on medium speed until creamy and pale, about 2 minutes.
Sift together powdered sugar and cocoa. Add half to the butter, beat on low to combine, then add the rest.
- Adjust texture and flavor: Add vanilla, salt, and 3 tablespoons of cream. Beat on medium-high for 1–2 minutes until fluffy.
If too thick, add a splash more cream. If too soft, add a tablespoon of powdered sugar.
- Assemble the cake: Level cake tops if needed. Place the first layer on a stand, spread a generous layer of frosting, and top with the second layer.
Apply a thin crumb coat around the sides, chill for 15 minutes, then finish with a thicker, smooth coat.
- Serve: Slice with a sharp, warm knife for clean cuts. Add sprinkles, shaved chocolate, or fresh berries if you like.
Storage Instructions
- Room temperature: Keep the frosted cake covered at cool room temp for up to 2 days.
- Refrigerator: Store, well covered, for up to 5 days. Bring slices to room temperature before serving for best texture.
- Freezer: Wrap unfrosted layers tightly in plastic and then foil.
Freeze up to 2 months. Thaw in the fridge overnight, then frost.
- Buttercream: Refrigerate leftover frosting for up to 1 week or freeze up to 2 months. Rewhip with a splash of cream after bringing to room temp.

Why This is Good for You
This recipe focuses on balance and satisfaction.
Cocoa brings antioxidants and deep flavor, so you get a rich taste without needing excessive frosting. Using oil and buttermilk means the crumb stays moist, which helps you enjoy a smaller slice that still feels indulgent. Making it at home lets you control sweetness, portion size, and ingredient quality.
It’s comfort you can customize, made with straightforward ingredients.
Pitfalls to Watch Out For
- Overmixing the batter: Once the wet and dry meet, mix just until combined. Overmixing can toughen the crumb.
- Cold ingredients: Cold eggs and buttermilk can cause a dense texture. Room temperature is best.
- Skipping parchment: The cakes are tender and can stick.
Lining the pans is insurance.
- Overbaking: Check at 28 minutes. A dry cake usually means it stayed in the oven a bit too long.
- Frosting too thick or thin: Adjust with small amounts of cream or powdered sugar until spreadable and smooth.
Recipe Variations
- One-bowl sheet cake: Bake in a 9×13-inch pan for 30–35 minutes. Frost right in the pan for an easy crowd-pleaser.
- Chocolate ganache finish: Swap the buttercream for a simple ganache: 8 oz chopped dark chocolate and 1 cup hot heavy cream.
Let sit, stir smooth, cool slightly, and pour over cooled cake.
- Mocha twist: Add 1 teaspoon espresso powder to the batter and 1 teaspoon to the frosting for a coffee-kissed flavor.
- Gluten-free option: Use a 1:1 gluten-free all-purpose flour blend. Let the batter rest 10 minutes before baking for better structure.
- Dairy-free version: Use dairy-free milk plus 1 tablespoon vinegar instead of buttermilk, and a dairy-free butter substitute in the frosting.
- Filled layer: Add a layer of raspberry jam, peanut butter frosting, or whipped cream between cakes for a fun surprise.
FAQ
Can I make this cake without coffee?
Yes. Hot water works fine.
Coffee simply enhances the chocolate flavor and doesn’t make the cake taste like coffee.
Can I bake this as cupcakes?
Absolutely. Fill liners two-thirds full and bake at 350°F (175°C) for 18–22 minutes. You’ll get about 24 standard cupcakes.
What kind of cocoa powder should I use?
Use natural unsweetened cocoa powder for the best rise with the baking soda.
If you only have Dutch-processed, reduce baking soda to 1/2 teaspoon and keep baking powder at 2 teaspoons.
How do I get flat, even layers?
Weigh the batter into each pan for accuracy. You can also use cake strips around the pans to help them bake more evenly and prevent doming.
Why is my frosting grainy or too sweet?
Sift the powdered sugar and cocoa to avoid grit. Balance sweetness with a pinch of salt and a splash of cream for a smoother, silkier texture.
Can I make it ahead?
Yes.
Bake the layers a day ahead, wrap tightly, and chill. Frost the next day. The flavors meld beautifully and the cake is easier to frost when cold.
What if I don’t have buttermilk?
Make a quick version by mixing 1 tablespoon white vinegar or lemon juice with enough milk to make 1 cup.
Let it sit for 5 minutes, then use.
How do I store leftover slices neatly?
Press a piece of plastic wrap directly against the cut side of the cake to keep it from drying out. Cover the whole cake or place slices in airtight containers.
Final Thoughts
This Chocolate Cake Recipe is the kind that becomes your go-to: simple steps, reliable results, and a flavor that satisfies every time. With a tender crumb and a creamy frosting, it’s perfect for celebrations and weeknights alike.
Keep the core recipe, then tweak it with a ganache glaze, a mocha note, or a fun filling. However you make it, this cake brings comfort, joy, and that classic chocolate moment we all love.

Chocolate Cake Recipe
Ingredients
- For the Cake:
- 1 and 3/4 cups (220 g) all-purpose flour
- 3/4 cup (65 g) unsweetened cocoa powder (natural, not Dutch-processed)
- 1 and 1/2 cups (300 g) granulated sugar
- 1/2 cup (100 g) light brown sugar, packed
- 2 teaspoons baking powder
- 1 teaspoon baking soda
- 1 teaspoon fine sea salt
- 2 large eggs, at room temperature
- 1 cup (240 ml) buttermilk, at room temperature
- 1/2 cup (120 ml) neutral oil (canola, vegetable, or light olive oil)
- 2 teaspoons vanilla extract
- 3/4 cup (180 ml) hot brewed coffee or hot water
- For the Chocolate Buttercream:
- 1 cup (225 g) unsalted butter, softened to room temperature
- 2 and 1/2 cups (300 g) powdered sugar
- 1/2 cup (45 g) unsweetened cocoa powder
- 1/4 cup (60 ml) heavy cream or milk, plus more as needed
- 1 teaspoon vanilla extract
- Pinch of salt
Instructions
- Prep your pans and oven: Heat the oven to 350°F (175°C). Grease two 8-inch round cake pans, line the bottoms with parchment, and lightly flour the sides. Tap out any excess flour.
- Whisk the dry ingredients: In a large bowl, whisk flour, cocoa powder, granulated sugar, brown sugar, baking powder, baking soda, and salt until no cocoa streaks remain. This helps prevent lumps later.
- Combine the wet ingredients: In a separate bowl or large measuring cup, whisk eggs, buttermilk, oil, and vanilla until smooth and slightly frothy.
- Make the batter: Pour the wet ingredients into the dry and whisk until almost combined. Slowly add the hot coffee (or hot water) while whisking. The batter will be thin—this is what makes the cake moist.
- Divide and bake: Pour the batter evenly into the prepared pans. Bake for 28–32 minutes, or until a toothpick inserted in the center comes out with a few moist crumbs.
- Cool completely: Let the cakes cool in the pans for 10 minutes, then turn them out onto a wire rack. Peel off the parchment and cool fully before frosting.
- Make the buttercream: Beat the butter on medium speed until creamy and pale, about 2 minutes. Sift together powdered sugar and cocoa. Add half to the butter, beat on low to combine, then add the rest.
- Adjust texture and flavor: Add vanilla, salt, and 3 tablespoons of cream. Beat on medium-high for 1–2 minutes until fluffy. If too thick, add a splash more cream. If too soft, add a tablespoon of powdered sugar.
- Assemble the cake: Level cake tops if needed. Place the first layer on a stand, spread a generous layer of frosting, and top with the second layer. Apply a thin crumb coat around the sides, chill for 15 minutes, then finish with a thicker, smooth coat.
- Serve: Slice with a sharp, warm knife for clean cuts. Add sprinkles, shaved chocolate, or fresh berries if you like.
Printable Recipe Card
Want just the essential recipe details without scrolling through the article? Get our printable recipe card with just the ingredients and instructions.
