Moist Gluten-Free Vanilla Cake Recipe for Perfect Results

A slice of 2-layer gf vanilla cake with vanilla frosting and rainbow sprinkles on a dessert plate with another slice of cake and a bowl of rainbow sprinkles in the background.

Vanilla cake is a timeless favorite for birthdays and celebrations. If you follow a gluten-free diet or have celiac disease, you don’t have to miss out — this is a reliably moist, tender, and fluffy gluten-free vanilla cake that highlights pure vanilla flavor. Paired with a simple American vanilla buttercream, it’s a crowd-pleasing dessert that’s easy enough for beginners yet satisfying for experienced bakers.

I grew up loving vanilla cake for its clean, classic taste. After my celiac diagnosis, I found many gluten-free cakes to be dry or dense. After extensive testing, this recipe delivers the texture and flavor you expect from a great vanilla cake while remaining gluten-free.

Why you’ll love this recipe:

  • Classic flavor. Vanilla is versatile and perfect for birthdays, weddings, or casual gatherings.
  • Customizable. This cake pairs well with numerous frostings and fillings so you can tailor it to any occasion.
  • Gluten-free. The recipe uses a gluten-free all-purpose blend plus cornstarch to mimic cake flour and create a light crumb. Follow the notes for tips to ensure the best results.

Ingredients

Ingredients in small bowls to make gluten-free vanilla cake including oil, sour cream, vanilla, gluten-free flour, baking powder, cornstarch, eggs, salt, baking soda, granulated sugar, apple cider vinegar and milk with text overlays over each ingredient.

Ingredient Notes

  • Gluten-free flour blend – This recipe was tested with Bob’s Red Mill 1-to-1 Gluten-Free Baking Flour (contains xanthan gum). If your blend lacks xanthan gum, add what your blend recommends. Other blends may behave differently, so results can vary.
  • Cornstarch – Cornstarch lightens the texture and helps mimic cake flour. For consistency, weigh the cornstarch when possible.
  • Baking powder & baking soda – These leavening agents provide lift. Gluten-free cakes often require a bit more leavening than wheat-based ones, so ensure your baking powder is fresh.
  • Sugar – Granulated sugar contributes sweetness, moisture, structure, and browning. Reducing it can affect texture and flavor.
  • Vegetable oil – Oil keeps the cake moist and lets the vanilla shine. It yields a more tender crumb than butter in this gluten-free recipe.
  • Eggs – Use three large eggs (about 150 g total). If using medium eggs, weigh to reach the same total weight.
  • Vanilla extract – Use pure vanilla extract for the best flavor. Vanilla bean or paste also work.
  • Apple cider vinegar – A small amount of acid improves rise in gluten-free baking. It won’t affect the cake’s taste.
  • Whole milk & sour cream – Whole milk adds fat for tenderness. Sour cream adds richness and reacts with baking soda to aid leavening.

img 80 3

Measure flour carefully. For best results, weigh your dry ingredients. If you don’t have a scale, spoon flour into the measuring cup and level with a knife — don’t scoop directly from the bag.

Step-by-Step instructions

This cake is straightforward to make — follow the steps below and see the recipe card for exact measurements, printable instructions, and additional notes.

For the ingredient list with measurements, full instructions, printable recipe, and extra tips, please see the recipe card below.

A glass mixing bowl with gluten-free and a whisk in it.
Whisk the gluten-free flour, cornstarch, baking powder, baking soda, and salt together in a medium bowl. Set aside.
A glass mixing bowl with granulated sugar and oil in it before mixing together.
Combine granulated sugar and vegetable oil in a large bowl and beat until blended.
A glass mixing bowl with granulated sugar, oil, vanilla and eggs in it before mixing together.
Add eggs, vanilla extract, and apple cider vinegar. Mix until smooth.
A glass mixing bowl with a cake batter in it topped with a gluten-free flour blend.
Add one-third of the dry ingredients to the wet ingredients and mix until combined.
A glass measuring cup pouring a sour cream and milk mixture into a mixing bowl of gluten free cake batter.
Whisk milk and sour cream until smooth. Add half to the batter and mix to combine.
A glass mixing bowl with gluten free cake batter in it.
Alternate adding the remaining dry ingredients and sour cream mixture until all ingredients are incorporated.
Two round 8-inch baking pans with gluten-free vanilla cake batter in them before baking in the oven.
Divide batter evenly between two prepared 8-inch round pans lined with parchment, greased, and dusted with gluten-free flour.
Two round 8-inch baking pans with gluten-free vanilla cake in them after baking in the oven.
Bake at 350°F (175°C) for 35–40 minutes, or until a toothpick inserted in the center comes out clean. Avoid overbaking.
A round gluten free vanilla cake with vanilla frosting and rainbow sprinkles on a wood serving board.
Allow cakes to cool fully before frosting and decorating.
An overhead view of two dessert plates each with a single slice of gluten free vanilla cake with the larger cake peaking in to the photo.
Slice, serve, and enjoy.

Recipe FAQs

What gluten-free flour is best for vanilla cake?

This recipe was tested with Bob’s Red Mill 1-to-1 Gluten-Free Baking Flour (blue bag), which contains xanthan gum. Other blends may perform differently.

What baking pans should I use?

Two 8-inch round pans (2–3 inches tall) are recommended. If your pans are shallower, divide the batter across three pans and reduce bake time.

What frostings work well?

A classic vanilla buttercream is excellent, but you can pair this cake with chocolate, strawberry, or cream cheese frostings to change the flavor profile.

How do I know when the cake is done?

A toothpick inserted in the center should come out clean. The cake should also feel springy and bounce back when gently pressed.

hints & tips

  • Weigh ingredients when possible, especially the flour, for consistent results.
  • Prepare pans carefully: butter, line with parchment, butter the parchment, then dust with gluten-free flour and tap out the excess.
  • Ensure the cake is completely cool before frosting to prevent the buttercream from melting.
  • To make cupcakes, divide batter into 24 muffin cups and bake 23–25 minutes.

Storage instructions

  • Storage: A frosted vanilla cake keeps at room temperature in a sealed container for 3–4 days. If your frosting requires refrigeration, store the cake in the fridge.
  • Freezer option: Cake freezes well. Wrap unfrosted cake rounds tightly in plastic and freeze up to 3 months. Alternatively, freeze individual frosted slices on a tray, then wrap each piece for convenient servings. Thaw at room temperature before serving.
A single slice of 2-layer gluten free vanilla cake topped with rainbow sprinkles being lifted out of the larger cake.

More gluten-free cakes to try

All CAKES
  • Gluten-Free Blueberry Sour Cream Coffee Cake

  • Brown Butter Cream Cheese Frosting

  • Gluten-Free Chocolate Mug Cake

Did you make this recipe?

I’d love to know! Please rate and leave a comment below. You can also share photos and tag @adashofmegnut on Instagram.

A slice of 2-layer gf vanilla cake with vanilla frosting and rainbow sprinkles on a dessert plate with another slice of cake and a bowl of rainbow sprinkles in the background.
3 from 1 vote

Gluten-Free Vanilla Cake

This gluten-free vanilla cake is moist, fluffy, and light. Topped with a simple vanilla buttercream, it’s approachable for bakers of all skill levels and makes a great homemade alternative to store-bought gluten-free cakes.
Prep Time 20 minutes
Cook Time 40 minutes
Cooling Time 30 minutes
Total Time 1 hour 30 minutes
Servings 12 servings

Ingredients

For the gluten-free vanilla cake:

  • 2 1/2 cups gluten-free all purpose flour (360 g) – tested with Bob’s Red Mill 1-to-1
  • 1 tsp xanthan gum (omit if your blend contains it)
  • 1/3 cup cornstarch (43 g)
  • 2 tsp baking powder
  • 1 tsp baking soda
  • 1 tsp salt
  • 2 cups granulated sugar (400 g)
  • 3/4 cup vegetable oil (170 g)
  • 3 large eggs (about 150 g total)
  • 2 tsp vanilla extract
  • 2 tsp apple cider vinegar
  • 3/4 cup whole milk (180 g)
  • 3/4 cup sour cream (180 g)

For the vanilla frosting:

  • 1 cup unsalted butter, softened (226 g)
  • 2 tsp vanilla extract
  • 1/4 tsp salt
  • 4 cups powdered sugar (480 g)
  • 2–4 tbsp whole milk, as needed

Use the toggle above to show or hide instruction photos if available.

Instructions

For the gluten-free vanilla cake:

  • Preheat oven to 350°F (175°C). Grease two 8-inch round pans, line with parchment, butter the parchment, and dust with gluten-free flour. Set aside.
  • Whisk together the gluten-free flour, cornstarch, baking powder, baking soda, and salt. Set aside.
  • In a large bowl, beat granulated sugar and vegetable oil until combined.
  • Add eggs, vanilla extract, and apple cider vinegar; mix until smooth.
  • Add one-third of the dry ingredients to the wet mixture and mix until combined.
  • Combine milk and sour cream; add half of this mixture to the batter and mix.
  • Repeat: add another third of the dry ingredients, the remaining sour cream mixture, then the final third of dry ingredients, mixing between additions.
  • Divide batter evenly between prepared pans and smooth the tops.
  • Bake at 350°F for 35–40 minutes, until a toothpick inserted into the center comes out clean.
  • Let cakes cool 10 minutes in pans, then invert onto a wire rack to finish cooling. Cool completely before frosting.

For the frosting:

  • Beat softened butter until smooth. Add vanilla and salt and mix.
  • Gradually add powdered sugar, about 1/2 cup at a time, mixing and scraping the bowl as needed.
  • Add 2 tablespoons of milk and mix until the buttercream is pipeable. Add more milk if needed to reach desired consistency.
  • Frost the cooled cake as desired.

Notes

  • We recommend using a food scale and the metric measurements for the most consistent results.
  • If you require a gluten-free diet for medical reasons, always verify that every ingredient is certified gluten-free.
  • Ensure the cake is fully cooled before applying frosting to prevent melting or sliding.
  • Store leftovers in an airtight container at room temperature for 3–4 days, or freeze for longer storage.

Nutrition

Calories: 697 kcal
| Carbohydrates: 97 g
| Protein: 5 g
| Fat: 34 g