Dinners

Yellow Cake in a 9×9 Pan: Easy Single-Layer Recipe

Updated · By Stir & Share

Total timeincludes chilling, rising or resting
1 hr 10 min
Prep
15 min
hands-on
Cook
28 min
oven or stovetop
Serves
9
as written

Jump to recipe Save

Yellow Cake in a 9x9 Pan: Easy Single-Layer Recipe

This yellow cake is a tender, buttery single-layer sheet cake baked in a 9×9-inch pan. It has a fine crumb and a classic vanilla flavor, perfect for a weekday dessert or a small birthday cake. The recipe makes one 9-inch square cake that serves nine.

Ingredients

  • 1 ½ cups (190 g) all-purpose flour
  • 1 ½ teaspoons baking powder
  • ¼ teaspoon salt
  • ½ cup (1 stick, 113 g) unsalted butter, softened
  • ¾ cup (150 g) granulated sugar
  • 2 large eggs, at room temperature
  • 2 teaspoons vanilla extract
  • ½ cup (120 ml) whole milk, at room temperature

Instructions

  1. Preheat the oven to 350°F (177°C). Grease a 9×9-inch (23×23 cm) baking pan and line the bottom with parchment paper.
  2. In a medium bowl, whisk together the flour, baking powder, and salt.
  3. In a large bowl, beat the butter and sugar with an electric mixer on medium speed until light and fluffy, about 2-3 minutes. Scrape down the sides.
  4. Add the eggs one at a time, beating well after each addition. Beat in the vanilla extract.
  5. With the mixer on low speed, add the flour mixture in three additions, alternating with the milk in two additions, starting and ending with the flour. Mix just until combined; do not overmix.
  6. Pour the batter into the prepared pan and spread it evenly.
  7. Bake for 25-28 minutes, until the top is golden and a toothpick inserted in the center comes out clean. The internal temperature at the center should read 200°F (93°C) if measured with an instant-read thermometer.
  8. Let the cake cool in the pan on a wire rack for 10 minutes, then turn out onto the rack to cool completely before frosting.

Frosting and Topping

This cake is delicious with a simple chocolate buttercream, vanilla buttercream, or a dusting of powdered sugar. For a classic yellow sheet cake, pair it with chocolate frosting.

If you want a two-layer cake, double the recipe and bake in two 9-inch round pans for 20-25 minutes. You can also add ½ cup (60 g) of sprinkles to the batter for a funfetti version.

Make-Ahead Timeline

You can bake the cake layers up to 2 days ahead. Wrap them tightly in plastic wrap and store at room temperature. Frost the cake the day you plan to serve it for the best texture.

If you need to freeze the unfrosted cake, wrap it in plastic wrap and then foil. It will keep for up to 3 months. Thaw overnight in the refrigerator before frosting.

Storage and Leftovers

Store frosted cake in an airtight container at room temperature for up to 3 days. If the frosting is dairy-based, refrigerate it; let it sit at room temperature for 30 minutes before serving.

Unfrosted cake keeps at room temperature in an airtight container for up to 4 days. Refrigerate any cake with perishable frosting; it will keep for 3-4 days. For longer storage, freeze unfrosted cake for up to 3 months.

Recipe Variations

Buttermilk: Replace the whole milk with buttermilk for a slightly tangier flavor and a more tender crumb. Add ¼ teaspoon of baking soda to the dry ingredients to balance the acidity.

Lemon: Add 1 tablespoon of lemon zest and replace the vanilla with 1 teaspoon of lemon extract.

Gluten-free: Use a 1-to-1 gluten-free flour blend. The cake will be a bit more delicate; check for doneness at 25 minutes.

Common Questions

Why is my cake dense? Overmixing the batter develops gluten, which makes the cake tough. Mix just until the flour disappears. Also, make sure your baking powder is fresh.

Can I use salted butter? Yes, but omit the salt in the recipe.

Can I use a different pan? A 9×9-inch pan is ideal. You can use an 8×8-inch pan, but the cake will be thicker and need about 5 extra minutes. A 9×13-inch pan will make a thinner cake; bake for about 20 minutes.

How do I know it’s done? The top should be golden brown, and a toothpick inserted in the center should come out clean. The internal temperature should read 200°F (93°C).

Can I make this into cupcakes? Yes, line a muffin tin with liners and fill each about ⅔ full. Bake at 350°F (177°C) for 15-18 minutes.

Safe Storage Times

Perishable frostings (those containing cream cheese, milk, or eggs) must be refrigerated. The cake with such frosting should not sit at room temperature for more than 2 hours. Refrigerated frosted cake keeps for 3-4 days. Unfrosted cake can stay at room temperature for up to 4 days. For longer storage, freeze unfrosted cake for up to 3 months.

Related

Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.

Spotted an error? Tell us and we will correct it (corrections policy).