Cake baking times depend on pan size, batter consistency, and oven accuracy, making it one of the more variable things to get right. If you want to know how long to cook a cake in the oven, the honest answer is that it ranges from about 18 minutes for thin layers to over an hour for dense, large cakes. The good news is that with a few simple rules, you can nail the timing every time.
This guide breaks down baking times by pan type, cake style, and oven behavior. You will also learn the tests that tell you when a cake is truly done, so you never have to guess again.
How Long To Cook A Cake In The Oven
Most standard cakes bake between 25 and 40 minutes at 350°F (175°C). That range covers a typical 9-inch round or 8-inch square pan. But several factors push the time up or down, and ignoring them is the main reason cakes come out dry or undercooked in the center.
Use the chart below as your starting point. Then rely on doneness tests, not just the clock.
Baking Time Chart By Pan Size And Shape
- 8-inch round pan: 30 to 35 minutes
- 9-inch round pan: 25 to 30 minutes
- 8-inch square pan: 30 to 35 minutes
- 9×13-inch rectangular pan: 35 to 40 minutes
- Bundt pan (10 to 12 cup): 45 to 55 minutes
- Loaf pan (9×5-inch): 50 to 60 minutes
- Cupcakes: 18 to 22 minutes
- Mini cupcakes: 10 to 14 minutes
Deeper batter means a longer bake. Shallow batter means a faster one. A 9×13 pan holds more volume then a round pan, so it needs more time even though the batter is spread out.
How Cake Type Changes The Time
Not all cakes bake at the same speed. The ingredients and structure matter just as much as the pan.
- Light sponge or chiffon cakes: 20 to 30 minutes
- Butter cakes and yellow cakes: 25 to 40 minutes
- Pound cakes and dense butter cakes: 55 to 75 minutes
- Angel food cake: 35 to 45 minutes
- Carrot cake or fruit cake: 45 to 65 minutes
- Molten or lava cakes: 12 to 15 minutes
Dense batters with lots of butter, sugar, or fruit take longer. Airy batters with whipped eggs set fast. If you swap a cake type but keep the same pan, expect the time to shift.
Oven Temperature And Accuracy
Most recipes call for 350°F. Some call for 325°F for dark pans or 375°F for thin layers. The temperature you set is not always the temperature you get.
Many home ovens run 25 to 50 degrees off. That alone can add or remove 10 minutes from your bake. Use an oven thermometer to check. If your oven runs hot, lower the dial by 25 degrees. If it runs cold, raise it.
Also avoid opening the door too early. The first 15 minutes are when the cake rises and sets. A draft of cool air can cause it to sink in the middle.
Signs Your Cake Is Done
Time is a guide, not a rule. Always confirm with at least one of these tests.
- Insert a toothpick or skewer into the center. It should come out clean or with a few moist crumbs.
- Press the center gently. It should spring back and feel firm, not wet or jiggly.
- Look at the edges. They should pull away slightly from the pan sides.
- Check the color. The top should be golden and set, not pale and shiny.
If the toothpick comes out with wet batter, add 5 minutes and test again. If it comes out dry and the cake smells toasty, pull it out right away.
Why Your Cake Time Keeps Changing
You may follow the same recipe and still get different results. Here is why.
- Pan material: dark metal browns faster, glass and light metal bake slower
- Batter temperature: cold batter from the fridge adds 5 to 10 minutes
- Altitude: high altitudes need lower temps and longer times
- Humidity: damp days slow the bake slightly
- Oven rack position: the middle rack bakes most evenly
Keep notes on what worked. After two or three bakes, you will know your oven and your pans well.
Step-By-Step Baking Method
- Preheat your oven for at least 15 minutes. Do not skip this.
- Prepare your pan with grease, flour, or parchment.
- Mix the batter until just combined. Overmixing makes a tough cake.
- Pour the batter evenly into the pan and smooth the top.
- Place the pan on the middle rack.
- Set a timer for the low end of your time range.
- Test at that point. Add time in 5-minute blocks if needed.
- Cool in the pan for 10 minutes, then move to a wire rack.
Let the cake cool fully before frosting. Warm cake melts frosting and slides apart.
Common Mistakes To Avoid
- Opening the oven door often to peek
- Using the wrong pan size for the recipe
- Filling the pan more than two-thirds full
- Trusting the timer over the toothpick test
- Baking two racks at once without rotating pans
If you bake two pans side by side, rotate them halfway through. If you bake on two racks, swap top and bottom at the halfway mark.
Adjusting Time For Special Cakes
Some cakes need a different approach. Cheesecakes bake in a water bath at a lower temp, usually 325°F for 60 to 90 minutes. They are done when the edges are set but the center still wobbles a bit.
Flourless chocolate cakes bake 25 to 35 minutes. They should look set at the edges and slightly soft in the middle. Gluten-free cakes often need 5 to 10 extra minutes because the batter is wetter.
Sheet cakes for a crowd bake faster then thick round cakes. A half sheet pan at 350°F takes 20 to 25 minutes.
Final Tips For Perfect Timing
Buy an oven thermometer. It is the cheapest way to fix timing problems. Write down the pan, temp, and time every time you bake. Soon you will not need the chart at all.
And remember, a cake that tests clean at 28 minutes is done, even if the recipe says 35. Trust the cake, not the clock.