How can you get a cake to cook in the middle without burning outside?

Here are some tips to help your cake cook evenly and avoid burning:

Before Baking:

* Accurate Recipe: Use a tried and true recipe.

* Proper Oven Temperature: Preheat your oven to the correct temperature for the recipe. Use an oven thermometer to ensure accuracy.

* Batter Consistency: Follow the recipe instructions for mixing the batter. Over-mixing can lead to a tough cake.

* Grease and Flour: Grease and flour your cake pan to prevent sticking and ensure even browning.

* Baking in the Center: Place the cake pan in the center of the oven rack.

During Baking:

* Rotation: Rotate the cake pan halfway through baking for even cooking.

* Check for Doneness: Use a toothpick or cake tester inserted into the center. If it comes out clean, the cake is done.

* Avoid Opening the Oven Door Too Often: Every time you open the oven, the temperature drops, which can affect baking time.

* Watch for Browning: Keep a close eye on the cake's edges and bottom. If they're browning too quickly, consider lowering the oven temperature slightly.

Additional Tips:

* Dark Pans: Use lighter-colored pans to avoid excessive browning.

* Use a Cake Pan with a Darker Bottom: This will help to encourage browning on the bottom of the cake without over-browning the sides.

* Water Bath: For some cakes, especially those with delicate batters, a water bath can help prevent burning. Place the cake pan in a larger pan filled with hot water.

Troubleshooting:

* If the cake is browning too quickly: Lower the oven temperature by 25 degrees Fahrenheit.

* If the cake is undercooked in the center: Increase baking time by a few minutes, checking for doneness frequently.

* If the cake is dense and undercooked: Check your baking powder or baking soda to ensure it is fresh.

Remember, practice makes perfect. The more you bake cakes, the more you'll learn the nuances of each recipe and your oven.