How to bake a cake

Baking a cake means beating butter, sugar and eggs into a light batter, folding in flour and milk, and baking it at about 350°F until the center feels firm. A classic butter cake takes about 1 hour. Four things get it right:

  1. 1

    Room temperature

    Butter at 65°F or warmer, plus room-temperature eggs and milk.

  2. 2

    Measured flour

    Weigh it, or spoon it into the cup and sweep off the excess.

  3. 3

    Mixed just enough

    Beat the butter and sugar well, then mix only until the flour disappears.

  4. 4

    Tested in the center

    A toothpick comes out clean or with a few moist crumbs.

Save it in Evernote. Clip the cake recipe that worked, note your pan and bake time, and get a grocery list.

Save your recipes in Evernote

How to bake a cake in 7 steps

  1. 1

    Warm the ingredients

    Take the butter, eggs and milk out of the refrigerator ahead of time. The butter should be at least 65°F.

  2. 2

    Heat the oven and prepare the pans

    Put a rack in the center of the oven and heat it to 350°F. Lightly grease two 8" or 9" round pans, one 9" x 13" pan, or 24 muffin cups.

  3. 3

    Cream the butter and sugar

    Beat the butter, sugar, baking powder, salt and vanilla on medium-high speed for about 3 minutes, until pale and fluffy. Scrape the bowl as you go.

  4. 4

    Beat in the eggs

    Add the eggs two at a time and beat well after each addition, scraping the bowl, until the batter thickens.

  5. 5

    Add flour and milk

    Stir in half the flour, then all the milk, then the rest of the flour, mixing just until combined. The batter can look curdled after the milk. It comes back together with the last of the flour.

  6. 6

    Bake and test

    Spread the batter evenly in the pans. Bake 9" rounds for 36 to 42 minutes, until golden. The center should feel firm when pressed, and a toothpick should come out clean or with a few moist crumbs.

  7. 7

    Cool before frosting

    Let the layers cool completely in the pans, then run a knife around the edges and turn them out. Frost only once they are cool. Do not taste the raw batter: raw flour and raw eggs can carry harmful bacteria.

Classic yellow cake

Two 9" layers of a tender butter cake, ready for any frosting
2
Makes
Two 9" layers
Prep
20 min
Bake
36-42 min
Oven
350°F

Ingredients

  • 116 tbspunsalted butter, room temperature (227g)
  • 1 1/2 cupsgranulated sugar (298g)
  • 2 1/2 tspbaking powder
  • 3/4 tsptable salt
  • 1 tbspvanilla extract
  • 4 largeeggs, room temperature
  • 3 cupsunbleached cake flour (360g)
  • 1 cupmilk, room temperature (227g)

Method

  1. 3Beat the butter, sugar, baking powder, salt and vanilla until fluffy, about 3 minutes.
  2. Add the eggs two at a time, beating well and scraping the bowl.
  3. 5Stir in half the flour, all the milk, then the rest of the flour.
  4. 6Divide between two greased 9" pans and bake 36 to 42 minutes.
  5. Cool completely in the pans before turning out and frosting.

Recipe from King Arthur Baking (Back-to-Basics Yellow Cake). Serve at room temperature: the fridge firms up a butter cake.

How long to bake a cake, by pan

The same yellow cake batter fits several pans. Bake at 350°F and start checking at the low end of each range.

PanBake time at 350°FDone when
Two 9" rounds36 to 42 minutesGolden, firm in the center, toothpick clean or with a few moist crumbs.
Two 8" rounds38 to 44 minutesGolden, firm in the center, toothpick clean or with a few moist crumbs.
One 9" x 13"40 to 45 minutesGolden, firm in the center, toothpick clean or with a few moist crumbs.
24 cupcakes24 to 30 minutesToothpick clean or with a few moist crumbs. Cool 5 minutes in the pans, then on a rack.

Source: King Arthur Baking, "Back-to-Basics Yellow Cake". Use 8" pans at least 2" deep.

Free recipe card template

Copy it, or save it to your Evernote account and fill in one card for every recipe you want to keep.

Recipe: [name]

Serves: [number] · Prep: [minutes] · Cook: [minutes]

Ingredients:
[amount] [first ingredient]
[amount] [next ingredient]

Method:
1.
[first step]
2.
[next step]

Done when: [temperature or sign, such as 165°F in the thickest part]

Keeps: [days in the fridge]

My notes: [what you changed, and how long it really took]

Trusted by Millions Worldwide

4.4

2,100+ reviews on G2

4.4

8,200+ reviews on Capterra

4.4

73,000+ reviews on App Store

248M

Registered users

Cake questions

What temperature do you bake a cake at?

Most butter cakes, including this one, bake at 350°F with the rack in the center of the oven. Follow your recipe, though: some use a lower heat, such as 325°F for a single 8" layer.

How do I know when a cake is done?

The top is golden, the center feels firm when you press it gently, and a toothpick pushed into the center comes out clean or with just a few moist crumbs. Check at the start of the time range.

Can I use all-purpose flour instead of cake flour?

Yes. For each cup of cake flour, whisk together 3/4 cup plus 2 tablespoons (105g) all-purpose flour with 2 tablespoons (14g) cornstarch. The reverse swap is riskier: cake flour in an all-purpose recipe can make a cake sink.

Why did my cake sink in the middle?

Common causes are taking it out before the center set, beating in too much air when creaming, overmixing after the flour goes in, and too much or too little baking powder. Measure leaveners carefully and test the center before you take the cake out.

Why do ingredients need to be at room temperature?

Butter at 65°F or warmer beats with the sugar into a pale, fluffy mix in about 3 minutes. That creaming beats in the air that helps the cake rise. The recipe also calls for eggs and milk at room temperature.

Is it safe to taste cake batter?

No. The FDA advises never to eat raw flour, dough or batter. Flour is a raw food that can carry bacteria such as E. coli and Salmonella, and batters often contain raw eggs. Baking is what makes them safe.

How do I store a cake?

Well wrapped, a butter cake keeps for up to 3 days at room temperature, up to a week covered in the refrigerator, or up to a month wrapped in the freezer. Let it come back to room temperature before serving.

How to keep your cake recipe with Evernote

Clip the recipe into a Recipes notebook with the Evernote Web Clipper, then let the AI Assistant tidy it and plan the shopping.

  1. 1

    Clip just the recipe.

    Save the page to your Recipes notebook with the Web Clipper. Ask the AI Assistant to keep only the ingredients and the method.

  2. 2

    Make the grocery list.

    Ask it to turn the ingredients into a checklist in the note, skipping what is already in your Pantry note.

  3. 3

    Cook your version next time.

    After you cook, add your own times and changes to the note. Next time, ask "How long did the cake bake in the 9-inch pans last time?" and the Assistant answers from your notes.

  • You can also ask the AI Assistant to double or halve a recipe.
  • You can also plan the week's meals in a table in one note.
  • You can also share the grocery list with your household, so anyone can tick items off.

Bake the cake that worked, again

Clip the recipe, note your pan and bake time, and get a grocery list in one request.

Start for free