To bake a cake at home, measure your ingredients, preheat the oven, prepare the pan, mix the batter and bake until the center is set. This beginner vanilla cake uses oil, so you can mix it by hand without creaming butter. Start checking it after 28 minutes; use the doneness signs below rather than the timer alone.
This recipe makes one 8-inch square cake, about 9 servings. Allow about 15 minutes for preparation, 28–35 minutes for baking and at least 45 minutes for cooling before frosting.

Cake ingredients and equipment
For the cake, measure 1½ cups all-purpose flour (180 g), ¾ cup granulated sugar (150 g), 1½ teaspoons baking powder, ¼ teaspoon fine salt, 2 large eggs, ½ cup milk (120 mL), ⅓ cup neutral vegetable oil (80 mL) and 2 teaspoons vanilla extract. Use baking powder, not baking soda, and plain all-purpose flour rather than self-rising flour.
You need an 8-inch square metal cake pan at least 2 inches deep, parchment paper, two bowls, a whisk, a spatula, measuring tools and a skewer or toothpick. A kitchen scale makes measuring flour easier. A different pan size or material can change the cooking time.

How to bake a cake for beginners
1 Preheat the oven and prepare the pan
Heat a conventional oven to 350°F (175°C) with a rack near the center. For a fan oven, start at about 160°C and check early. Let the oven finish preheating before baking. Lightly grease the pan and line the bottom with parchment, leaving enough overhang on two sides to lift the cake out.
2 Measure and combine the dry ingredients
Whisk the flour, sugar, baking powder and salt together in a large bowl. If you measure flour with cups, loosen it first, spoon it into the cup and level it with a straight edge. Scooping directly from a packed bag can add too much flour and make the cake dry.
3 Mix the wet ingredients
In a separate bowl, whisk the eggs, milk, oil and vanilla until evenly combined. Neutral oils such as canola or sunflower keep the vanilla flavor mild. Strongly flavored olive oil changes the taste. Do not replace the oil with the same volume of water.
4 Combine the batter
Pour the wet mixture into the dry ingredients. Stir gently with a whisk or spatula until no dry flour remains, scraping the bottom of the bowl. Stop once the batter is combined; prolonged beating after adding flour can make the crumb tough.
5 Fill the pan and bake
Scrape the batter into the prepared pan and level the surface. Bake for approximately 28–35 minutes. Avoid opening the door during the first 25 minutes unless the cake is clearly browning too quickly. At 28 minutes, check the center and continue in short intervals if needed.
6 Check doneness and let the cake cool
The center should look set and spring back gently when lightly touched. A skewer inserted into the center should come out clean or with a few moist crumbs, without wet batter. If the top is browning before the middle is cooked, loosely cover it with foil and continue baking.
Let the cake rest in its pan for 10–15 minutes, then carefully lift it onto a cooling rack using the parchment. Support the cake as you move it. Cool completely before frosting; warm cake can melt frosting and break when cut. For a simple finish, dust the cooled cake with powdered sugar.

How long does a cake take to bake
The time depends on the recipe, pan size, batter depth, oven accuracy and pan material. For this batter in the specified 8-inch square metal pan, begin checking at 28 minutes. Do not use the same time for a deep loaf, a Bundt cake or cupcakes.
For your first cake, use the stated pan and a kitchen timer. If your cakes repeatedly burn or take much longer than expected, an oven thermometer can help you check the actual temperature.
How to bake a cake with oil
Oil mixes easily into the liquid ingredients and stays liquid after cooling. This recipe is designed around oil, so it does not need an electric mixer. For other cake recipes, do not automatically swap every gram of butter for oil: butter also contributes water and can trap air during creaming.
Can you bake a cake without an oven
Yes, but use a recipe developed for the appliance you have. A microwave mug cake, an air-fryer cake and a steamed cake use different containers, quantities and cooking times. Do not put a metal cake pan in a microwave or heat an ordinary cake pan directly over a flame.
This vanilla cake recipe is written for an oven. For a microwave alternative, King Arthur Baking has a separate vanilla mug cake recipe. Follow its quantities and microwave instructions instead of microwaving the full cake batter above.
Can you bake a cake in five minutes
A full-size oven cake cannot be mixed, baked and cooled in five minutes. A small microwave mug cake can cook in a few minutes, but preparation and cooling take extra time. Microwave power and mug size matter, so follow a specific mug cake recipe and check its cooking instructions.
Baking a cake with kids
Children can help measure, whisk and decorate according to their age and ability. An adult should handle the oven, hot pan and cake removal. Do not taste raw batter: uncooked flour and raw eggs can carry harmful germs. Wait until the cake has cooled before decorating together.
Common cake problems and how to avoid them
Dry or dense cake: measure the flour carefully, avoid overmixing and begin checking before the longest stated baking time.
Sunken center: the cake may be underbaked, the raising agent may have been mismeasured or the oven door may have been opened too early. Check the center before removing it.
Cake sticks to the pan: grease the pan and line its base. Let the cake settle briefly before lifting it out.
Brown top and wet center: check the oven temperature and pan size. Cover loosely with foil if necessary and continue until the middle is cooked.
Storage
Keep the completely cooled, unfrosted cake in an airtight container at room temperature for up to 2 days in a cool kitchen. For longer storage, wrap and freeze individual portions for up to 2 months. Refrigerate cakes with cream cheese frosting, whipped cream or other perishable toppings, and follow the topping’s storage guidance.
More cake recipes
Once you are comfortable with a simple cake, explore our chocolate cake recipe or kefir sheet cake. Use each recipe’s own ingredients and baking instructions.
FAQS
What are the basic ingredients for a cake?
This vanilla cake uses all-purpose flour, sugar, baking powder, salt, eggs, milk, neutral oil and vanilla. Other cakes may use butter, different raising agents or different liquids.
What temperature should I use to bake a cake?
For this recipe, use a preheated conventional oven at 350°F (175°C), or about 160°C with a fan. Follow the temperature specified for the recipe you are making.
Can beginners make a cake without a mixer?
Yes. This oil-based batter can be mixed with a whisk and spatula. Stop mixing once the flour is incorporated.
How do I know my cake is baked?
The center should be set, spring back gently and give a clean skewer or a few moist crumbs. Wet batter on the skewer means it needs longer.
Can I make this cake in a microwave?
Do not transfer these full-size oven instructions directly to a microwave. Use a separate microwave cake recipe with a microwave-safe container and appliance-specific timing.

Easy Vanilla Oil Cake
- Total Time: 1 hour 35 minutes
- Yield: 9 squares 1x
Description
A simple vanilla oil cake for beginners, baked in one 8-inch square pan and mixed by hand.
Ingredients
1 1/2 cups all-purpose flour (180 g)
3/4 cup granulated sugar (150 g)
1 1/2 teaspoons baking powder
1/4 teaspoon fine salt
2 large eggs
1/2 cup milk (120 mL)
1/3 cup neutral vegetable oil (80 mL)
2 teaspoons vanilla extract
Instructions
Preheat a conventional oven to 350°F (175°C), or about 160°C fan. Grease an 8-inch square metal pan at least 2 inches deep and line its base with parchment.
Whisk flour, sugar, baking powder and salt in a large bowl.
Separately whisk the eggs, milk, oil and vanilla until combined.
Pour wet ingredients into dry. Stir gently just until no dry flour remains, scraping the bottom.
Spread batter evenly in the prepared pan. Bake about 28–35 minutes, beginning to check at 28 minutes.
The center should spring back gently and a skewer should come out clean or with moist crumbs, without wet batter. Continue baking if needed.
Cool in the pan 10–15 minutes, then lift carefully onto a rack. Cool completely before frosting or serving. Cut into 9 squares.
Notes
Use the specified pan; other sizes and materials alter baking time. No electric mixer is needed. Do not taste raw batter. Storage: keep the plain cooled cake airtight in a cool kitchen up to 2 days, or freeze portions up to 2 months. Refrigerate perishable frostings. Baking time is an estimate; doneness signs control readiness.
- Prep Time: 15 minutes
- Cook Time: 35 minutes
- Category: Dessert
- Method: Baking
- Cuisine: American
Nutrition
- Serving Size: 1 square
Keywords: how to bake a cake,vanilla oil cake,cake for beginners