After years of testing, we have finally perfected the ultimate chocolate cake recipe. Our recipe has been tried and loved by tens of thousands of people worldwide, all of whom agree that it is the most amazing chocolate cake ever. We promise, once you try this recipe, you won’t go back to the others.
For more delicious cake, try our Most Amazing Texas Sheet Cake.

Why My Recipe
- It’s Moist! โ One of the key measures of a chocolate cake is whether or not it is moist. This one checks every box!
- One Bowl โThe batter is made in just one bowl, so no combining wet and dry ingredients separately.
- Rich Chocolate Flavor โ This cake is rich and fudgy, making it a true indulgence for any chocolate cake lover.
This fudgy chocolate cake is so decadent, it has gained the nickname “The Matilda Cake” because it looks just like the cake eaten by Bruce Bogtrotter in the movie Matilda. And I’ll take that as a compliment! This cake really is the chocolate cake of my dreams.
Ingredient Notes
- All-Purpose Flour:The main structural component. It provides the cakeโs texture and body.
- Unsweetened Cocoa Powder: We recommend Hersheyโs cocoa powder as itโs widely available. You can also use higher-quality options like Ghirardelli or those from specialty chocolatiers, though they may be more expensive.
- Baking Soda & Powder: Check the expiration date to ensure proper leavening.
- Granulated Sugar: Stick with standard granulated sugar for best results.
- Buttermilk: Adds moisture and a slight tang to balance the sweetness. Warm it in the microwave for 20-30 seconds to bring it to room temperature quickly.
- Eggs: Room-temperature eggs make for a fluffier cake. To warm eggs quickly, submerge them in a bowl of warm water for 5 minutes.
- Vegetable Oil: Provides essential moisture for the softest cake texture.
- Vanilla Extract: Use a full tablespoon to bring out the bold vanilla flavor. Opt for pure vanilla extract if possible for the best results.
Types of Cocoa Powder
Cocoa powder is an important ingredient in many baked goods and can affect the flavor and texture of the final product. It is important to use the type of cocoa powder specified in a recipe, as using the wrong type can alter the balance of flavors and sweetness. There are several types of cocoa powder available, each with its own distinct flavor and properties.
Unsweetened cocoa powder, specifically Hershey’s brand, was used in this cake recipe as it is the most widely available. You can also use higher-quality cocoa powders such as Ghirardelli or those from specialty chocolatier shops, but they can be expensive. It is recommended to avoid using inexpensive store brands as they tend to not produce the best results.
Dutch-process cocoa powder is a type of cocoa that has been treated with an alkali to neutralize its acidity. It has a milder flavor and darker color than natural cocoa powder, and is also easier to dissolve in liquids. When using dutch-process cocoa powder in place of unsweetened cocoa powder in a recipe, it is important to consider that it may behave differently due to its lower acidity. However, in this recipe, dutch-process cocoa can be used without making any other modifications.
*For the dark-colored frosting in these photos, Hershey’s Special Dark Unsweetened Cocoa Powder was used.
Pan Size Adaptions
This chocolate cake recipe yields approximately 9 cups of batter total, or 3 cups for each of the 9-inch layers. Here are some popular pan sizes and the approximate amount of batter needed for each individual pan:
- 9×2-inch round pan: 3 cups batter
- 8×2-inch round pan: 2 1/4 cups batter
- 13×18-inch sheet cake pan: 6 cups batter
- 9×13-inch pan: 6 cups batter
- 12 standard cupcakes: 3 cups batter
- 10-12 cup bundt cake pan: 8 cups batter
As a general rule, cake pans should be filled 2/3rds of the way full for cake baking, unless otherwise specified in the recipe.
It’s always a good idea to check for doneness by inserting a toothpick or cake tester into the center of the cake. If it comes out clean or with just a few crumbs attached, the cake is likely done. You can also gently press the center of the cake with your finger – if it springs back, it is probably ready to be removed from the oven.
Frosting Options
Chocolate Ganache: Only 2 ingredientsโchocolate and heavy cream. Itโs often used as icing or as a filling. Some chefs even use it as a dipping sauce paired with fruit like strawberries. Youโll also see it on donuts and cupcakes. Itโs rich, thick, and sweet.
Chocolate Fudge Icing: Icing is often used interchangeably with frosting. Frosting does tend to be a bit thicker, while icing is usually smoother and easier to spread than frosting. This cooked chocolate icing is made with buttermilk, which thickens it up and gives a slight tart taste.
Buttercream Frosting: Buttercream is our go-to frosting for most cakes, and itโs pretty easy to see why once youโve tried it. It is perfectly sweet and creamy, and tastes fantastic. We can eat this stuff by the spoonful, however, we promise it is even better on top of a cake or cupcakes.
Cream Cheese Frosting: This frosting is creamy, thick, and has a slight tang. Simply add cocoa powder for a chocolate version.
Pistachio Buttercream Frosting: This frosting has a smooth, buttery consistency with a slight crunch from the blended pistachio nuts. This frosting pairs so well with chocolate cake. Think Dubai chocolate barโthe combination can’t be beat.
Sweetened Condensed Milk Frosting: A simple and easy way to make a creamy, sweet frosting. Whether you are making chocolate or vanilla frosting, it only takes 3 ingredients!
Even Layers Like a Pro
Weigh the Batter: Use a kitchen scale to divide the batter equally between the pans. Weigh the empty pans first, then weigh them again with the batter to ensure theyโre evenly distributed.
Level the Batter: Once the batter is in the pans, gently tap each pan on the counter to release any air bubbles and even out the surface.
Trim After Baking: After the cakes are fully cooled, use a serrated knife or a cake leveler to trim any domed tops. This step ensures a flat surface for stacking.
Use Baking Strips: Baking strips wrapped around the outside of the pans can help prevent doming and create more uniform layers.
Storage Instructions
Store the assembled cake in an airtight container or cake dome at room temperature for up to 2 days. For cream cheese or perishable frostings, store in the refrigerator for up to 4 days.
Freeze Unfrosted Layers: After wrapping in plastic wrap, add a layer of aluminum foil to prevent freezer burn. Label with the date and freeze for up to 3 months. Thaw in the refrigerator overnight before decorating.
Freeze Frosted Cakes: Freeze in a single layer on a baking sheet until solid, then wrap tightly in plastic wrap and aluminum foil. Store for up to 2 months. Thaw in the refrigerator overnight before serving.
This week I will be making this cake. 4-layer 6-inch cake. Will I need to double this recipe?
Thank you!
You won’t need to double the recipe. The full recipe actually makes enough batter for three 9-inch rounds, which is more than enough for four 6-inch layers. You might even have a little extra for cupcakes or a mini cake. Happy baking!
I went to ChatGPT and asked for the best chocolate cake receipt. Yours came up as the fan favorite with the highest rating! I want to make it in a 9×13โ cake pan, but the recipe doesnโt give that option. Under โMakesโ, it only gives round pan or 9×9 rectangular. I was confused, as 9×9 should be square. It also increased the recipe amounts for the rectangular pan. I saw on another comment where you can use the same recipe amounts for a 9×13 pan, just change the cooking time. Is that correct? I cannot wait to try this!
It takes about 2/3 of the recipe to make it in a 9×13 pan.
Made this for my granddaughters 16th birthday. Told her it was the โMatilda cakeโ. She said โgramma, this is so good itโs making me mad!โ. My husband agreed and said i should be slapped. My youngest granddaughter wouldnt eat it til i promised her it did NOT have my blood, sweat and tears in it like the Matilda cake did. This cake is absolute perfection. Used the dark cocoa for the frosting. It is moist, not too chocolatey or too sweet. Make it! You wont be sorry!!!
Oh goodness, best review ever!
This is our favorite! I started baking it 4 years ago now for my son’s birthday, and it has been requested for every birthday for all 3 of my kids plus my husband since then! My son wants a rectangle cake this year….. In a 9×13 pan, I know I’ll have to decrease the the recipe a bit, but do I use the same baking instructions? I’ve read in other places to decrease the temp and bake longer for larger pans. Thanks!
You can totally make it in a 9×13 pan. You’ll use 350โ for metal pans or 325โ for glass pans and bake for 30-35 minutes. Happy birthday to your son!
This has been my family’s go-to special occasion cake for 3+ years. We love a decadent chocolate cake and this is it. No notes!
So glad to hear it! May you enjoy many more cakes to come.
Hi! Im making this for my daughter’s birthday but I’m only making two layers. Just yo be clear all I do is change the sliding scale thing and put it on two layers and then follow the recipe is written, correct? Thank you! ๐
Correct! I tried to keep it easy for you ๐