Amazon holiday deals See deals →ad

One Layer Chocolate Cake Recipe for 8×8 Pan

This one-layer chocolate cake is baked in an 8×8-inch square pan, giving you a moist, tender crumb with a rich cocoa flavor—perfect for small gatherings or when you don’t need a towering layer cake. The recipe uses simple pantry ingredients and comes together in about an hour, making it a reliable go-to for a quick dessert.

Ingredients

  • 1 1/2 cups (180 g) all-purpose flour
  • 1 cup (200 g) granulated sugar
  • 1/2 cup (50 g) unsweetened cocoa powder (natural or Dutch-process)
  • 1 teaspoon baking soda
  • 1/2 teaspoon baking powder
  • 1/2 teaspoon salt
  • 1/2 cup (120 ml) buttermilk, at room temperature
  • 1/2 cup (120 ml) hot coffee or hot water
  • 1/4 cup (60 ml) vegetable oil
  • 1 large egg, at room temperature
  • 2 teaspoons vanilla extract

Instructions

  1. Preheat your oven to 350°F (175°C). Lightly grease an 8x8x2-inch metal or glass pan and line the bottom with parchment paper for easy removal.
  2. In a large bowl, whisk together the flour, sugar, cocoa powder, baking soda, baking powder, and salt. Make sure there are no lumps; if needed, sift the cocoa powder first.
  3. In a separate bowl or large measuring cup, whisk the buttermilk, hot coffee (or hot water), oil, egg, and vanilla until well combined.
  4. Pour the wet ingredients into the dry ingredients and stir with a spatula or whisk until just combined. The batter will be thin—that’s normal. Do not overmix.
  5. Pour the batter into the prepared pan. Tap the pan gently on the counter to release any air bubbles.
  6. Bake for 30–35 minutes, or until a toothpick inserted in the center comes out with a few moist crumbs (not wet batter). The center should spring back when lightly pressed.
  7. Let the cake cool in the pan on a wire rack for 15 minutes, then run a knife around the edges and invert onto a rack to cool completely before frosting or serving.

Tips

  • Don’t skip the hot liquid: The hot coffee or water helps bloom the cocoa, intensifying the chocolate flavor. If you don’t want coffee, use hot water.
  • Check for doneness early: Ovens vary. Start checking at 25 minutes. If the cake is browning too quickly, tent loosely with foil.
  • Room temperature ingredients matter: Cold buttermilk or egg can make the batter curdle slightly. Set them out 30 minutes before starting.
  • Substitute buttermilk: If you don’t have buttermilk, add 1 1/2 teaspoons of lemon juice or white vinegar to 1/2 cup of milk, let sit 5 minutes, then use.

Serving Suggestions

Serve this cake plain with a dusting of powdered sugar, or top it with a simple chocolate buttercream, whipped cream, or a scoop of vanilla ice cream. It’s also delicious with fresh berries or a drizzle of raspberry sauce.

Variations

  • Double chocolate: Fold in 1/2 cup (90 g) of semisweet chocolate chips before baking.
  • Mocha twist: Use strong brewed coffee instead of hot water and add 1 teaspoon of instant espresso powder to the dry ingredients.
  • Gluten-free: Substitute the all-purpose flour with a 1:1 gluten-free baking flour blend. The texture may be slightly more delicate.

Storage and Reheating

Store the cake in an airtight container at room temperature for up to 3 days. For longer storage, wrap tightly in plastic wrap and refrigerate for up to 5 days, or freeze for up to 3 months. To reheat, microwave a slice for 10–15 seconds until just warm, or place in a 300°F (150°C) oven for 5–8 minutes.

Frequently Asked Questions

Can I use an 8-inch round pan instead? Yes, an 8×2-inch round pan holds about 6 cups, while an 8x8x2-inch square holds about 8 cups. The batter will be deeper in the round pan, so increase baking time by 5–10 minutes and check with a toothpick.

Why is my cake dry? Overbaking is the most common cause. Check the cake at the lower end of the time range and remove it when a toothpick has a few moist crumbs. Also, measure flour correctly by spooning into the cup and leveling off.

Can I use Dutch-processed cocoa? Yes, but if you use Dutch-processed, you can reduce the baking soda to 3/4 teaspoon and keep the baking powder. The cake will be slightly less fluffy but still good.

Do I have to use buttermilk? No, you can use the milk + vinegar substitution mentioned in the tips. The acid in buttermilk helps the cake rise and tenderize the crumb, so the substitution is important.

Can I make this into cupcakes? Yes, line a muffin tin with paper liners and fill each cup about 2/3 full. Bake at 350°F (175°C) for 18–22 minutes, or until a toothpick comes out clean.

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