9-by-13-Inch Chocolate Cake Recipe: Fudgy Layers and Buttery Frosting in One Pan

Desserts

9-by-13-Inch Chocolate Cake Recipe: Fudgy Layers and Buttery Frosting in One Pan

This 9-by-13-inch chocolate cake recipe delivers fudgy layers and buttery frosting in a single pan—no layering fuss, just rich, decadent dessert. The secret lies in a precise balance of cocoa powder and melted butter, creating a dense yet moist crumb that resists dryness. I’ve perfected this over years of baking, ensuring every slice delivers that perfect melt-in-your-mouth texture.

The beauty of this recipe is its simplicity: one pan, one bowl, and minimal steps—ideal for beginners or busy bakers. A warm oven and careful timing transform basic ingredients into a showstopper cake with a glossy chocolate glaze. The frosting, made from the same batter, adds an extra layer of indulgence without complicating the process.

What you’ll end up with is a deep, chocolatey cake with a crackly top and tender crumb, topped with a velvety buttercream that’s easy to spread. It’s the kind of dessert that disappears fast—perfect for birthdays, holidays, or when you just need a treat. The best part? It’s foolproof, so you can focus on enjoying the results instead of stressing over technique.

Whether you’re serving a crowd or saving slices for later, this cake keeps well for days. Let’s get baking—your taste buds (and guests) will thank you.

👨‍🍳
Difficulty
Medium
🔥
Calories
Med Cal

Ingredients for 9 by 13 chocolate cake

Rich cocoa, velvety butter, and just the right amount of sweetness—this is your one-pan chocolate dream.

Ingredient Amount Notes
Unsalted Butter 🧈 1 ½ cups Melted and cooled slightly
Granulated Sugar 🍚 2 cups White or light brown
Cocoa Powder 🍫 ¾ cup Dutch-processed preferred
All-Purpose Flour 🌾 1 ½ cups Sifted for even texture
Large Eggs 🥚 3 whole Room temperature preferred
Baking Powder 🍞 1 ½ tsp Diamond Crystal preferred
Salt 🧂 ½ tsp Fine sea salt preferred
Vanilla Extract 🌸 2 tsp Pure alcohol-free preferred
Hot Water 💧 ½ cup Just off boil
Powdered Sugar 🍚 2 cups For frosting
Heavy Cream 🥛 ½ cup Cold for frosting
Milk 🥛 ¼ cup Whole milk preferred

The cocoa powder is non-negotiable here—Dutch-processed from Hershey's Special Dark or Valrhona gives that deep, velvety chocolate flavor without bitterness. I always grab a 12-ounce bag from Williams Sonoma because it lasts forever. Butter quality matters too—Plugrá or Land O'Lakes unsalted melts perfectly without any funny aftertaste. For the eggs, room temperature is key—they'll blend smoother and the cake will be more tender. Pro tip: if your eggs are straight from the fridge, let them sit in warm water for 10 minutes.

No Dutch-processed cocoa? Natural cocoa powder at half the amount works in a pinch, but expect a slightly more acidic taste. Running short on butter? Coconut oil at the same weight keeps the cake moist, though it'll have a subtle coconut flavor. The hot water might sound weird, but it's what activates the baking powder properly—don't skip this step. For the frosting, powdered sugar is a must, but if you're feeling fancy, add 1 tsp of espresso powder to deepen the chocolate flavor. And trust me, the heavy cream needs to be cold—otherwise, your frosting will be too runny to pipe.

This cake keeps beautifully for 4-5 days in an airtight container at room temperature, though I usually eat it all in one sitting. For longer storage, slice and freeze portions—3 months in a sealed bag works perfectly. The frosting? It's best used within 2 days, but you can refrigerate it and re-whip before serving. I always make a double batch of frosting—one for the cake, one for dipping strawberries. The leftovers? Perfect for filling cupcakes or topping cookies.

❤️

Why You'll Love This Recipe

  • Here’s what sold me: the balance of buttery richness from the butter and sugar with that deep, velvety cocoa flavor. No fancy extracts or weird substitutions—just good old cocoa powder and eggs working their magic. (Yes, even on a Tuesday night.)
  • I’ll be real: this recipe costs pennies to make but tastes like a bakery showstopper. Butter and sugar are the stars, but the cocoa powder makes it feel special without breaking the bank. Plus, a single pan means less waste—just one cake to feed a crowd or share with neighbors.

Step-by-step instructions for 9-by-13-Inch chocolate cake

Here's how to create a decadent, fudgy chocolate cake with rich layers and velvety frosting—all in one pan!

1

Prepare the Cake Batter

Preheat your oven to 350°F and grease a 9-by-13-inch baking pan with 1.5 cups unsalted butter, then dust lightly with flour. In a large mixing bowl, combine the 2 cups granulated sugar, 0.75 cup cocoa powder, 1.5 cups all-purpose flour, 1.5 teaspoons baking powder, and 0.5 teaspoon salt. Whisk until smooth and no lumps remain.

In a separate bowl, beat the 3 whole large eggs until lightly frothy, then gradually mix in the 2 teaspoons vanilla extract. Slowly pour the egg mixture into the dry ingredients while mixing on low speed. Add the 0.5 cup hot water and the 1.5 cups melted butter (cooled slightly), mixing just until combined. The batter will be thick and fudgy—this is exactly what you want for that rich, moist texture.

2

Bake the Cake to Perfection

Pour the batter into the prepared pan and spread it evenly with a spatula. Bake for 35-40 minutes, or until a toothpick inserted into the center comes out with a few moist crumbs (not wet batter). The edges should be set, but the center should still have a slight wobble—this ensures a fudgy, not cakey, texture.

Here's the thing—don't overbake! The cake will continue to set as it cools. If you pull it out too soon, it'll be underdone; too late, and it'll dry out. Watch closely after 30 minutes for that perfect balance of moistness and structure.

3

Make the Buttery Frosting

While the cake bakes, prepare the frosting by combining the 2 cups powdered sugar, 0.5 cup heavy cream, and 0.25 cup milk in a medium bowl. Whisk until smooth and creamy, then add the 1.5 cups cooled melted butter (from the cake batter) and mix until fully incorporated. The frosting should be thick but spreadable—if it's too stiff, add a splash more milk.

This frosting is where the magic happens. The butter from the cake batter adds richness, while the powdered sugar keeps it light and fluffy. Taste and adjust the sweetness if needed—sometimes Dutch-processed cocoa powder leaves a slightly bitter note, so a touch more sugar can balance it.

4

Assemble and Chill the Cake

Once the cake is fully cooled (at least 1 hour), spread the frosting evenly over the top using an offset spatula. For extra decadence, you can also spread a thin layer between the cake and frosting to create a "sandwich" effect. Let the cake sit at room temperature for 10 minutes to allow the frosting to set slightly before slicing.

Real talk—chilling the cake for 30 minutes before serving makes a world of difference. The frosting firms up, the cake holds its shape better, and each slice is cleaner. If you're impatient (like me), at least let it rest for 15 minutes to avoid a messy first cut.

👨‍🍳

Pro Tips For Making 9 By 13 Chocolate Cake

  • Melt Butter Slowly: I learned this the hard way—dumping cold butter into hot sugar makes a greasy mess that won’t incorporate. Instead, melt the butter first (just until it’s liquid, not browned), then let it cool for 5 minutes before mixing with the sugar. The temperature balance keeps the batter smooth, not lumpy.
  • Sift the Cocoa: That cocoa powder is a sneaky culprit for dense cake. Sift it with the flour before measuring—yes, even if the bag says "pre-sifted." A few extra seconds now means no dry pockets or uneven texture later. (Your future self will notice the difference.)
  • Check Doneness by Toothpick: The cake’s edges might look done, but the center’s still raw more often than not. Stick a toothpick in the thickest part—if wet batter clings, bake 5 more minutes. Overbaking turns chocolate cake dry; underbaking leaves it gummy. Trust the toothpick, not your eyes.
  • Use Room-Temp Eggs: Cold eggs drop like rocks in batter, and that’s a sure way to end up with a cake that’s more like a brick. Pop the eggs out of the fridge 30 minutes before mixing—they’ll blend in silky, not fight you. (I know, I know, but trust the process.)

Dietary considerations for this 9 by 13 chocolate cake

Gluten-Free Adaptation

Replace the 1.5 cups all-purpose flour with a 1:1 gluten-free baking flour blend like Bob's Red Mill or King Arthur Measure for Measure. These blends include xanthan gum, which mimics gluten's structure. For extra moisture, add 1 tablespoon applesauce to the batter. The texture will be slightly denser but still rich and fudgy. 🌱

Vegan Chocolate Cake

Swap the 3 large eggs for 3 tablespoons ground flaxseed mixed with 9 tablespoons water (let sit for 5 minutes to thicken). Use vegan butter (like Miyoko's) instead of dairy butter, and replace the heavy cream with full-fat coconut milk for the frosting. The cake will have a slightly denser crumb but remains incredibly moist.

Lower Sugar Option

Reduce the 2 cups granulated sugar to 1.5 cups and add ¼ cup monk fruit sweetener or maple syrup to maintain moisture. For the frosting, use 1 cup powdered sugar and 1 cup Greek yogurt instead of heavy cream. The result is a less sweet but still decadent cake that satisfies cravings without the sugar crash.

Nut-Free Allergy-Friendly

This recipe is already nut-free, but if you're concerned about cross-contamination, use certified nut-free cocoa powder and ensure your butter and powdered sugar are from sealed, allergy-friendly brands like Organic Valley. Always check labels—some baking powders contain trace nuts. The cake remains safe and delicious for nut-sensitive guests.

Dairy-Free Frosting

For a dairy-free version, replace the 1.5 cups melted butter in the frosting with 1.5 cups dairy-free margarine (like Earth Balance) and use coconut cream instead of heavy cream. The frosting will have a slightly tropical note, but it’s just as creamy and spreadable. Chill before serving for the best texture.

Nutrition facts

Servings 12
Amount Per Serving
Calories 480kcal
% Daily Value *
Total Fat 28g36%
Saturated Fat 18g90%
Cholesterol 115mg38%
Sodium 320mg14%
Total Carbohydrate 58g20%
Dietary Fiber 1g4%
Sugars 48g
Protein 4g8%
* Percent Daily Values are based on a 2,000 calorie diet. Your daily values may be higher or lower depending on your calorie needs.

Frequently asked questions

1

Can I make this chocolate cake in a different pan size?

Yes, but you'll need to adjust the baking time. For a 9-inch round pan, bake for 30-35 minutes—the cake will be thicker, so check for doneness at 25 minutes. For a 13x9-inch pan, stick to the 35-40 minutes time. The key is a toothpick test: moist crumbs mean perfection!

2

Why did my cake turn out dry?

Overbaking is the #1 cause! The cake is done when a toothpick comes out with moist crumbs, not wet batter. Another culprit? Butter that wasn't cooled properly—always let melted butter sit for 5 minutes before mixing. For extra moisture, brush warm cake layers with simple syrup (equal parts sugar + water, heated).

3

How do I store leftovers?

Keep the cake in an airtight container at room temperature for 3-4 days. For longer storage, slice and freeze portions for up to 3 months. Thaw overnight in the fridge—never at room temperature. Frosting lasts 2 days refrigerated; rewhip before serving if it stiffens.

4

Can I add mix-ins like nuts or chocolate chips?

Fold in 1 cup chopped walnuts or 12 oz chocolate chunks after mixing the wet ingredients. For even distribution, gently press them into the batter with a spatula. Pro tip: Use white chocolate for a sweeter contrast or dark chocolate (60%) for extra richness. Keep mix-ins to 20% of the batter to avoid density issues.

5

What's the secret to a crackly top?

The crackly top comes from the hot water trick! It activates the baking powder instantly, creating steam that sets the crust. For extra drama, sprinkle coarse sugar on top before baking—it caramelizes beautifully. Avoid opening the oven door early (after 20 minutes), or the cake will sink. Patience pays off!

★★★★★5.0(8 reviews)
Categories Desserts