Let's Bake a Cake: A Simple Guide to Start
To bake a cake, you need flour, sugar, fat, eggs, a leavening agent, and a liquid, mixed in the right order and baked at 350°F (175°C) until a toothpick comes out clean. A basic yellow cake uses 2 cups (240 g) of all-purpose flour, 1½ cups (300 g) of sugar, ½ cup (115 g) of butter, 2 eggs, 2 teaspoons of baking powder, and 1 cup (240 ml) of milk, baking in two 9-inch round pans for 25–30 minutes. The rest of this page covers the method, the pan prep that prevents sticking, and how to tell when the cake is done.
What Do You Need to Bake a Cake?
Gather these ingredients and tools before you start, because cake batter begins to react as soon as it is mixed. For a two-layer 9-inch yellow cake you need:
- 2 cups (240 g) all-purpose flour
- 1½ cups (300 g) granulated sugar
- 2 teaspoons baking powder
- ½ teaspoon salt
- ½ cup (115 g) unsalted butter, softened
- 2 large eggs, room temperature
- 1 cup (240 ml) whole milk, room temperature
- 1 teaspoon vanilla extract
You also need two 9-inch round cake pans, parchment paper, a mixing bowl, a whisk or electric mixer, and a cooling rack. If you do not have round pans, a 9×13-inch rectangular pan works; the cake will be a single layer and will need about 30–35 minutes in the oven.
Room-temperature butter and eggs blend more smoothly into the batter than cold ones. If you forgot to take them out early, cut the butter into small cubes and let it sit for 15–20 minutes, and place the eggs in a bowl of warm (not hot) water for 10 minutes.
How Do You Mix and Bake the Cake?
Heat the oven to 350°F (175°C) and position a rack in the center. Grease each pan with butter or shortening, line the bottom with a circle of parchment paper, and grease the paper lightly. This step is what keeps the cake from sticking; flour alone often leaves a patchy crust.
In a medium bowl, whisk together the flour, baking powder, and salt. In a large bowl, beat the softened butter and sugar with an electric mixer on medium speed for 2–3 minutes, until the mixture is pale and fluffy. Add the eggs one at a time, beating well after each, then beat in the vanilla.
Add the flour mixture in three additions, alternating with the milk in two additions, starting and ending with the flour. Mix on low speed just until each addition disappears. Overmixing develops gluten and makes the cake dense, so stop as soon as the batter is smooth.
Divide the batter evenly between the two pans, about 2 cups (480 ml) per pan. Tap each pan gently on the counter to release large air bubbles. Bake for 25–30 minutes, until the cakes are golden at the edges and a toothpick inserted in the center comes out clean or with a few moist crumbs. If the pans are dark metal, check at 22 minutes; dark pans brown faster.
Cool the cakes in their pans on a wire rack for 10 minutes, then run a thin knife around the edge and turn them out onto the rack. Peel off the parchment and let them cool completely, about 1 hour, before frosting. A warm cake melts frosting and slides apart.
How Can You Tell When a Cake Is Done?
The toothpick test is the most reliable sign: insert a wooden toothpick or thin skewer into the center of the cake, and it should come out clean or with a few small moist crumbs, not wet batter. The cake should also pull away slightly from the sides of the pan and spring back when you press the center gently with a fingertip.
If the top is browning too quickly but the center is still wet, tent a piece of aluminum foil loosely over the pan and continue baking. Do not open the oven door during the first 20 minutes, because a draft can cause the cake to fall.
An instant-read thermometer is another check: a fully baked butter cake typically registers around 200–210°F (93–99°C) in the center. Below 190°F (88°C), the center is likely underdone.
Why Did My Cake Turn Out Dense or Dry?
Two common problems account for most disappointing cakes. The first is overmixing: beating the batter too long after the flour goes in strengthens the gluten and produces a tight, chewy crumb. Mix only until the flour streaks vanish. The second is measuring flour by scooping directly from the bag, which can pack in up to 1½ times the intended amount. Spoon the flour into the measuring cup and level it with a knife, or weigh it: 2 cups should weigh about 240 g.
Dry cake usually means overbaking. Start checking at the low end of the time range, and remember that oven temperatures vary; an oven thermometer clipped to the rack shows whether yours runs hot. If the cake is already dry, brush each layer with 2–3 tablespoons of simple syrup (equal parts sugar and water, boiled and cooled) before frosting to add moisture.
A sunken center often comes from too much leavening or from opening the oven door early. Measure baking powder with a level teaspoon, and keep the door closed until the cake has risen and set, about 20 minutes.
How Should You Store a Baked Cake?
An unfrosted cake layer keeps at room temperature, wrapped tightly in plastic wrap, for 2 days, or in the freezer for up to 2 months. Any cake with whipped cream, pastry cream, or fresh fruit must be refrigerated and eaten within 2 days.
For longer storage, freeze unfrosted layers: wrap each in plastic wrap, then in foil, and label with the date. Thaw at room temperature for 2–3 hours before frosting. Leftover cut cake should be covered and refrigerated, and eaten within 3 days.
Raw batter contains raw eggs and raw flour, so do not taste it; raw flour can carry bacteria that are only killed by baking. Wash hands, bowls, and utensils that touched raw batter with hot soapy water.
What Is the Difference Between a Cake and a Quick Bread?
Cakes and quick breads like banana bread both use baking powder or baking soda for lift, but they differ in richness and mixing method. A cake typically has more sugar and fat, a finer crumb, and is often made by creaming butter and sugar until fluffy. Quick breads usually use a liquid fat such as oil or melted butter, are mixed with the muffin method (wet ingredients into dry), and have a denser, more rustic texture.
If you are deciding which to bake, choose a cake when you want layers and frosting for a celebration, and a quick bread when you want a single loaf to slice for breakfast or a snack. The mixing rule is the same: stop as soon as the flour is incorporated.
For a first cake, the yellow cake above is forgiving. Measure the flour by weight if you can, preheat fully, and test with a toothpick at the early end of the time range. Those three habits prevent most failures.