How to Bake a Cake from Scratch: Simple Method
Most scratch cakes follow the same pattern: cream butter and sugar, add eggs, alternate dry and liquid ingredients, then bake at 350°F (175°C) until a toothpick comes out clean. The creaming method works for butter cakes like yellow, chocolate and pound cake. For a sponge or angel food cake, you whip eggs or egg whites for structure instead of relying on butter and baking powder.
Start with room-temperature ingredients and a properly preheated oven. Those two details prevent more cake failures than any other step.
Set Up Your Pan and Oven Before You Mix
Preheat the oven to 350°F (175°C) and place a rack in the center. Grease an 8-inch (20 cm) round pan or a 9-inch (23 cm) square pan with butter or shortening, then dust with flour and tap out the excess. For chocolate cake, dust with cocoa powder instead so no white flour shows.
Cut a circle of parchment for the bottom of a round pan. Grease the parchment too. This step makes releasing the cake reliable, especially for delicate sponges.
Check your pan size against the batter amount. An 8-inch round pan holds about 4 cups (960 ml) of batter; a 9-inch round holds about 6 cups (1.4 L). If you use a smaller pan than the recipe calls for, the batter rises above the rim and spills.
Bring Butter, Eggs and Milk to Room Temperature
Cold butter does not cream smoothly with sugar, and cold eggs can curdle the batter. Set butter out 30 to 60 minutes ahead, or cut it into small cubes to soften faster. Put eggs in a bowl of warm tap water for 10 minutes. Warm milk gently on the stove or in short microwave bursts until it feels cool, not hot, on your wrist.
If you forget, soften butter in the microwave in 5-second bursts, turning it between bursts. Stop while it is still slightly cool; melted butter changes the cake's texture.
Measure Flour Correctly for a Tender Crumb
Flour is the ingredient most often mismeasured. Spoon flour into a dry measuring cup and level it with a straight edge. Do not scoop directly from the bag, which packs the flour and can add 20 percent or more to the amount.
One cup of all-purpose flour weighs about 125 g (4.4 oz) when spooned and leveled. If a recipe lists grams, use a scale for the most consistent result. Sift the flour with baking powder, baking soda and salt so the leaveners spread evenly.
Cream, Add Eggs, Then Alternate Dry and Liquid
- Beat 1/2 cup (113 g) softened unsalted butter with 1 cup (200 g) granulated sugar on medium speed for 3 to 4 minutes, until pale and fluffy. Scrape the bowl once.
- Add 2 large eggs one at a time, beating 30 seconds after each. The mixture should look smooth and glossy. If it looks curdled, add 1 tablespoon (8 g) of the measured flour and beat briefly.
- Whisk 1 3/4 cups (219 g) all-purpose flour, 2 teaspoons baking powder and 1/2 teaspoon salt in a separate bowl.
- Measure 3/4 cup (180 ml) whole milk and stir in 1 teaspoon vanilla extract.
- Add the flour mixture in three additions, alternating with the milk in two additions, starting and ending with flour. Mix on low speed just until each addition disappears. Stop as soon as the last flour streaks vanish; overmixing develops gluten and makes the cake tough.
- Scrape the batter into the prepared pan and smooth the top with a spatula.
- Bake at 350°F (175°C) for 25 to 30 minutes, until the top springs back when lightly pressed and a toothpick inserted in the center comes out clean or with a few moist crumbs. Start checking at 22 minutes.
- Cool in the pan on a wire rack for 10 minutes, then run a knife around the edge and turn the cake out onto the rack. Cool completely before frosting, about 1 hour.
Serves 8 · Prep 20 min · Cook 30 min · Total 1 hr 50 min
Match the Pan Size to the Batter
Pan size changes baking time and rise. The recipe above makes about 4 cups (960 ml) of batter, enough for one 8-inch (20 cm) round pan or one 8-inch (20 cm) square pan. For a 9-inch (23 cm) round pan, the same batter bakes in 22 to 26 minutes because it spreads thinner.
For cupcakes, line a 12-cup tin with paper liners and fill each about two-thirds full. Bake at 350°F (175°C) for 18 to 22 minutes, until a toothpick comes out clean. For a 9-by-13-inch (23-by-33 cm) sheet cake, double the recipe and bake for 30 to 35 minutes.
Fix a Sunken Center, Dry Crumb or Stuck Cake
| Symptom | Likely cause | Fix next time |
|---|---|---|
| Sunken center | Oven door opened early, or too much batter in the pan | Keep the door closed for the first 20 minutes and fill the pan no more than two-thirds full. |
| Dry, crumbly cake | Flour packed into the cup or overbaking | Spoon and level the flour, and check the cake at the early end of the time range. |
| Dense, rubbery texture | Overmixing after the flour went in | Mix on low speed only until the flour disappears. |
| Cake stuck to the pan | Pan not greased and floured, or cake cooled too long in the pan | Grease and flour every surface, and turn the cake out after 10 minutes. |
Swap Ingredients Without Ruining the Structure
Butter can be replaced with an equal amount of softened stick margarine or coconut oil, but the flavor changes and the cake may brown faster. Do not use whipped or tub spreads, which contain water and air.
Buttermilk can stand in for whole milk: use 3/4 cup (180 ml) buttermilk and add 1/4 teaspoon baking soda to the dry ingredients. The cake will be slightly tangier and more tender. For a dairy-free version, use oat milk or soy milk with 1 tablespoon (15 ml) lemon juice per cup, and let it sit 5 minutes.
Cocoa powder can replace 1/4 cup (30 g) of the flour for a light chocolate cake; use Dutch-process cocoa for a darker color and milder flavor. Reduce the baking powder by 1/4 teaspoon if you add cocoa, since cocoa is slightly acidic.
Store and Freeze the Cake So It Stays Fresh
Cool the cake completely, then wrap it tightly in plastic wrap or store it in an airtight container at room temperature for up to 2 days. If the cake has a perishable frosting made with cream cheese, whipped cream or custard, refrigerate it and eat within 3 to 4 days.
To freeze, wrap unfrosted cake layers in plastic wrap and then foil, and freeze for up to 2 months. Thaw in the refrigerator overnight before frosting. Frosted cake can be frozen in a rigid container for up to 1 month; thaw in the refrigerator.
Raw flour and raw eggs carry a risk of foodborne illness. Do not eat the batter. If a recipe calls for raw or lightly cooked eggs in a frosting or filling, use pasteurized eggs and heat-treat any raw flour to 160°F (71°C) before use.