The Best 9×13 Chocolate Cake from Scratch
The Best 9×13 Chocolate Cake from Scratch is not just any dessert; it’s a rich, decadent masterpiece beckoning for your attention at every celebration. Imagine a moist, chocolatey slice melting in your mouth while whispers of vanilla and coffee dance on your taste buds. This heavenly cake, with its perfect fudgy texture and lavish frosting, is the crowning glory at birthday parties, family gatherings, or even just a cozy night in with a cup of coffee.

I first baked this chocolate cake years ago for a friend’s birthday. As soon as the oven timer buzzed, the divine aroma wafted through my kitchen, leaving no doubt that I was creating something special. It has since become my go-to recipe, trusted and treasured. Whether you’re a seasoned baker or just starting out, The Best 9×13 Chocolate Cake from Scratch is a foolproof recipe that guarantees a crowd-pleaser every time. I promise you’ll find yourself revisiting this delightful dessert again and again!
Table of Contents
Why You’ll Love This Recipe
- Simple & Quick: A straightforward recipe that takes just about 15 minutes of prep time and around 30 minutes in the oven.
- Irresistible Flavor: Deep, rich chocolate flavor enhanced with a hint of coffee, keeping each bite moist and tender.
- Eye-Catching Appeal: A stunning 9×13 cake that’s both impressive and approachable, perfect for gatherings.
- Flexible Serving: Perfect for birthdays, a family treat, or even a dessert to impress friends in any casual setting.
- Diet-Friendly Options: Can be easily adapted to be gluten-free or dairy-free for inclusive baking.
Ingredients You’ll Need
- 2 cups all-purpose flour: Provides structure for the cake. You can substitute with gluten-free flour if needed.
- ½ cup unsweetened natural cocoa powder: Adds the deep chocolate flavor. Make sure it’s natural cocoa, not Dutch-processed for the best results.
- 1¾ cups granulated sugar: Sweetens the cake and keeps it moist. You can reduce the sugar for a less sweet option.
- 2 tsp baking powder: Helps the cake rise, ensuring a light texture.
- ½ tsp baking soda: Enhances the leavening process; crucial for texture.
- 1 tsp salt: Balances the sweetness while enhancing flavors.
- ½ cup vegetable oil: Keeps the cake moist; can substitute with melted coconut oil for a different flavor.
- 3 oz bittersweet chocolate: For a rich chocolate base; melting it ensures a smooth batter.
- 3 large eggs: Binds the ingredients together and adds richness.
- 1 cup buttermilk: Provides a tender crumb; you can use oat or almond milk mixed with vinegar as a dairy-free option.
- ½ cup hot strong coffee: Intensifies the chocolate flavor—don’t worry; you won’t taste the coffee! You can use hot water if preferred.
- 1 tsp vanilla extract: Enhances all the wonderful flavors in the cake.
- 1 ½ cups unsalted butter, room temperature: Essential for a velvety frosting.
- ¾ cup natural unsweetened cocoa powder: Used for the frosting, adding rich chocolate flavor.
- 3-4 cups powdered sugar: For sweetness and texture in frosting; use parchment sugar to reduce calories if desired.
- ¼ tsp salt: Just a pinch to balance the sweetness.
- 2-4 tbsp heavy cream: Adjusts the consistency of the frosting for your perfect texture.
How to Make The Best 9×13 Chocolate Cake from Scratch
- Preheat the oven: Start by preheating your oven to 350ºF (180ºC). Grease or line a 9×13 inch baking pan for easy removal.
- Combine dry ingredients: In a large mixing bowl, whisk together 2 cups all-purpose flour, ½ cup unsweetened natural cocoa powder, 1¾ cups granulated sugar, 2 tsp baking powder, ½ tsp baking soda, and 1 tsp salt until fully combined.
- Mix wet ingredients: In another bowl, whisk together ½ cup vegetable oil, 3 oz melted bittersweet chocolate (cooled), 3 large eggs, 1 cup buttermilk, ½ cup hot strong coffee, and 1 tsp vanilla extract until everything is nicely blended.
- Combine the mixtures: Gradually fold the dry mixture into the wet mixture until just combined. Be careful not to overmix, as this can make the cake dense.
- Prepare the batter: Pour the batter into your prepared 9×13 inch pan, spreading it evenly for uniform baking.
- Bake the cake: Place in the oven and bake for 30-35 minutes. Keep an eye on it and start checking for doneness around 28 minutes by inserting a toothpick in the center; it should come out clean.
- Cool the cake: Once baked, allow the cake to cool completely in the pan before frosting. This prevents melting off the frosting or creating a mess.
- Make the frosting: Beat 1 ½ cups unsalted butter using a hand mixer for about 2 minutes until it’s smooth and creamy. Then, add ¾ cup cocoa powder, 1 tsp vanilla, and ¼ tsp salt; mix on low until combined.
- Add powdered sugar: Gradually add 3 cups of powdered sugar, mixing on low speed after each addition to keep the counter clean.
- Adjust frosting consistency: Pour in 2 tablespoons of heavy cream and beat on medium speed for around 1 minute until fluffy. Feel free to add more powdered sugar for thickness or milk for a lighter spread.
- Frost the cake: Once the cake is fully cooled, spread your luxurious chocolate frosting evenly over the top.
Storing & Reheating
Store your chocolate cake at room temperature for about 2-3 days, tightly wrapped to keep it fresh. For longer preservation, refrigerate it in an airtight container for up to a week. If you’re looking to prolong it further, you can freeze individual slices wrapped in plastic wrap and foil for up to 3 months. When ready to enjoy, thaw overnight in the refrigerator or at room temperature, then warm it briefly in the oven at 350°F for about 10 minutes to revive its moist texture.
Chef’s Helpful Tips
- Avoid overmixing: Mix just until combined to keep your cake fluffy.
- Use room temperature ingredients: They blend better, giving a more even texture. Let eggs and butter sit out for about 30 minutes before use.
- Double-check your oven’s temperature: An oven thermometer can help ensure it’s accurate, as baking is a science.
- Let it cool properly: Allowing your cake to cool in the pan helps it set and prevents crumbling when you frost it.
- Frosting adjustments: If your frosting seems too thick, add more heavy cream a tablespoon at a time to achieve your desired consistency.
This rich and moist chocolate cake truly delivers, offering a perfect blend of flavors and textures that make it a timeless favorite. Not only is this recipe incredibly easy to master, but it also invites you to experiment with flavor combinations or toppings. You might consider adding chocolate chips for an extra treat or swapping out the frosting for something fruity. The possibilities are as vast as your imagination!

Recipe FAQs
Can I make this cake ahead of time?
Yes! This cake can be baked a day or two in advance. Just store it in an airtight container and frost it closer to serving time to keep it fresh.
Can I substitute the buttermilk?
Absolutely! If you don’t have buttermilk, you can create a quick substitute by mixing 1 cup of regular milk with 1 tablespoon of white vinegar or lemon juice, letting it sit for about 5-10 minutes.
How can I make this cake healthier?
You can reduce the granulated sugar slightly and use whole wheat flour in place of all-purpose flour. Additionally, you can opt for a dark chocolate knew frosting, using avocado or Greek yogurt as a base.
Why does my cake sink in the middle?
A common reason for sinking is underbaking. Ensure you bake the cake until it is set and a toothpick comes out clean. Also, check your oven temperature for accuracy, as baking too low can cause the cake to sink.
Print
⭐ If you make my The Best 9×13 Chocolate Cake from Scratch recipe, Awesome! I would love to hear from you. Please give it a star rating and review below! 👇

The Best 9×13 Chocolate Cake from Scratch
This chocolate cake is simply irresistible! With a rich flavor profile from cocoa and buttermilk, it’s easy to prepare and perfect for gatherings.
- Prep Time 10 minutes
- Cook Time 30-35 minutes
- Yield 20 servings 1x
Ingredients
- 2 cups (240g) all-purpose flour
- ½ cup (42g) unsweetened natural cocoa powder
- 1¾ cups (346g) granulated sugar
- 2 tsp baking powder
- ½ tsp baking soda
- 1 tsp salt
- ½ cup (100g) vegetable oil
- 3 oz bittersweet chocolate, melted and cooled
- 3 large eggs
- 1 cup (227g) buttermilk
- ½ cup (111g) hot strong coffee, can substitute hot water if needed
- 1 tsp vanilla extract
- 1½ cup (339g) unsalted butter, room temperature
- ¾ cup (63g) natural unsweetened cocoa powder
- 3-4 cups (339-454g) powdered sugar
- 1 tsp vanilla extract
- ¼ tsp salt
- 2-4 tbsp heavy cream
Instructions
- Preheat the oven to 350ºF (180ºC) and prepare a 9×13 inch baking pan with grease or parchment paper.
- In a large bowl, whisk together flour, cocoa powder, sugar, baking powder, baking soda, and salt. Set aside.
- In another bowl, mix vegetable oil, melted chocolate, eggs, buttermilk, hot coffee, and vanilla extract until smooth.
- Gradually add the dry ingredient mixture to the wet ingredients, mixing gently until combined—avoid overmixing.
- Pour the batter into the prepared baking pan and spread it out evenly.
- Bake for 30-35 minutes or until a toothpick comes out clean from the center. Check earlier if using a dark pan.
- Let the cake cool completely in the pan before applying frosting.
Notes
The cake is very moist, thanks to the buttermilk and coffee, which enhance the chocolate flavor.
Store any leftover cake in an airtight container to maintain freshness.
Frosting can be adjusted with cream for desired consistency.
Nutrition
- Serving Size: 1 slice
- Calories: 350
- Sugar: 30g
- Sodium: 250mg
- Fat: 18g
- Saturated Fat: 7g
- Unsaturated Fat: 8g
- Trans Fat: 0g
- Carbohydrates: 45g
- Fiber: 2g
- Protein: 4g
- Cholesterol: 75mg
Nutritional information is an estimate. The nutritional values for your final dish may vary based on measuring differences and products used.




