Gluten-Free Vanilla Cupcakes
Updated
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.

“These are superb!! I’m not gluten free and I normally think gluten free things don’t taste great, but THESE!!! These are glorious!!”
– Dusty
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.
Gluten-Free Vanilla Cupcakes

Ingredients
Vanilla Cupcakes
- 6 tbsp unsalted butter, softened, dairy-free use Smart Balance butter
- ¾ cup granulated sugar
- 2 large eggs
- 1 tbsp pure vanilla extract
- 1¼ 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.
- 1¾ 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
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.
-
- Use equal weight as written in the recipe
- Add 1–2 tablespoons additional milk
- Start checking for doneness 2–3 minutes early
-
- 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
-
- Use equal weight as written in the recipe
- Do not add extra liquid
- Fill liners slightly less full (just under 2/3)
Nutrition
Nutrition information is automatically calculated, so should only be used as an approximation.
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.

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.

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.

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.

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.

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.

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.

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

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.

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.

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.

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
- Gluten-Free Strawberry Cupcakes: Light, fruity, and perfect for spring and summer. These use fresh strawberry flavor for a naturally sweet twist.
- Gluten-Free Chocolate Cupcakes: Rich, moist, and deeply chocolatey. A great option when you want something a little more indulgent.
- Gluten-Free Red Velvet Cupcakes: Soft, tender, and classic with a hint of cocoa and tang. Perfect for holidays or special occasions.
- Paleo Chocolate Fudge Cupcakes: Made with grain-free ingredients for a different take. These have a slightly denser texture but are still soft and satisfying.
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
- Classic vanilla buttercream
- Strawberry frosting for a fruity finish
- Chocolate frosting for a richer option
- Cream cheese frosting (find in our carrot cake recipe)
- Dairy-free buttercream frosting
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.













I loved the cupcakes so much best gluten free cupcakes ever!!!
Thank you Summer!
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!
Turned out amazing! I used earth balance and oat milk. They are so moist and delicious.
These are superb!! I’m not gluten free and I normally think gluten free things don’t taste great, but THESE!!! These are glorious!!
Thank you Dusty!
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
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?
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!
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!
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!
Glad they are a hit!
I made this and it was dense. I tried cooking longer and all. Still dense inside and on bottom of cupcake.
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!
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 🙂