Amazon Cyber Monday deals See deals →ad

9 Inch Square Chocolate Cake Recipe

This 9-inch square chocolate cake is a moist, deeply chocolatey sheet cake baked in a standard 9x9x2-inch pan. It’s the perfect size for a small gathering, easy to frost, and cuts into neat squares. The recipe uses a simple reverse-creaming method that gives a fine, tender crumb and a flat top, making it a reliable choice for birthdays, potlucks, or a weekend treat.

Ingredients

  • 1 3/4 cups (210 g) all-purpose flour
  • 3/4 cup (75 g) unsweetened cocoa powder (natural or Dutch-processed)
  • 1 1/2 cups (300 g) granulated sugar
  • 1 1/2 teaspoons baking powder
  • 1 teaspoon baking soda
  • 1/2 teaspoon salt
  • 1/2 cup (113 g) unsalted butter, softened but cool
  • 2 large eggs, room temperature
  • 1 cup (240 ml) buttermilk, room temperature
  • 2 teaspoons vanilla extract
  • 1/2 cup (120 ml) hot coffee or hot water

Instructions

  1. Preheat your oven to 350°F (175°C). Lightly grease a 9x9x2-inch metal baking pan and line the bottom with parchment paper. If using a glass or dark metal pan, see the tips below for temperature adjustments.
  2. In the bowl of a stand mixer fitted with the paddle attachment (or a large bowl with a hand mixer), combine the flour, cocoa powder, sugar, baking powder, baking soda, and salt. Mix on low speed for about 30 seconds to sift and blend.
  3. Add the softened butter and mix on low speed until the mixture looks like damp sand and no large butter lumps remain, about 1-2 minutes.
  4. In a separate bowl, whisk together the eggs, buttermilk, and vanilla. With the mixer on low, add this mixture to the dry ingredients in a slow, steady stream. Increase speed to medium and beat for 1 minute, scraping down the sides as needed. The batter will be thick and smooth.
  5. Reduce speed to low and carefully pour in the hot coffee (or water). Mix just until incorporated; the batter will be thin. Give it a final scrape and stir by hand to ensure everything is combined.
  6. Pour the batter into the prepared pan. It will fill the pan about two-thirds full.
  7. Bake for 30 to 35 minutes, or until a toothpick inserted in the center comes out with a few moist crumbs (not wet batter), and the top springs back when lightly pressed. The cake should start pulling away from the edges slightly.
  8. Cool the cake in the pan on a wire rack for 15 minutes. Then run a knife around the edges, invert onto a rack, remove the parchment, and cool completely before frosting.

Tips

  • Pan material matters: If using a glass or dark metal pan, reduce the oven temperature to 325°F (165°C) and start checking for doneness at 30 minutes. Glass and dark pans conduct heat faster, which can over-brown the edges and crust.
  • Buttermilk substitute: No buttermilk? Make a quick version by adding 1 tablespoon of lemon juice or white vinegar to a measuring cup, then filling with milk to the 1-cup line. Let stand for 5 minutes before using.
  • Hot liquid is key: The hot coffee or water helps bloom the cocoa and activates the baking soda, giving a deeper chocolate flavor and a lighter crumb. Don’t skip it, and don’t use cold liquid.
  • Check early for thin layers: If you decide to split the batter into two 9-inch round pans, start checking at 20 minutes; the layers will be thinner and bake faster. The same applies if you use a larger pan like a 9×13-inch.

Serving Suggestions

This cake is delicious plain, but a simple chocolate buttercream or a dusting of powdered sugar elevates it. For a classic pairing, serve with a scoop of vanilla ice cream or a dollop of lightly sweetened whipped cream. It also makes a great base for a berry compote or fresh raspberries on the side.

Variations

  • Mocha twist: Use strong brewed coffee instead of hot water for a more pronounced coffee-chocolate flavor.
  • Add-ins: Fold in 1 cup of chocolate chips, chopped nuts, or a handful of dried cherries before pouring the batter into the pan.
  • Frosting swap: Top with a cream cheese frosting, a peanut butter buttercream, or a simple ganache (heat 1/2 cup heavy cream and pour over 4 oz chopped chocolate; stir until smooth).
  • Sheet cake style: Bake in a 9×13-inch pan for 25-30 minutes; the cake will be thinner and you’ll need to adjust the bake time.

Storage and Reheating

Store the unfrosted cake tightly wrapped in plastic wrap at room temperature for up to 3 days. Once frosted, keep it in an airtight container at room temperature for up to 2 days, or in the refrigerator for up to 5 days (bring to room temperature before serving for best flavor). To freeze, wrap the unfrosted cake layers tightly in plastic wrap and then foil; freeze for up to 3 months. Thaw overnight in the refrigerator before frosting. To reheat individual slices, microwave for 10-15 seconds for a just-baked warmth, or warm in a 300°F (150°C) oven for 5-10 minutes.

Frequently Asked Questions

Can I use Dutch-processed cocoa instead of natural? Yes, but you may need to adjust the leavening. Dutch-processed cocoa is less acidic, so if you use it, consider replacing the baking soda with an additional 1/2 teaspoon of baking powder. The texture may be slightly different, but it will still be delicious.

Why did my cake sink in the middle? A sunken center usually means the cake was underbaked, the oven was too cool, or the batter was overmixed. Make sure your oven is properly calibrated, and avoid opening the oven door during the first 20 minutes of baking. Check for doneness with a toothpick.

Can I make this cake without a mixer? Absolutely. You can mix the dry ingredients with a whisk, then cut in the softened butter using a pastry blender or your fingertips until the mixture is crumbly. Then stir in the wet ingredients with a wooden spoon, and finally whisk in the hot liquid. Just be careful not to overmix.

How do I know when the cake is done? The center should spring back when lightly pressed, a toothpick inserted into the middle should come out with a few moist crumbs (not wet batter), and the internal temperature should read about 200°F (93°C) if you use an instant-read thermometer.

Can I use a different size pan? Yes, but the bake time will change. For two 9-inch round pans, bake for 25-30 minutes. For a 9×13-inch pan, bake for 25-30 minutes as well. Always start checking earlier than the original recipe says. The batter will be thinner in a larger pan, so it bakes faster.

Can I substitute oil for the butter? Yes, you can use 1/2 cup (120 ml) neutral oil like canola or vegetable oil. Add it with the wet ingredients instead of rubbing into the dry. The texture will be slightly more tender and moist, but the cake may not rise quite as high.