A classic vanilla cake is a soft, tender dessert with a mild sweetness and rich crumb, ideal for birthdays, potlucks, or weekend baking. The method below uses common pantry ingredients and standard 8-inch (20 cm) round pans. For cupcakes or sheet cakes, adjust pan size and baking time.
Serves 12 · Prep 20 min · Cook 25–30 min · Total 1 hr 15 min
Ingredients
- 2 1/2 cups (300 g) all-purpose flour
- 2 1/2 tsp (12 g) baking powder
- 1/2 tsp (3 g) fine sea salt
- 1 cup (225 g) unsalted butter, softened to room temperature
- 1 3/4 cups (350 g) granulated sugar
- 4 large eggs, room temperature
- 1 tbsp (15 ml) pure vanilla extract
- 1 cup (240 ml) whole milk, room temperature
Instructions
- Preheat oven to 350°F (175°C). Grease and flour two 8-inch (20 cm) round cake pans or line with parchment paper.
- In a medium bowl, whisk together flour, baking powder, and salt. Set aside.
- In a large bowl, beat butter with an electric mixer on medium speed for 2 minutes until smooth and creamy.
- Add sugar gradually, beating 3–4 minutes until light and fluffy.
- Beat in eggs one at a time, fully incorporating each before adding the next. Scrape down the bowl as needed.
- Beat in vanilla extract.
- With mixer on low, add flour mixture in three parts, alternating with milk in two parts, beginning and ending with flour. Mix just until combined after each addition.
- Divide batter evenly between prepared pans, using a scale or measuring cup for accuracy.
- Bake 25–30 minutes, until a toothpick inserted in the center comes out clean and the top springs back when lightly pressed.
- Cool cakes in pans on a wire rack for 15 minutes. Then run a knife around the edge and invert onto racks to cool completely before frosting.
How to Tell When the Cake Is Done
A vanilla cake is fully baked when the center reaches 200°F (93°C) on an instant-read thermometer and a toothpick inserted in the middle comes out clean. The edges will pull slightly from the pan, and the surface will spring back when touched. Underbaked cakes collapse when cooled; overbaked cakes become dry and tough.
What Happens If the Cake Is Underbaked
Underbaked cake sinks in the center and feels wet or gummy. This occurs if the oven temperature is too low, the cake is removed too early, or the batter was overmixed. Always use an oven thermometer to verify temperature and set a timer.
What Happens If the Cake Is Overbaked
Overbaked cake turns dry and crumbly, especially around the edges. This results from baking too long, using too high a temperature, or not measuring flour accurately. Spoon flour into the measuring cup and level with a knife to avoid excess.
Why the Cake Might Dome or Crack
A domed or cracked top forms when the oven temperature is too high, causing the surface to set before the center rises. To prevent this, bake at 350°F (175°C) and avoid opening the oven door during the first 20 minutes. Use bake-even strips if needed.
Why the Cake Might Be Dense
Dense cake results from overmixing after adding flour, which develops gluten, or from using cold ingredients that don’t emulsify properly. Mix only until combined after adding dry ingredients and ensure eggs, milk, and butter are at room temperature.
Baking Pan Sizes and Adjustments
| Pan Size | Number of Pans | Temperature | Bake Time |
|---|---|---|---|
| 8-inch (20 cm) round | 2 | 350°F (175°C) | 25–30 min |
| 9-inch (23 cm) round | 2 | 350°F (175°C) | 20–25 min |
| 9x13-inch (23x33 cm) rectangular | 1 | 350°F (175°C) | 30–35 min |
| Cupcakes | 24 | 350°F (175°C) | 18–22 min |
For high-altitude baking (above 3,000 ft / 900 m), reduce sugar by 1 tbsp (12 g) per cup and increase liquid by 2–4 tbsp (30–60 ml). Bake times may be slightly longer.
Ingredient Swaps and Effects
Use 2% or whole milk for best texture; lower-fat milk may result in a drier crumb. For a dairy-free version, substitute with full-fat canned coconut milk or oat milk. Butter cannot be replaced with oil without changing texture—oil yields a denser, more moist cake. If substituting oil, use 3/4 cup (180 ml) vegetable oil and reduce milk by 2 tbsp (30 ml).
For a gluten-free vanilla cake, use a 1:1 gluten-free flour blend with xanthan gum. Do not use almond or coconut flour alone—they lack structure. Eggs can be substituted with commercial egg replacer for binding, but the cake may be less fluffy.
Storage and Food Safety
Once cooled and frosted, store the cake in a covered container at room temperature for up to 1 day or refrigerate for up to 4 days. Unfrosted cake layers can be wrapped in plastic and refrigerated for 3 days or frozen for up to 3 months. Thaw frozen layers at room temperature before frosting.
Do not leave frosted cake with dairy-based frosting at room temperature longer than 2 hours (1 hour if above 90°F / 32°C). Discard if left out longer. Never store cake in direct sunlight or humid areas, as this causes condensation and mold.
Vanilla Cake for Cupcakes and Sheet Cakes
For cupcakes, line 24 muffin cups with paper liners and fill 2/3 full. Bake at 350°F (175°C) for 18–22 minutes. For a 9x13-inch (23x33 cm) sheet cake, bake 30–35 minutes. Frosting needs scale accordingly: a double batch of buttercream covers a two-layer 8-inch cake or a 9x13-inch sheet cake. Adjust baking time based on color and doneness cues, not the clock alone.