Chocolate Birthday Cake!
This two-layer chocolate birthday cake has soft, tender crumbs and a deep cocoa flavor, with hot coffee bringing out the chocolate without making the cake taste like coffee. A smooth cocoa buttercream covers the layers, ready for sprinkles and candles.
Plan on 30 minutes of prep and 35 minutes of baking; the cake serves 12. It makes a festive centerpiece for birthdays and other celebrations, and you can bake the layers ahead to make decorating day easier.
Why you’ll love it
Why This Chocolate Birthday Cake Recipe Works
A few simple techniques give this classic layer cake its tender texture and full chocolate flavor.
- Coffee deepens the chocolate. Hot coffee dissolves into the cocoa-rich batter and intensifies its flavor. The amount is not enough to make the finished cake taste like a cup of coffee.
- Buttermilk keeps the crumb tender. Its acidity works with the baking soda, while its thickness adds moisture. The result is softer and less crumbly than a cake made with regular milk.
- Oil helps the cake stay moist. Vegetable oil is easy to mix into the batter and stays liquid after cooling. That helps the cake retain a soft texture even when served at room temperature.
- The batter is meant to be thin. Adding hot coffee loosens the mixture substantially. A pourable batter is expected here, so resist the urge to add extra flour.
- Room-temperature ingredients mix evenly. Eggs and buttermilk blend more readily into the other ingredients when they are not cold. That helps make a more uniform batter and frosting.
What you need
Ingredients You’ll Need

Measure the ingredients before you start, and let the refrigerated items come to room temperature for an even mix.
- Granulated sugar: Two cups sweeten the cake and help keep its crumb moist.
- All-purpose flour: One and three-quarter cups form the cake’s structure; spoon into the measuring cup and level.
- Unsweetened cocoa powder: Three-quarter cup goes in the cake batter for its chocolate base; sift if lumpy.
- Baking powder: One and one-half teaspoons provide lift alongside the baking soda.
- Baking soda: One and one-half teaspoons react with the buttermilk to help the layers rise.
- Salt: One teaspoon balances the sweetness and brings the cocoa flavor into focus.
- Eggs: Two large eggs, at room temperature, help bind the batter and build its structure.
- Buttermilk: One cup at room temperature adds moisture and a gentle tang. Regular milk works, but the cake may be drier.
- Vegetable oil: Half a cup keeps the cake tender; choose a neutral-tasting oil.
- Vanilla extract: Two teaspoons round out the chocolate flavor in the cake.
- Hot coffee: One cup loosens the batter and enhances the cocoa. Freshly brewed coffee is fine.
- Unsalted butter: Half a cup at room temperature is the base of the cocoa buttercream.
- Confectioners’ sugar: Two and one-half cups sweeten and thicken the frosting; break up any lumps.
- Unsweetened cocoa powder: Half a cup gives the buttercream its chocolate flavor. Sift it if it is clumpy.
- Milk: One-quarter cup at room temperature brings the frosting to a spreadable consistency.
- Sprinkles and candles: Optional decorations add color and make the finished cake party-ready.
Tools
Equipment You’ll Need
- Two 9-inch round cake pans: Matching pans help the layers bake at the same rate and stack neatly.
- Large mixing bowl: Use one roomy bowl for the dry ingredients and mixing the cake batter.
- Electric mixer: A hand or stand mixer makes it easier to beat the frosting until fluffy.
- Wire cooling racks: Racks let air circulate around the layers so they cool evenly before frosting.
- Offset spatula: This is useful for spreading frosting across the top and around the sides.
The method
How to Make Chocolate Birthday Cake
1. Prepare the pans
Heat the oven to 350°F (175°C). Grease and flour two 9-inch round cake pans, coating the bottoms and sides.
Tap out any extra flour so it does not leave pale patches on the baked cake.
2. Combine the dry ingredients
In a large bowl, whisk the sugar, flour, cocoa powder, baking powder, baking soda and salt until evenly mixed.
Break up cocoa lumps now; they are harder to disperse once the wet ingredients are added.
3. Mix in the wet ingredients
Add the eggs, buttermilk, oil and vanilla. Beat just until the mixture comes together.
Scrape the bowl once so no pockets of dry flour remain at the bottom.
4. Stir in the coffee
Pour in the hot coffee and stir until the batter looks smooth and consistent.
The batter will be quite thin. That is expected, so do not try to thicken it with extra flour.
5. Bake the layers
Pour the batter evenly into the prepared pans. Bake for 30-35 minutes, until a toothpick inserted in the center comes out clean.
Check both cakes near the end of the baking time, since one pan may finish before the other.
6. Cool the cakes
Leave the cakes in their pans for 10 minutes. Turn them out onto wire racks and let them cool completely.
The layers must be cool to the touch before frosting, or the buttercream can soften and slide.
7. Make the buttercream
Beat the butter until light and fluffy. Gradually beat in the confectioners’ sugar and cocoa powder, then add the milk and beat until spreadable.
If the frosting looks uneven, scrape down the bowl and beat again until the color and texture are uniform.
8. Stack and decorate
Spread frosting over one cooled layer, then set the second layer on top. Cover the top and sides with the remaining frosting; finish with sprinkles and candles if desired.
A small amount of frosting on the serving plate helps keep the bottom layer from shifting as you decorate.
Doneness
How to Tell When It’s Done
The cake layers are ready when the centers spring back lightly after a gentle touch and a toothpick inserted in the middle comes out clean. The tops should look set rather than shiny or wet.
If the toothpick shows wet batter, return the pan to the oven and check again shortly. Crumbs clinging to the pick are different from raw batter; avoid baking the cake until the pick is completely dry if the center already looks set.
Cool the layers fully before frosting. A warm center can melt the buttercream even if the outside feels cool, so give the cakes time on the wire racks.
Tips & common mistakes
Tips and Common Mistakes
These small details help the layers bake evenly and make decorating less fussy.
- Measure flour without packing it. Too much flour can make the cake heavy and dry. Spoon it into the measuring cup and level the top.
- Do not thicken the batter. The hot coffee makes it thin by design. Adding flour can change the balance and leave the cake dense.
- Divide the batter evenly. Similar amounts in each pan help the layers finish baking at the same time and stack with less trimming.
- Cool completely before frosting. Warm cake softens buttercream and can pull crumbs into the finish. Wait until the centers are cool as well as the edges.
- Add the sugar gradually. This keeps confectioners’ sugar from puffing out of the bowl and gives you better control over the frosting texture.
Make it your way
Substitutions and Variations
A few practical swaps can work, though they may change the cake’s texture or flavor.
- Regular milk: Use it in place of buttermilk if needed. The cake may turn out drier and more crumbly, since regular milk lacks buttermilk’s acidity and thickness.
- Decaffeinated coffee: Decaf works just as well for deepening the chocolate flavor without the caffeine. Keep it hot when you add it.
- Hot water: It can replace the coffee if you do not want coffee in the cake, though the chocolate flavor may seem a little less pronounced.
- Dutch-process cocoa: The recipe uses baking soda and baking powder, so changing cocoa type can affect how the cake rises. For the most predictable result, use natural unsweetened cocoa.
- Dairy-free milk: An unsweetened, unflavored plant milk can replace the milk in the frosting. The frosting may need slight adjustment to reach a spreadable consistency.
- Simple decorations: Skip the sprinkles and candles or use another small topping that suits the occasion. The chocolate frosting is enough to finish the cake on its own.
Serving
What to Serve with Chocolate Birthday Cake
Serve slices at room temperature so the cake is soft and the buttercream is easy to cut. Fresh berries or sliced strawberries add a bright, tart contrast to the chocolate.
For a birthday table, pair it with vanilla ice cream, cold milk or coffee. Cut the cake with a long knife, wiping the blade between slices for tidier layers.
Storage
Make-Ahead, Storage and Reheating
Make ahead: Bake the layers ahead, cool them completely, and wrap them well before storing. Frost and decorate closer to serving so the cake looks fresh and the sprinkles stay crisp.
Storage: Keep the frosted cake in a sealed container or wrapped in plastic at room temperature for up to 2 days. It can last a few days longer in the refrigerator, though the cake may dry out.
Freezing: Freeze unfrosted, cooled layers wrapped securely, then thaw them while still wrapped to help retain moisture. Frost after they have thawed completely.
Reheating: This cake is best served at room temperature rather than reheated. If refrigerated, let slices sit out briefly before serving so the crumb and buttercream soften.
Questions
Chocolate Birthday Cake FAQs
Can I make this cake without coffee?
Yes. Hot water can take its place, though the chocolate flavor may be a little less pronounced. Keep the liquid hot and use the same amount.
Can I bake the cake in one pan?
The directions are written for two 9-inch round pans. A single pan would change the depth and baking time, so use two matching pans for the intended layers.
Why is my chocolate cake crumbly?
Too much flour or replacing the buttermilk with regular milk can make the cake drier and more crumbly. Measure the flour carefully and use buttermilk when possible.
Can I use a hand whisk instead of a mixer?
Yes for combining the cake batter, as long as you mix until smooth without leaving dry pockets. A mixer is more helpful for getting the buttercream light and fluffy.
How do I keep the cake layers from sliding?
Make sure both layers are fully cool and spread an even layer of frosting between them. A little frosting under the bottom layer can anchor the cake to its plate.
Can I frost the cake with a crumb coat?
Yes. Spread a thin layer of frosting over the cake to catch loose crumbs, then cover it with the remaining buttercream for a neater finish.
Recipe Card

Chocolate Birthday Cake!
Ingredients
Method
- Heat the oven to 350°F (175°C) and grease and flour two 9-inch round cake pans.
- Whisk the sugar, flour, cocoa powder, baking powder, baking soda and salt together in a large bowl.
- Add the eggs, buttermilk, oil and vanilla and beat until combined.
- Stir in the hot coffee until smooth; the batter will be thin, which is normal.
- Divide the batter evenly between the pans and bake 30-35 minutes, until a toothpick in the center comes out clean.
- Cool the cakes in the pans 10 minutes, then transfer to wire racks to cool completely.
- For the frosting, beat the butter until light and fluffy, gradually add the confectioners' sugar and cocoa powder, then beat in the milk until spreadable.
- When the cakes are completely cool, frost one layer, add the second layer, and frost the top and sides. Add sprinkles if desired, plus candles.