Gluten-Free Vanilla Cupcakes

Prep 10 minutes
Cook 25 minutes
Servings 12 servings

It’s so tempting to use a boxed gluten-free cake mix any time there’s a big event because it’s so reliable. But let’s face it, the taste is underwhelming at best. I developed these homemade gluten-free vanilla cupcakes topped with buttercream frosting to satisfy everyone’s sweet tooth. They’re light and fluffy and the perfect base for any gluten-free cupcakes you’d like to make.

frosted gluten-free vanilla cupcakes in cupcake liners.

One of the first things I mastered when going gluten-free was cupcakes and cake. I quickly realized I needed a reliable base recipe I could build on, and this one has become my go-to. While it’s written as a classic vanilla cupcake, I use it as a flexible foundation for other flavors like chocolate or strawberry, and I share how to customize it below. The batter comes together with simple ingredients like gluten-free flour, butter, sugar, eggs, and milk, using a straightforward mixing method that creates a soft, tender crumb every time. I tested this recipe using Pillsbury gluten-free flour for the most consistent results, but I’ve included notes below if you’re working with a different blend.

What I Learned While Testing

  • Gluten-free flour. I like Pillsbury gluten-free. Not all gluten-free flours are created equal. You may experience different baking results depending on the gluten-free flour blend you choose. You can also make your own reliable homemade Cup4Cup flour blend.
  • Mix just until combined. Overmixing can make gluten-free cupcakes dense instead of light and tender. Once the batter looks smooth, stop mixing—I’ve found this makes a big difference in keeping the crumb soft.
  • The batter should be thick but scoopable. It shouldn’t be runny or stiff. When testing, I noticed a smooth, slightly thick batter consistently baked up with the best texture.
  • Use room temperature ingredients. Butter, eggs, and milk blend more evenly when they’re not cold. I’ve found this helps create a smoother batter and a softer, more even crumb.
  • Fill liners about 2/3 full. This gives the cupcakes enough room to rise properly without overflowing or collapsing.
  • Don’t overbake. Gluten-free cupcakes can dry out quickly. I always start checking a few minutes early and pull them as soon as a toothpick comes out clean or with a few crumbs.
  • Let them cool completely before frosting. Frosting warm cupcakes will melt and slide off—I’ve definitely rushed this step before, and it makes a mess.
  • Avoid opening the oven too early. Sudden temperature changes can cause cupcakes to sink in the center. I try to wait until they’re mostly set before checking.
  • If your cupcakes sank in the middle. This is usually from opening the oven too early or slightly underbaking them. I’ve found even a minute or two can make the difference here.
  • If your cupcakes are dry. They were likely overbaked or left uncovered too long. Gluten-free baked goods lose moisture faster than regular ones.
  • If your cupcakes are gummy. This can happen if they weren’t fully baked or didn’t cool properly. Letting them rest completely helps the texture finish setting.
4.76 from 33 votes

Gluten-Free Vanilla Cupcakes

Servings: 12 servings
Prep: 10 minutes
Cook: 25 minutes
Total: 35 minutes
frosted gluten-free vanilla cupcakes in cupcake liners.
An easy recipe for gluten-free vanilla cupcakes that are soft and fluffy. Bakery-style gluten-free cupcakes topped with a vanilla buttercream frosting. The recipe also has a dairy-free option. 
Step-by-step photos can be seen below the recipe card.
Want to save this recipe?
Just enter your email and get it sent to your inbox! Plus you’ll get new recipes from us every week!

Ingredients 

Vanilla Cupcakes

  • 6 tbsp unsalted butter, softened, dairy-free use Smart Balance butter
  • ¾ cup granulated sugar
  • large eggs
  • tbsp pure vanilla extract
  • cups gluten-free all-purpose rice flour blend with xanthan gum, I like Pillsbury gluten-free. Not all gluten-free flours are created equal. You may experience different baking results depending on the gluten-free flour blend you choose.
  • tsp gluten-free baking powder
  • ¼ tsp salt
  • 1 cup milk, dairy-free use unsweetened almond milk, cashew or coconut milk

Vanilla Buttercream

  • ¾ cup unsalted butter, softened, dairy-free use Smart Balance Butter
  • 1 tbsp pure vanilla extract
  • ¼ tsp salt
  • 4 cups confectioners’ sugar
  • 3 tbsp milk, dairy-free use unsweetened almond milk, cashew or coconut milk
[adthrive-in-post-video-player video-id=”tXgyKSYU” upload-date=”2020-01-23T00:00:00+00:00″ name=”Gluten-Free Vanilla Cupcakes (Dairy-Free Option)” description=”An easy recipe for gluten-free vanilla cupcakes that are soft and fluffy. Bakery-style gluten-free cupcakes topped with a vanilla buttercream frosting. The recipe also has a dairy-free option.” player-type=”default” override-embed=”default”]

Instructions 

Vanilla Cupcakes

  • Preheat oven to 350°F and line a muffin pan with liners or spray with gluten-free nonstick cooking spray.
  • In a large bowl cream the butter until smooth. Add the sugar and beat until smooth.
  • Add eggs and vanilla extract and mix until fully combined and smooth.
  • Add gluten-free flour, baking powder, and salt and mix until combined.
  • Pour in milk and mix for 2 minutes on medium until batter is smooth.
  • Scoop the cake batter into the lined muffin pan. I always use a greased ice cream scoop when making cupcakes and muffins. It measures out the perfect amount and is less messy than trying to spoon batter into the pan.
  • Bake cupcakes for 25 minutes. Please watch your oven because all ovens are different. I like to check my cupcakes with a toothpick to make sure they are done too.
  • Allow cupcakes to completely cool before frosting. I like to use a baking cooling rack.

Vanilla Buttercream

  • In a large bowl, cream butter until smooth.
  • Add the pure vanilla extract and mix until fully combined.
  • Add the confectioners’ sugar 1 cup at a time and mix until fully combined.
  • Add the milk and beat until smooth and spreadable.
  • I like to line a piping bag in a tall glass and then add the frosting. It makes it easier and less mess to fill. My favorite frosting tip is the Wilton 1M.

Notes

  • I have found that the best way to measure gluten-free flour is to use the “spoon & level” method.  Use a spoon to scoop the flour out of the bag into a measuring cup.  After spooning the flour into a measuring cup, use the back of a knife to level the flour off the measuring cup.
GF Flour Alternatives
I developed and tested this recipe using Pillsbury gluten-free flour, which gave me the most consistent results in both texture and structure. It already contains xanthan gum and creates a soft, tender crumb without needing adjustments.
King Arthur Measure for Measure
    • Use equal weight as written in the recipe
    • Add 1–2 tablespoons additional milk
    • Start checking for doneness 2–3 minutes early
This blend creates more structure but tends to bake slightly drier. A small increase in liquid helps maintain moisture. Expect slightly taller cupcakes with a more structured crumb and a lightly firmer texture.
Bob’s Red Mill 1:1 Baking Flour
    • Use equal weight as written in the recipe
    • Add 1 tablespoon additional milk if the batter feels thick
    • Bake fully, then cool completely in the pan
This blend can absorb unevenly and may feel thicker or slightly gritty if underbaked. Expect slightly denser cupcakes. Texture improves significantly as they cool and fully set.
Cup4Cup
    • Use equal weight as written in the recipe
    • Do not add extra liquid
    • Fill liners slightly less full (just under 2/3)
This starch-heavy blend creates a very soft, delicate structure that can be more fragile. Expect very light, tender cupcakes with a softer structure that may need gentle handling.
Note: No matter which blend you use, make sure it includes xanthan gum. If it doesn’t, you’ll need to add it separately to help with structure. Standard practice is to use ¼ tsp xanthan gum per 1 cup gluten-free flour.
 

Nutrition

Serving: 1cupcakeCalories: 433kcalCarbohydrates: 63gProtein: 3gFat: 19gSaturated Fat: 12gCholesterol: 83mgSodium: 125mgPotassium: 107mgFiber: 1gSugar: 54gVitamin A: 620IUCalcium: 71mgIron: 1mg

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

Additional Info

Course: Dessert
Cuisine: American
Tried this recipe?Mention @mamaknowsglutenfree or tag #mamaknowsglutenfree!

How to Make Gluten-Free Vanilla Cupcakes Step by Step

Gather the ingredients: Gather all the ingredients together. Preheat your oven to 350°F and line a muffin pan with cupcake liners or lightly spray with gluten-free nonstick spray.

beating butter in a glass bowl.

Beat the butter and sugar: In a large mixing bowl, beat 6 tbsp softened unsalted butter (or dairy-free Smart Balance) until smooth and creamy, about 30–60 seconds. Add ¾ cup granulated sugar and continue beating until the mixture looks light and fluffy, not grainy.

batter in a glass bowl.

Add eggs and vanilla: Add 2 large eggs, one at a time, mixing well after each addition so the batter stays smooth and doesn’t curdle. Mix in 1 tbsp pure vanilla extract until fully combined.

thick batter in a glass bowl.

Add the dry ingredients: Add 1¼ cups gluten-free all-purpose flour (with xanthan gum), 1¾ tsp baking powder, and ¼ tsp salt. Mix on low speed just until combined and no dry streaks remain. Be careful not to overmix at this stage.

thin batter in a glass bowl.

Add the milk and finish the batter: Pour in 1 cup milk (or dairy-free milk like almond, cashew, or coconut) and mix on medium speed for about 2 minutes, until the batter is smooth, slightly thick, and lump-free.

cupcake batter in a cupcake tin.

Fill the cupcake liners: Scoop the batter evenly into the prepared muffin pan, filling each liner about ⅔ full. Using a greased ice cream scoop makes this easier and keeps the cupcakes uniform.

baked gluten-free vanilla cupcakes in a cupcake tin.

Bake the cupcakes: Bake for 22–25 minutes, or until a toothpick inserted into the center comes out clean or with a few crumbs. Start checking a few minutes early, as gluten-free cupcakes can overbake quickly. Let the cupcakes cool in the pan for a few minutes, then transfer to a wire rack to cool completely before frosting.

beaten butter in a glass bowl.

Make the buttercream frosting: In a large bowl, beat ¾ cup softened unsalted butter (or dairy-free butter) until smooth and creamy.

thick beaten butter in a glass bowl.

Add the vanilla and sugar: Add 1 tbsp pure vanilla extract and ¼ tsp salt, mixing until fully combined. Gradually add 4 cups confectioners’ sugar, about 1 cup at a time, mixing on low speed until incorporated before adding more. The frosting will start to thicken as you go.

beaten frosting in a glass bowl.

Add milk and whip until fluffy: Add 3 tbsp milk (or dairy-free milk), then beat on medium-high speed until the frosting is smooth, fluffy, and easily spreadable. If needed, adjust with a little more milk for a softer consistency or more powdered sugar for a thicker frosting.

frosting gluten-free vanilla cupcakes.

Frost the cupcakes: For piping, transfer the frosting to a piping bag. I like to place the bag in a tall glass to make filling easier and less messy. My go-to tip is the Wilton 1M for a classic swirl. Pipe fully cooled cupcakes and serve. 

3 gluten-free vanilla cupcakes.

Serving Suggestions

I love serving these gluten-free cupcakes with a simple swirl of vanilla buttercream and a few sprinkles for a classic look. They’re perfect for birthdays, holidays, or anytime you need an easy dessert everyone can enjoy. You can dress them up with fresh berries, a drizzle of chocolate, or a flavored frosting.

Storage Instructions

Store gluten-free vanilla cupcakes in an airtight container at room temperature for up to 2 days or in the refrigerator for up to 4 days.

There are lots of times when I need to bring my children a safe gluten-free treat to have at a party or event, and having some of these cupcakes in the freezer really helps.

Once your cupcakes are completely cool, wrap them with plastic wrap (I like the press-and-seal wrap) and place them in a freezer bag. The cupcakes can be frozen up to 3 months. You can defrost the cupcakes at room temperature for 2-3 hours or overnight in the refrigerator.

More Gluten-Free Cupcake Recipes to Try

Easy Flavor Variations

  • Add citrus zest (lemon, orange, or lime) to brighten the flavor
  • Stir in sprinkles for funfetti-style cupcakes
  • Swap vanilla extract for almond, coconut, or lemon extract
  • Fold in mini chocolate chips or berries for added texture

Frosting Options

Simple Substitutions

  • Dairy-free: Some of my favorite dairy-free alternatives that I like to bake with are almond, cashew, or coconut milk. If you can’t have nuts, you can also use soy milk. I also like baking with coconut oil or Smart Balance butter. 

About Audrey Roberts

I'm Audrey Roberts, a busy mama of four and I love sharing the recipes that I make for my family. I make gluten-free family-friendly recipes that are simple and delicious that you can too! I use easy to find ingredients that won't break your budget. You will also find dairy-free options and Paleo recipes. I am also the author of The Everything Gluten-Free & Dairy-Free Cookbook, which is an Amazon Best Selling Cookbook in the US and Internationally. Living gluten-free since 2010. I hope by me sharing my journey it may help you with yours.

You Might Also Like:

4.76 from 33 votes (2 ratings without comment)
Subscribe
Notify of
guest
Recipe Rating




61 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Summer
March 2, 2026 12:09 am

I loved the cupcakes so much best gluten free cupcakes ever!!!

Amy - Mama Knows Gluten Free
March 2, 2026 4:56 pm
Reply to  Summer

Thank you Summer!

Belle
February 22, 2026 2:45 am

This is my absolute go to recipe for vanilla cupcakes. It’s taken me a few rounds of experimentation to adjust it to Australian ingredients but I’ve got it now perfect.

Thankyou!!!

I use all the same ingredients but adjust the flour mix to include vanilla pea protein and only 1tsp baking powder. I also use 3/4 cup almond milk instead of a full cup and add blueberries!

They are Soooo GOOD! Such a staple recipe in our house!

Tina
January 19, 2026 3:37 pm

Turned out amazing! I used earth balance and oat milk. They are so moist and delicious.

Dusty Weber
November 20, 2025 11:25 am

These are superb!! I’m not gluten free and I normally think gluten free things don’t taste great, but THESE!!! These are glorious!!

Amy - Mama Knows Gluten Free
November 25, 2025 11:48 am
Reply to  Dusty Weber

Thank you Dusty!

Jessica
September 29, 2025 7:09 am

Milk curdled/separated the mixture, NO rise, and horrible texture akin to a car sponge. Don’t recommend at all, i tried again because i thought it may be my fault for using too-cold milk and a bit expired baking powder but no i had the exact same result the second time. Very disappointed i wasted 4 eggs on this and all the other ingredients too

Amy - Mama Knows Gluten Free
October 7, 2025 2:53 pm
Reply to  Jessica

Hi Jessica, I’m so sorry to hear these didn’t turn out for you. I completely understand how frustrating it is to waste ingredients, especially when baking gluten-free. The curdling you mentioned can happen if the milk or eggs are too cold when mixed in, or if the batter is overmixed once the dry ingredients are added. Both can affect texture and rise. Expired baking powder could cause dense cupcakes, but since you tried again, it may also be related to the flour blend. Different gluten-free flours absorb moisture differently, which can lead to separation or a spongy texture. If you let me know which flour you used I can try to troubleshoot further, if you’d like?

Angie
June 2, 2025 12:11 pm

I made these for my son’s graduation party. I used Namaste brand gluten free flour. They were AMAZING! The texture was perfect. No one could tell they were gluten free or homemade!

Mary
April 19, 2025 6:01 pm

Oh my goodness these were so good! Thank you for sharing. It’s been so difficult to work around having Celiac this helps so much!

Carrie
March 5, 2025 5:08 am

These are hands down the BEST cupcakes. My non-gluten free friends like these more than regular cupcakes! I make them gluten and dairy free. Thanks so much!

Amy - Mama Knows Gluten Free
March 5, 2025 11:48 am
Reply to  Carrie

Glad they are a hit!

Louise
January 12, 2025 2:51 pm

I made this and it was dense. I tried cooking longer and all. Still dense inside and on bottom of cupcake.

Sam - Mama Knows Gluten Free
January 13, 2025 10:03 am
Reply to  Louise

Hi Louise, it sounds like your baking powder may have been expired, or you may have overmixed the batter. We recommend using a light hand to mix the batter and trying again with new, fresh baking powder!

Jade
January 10, 2025 6:08 am

Just made these with some Aussie subs… home-brand gluten-free flour, nuttelex, oat milk, and even some brown sugar when I ran out of white. They turned out perfectly! Thanks for the great recipe 🙂