This post may contain affiliate links. Please read our disclosure policy.

With a melt-in-your-mouth crumb, this classic gluten free dairy free vanilla cake is made easily by hand without any vegan butter—but is still full of buttery flavor!

Even though cakes made with oil instead of butter tend to stay fresher longer, they tend to taste oily. I made sure that this special cake has a tender, buttery crumb with a combination of dairy free yogurt and a touch of almond flour. No one will believe it's both gluten free and dairy free!

A tender slice of yellow cake with fluffy white dairy free frosting and bright round sprinkles on a white plate with a bite on a gold fork that is almost out of frame

Why this recipe works

This cake is soft, tender, and just sweet enough, like the best classic vanilla cake. It just happens to be gluten free and dairy free—without a long list of specialty ingredients or fussy steps.

You don’t need a mixer or any fancy tools. The batter comes together fast with simple pantry staples. If you’ve ever baked a boxed cake mix, you’ve got this.

The texture is perfect, without gumminess, no grit, and no strange aftertaste like butter substitutes can have—just a moist, springy crumb that stacks and slices perfectly. It's perfect for a birthday party, where no one would guess it’s gluten free or dairy free.

Celebration-ready square yellow cake topped with white frosting and multi-colored edible confetti sprinkles.

Ingredients explained

Labeled ingredients for making dairy free gluten free cake, including flours, sugar, and nondairy milk.

The full recipe is below with amounts and method. First, here's a bit about the role of each ingredient in this impossibly tender cake:

  • Gluten free dairy free flour blend: The basic structure of this cake. A finely ground, well-balanced rice flour-based blend gives structure and helps the cake bake evenly without falling as it cools. Try Better Batter’s classic blend or Bob’s Red Mill 1-to-1 (blue bag)—both are vegan-friendly. If using Bob’s, add 1/8 teaspoon extra xanthan gum to avoid a crumbly texture. My mock Better Batter blend, works here too, but skip Nicole's Best because it contains milk powder.
  • Almond flour: Lends richness and a subtle buttery flavor, and adds some more fat for tenderness without tasting oily. Use finely ground, blanched almond flour like Wellbee’s, Blue Diamond, nuts.com, or Kirkland. Almond meal won’t blend in smoothly and creates a gritty texture.
  • Baking powder: Gives the cake a light, fluffy rise.
  • Baking soda: Aids browning and works with the yogurt to create rise.
  • Salt: Balances the sweetness and enhances flavor.
  • Granulated sugar: Adds sweetness and tenderness to the cake.
  • Neutral oil: Adds moisture and richness without making the cake greasy. Choose something mild like canola or vegetable oil—olive oil will overpower. We skip vegan butter here since it can add a noticeable dairy-free flavor and the best ones can be pricier or harder to find.
  • Dairy free milk: Brings the cake together with added moisture and some fat.
  • Dairy free plain yogurt: Tenderizes the crumb and has acid that reacts with the baking soda to provide some rise.
  • Eggs: Add structure to help the cake set as it cools without sinking.
  • Vanilla extract: Infuses the cake with warm, classic vanilla flavor.
  • Butter oil: This dairy-free emulsion from LorAnn adds nostalgic buttery flavor without any dairy. It’s subtle but lovely—find it online at Amazon or at specialty baking or craft stores.
A square slice of vanilla-frosted cake with sprinkles, served on a cream-colored plate on a white cloth

🔄 Ingredient selection & swaps

Egg free

Applesauce will not work in place of eggs. “Chia eggs” may work, but “flax eggs” will add unwanted flavor and color. In place of both eggs, try adding all of these ingredients:

  • 1/4 cup (35 grams) added gluten free flour bend;
  • 1/4 cup added (60 grams) nondairy plain yogurt;
  • 1 more teaspoon baking powder; plus
  • 1 teaspoon apple cider vinegar

Almond-free

In place of almond flour, you can use finely ground and sifted hazelnut flour for buttery flavor. You can also use oat flour in its place for very similar results. If you use more gluten free flour blend, your cake will be more dense.

Neutral oil

Any neutral oil that's liquid at room temperature will work here, like canola, grapeseed, vegetable, or peanut oil. If you need to avoid all vegetable, nut and seed oils, try avocado oil. If you'd prefer to use vegan butter, try the kind in the tub, which is mostly oil, instead of the kind in the block, which typically has more moisture.

Dairy free milk

Be sure to use a dairy free milk that mimics the texture and fat content of cow's milk as much as possible, like plain soy milk, coconut milk in the carton, or almond milk. Avoid anything fat free, like rice milk, which is mostly water, or with any texture, like oat milk.

Dairy free yogurt

Any plain dairy free yogurt will work, and my favorites are Silk and So Delicious brands coconut plain yogurt. Avoid Greek-style yogurt, which doesn't have enough moisture. A thin dairy free sour cream alternative would work, too.

How to make this gluten free dairy free cake

Follow along with my directions below to see how to make this gluten free dairy free vanilla cake in your own kitchen.

1. Prepare the wet and dry ingredients
We combine the dry ingredients separately from the wet, and each very well, so when we put them together, we don't have to mix much for a smooth batter.

Whisk together the gluten free dairy free flour blend with xanthan gum, almond flour, baking powder and soda, and salt.

Separately whisk together the nondairy milk and yogurt, eggs, and flavorings like vanilla and butter oil. I use a measuring cup so it's easy to pour.

2. Combine the sugar and oil well
In a large mixing bowl that will hold the combined batter, whisk the sugar and oil until it creates a creamy suspension and takes about 2 full minutes. Don't skip this step, because suspending the sugar crystals in the oil helps create a light and airy cake.

3. Add dry and wet ingredients
Add the fully combined wet and dry ingredients separately to the mixing bowl, beginning and ending with the dry. This is to ensure that every ingredient is evenly distributed throughout the cake batter.

In a conventional cake, we want to avoid mixing too much, which can develop the gluten and make a tough cake. In gluten-free baking, we don't have that worry.

4. Finish the batter
Turn the cake batter over a few times to ensure that there aren't any unmixed powdery spots. The mixture will be thickly pourable, and not at all stiff. This is what you want.

5. Transfer the batter to the pan
Transfer the cake batter to a greased and lined 8-inch square baking pan. The batter should be thin enough that you can shake the pan back and forth to distribute it an even layer. Smack it flat on the counter a few times to break large air bubbles which can create tunnels in your cake.

6. Bake the cake
Bake in a preheated 350°F oven on the middle rack for evenly air circulation for about 30 minutes. When it's done, the cake will be lightly golden brown on top, and should not have domed during baking.

7. Let it cool
Place the cake in the pan on a wire rack to cool for 10 minutes so that it's stable enough to transfer. Turn the cake over onto the wire rack and lift off the cake pan and liner and let it rest, upside down, for about 1 hour or until completely cool before decorating and/or slicing.

If the cake isn't cool before you decorate it, the frosting will melt. If you try to slice it before it's completely cool, it won't slice cleanly and will dry out more quickly.

Top-down view of the full gluten free dairy free vanilla cake on parchment, decorated with swirled white dairy free frosting and colorful round sprinkles.

Expert cake tips

Use room temp ingredients

Even though we aren't creaming any butter with sugar, oil still turns solid when it gets cold. Cold eggs or yogurt may make the oil clump, and can create oily spots and dry spots in the finished cake.

Choose the right pan

An 8-inch square or 9-inch round pan works perfectly—no changes needed. Both hold the same amount of batter and bake evenly.

Make it a layer cake

Double or [2X] the recipe ingredients in the recipe card for two 8-inch square pans or 9-inch round pans. For two 8-inch round layers, increase the yield to 12 slices (1.5x the batter) and bake about 25 minutes, rotating once for even baking.

Store-bought frosting is delicious

Homemade dairy free buttercream with butter-flavored shortening or block-style vegan butter is possible—but honestly? I reach for Duncan Hines or Simple Mills. They're both gluten and dairy free, and taste amazing right out of the tub.

A forkful taken out of a slice of moist vanilla cake with a thick layer of frosting and sprinkles on a small round plate with two other plates and slices in the background
Go Ad-Free

Gluten Free Dairy Free Cake Recipe

No ratings yet
Prep Time: 15 minutes
Cook Time: 30 minutes
Cooling time: 1 hour 10 minutes
Yield: 8 slices
Full of buttery flavor, this tender gluten free dairy free vanilla cake has a light, fluffy crumb, and is made without any butter substitutes at all!
Save this recipe!
Get this sent to your inbox, plus get new recipes from us every week!

Ingredients 

  • 1 ⅛ cups (158 g) all purpose gluten free dairy free flour blend, See Recipe Notes
  • ¼ teaspoon xanthan gum, (omit if your blend already contains it)
  • ¼ cup (30 g) finely ground blanched almond flour, See Recipe Notes
  • 2 teaspoons baking powder
  • ¼ teaspoon baking soda
  • ½ teaspoon kosher salt
  • 2 (100 g weighed out of shell) eggs, at room temperature
  • cup (76 g) plain nondairy yogurt
  • cup (2 ⅔ fluid ounces) plain nondairy milk, like soy, almond, or coconut milk in the carton
  • ½ teaspoon vanilla extract
  • ½ teaspoon butter emulsion oil, (optional, for buttery flavor)
  • ¾ cup (150 g) granulated sugar
  • cup (84 g) neutral oil, like peanut, grapeseed, canola, vegetable, avocado

Instructions 

  • Preheat your oven to 350°F. Grease and line a 8-inch square cake pan and set it aside. You can also use a 9-inch round cake pan.
  • In a medium-size bowl, whisk together flour blend, xanthan gum, almond flour, baking powder, baking soda, and salt. Set the bowl aside.
  • In a 4-cup measuring cup or a separate medium size bowl, whisk the eggs, yogurt, milk, vanilla and optional butter emulsion oil until very smooth.
  • In a large mixing bowl, whisk the sugar with oil until the mixture creates an emulsion and becomes creamy and shiny, about 2 minutes.
  • Add the whisked dry ingredients to the sugar and oil mixture in 3 parts, alternating with the egg, yogurt and milk mixture in 2 parts, beginning and ending with the dry ingredients.
  • Use a spatula to mix in the last portion of the dry ingredients. Turn over the cake batter over by hand one last time to ensure that everything is well-combined. It should be thickly pourable and very smooth.
  • Transfer the cake batter to the prepared cake pan. Shake the pan gently back and forth to distribute the batter into an even layer. Bang the pan flat on the counter a few times to break any large air bubbles.
  • Bake the cake until it is starting to pull away from the sides of the pan, is lightly golden brown on top and a toothpick inserted into the center comes out clean (about 30 minutes).
  • Allow the cake to cool in the pan for 10 minutes before turning it out onto a wire rack to cool completely. Remove any paper lining so the cake can cool freely.
  • Frost and decorate as desired only after the cake is completely cool. Slice into 8 equal pieces and serve.

Notes

Flour blend information
Be sure to use a dairy free flour blend with a superfine rice flour as a base, like Better Batter's classic blend (do not add additional xanthan gum), Bob's Red Mill 1-to-1 gluten free flour (add an additional 1/8 teaspoon xanthan gum since it doesn't have enough), or Vitacost multi-blend gluten free flour.
Avoid Nicole's Best here because it has milk powder. You can also make my mock Better Batter blend
Almond flour
Be sure you're using finely ground and sifted blanched almond flour with its skins removed, not almond meal, which has its skins intact and is more coarsely ground. 

Nutrition

Serving: 1slice

Nutrition information is automatically calculated, so should only be used as an approximation.

Like this? Leave a comment below!

Storage instructions

Store leftover frosted cake slices in a tightly sealed container at cool room temperature for at least 3 days. Refrigerate in a similar manner for up to 7 days after baking. Let it come to room temperature before serving for the best texture.

For longer storage or a make-ahead option, let it cool completely, wrap tightly in freezer-safe wrap, and freeze for up to 3 months. Defrost at room temperature. Frost before serv ing.

The frosted cake as a whole or individual slices can be frozen, too, but chill so the frosting sets before wrapping.

Golden fork poised above a slice of frosted vanilla cake, pressing gently into the soft frosting above the tender crumb of the cake

FAQs

Can I make this into a layer cake?

Yes! This recipe makes enough batter for one 8-inch square cake or one 9-inch round cake. Double the yield or click the [2X] and bake in 2 separate pans exactly as directed. For 2 8-inch round cake pans, you'll need only 1 1/2 times as much batter. Increase the yield from 8 slices to 12 slices and bake for about 25 minutes or until done.

Can I use this batter to make cupcakes?

I haven't tried to make this batter into cupcakes, but I think it would work well. Try filling the wells 2/3 of the way full so they bake up flat, and starting checking for doneness around 20 minutes. It would make 12 to 14 cupcakes.

What can I use instead of almond flour?

Try oat flour in its place, or finely sifted, blanched hazelnut flour.

Can I add cocoa powder for a gluten free dairy free chocolate cake?

I'm afraid that won't work, but I have a deliciously moist and tender gluten free dairy free chocolate cake recipe you'll love!

Can I use a mixer to make the batter?

Yes! You can mix this cake easily by hand, but you can use a handheld mixer or a stand mixer with the paddle attachment. When you mix the oil and the sugar that way, it will take less than 1 minute instead of 2 to get a creamy suspension.

Can I make this cake vegan?

If you use the egg-free suggestions in the ingredient swaps section above, the cake will be vegan.

About Nicole Hunn

Hi, I’m Nicole. I create gluten free recipes that really work and taste as good as you remember. No more making separate meals when someone is GF, or buying packaged foods that aren’t good enough to justify the price. At Gluten Free on a Shoestring, “good, for gluten free” just isn’t good enough!

Leave a comment

Your email address will not be published. Required fields are marked *

Recipe Rating





This site uses Akismet to reduce spam. Learn how your comment data is processed.