This is the perfect vanilla cake recipe! Thick layers of vanilla cake and my favorite vanilla frosting are a match made in heaven. It’s an easy recipe to make using oil instead of butter, which makes it super moist and spongy.
If you love vanilla cake, try it in my strawberry mascarpone cake or turn it into a cookies and cream cake.

Everyone needs a go-to, easy vanilla cake, especially if you’re making a layer cake. This is my moist vanilla cake adapted to make a stunning, three-layer cake with vanilla buttercream frosting. I’ve also made this recipe as a 6-inch mini vanilla cake and vanilla cupcakes. It’s one of the easiest cakes to make because it’s an oil-based cake recipe, so there’s no waiting around for the butter to soften or worrying about properly creaming the butter and sugar together. The oil also creates a more tender, fluffy crumb, especially when it’s paired with sour cream in the batter.
Of course, there’s plenty of rich vanilla flavor in this cake (no imitation vanilla here!), as there should be. If you’re looking for the best all-rounder vanilla layer cake, this is the only recipe you’ll ever need. Also, try my yellow layer cake and classic chocolate cake.
What Makes This the Best Vanilla Layer Cake?
- Soft yet stackable layers. The texture of this cake is denser rather than light and airy. It’s moist, spongy, and very stable for stacking the layers.
- Oil and sour cream in the batter. I use this combination in many of my homemade cakes. Sour cream makes the cake layers super flavorful and moist, while oil keeps them tender for days.
- A blank canvas for frosting and decorating. This cake holds up to just about any style and flavor of frosting, but my favorite is classic vanilla buttercream.
- The perfect back-pocket cake recipe. This vanilla cake is perfect for just about any occasion. Dress it up as an ombre cake for Valentine’s Day, or color it red, white, and blue for a 4th of July cake. Tint the frosting red or green for Christmas, or coordinate it with the colors for a baby shower or birthday party.

Ingredient Notes
These are the important ingredients in the vanilla cake layers. Scroll to the recipe card for the printable recipe with the full list and exact measurements.
- Vegetable Oil – Oil contributes to the moistness and texture of this cake. Make sure it’s neutral-flavored.
- Vanilla Extract – High-quality, pure vanilla extract is a must for the best flavor. Avoid imitation vanilla since it’s… well, imitation.
- Sour Cream – Essential for keeping the cake moist. If you don’t have sour cream, I recommend substituting it with non-fat Greek yogurt.
- All-Purpose Flour – Measured correctly, either by weighing out the flour using a digital kitchen scale, or using the spoon and level method. Sift the flour afterward to remove any lumps. All-purpose flour is not interchangeable with cake flour in this recipe. I have, however, had success testing this vanilla cake recipe with a 1:1 measure-for-measure gluten-free flour when making my gluten-free vanilla cupcakes.
Bring Your Ingredients to Room Temperature
Bring fridge-cold ingredients like eggs, sour cream, and milk to room temperature before you make your vanilla cake batter. Room temperature ingredients are easier to mix, for a smoother batter and more even baking.
For the Vanilla Frosting
- Butter – The butter for the frosting should be unsalted and COLD. The extra time it takes to whip the butter to a softened consistency yields a smoother, more stable buttercream frosting.
- Powdered Sugar – Also called confectioner’s sugar. Powdered sugar is key for a thick, silky frosting that isn’t grainy.
- Heavy Cream – Or milk, to adapt the consistency of the frosting and make it creamy.

How to Make a Vanilla Layer Cake with Vanilla Buttercream
If you’re new to baking and assembling layer cakes, I recommend reviewing the step-by-step process in detail in my tutorial, how to make a layer cake. It’s very easy, and with practice you’ll be stacking this vanilla cake like a pro.
Bake the Cake Layers
Let’s start with prepping the pans and baking your vanilla cake layers.
- Prepare the cake pans. First, generously grease and flour three 8-inch round cake pans. I like to use Crisco vegetable shortening as opposed to a cooking spray. Afterward, line the pans with parchment paper or a silicone baking mat. Properly prepping the pans ensures that the cakes don’t stick, and makes it much easier to remove them after baking.
- Add bake-even stripes (optional). I love using bake even stripes because it helps the cake layers to bake flatter. Without them, the edges of the cakes bake quicker, causing the centers to dome. You’ll notice the outside edges of the cake are also a little darker without them. Bake even stripes should be very wet when applied to the outside edge of the pan.


- Mix the wet ingredients. With your pans prepped, beat together the sugar, vegetable oil, eggs, and vanilla extract in a mixing bowl. Add the sour cream and mix well.
- Combine and add the dry ingredients. Next, whisk the dry ingredients together. Add half of the dry ingredients to the wet batter, followed by half of the milk, and mix just until the flour starts to incorporate.


- Finish the batter. Then, add the remaining dry ingredients and milk. Beat the cake batter on low speed until it’s just combined. Do not overmix.
- Fill the pans and bake. Lastly, divide the batter evenly between the three pans (about 1 ⅔ cups per cake pan). Bake the cakes at 350°F for 20-23 minutes, rotating the pans halfway through. The vanilla cakes will need to cool completely before you frost and stack them.


Frosting and Assembling the Cake
For this classic cake, you’ll need quite a bit of frosting. Besides the filling in between the layers, you’ll need extra frosting for decorating. You won’t have to worry about running out of frosting!
- Make the frosting. Cut the cold butter into pieces, and whip it for 5-7 minutes, until lighter in color. Next, add the powdered sugar, 2 cups at a time, alternating with the vanilla extract and heavy cream. Mix well in between each addition, then whip the frosting on medium-high speed for 3-5 minutes until it’s smooth and airy.
- Stack the cakes. Use a cake leveler or a serrated knife to trim any domes from the cooled cake layers, and fill a piping bag with about 2 cups of vanilla frosting (see how to use a piping bag). Starting with the first cake layer, pipe and spread a layer of frosting evenly over the cake. Place the second layer on top, and repeat, ending with a third and final cake layer.
- Add a crumb coat and frost the cake. Finally, fill any gaps between the layers and smooth the frosting over to make a crumb coat. Then, use the remaining frosting to cover the top and sides of your layer cake.
Frosting Options for a Vanilla Layer Cake
Instead of vanilla frosting, you can frost your vanilla layer cake with any of the homemade frosting recipes on my site, including these popular choices.

Coloring the Buttercream Frosting
My favorite gel food dyes include the Wilton Color Right Food Gels or AmeriColor Gels. For this vanilla layer cake, I divided the frosting into three bowls and colored two of them shades of blue, leaving the last bowl uncolored:
- 1 cup of frosting for the roses (AmeriColor teal)
- ½ cup for the darker blue color
- ¼ cup of the white, undyed frosting
The best way to dye frosting in different shades is to start with half a drop in one bowl and then get progressively darker. Just remember that you only need a TINY bit of gel to color in these small amounts of frosting. It’s helpful to use a toothpick to add small amounts to your bowls at a time, so you don’t add too much. For more helpful tips on coloring buttercream, see my in-depth guide, how to color buttercream.
How to Decorate a Layer Cake
If you’re not fully comfortable with piping frosting, check out my full tutorial on how to use piping tips and the techniques used in my buttercream flower cake. I also recommend doing a few “test runs” by piping the frosting onto clean parchment paper before you take your skills to the cake. You can even reuse the frosting by scraping it back into your piping bag.
If you’re just starting out, this is a super approachable way to decorate a cake. Here are some of the tools I used:
- 1M Piping Tip: Start by piping your roses, and then fill in the open spaces with the stars and rosettes.
- Open Star Tips: Size 18 and Size 21 can be used to create a variety of shapes and rosettes.
If you use your piping bags with couplers, you can easily switch out the tips with the different frosting colors. These can be purchased at stores like JoAnn Fabrics, Michael’s, a cake supply store, or online.

Baking in Different Pan Sizes
This recipe has been used for several other size pans without adapting the cake batter or baking temperature. Just use a toothpick to test the cakes for doneness at the earliest suggested times. You may also need to scale the frosting recipe accordingly.
- Two 9-inch cakes: Bake at 350ºF for 28-32 minutes. The baking times vary due to how full the pans are, the type of pans you’re using and the true oven temperature. Please note these 9-inch cakes did “crust” a little more on the outside edge due to extended baking times and they rose quite a bite in the middle, so you’ll lose more of the dome when you trim the cakes afterward.
- Two 8-inch cakes: Divide the batter evenly, about 2 ½ cups per pan. Bake for 28-32 minutes.
- 6-inch cakes: A full recipe will make four 6-inch layers, filling each one with about 1 ⅓ cup of batter. Bake for approximately 24-30 minutes. You can halve the recipe for a mini two-layer cake.
- Two 10-inch cakes: I’ve never tested this with 10-inch pans myself, but I would recommend making 2 layers so you still have nice, thick cake. Trying baking for 15-20 minutes and assessing if additional time is needed.

How to Store a Layer Cake
- Store the cake covered. The best option is to use a cake carrier which allows the cake to be kept airtight, locking in the moisture. You can also slice the cake and store it in a Tupperware container.
- Refrigerate as needed. You do not have the refrigerate this cake unless you live in a hot or humid environment. If you need to refrigerate the cake, try to do so in an airtight container. If it’s already sliced, then I recommend placing plastic wrap up against the sliced edge to help prevent it from drying out. It’s best to serve at room temperature, so remove the cake in plenty of time prior to serving.
- Freeze the unfrosted cake. I normally don’t freeze a decorated cake. I’d recommend freezing the layers and frosting in advance, and then thawing and decorating when ready. Place a piece of parchment paper on the top and bottom of the cake layer, double wrap the cooled layers in plastic wrap.
More Easy Layer Cake Recipes
Moist Vanilla Layer Cake
- Prep Time: 90 minutes
- Cook Time: 20 minutes
- Total Time: 1 hour 50 minutes
- Yield: 10-12 slices
- Category: Cake
- Method: Baked
- Cuisine: American
Description
This is the perfect vanilla layer cake recipe! With three thick layers of vanilla cake and my favorite vanilla buttercream frosting. It’s an easy recipe to make using oil instead of butter, for a super moist and spongy cake.
Ingredients
For the Cake:
- 2 cups (380g) granulated sugar
- ½ cup (118 ml) vegetable oil
- 3 large eggs, at room temperature
- 1 tablespoon (14.8 ml) pure vanilla extract
- ½ cup (120g) sour cream at room temperature
- 2 ½ cups (350 g) all-purpose flour, sifted
- 3 teaspoons (11.2 g) baking powder
- 1 teaspoon (5 g) salt
- 1 ¼ cups (296 ml) milk (any type) at room temperature.
For the Frosting:
- 2 cups (453g) unsalted butter, cold
- 7–8 cups (910-1041g) powdered sugar
- 1 tablespoon (15ml) vanilla extract
- 2–3 tablespoons (30-44ml) heavy whipping cream (or milk)
- Pinch of salt
Instructions
For the Cake:
- Preheat the oven to 350°F. Prepare three 8-inch round baking pans, line the bottom with parchment paper, and grease the sides. Prepare with bake-even strips if desired.
- In a large mixing bowl, combine the sugar, vegetable oil, eggs, and vanilla extract. Beat on medium speed until well incorporated. Scrape down the bowl as needed. Next mix in the sour cream and beat until well combined.
- In a separate bowl combine the remaining dry ingredients and sift together the flour, baking powder, and salt. Add half the dry ingredients, and half the milk, and beat on low speed just until the flour starts to incorporate. Repeat until all ingredients are added and combined. Use a spatula to scrape down the sides of the bowl and stir the batter from the bottom to the top to ensure it’s well mixed.
- Divide the batter evenly between the three pans, about 1 2/3 cups of batter per pan. Bake at 350°F for 20-23 minutes. Rotate your pans in the oven halfway through baking (around 10 minutes). Test the cake for doneness by inserting a toothpick into the center of the cake. If the toothpick comes out clean, the cake is done. Remove from the oven and allow to cool completely.
For the Frosting:
- Cut butter into pieces. Using the paddle attachment, whip the butter for 5-7 minutes, scraping down the bowl occasionally. Beat until the butter looks light in color.
- Alternate adding 2 cups of powdered sugar at a time with the liquid ingredients: vanilla extract & heavy cream. Ensure the powdered sugar is well combined, then and whip for 1-2 minutes before adding more powdered sugar.
- Once all the powdered sugar has been added, increase speed to medium-high and beat for another 3-5 minutes to whip additional air into the frosting.
To Assemble the Cake:
- Use a cake leveler I cut the domes off the top of the cake. Place a dollop of frosting on your cake board and place the bottom layer of cake on top of that.
- Place about 2 cups of frosting in a large piping bag fitted with a large open round tip, or simply cut off the end of the piping bag. Pipe a layer of frosting on top of the cake, starting at the outside edge and working your way into the middle. Spread evenly with an offset spatula. Repeat with the second layer of cake and then place your third layer on top.
- Use your piping bag to fill in any gaps between your layers and to create a crumb coat. Using an offset spatula or icing smoother, wipe away the excess frosting, leaving you just enough to coat the outside of the cake. Do not mix your crumb-coating frosting back into your icing if it has cake debris in it.
- Proceed to frost the top and sides of the cake using your offset spatula. Once the sides of the cake are covered, use you icing smoother to remove any excess frosting.
To Decorate:
- Use your hands to press the sprinkles into the sides of the cake. It’s best to do this over a sheet pan lined with parchment paper, allowing you to easily capture and reuse the sprinkles that fall off the cake.
- Take your leftover frosting and separate into 3 bowls: 1 cup, ½ cup and ¼ cup of white frosting (undyed). Dye 2 bowls with you desired color, and leave 1/4 cup of frosting uncolored.
- In a small piping bag, use a 1M piping tip to pipe the large roses on top of your cake.
- Place the other frosting in two small piping bags, fitted with a coupler and size 18 or size 21 tips, fill with your other color and the white frosting. Fill in the negative space with a mix of stars and small rosettes.
Notes
Adjusting the cake sizes:
-
- For two 9-inch cakes, they baked from 28-32 minutes. Baking times will vary due to how full the pans are, type of pans, and true oven temperature. Please note these did “crust” a little more on the outside edge due to extended baking times and they rose quite a bite in the middle, so you’ll lose more of the “dome” of the cake.
- For two 8-inch pans: divide the batter evenly, about 2 1/2 cups per pan. Bake for 28-32 minutes.
- For 6-inch pans: a full recipe will make four 6-inch layers, filling each one with about 1 1/3 cup of batter and baking for approximately 24-30 minutes. Here is the mini 2-layer version.
- For 10-inch pans: I’ve never tested this with 10-inch pans, but I would recommend a 2 layer cake so you still have nice thick layers. Trying baking for 18-20 minutes and assessing additional time needed from there.
Ingredients Substitutions
- Sour cream substitute: Substitute with non-fat Greek Yogurt if you do not have sour cream.
- Milk: Any type of milk can be used (full, reduced or low-fat)
- Oil substitutes: I have tested substituting 1/2 cup melted butter in place of the oil. The cake still bakes just fine but I prefer the texture of the cake make with oil.
Preparing and Storing:
- The best option is to use a cake carrier which can allow it to be stored in an airtight container. You do not have the refrigerate this cake unless you live in a hot a humid environment. This is best served at room temperature. Cake layers can be prepared up to 2 days before serving. Cool completely and wrap tightly with plastic wrap or store in an airtight container.
Nutrition
- Serving Size: 1 slice
- Calories: 944
- Sugar: 113.4g
- Sodium: 384.2mg
- Fat: 43.6g
- Saturated Fat: 28.4g
- Carbohydrates: 135.8g
- Fiber: 0.7g
- Protein: 5.9g
- Cholesterol: 135.9mg












Question – 1 cup of granulated sugar weighs 200g, but for 2 cups your recipe says 380g. Is this correct? I followed the weight instructions for my attempt at this recipe. I made one cake in my 6 x 3 inch round pan and used the rest for cupcakes. The cupcakes were fine. The pan was wrapped in a baking strip, and I baked the cake for a whopping 76 minutes, and the tester was still coming out a bit gummy (top was golden brown by this point). I let it cool in the pan for 10 minutes and then when I removed it from the pan, the outside was even gummier and not cooked or brown at all -really wet. I put it back in for another 10 minutes, but I am giving this one a “disaster” review. I think I will try it again without the baking strips. Maybe this recipe works better with 2 inch high pans? Any insight would be appreciated. I am striving for a moist vanilla cake recipe.
Hi Kim, I am going to reach out to you via email to try and trouble shoot, because it’s not possible for a cake to bake for 75 minutes and not be cooked all the way through, with or without the baking stripes. Did you fill that pan to the top? How many cupcakes resulted in the leftovers. I have 6×3 inch pans and 6×2 inch pans but the baking time is the pretty much the same as long as the amount of batter is consistent.
1. The cake recipe will yield three layers in a 6-inch pan or even 4 thinner layers
2. If you want to make a smaller batch, I would recommend this mini vanilla cake, which is intended for a 2 layer cake
Oh and to further answer your question, I have always used 190g for 1 cup sugar for history of my sight and I weight my dry ingredients every single time I bake. So it’s always best to follow the weighted measurement provided.
I love this recipe. Could I double the recipe? I need to make a 9×13
You don’t need to double it! You can use the same cake recipe and it makes a 9×13 inch cake. You just need to adjust the frosting. Here is the 9×13 inch version of this cake. https://beyondfrosting.com/moist-vanilla-cake-recipe/
I have made this cake for my nephews bday last week and it was really good everyone loved it. However I used another icing recipe because I had left overs of it but the cake is amazing. Mine didn’t raise a lot at all so I thought it wouldn’t be the right consistency but it was perfect. I would love to know how to adjust the recipe to make cupcakes or hoe many cupcakes this recipe would make and as well as the time of banni I would need? Thanks in advance
Thank you so much! I am glad to hear that. Here’s the recipe for the cupcake version: https://beyondfrosting.com/moist-vanilla-cupcakes/
I baked in 2 round 8 inch pans. They come out shinny on top while baking. I thought they were not done since they looked wet. I over baked I think. One layer fell in the center. I did not rotate after 10 minutes. I read that too late. I’ll have to try again.
For the one that fell in the middle, was it underdone in the center? I recommend rotating in the oven for a more even bake, but every oven is different, each type of pan performs differently. Do you know the total time you baked for? For me, 2 8-inch pans is 28-32 minutes
Hi, I love this recipe and I used it countless times – as a plain vanilla cake, with cream cheese frosting, with added cocoa powder as a chocolate cake, with various fruits and fruity frosting. I am wondering if this recipe could work for a pistachio cake by replacing 1/3 of the flour with ground pistachios?
Hi Vladimira, I will follow up with you via email on the specifics of the pistachio cake but thank you for reviewing this recipe and I am so happy to hear that you enjoyed this recipe!
Can you substitute the milk for buttermilk?
Since this recipe only has baking soda it’s not a great option. You’d need to swap out some of the baking powder for baking soda.
Thanks for the recipe! It was a really easy one to make to practise frosting and the individual components shaped up like how they were supposed to. But the cake was overall far too sweet to be edible, so I may need to adjust it if I do try it again next time!
Hi! I need to make a 2 layer 12” cake. Do you think one full recipe per pan is too much batter? Trying to figure out how to use this recipe since it’s my favorite! Thank you!
Hi Tiffany, one full recipe would be enough for a 12 inch single layer. I made a similar recipe in a single 10-inch layer and it was plenty thick for me. I would recommend doing a test batch
This is the best vanilla cake recipe out there! It tastes amazing, it’s super easy, turns out great every time, and issues ingredients most of us usually have on hand. I’m not usually one for eating cake without frosting, but this cake tastes so good even without it! I’ve tried so many recipes…the trendy ones, the highly rated ones, the ones people say are the best…they are all subpar after making and tasting this one. My family’s most requested cake!
Wow Lindsay! Thank you so much. This means a lot to me that you took the time to review the recipe.
So so so tasty! Easy to make, nice and dense, yet still moist. Perfect vanilla cake.
Thank you so much! I am so happy to hear that!
I went with a 2-layer, 8-inch cake, and subbed gluten-free flour. I also used almond extract instead of vanilla for the buttercream. It turned out FANTASTIC, and everyone loved it. Thanks for another great recipe and tutorial!
I love that Brooke! I bet this was so tasty with almond extract!
The best vanilla cake recipe, thank you for this recipe!! I’ve made it so many times and always get great feedback from everyone!
Unfortunately, with this recent batch I might have over mixed the batter – causing “holes/tunnels”. They are currently being kept in the freezer to be frosted tomorrow for a birthday party.
Will the holes/tunnels cause a significant difference in the texture/taste? Should I scratch these layers and make new ones for tomorrow? Any helpful tips would be grately appreciated! Thank you so much!
My go to vanilla cake recipe! So good!
This is wonderful, thank you for sharing!
Made this cake and it was moist and delicious! I added a peach filling, which was a great flavor combo for the summer! I was wondering how to adjust the the oven temperature and timing for cupcakes. Also, if I add sprinkles to the batter do I need to adjust the amount of any other ingredients?
Love that Niki, thank you so much for sharing! Over temp is the same and baking time is right about 15 minutes. Here is the vanilla cupcake recipe. No need to adjust the recipe if you’re adding sprinkles.
Cake was very good. I used the recipe for Strawberry filled cake and the company enjoyed it immensely.
I used Danish Dessert along with fresh strawberries. Definitely a keeper and will use again.
Wonderful Max! Thank you so much!!
Great texture for cake and frosting! The first few times I made it were good, but not quite strong enough vanilla flavor for me. The fourth time I made it, I also scraped a vanilla bean for the cake and frosting (in addition to the vanilla extract). With that addition, hands down best vanilla cake I ever had!
Wonderful Jessica, thank you so much for sharing your feedback!
This easy vanilla cake turned out great . You are so good. Thank you for the recipe.
Wonderful Gary, very happy to hear that!
This cake was great! If I wanted to take half the batter and add chocolate, any idea how much to add?
Hi Jamie, this one doesn’t work as well to split the batter. I instead recommend a base with my yellow cake mix. Here’s the link to a marble cake: https://beyondfrosting.com/marble-cake/
This is the best recipe for the rainbow cake. You dye each cake layer before baking. The taste of this cake is wonderful and very moist. I made my 6-inch, 6-layer, rainbow cake last night using this recipe (1.5 x’s everything) with the (best) delicious vanilla frosting. Sprinkles places on the sides. This is the second rainbow cake I’ve made and I keep getting requests to make more! I love your recipes. All the recipes I have tried from your site have been crowd pleasers!
Thank you Dee!! Love to hear this. I’ve made a rainbow sheet cake, but found it worked better with a different base recipe when you want to mix the colors in the same pan.
Thank you
It is a very moist and delicious cake. I added a layer of cinamon and brown sugar at the middle, and reduced the sugar by half and used ErythritolMonkfruit. Next time I will add some lemon zest instead of vanila. I did not make the frosting, but it is still enjoyable to have a with a cup of coffee or tea.
It is a nice cake and is a keeper. Thanks for sharing the recipe.
My question is since it has vegetable oil, can I place it in the fridge for a couple of days without changing its texture?
I would love to make this a couple of days before a birthday with frosting, so wanted to make sure cake’s texture and softness will not change after refrigeration.
Hi Roya, thanks for your detailed notes. I am glad the alternations you made were satisfactory. Refrigerating cakes always alters the texture in my opinion but you can store it tightly covered in an airtight container in the fridge to maintain the freshness.