⏱ 6 min read  ·  ✅ Updated Nov 2026

A good scratch cake starts with one dependable vanilla butter cake, then branches into chocolate, lemon, spice and carrot versions by changing a few ingredients. Everything below uses pantry basics, a mixing bowl and a whisk or electric mixer, with no boxed mix involved.

The master recipe makes two 9-inch layers or one 9 by 13-inch sheet cake. Each variation shows what to swap, which keeps the method familiar and the results consistent from one cake to the next.

Ingredients

Vanilla Butter Cake Base

  • 2 and 3/4 cups all-purpose flour
  • 2 and 1/2 teaspoons baking powder
  • 3/4 teaspoon salt
  • 1 cup (2 sticks) unsalted butter, softened to cool room temperature
  • 1 and 3/4 cups granulated sugar
  • 4 large eggs, at room temperature
  • 1 tablespoon pure vanilla extract
  • 1 cup whole milk, at room temperature
  • 1/4 cup sour cream or plain yogurt

Simple Buttercream

  • 1 cup unsalted butter, softened
  • 4 cups powdered sugar, sifted
  • 2 to 3 tablespoons heavy cream or milk
  • 2 teaspoons vanilla extract
  • Pinch of salt

Instructions

  1. Heat the oven to 350 F. Grease two 9-inch round pans, line the bottoms with parchment, and lightly flour the sides.
  2. Whisk the flour, baking powder and salt in a medium bowl and set aside.
  3. Beat the butter and sugar on medium speed for 3 to 4 minutes, until pale and fluffy. Scrape down the bowl.
  4. Add the eggs one at a time, beating well after each. Beat in the vanilla.
  5. Stir the milk and sour cream together. Add the dry ingredients to the butter mixture in three parts, alternating with the milk mixture in two parts, starting and ending with the dry ingredients. Mix only until combined.
  6. Divide the batter between the pans and smooth the tops. Tap each pan once on the counter to release large air bubbles.
  7. Bake for 25 to 30 minutes, until a toothpick inserted in the center comes out clean and the edges pull slightly away from the pan.
  8. Cool in the pans for 10 minutes, then turn out onto a wire rack. Cool completely before frosting, at least one hour.
  9. For the frosting, beat the butter for 3 minutes, add the powdered sugar gradually, then the cream, vanilla and salt. Beat for 2 to 3 minutes until smooth and spreadable.

Four Variations Worth Making

Chocolate Layer Cake

Reduce the flour to 2 cups and add 3/4 cup unsweetened cocoa powder. Replace the milk with 1 cup hot brewed coffee or hot water stirred into the batter at the end for a deeper chocolate flavor, and use buttermilk in place of sour cream if available. Add 1/2 teaspoon baking soda alongside the baking powder. For frosting, beat 1/2 cup cocoa powder into the buttercream and add a splash more cream.

Lemon Cake

Rub the zest of 3 lemons into the sugar with fingertips until fragrant, then proceed with the base recipe. Swap the vanilla for 1 teaspoon vanilla plus 2 tablespoons lemon juice replacing an equal amount of milk. Brush warm layers with a simple syrup made from equal parts sugar and lemon juice heated until dissolved, then finish with lemon buttercream.

Spiced Apple or Carrot Cake

For a carrot cake, whisk 2 teaspoons cinnamon, 1/2 teaspoon nutmeg and 1/4 teaspoon ground ginger into the dry ingredients and use 3/4 cup neutral oil in place of the butter. Fold in 3 cups finely grated carrots and 1/2 cup chopped toasted walnuts if desired. Top with cream cheese frosting made from 8 ounces cream cheese, 1/2 cup butter and 3 cups powdered sugar.

Almond Poppy Seed Cake

Replace 1 teaspoon of vanilla with 1 teaspoon almond extract and stir 2 tablespoons poppy seeds into the batter. Bake as a sheet cake and dust with powdered sugar for a simple, elegant finish.

Why Scratch Cakes Work

Creaming Builds Structure

Beating butter and sugar traps tiny air pockets that expand in the oven, producing a tender crumb. Butter that is too warm or melted will collapse those pockets. The right temperature is cool enough to hold a fingerprint but not greasy, around 65 F.

Room-Temperature Dairy Blends Smoothly

Cold eggs and milk can cause the batter to look curdled. Set eggs in warm water for 10 minutes and let milk stand on the counter while the oven preheats.

Measuring Flour Correctly

Spoon flour into the measuring cup and level it with a knife. Scooping directly from the bag packs in extra flour, which leads to dry, dense cake. A kitchen scale makes this even easier, with a cup of all-purpose flour weighing roughly 125 to 130 grams.

Troubleshooting Common Problems

  • Dome on top: The oven may be too hot. Lower the temperature by 25 F and bake slightly longer, or trim the dome with a serrated knife.
  • Sunken center: Opening the oven early or underbaking is the usual cause. Wait until at least three-quarters of the bake time before checking.
  • Dry crumb: Overbaking or too much flour. Check for doneness a few minutes early and measure flour carefully.
  • Dense texture: Overmixing after the flour goes in develops gluten. Stop as soon as no dry streaks remain.
  • Cake sticks to the pan: Parchment on the bottom and a thorough greasing of the sides prevents this.

Storage, Freezing and Serving

Frosted cakes keep covered at room temperature for up to two days, unless the frosting contains cream cheese, in which case refrigerate it and bring to room temperature before slicing. Unfrosted layers wrapped tightly in plastic freeze for up to three months. Thaw them overnight in the refrigerator, still wrapped, so the surface does not collect condensation.

For serving, slice with a long knife dipped in hot water and wiped dry between cuts. A scoop of ice cream, a spoonful of macerated berries or a drizzle of warm caramel turns a simple slice into a dessert for company.

Decorating and Assembly Tips

Level, Fill and Crumb Coat

Trim any domes with a serrated knife so the layers stack evenly. Place the first layer cut side up on a plate, spread about a cup of frosting evenly to the edges, and add the second layer upside down so the flat bottom becomes the top. Spread a thin crumb coat of frosting over the whole cake, chill for 20 minutes, then apply the final layer for a smooth finish.

Easy Finishes Without Special Tools

A spoon back swirled across the top makes a rustic look, while toasted coconut, chopped nuts, fresh berries, chocolate shavings or sprinkles hide small imperfections. Edible flowers and citrus zest add color to lemon and vanilla cakes without any piping skill.

Cutting Clean Slices

Chilling the frosted cake for 30 minutes firms the buttercream so slices keep their shape. Wipe the knife between cuts for neat edges, and serve at room temperature so the crumb tastes soft rather than cold and stiff.

Baking at Higher Elevations

At altitudes above roughly 3,000 feet, cakes tend to rise too fast and then fall. A small reduction in baking powder, a slightly higher oven temperature and a bit more liquid usually help, and many cooks keep notes after the first attempt to fine-tune the recipe for their kitchen.

Substitutions

  • No sour cream: Use plain yogurt or buttermilk in equal amounts.
  • No cake flour: This recipe uses all-purpose flour. For a softer crumb, replace 2 tablespoons of flour per cup with cornstarch.
  • Dairy-free: Plant-based butter sticks and unsweetened oat or soy milk work, though results may differ slightly.
  • Gluten-free: A cup-for-cup gluten-free flour blend can be used, and the batter may need a few extra minutes of baking.
  • Sugar: Do not cut it dramatically, since it contributes to moisture and structure.

Related guides

Frequently Asked Questions

What is the secret to a moist scratch cake?

Accurate flour measurement, not overbaking and including a tangy dairy ingredient such as sour cream or buttermilk make the biggest difference. A brush of simple syrup on the layers adds extra moisture if needed.

Can a scratch cake be made a day ahead?

Yes. Bake and cool the layers, wrap them tightly, and frost the next day. The flavor often improves, and the crumb is easier to cut cleanly.

How can cupcakes be made from the same batter?

Fill paper-lined muffin cups about two-thirds full and bake at 350 F for 18 to 22 minutes. The batter makes roughly 24 cupcakes.

Why did the cake layers come out uneven?

Uneven oven heat, unlevel pans or unequal batter portions are the usual causes. Weigh the batter between pans, rotate the pans halfway through baking and use the center rack.