How to Bake a Cake in the Oven: Step-by-Step
In this article
Baking a cake from scratch is simpler than it seems if you follow the right order of steps. This guide walks you through a classic vanilla sponge that comes out tender, moist, and evenly risen every time—no fancy equipment or bakery secrets needed. The method relies on room-temperature ingredients and proper mixing to build structure, so the cake bakes up light and holds together cleanly when sliced.
Ingredients
- 2 cups (250 g) all-purpose flour
- 1 ½ teaspoons baking powder
- ½ teaspoon salt
- 1 cup (2 sticks / 226 g) unsalted butter, softened
- 1 cup (200 g) granulated sugar
- 4 large eggs, at room temperature
- 2 teaspoons vanilla extract
- ¾ cup (180 ml) whole milk, at room temperature
Instructions
- Preheat the oven to 350°F (175°C). Place a rack in the center of the oven. Grease a 9-inch round cake pan (or two 8-inch pans) with butter or nonstick spray, then dust with flour and tap out the excess.
- Whisk dry ingredients. In a medium bowl, whisk together the flour, baking powder, and salt. Set aside.
- Cream butter and sugar. In a large bowl, beat the softened butter and sugar with an electric mixer on medium speed for 3–4 minutes until pale and fluffy. Scrape down the sides once.
- Add eggs one at a time. Beat in each egg on low speed until just combined, then add the vanilla. The mixture may look slightly curdled if the eggs are cold—that’s okay, but room-temperature eggs prevent this.
- Alternate dry and wet ingredients. With the mixer on low, add one-third of the flour mixture, then half of the milk, mixing just until combined after each addition. Repeat, ending with the flour. Do not overmix—stop as soon as no streaks of flour remain.
- Scrape the batter into the pan. Use a spatula to spread it evenly, smoothing the top.
- Bake for 30–35 minutes (or 25–30 minutes for two 8-inch pans). The cake is done when a toothpick inserted into the center comes out clean or with a few moist crumbs, and the top springs back when lightly pressed.
- Cool in the pan for 10 minutes. Run a thin knife around the edge, then invert onto a wire rack. Let it cool completely before frosting or serving—at least 1 hour.
Tips
- Use room-temperature ingredients. Cold eggs or milk can make the batter curdle and the cake dense. Pull them out 30–60 minutes before starting.
- Measure flour correctly. Spoon it into the measuring cup and level with a knife—don’t scoop directly, or you’ll pack in too much and get a dry cake.
- Don’t open the oven during baking. A sudden temperature drop can make the cake sink in the middle. Wait until the minimum baking time before checking.
- Substitute buttermilk or yogurt. Replace the whole milk with equal parts buttermilk or plain yogurt for a slightly tangy, even more tender crumb. Add ¼ teaspoon baking soda if using buttermilk.
Serving Suggestions
Serve the cake plain with a dusting of powdered sugar, or pair it with fresh berries and whipped cream. For a classic layer cake, split the cooled cake horizontally and fill with jam, buttercream, or chocolate ganache. It also works well as a base for trifle or as a birthday cake with your favorite frosting.
Variations
- Lemon cake: Add 1 tablespoon lemon zest and replace the vanilla with 1 teaspoon lemon extract. You can also swap the milk for lemon juice–soured milk (1 tablespoon lemon juice + enough milk to make ¾ cup, let sit 5 minutes).
- Chocolate cake: Replace ¼ cup (30 g) of the flour with unsweetened cocoa powder, and increase the milk to 1 cup (240 ml) to keep the batter moist.
- Almond cake: Use 1 teaspoon almond extract instead of vanilla, and fold in ½ cup sliced almonds before baking.
- Cupcakes: Divide the batter into a 12-cup muffin tin lined with paper cups. Bake at 350°F (175°C) for 18–22 minutes.
Storage and Reheating
Store unfrosted cake in an airtight container at room temperature for up to 3 days. Frosted cake keeps 2–3 days in the fridge—bring to room temperature before serving. To freeze, wrap the cooled cake tightly in plastic wrap, then foil, and freeze for up to 3 months. Thaw overnight in the fridge or at room temperature for a few hours. Reheat individual slices in the microwave for 10–15 seconds, or in a 300°F (150°C) oven for 5–8 minutes to refresh the crumb.
Frequently Asked Questions
Why did my cake sink in the middle?
The most common causes are opening the oven door too early, underbaking, or using too much leavener. Also, if your baking powder is old, it may not provide enough rise—check the expiration date.
Can I use salted butter?
Yes, but reduce the added salt to ¼ teaspoon. Salted butter has about ¼ teaspoon salt per stick, so adjust accordingly.
How do I know when the cake is done without a toothpick?
Press the center lightly with your finger—if it springs back and leaves no indentation, it’s done. The edges will also pull away slightly from the pan.
Can I make this cake without an electric mixer?
Yes, but it will take more effort. Beat the butter and sugar with a wooden spoon until light and fluffy (about 5–6 minutes), then stir in the eggs one at a time. Mix the dry and wet ingredients by hand with a spatula, being careful not to overmix.
Why is my cake dry?
Overbaking is the usual culprit—check at the minimum time. Also, measuring flour by scooping can add too much flour. Use the spoon-and-level method, and ensure your eggs and milk are at room temperature for proper moisture distribution.
Can I double this recipe?
Yes, double all ingredients and bake in two 9-inch pans or a 13×9-inch sheet pan. Increase the baking time by 5–10 minutes for the sheet pan, and check with a toothpick.