Its a Cupcake Recipe: Classic Vanilla Cupcakes
In this article
- Ingredients
- Instructions
- What Can I Substitute for Butter, Milk, or Eggs?
- How Long Do Cupcakes Keep?
- What Frosting Goes Best With Vanilla Cupcakes?
- Can I Make These Cupcakes Ahead of Time?
- Why Did My Cupcakes Sink or Turn Out Dense?
- Can I Double This Recipe for a Larger Batch?
- What If I Only Have Self-Rising Flour?
- How Do I Know When the Cupcakes Are Fully Baked?
- Can I Use This Recipe for Mini Cupcakes or a Sheet Cake?
- What Should I Do With Leftover Frosting?
- Is It Safe to Eat Raw Cupcake Batter?
- How Should I Store Frosted Cupcakes for a Party?
This is a straightforward vanilla cupcake recipe that works for birthdays, classroom treats, bake sales, or a weekend baking project with kids. The cupcakes are tender, lightly sweet, and pair well with any frosting you like—classic buttercream, chocolate ganache, or a simple dusting of powdered sugar. They bake in about 20 minutes and can be made a day ahead, which makes them a practical choice when you need dessert for a crowd.
Serves 12 · Prep 20 min · Cook 20 min · Total 40 min
Ingredients
- 1 1/2 cups (190 g) all-purpose flour
- 1 1/2 tsp baking powder
- 1/4 tsp salt
- 1/2 cup (1 stick, 113 g) unsalted butter, softened
- 3/4 cup (150 g) granulated sugar
- 2 large eggs, at room temperature
- 1 tsp vanilla extract
- 1/2 cup (120 ml) whole milk, at room temperature
Instructions
- Heat the oven to 350°F (175°C). Line a 12-cup muffin tin with paper liners.
- In a medium bowl, whisk the flour, baking powder, and salt together until combined.
- In a large bowl, beat the softened butter and sugar with an electric mixer on medium speed until light and fluffy, about 2 minutes. Scrape down the sides.
- Add the eggs one at a time, beating well after each addition. Beat in the vanilla extract.
- With the mixer on low, add the flour mixture in three additions, alternating with the milk in two additions, starting and ending with the flour. Mix just until no streaks of flour remain; do not overmix.
- Divide the batter evenly among the prepared muffin cups, filling each about two-thirds full.
- Bake for 18–22 minutes, until the tops are golden and a toothpick inserted into the center comes out clean. Cool in the pan for 5 minutes, then transfer to a wire rack to cool completely before frosting.
What Can I Substitute for Butter, Milk, or Eggs?
If you are out of an ingredient, these swaps work in a pinch, but each changes the texture slightly.
- Butter: Use 1/2 cup (113 g) plain Greek yogurt or 1/2 cup (120 ml) vegetable oil instead. Yogurt makes the crumb slightly denser; oil makes it more moist but less fluffy.
- Milk: Use any milk you have—almond, oat, or soy milk work in the same 1/2 cup (120 ml) amount. Whole milk gives the richest texture; non-dairy milks may make the cupcake slightly less tender.
- Eggs: For each egg, use 1/4 cup (60 ml) unsweetened applesauce or 1/4 cup (60 g) mashed banana. The cupcakes will be more dense and may not rise as high; banana adds a mild flavor.
- Baking powder: If you only have baking soda, use 1/2 tsp baking soda plus 1 tsp lemon juice or vinegar, but the texture will be slightly different. This is a last-minute swap, not a preferred one.
How Long Do Cupcakes Keep?
Frosted or unfrosted cupcakes keep at room temperature in an airtight container for up to 2 days. After that, refrigerate them for up to 4 more days—but note that refrigeration can dry out the cake slightly. For longer storage, freeze unfrosted cupcakes in a single layer in a freezer bag for up to 3 months; thaw at room temperature for about 1 hour before frosting or serving. Frosted cupcakes can also be frozen, but the frosting may lose its texture.
What Frosting Goes Best With Vanilla Cupcakes?
Classic vanilla buttercream is the standard pairing: beat 1/2 cup (1 stick, 113 g) softened butter with 2 cups (240 g) powdered sugar, 2 tbsp (30 ml) milk, and 1 tsp vanilla until smooth. For chocolate frosting, melt 4 oz (115 g) semisweet chocolate and beat it into the same buttercream. If you want a lighter option, top each cupcake with a dollop of whipped cream and fresh berries just before serving—add the whipped cream no more than an hour ahead so it stays firm.
Can I Make These Cupcakes Ahead of Time?
Yes. Bake the cupcakes up to 2 days ahead, cool them completely, and store them in an airtight container at room temperature. Frost them the day you plan to serve, or up to 1 day ahead if you refrigerate them. If you need to freeze them, do so unfrosted and frost after thawing. For a party, you can also bake the batter into a 9-inch (23 cm) round cake pan—bake at 350°F (175°C) for 25–30 minutes, until a toothpick comes out clean.
Why Did My Cupcakes Sink or Turn Out Dense?
Three common reasons: overmixing the batter develops too much gluten, which makes cupcakes tough and dense; opening the oven door during baking lets cold air in and can cause sinking; and using cold butter or milk prevents the batter from emulsifying properly. Always bring butter, eggs, and milk to room temperature before starting. Also, check that your baking powder is fresh—if it's older than 6 months, it may not give enough lift.
Can I Double This Recipe for a Larger Batch?
Yes, you can double all ingredients to make 24 cupcakes. Use a large bowl and beat the butter and sugar for an extra minute to ensure they cream well. Bake in two batches or use two muffin tins on separate racks, rotating them halfway through baking. The baking time stays about the same, but start checking at 18 minutes because ovens vary.
What If I Only Have Self-Rising Flour?
If you have self-rising flour, omit the baking powder and salt from the recipe. Use the same 1 1/2 cups (190 g) of self-rising flour, but reduce the amount by 1 tablespoon to account for the leavener already in it. The texture will be slightly softer and the cupcakes may rise a bit more, so fill the liners only two-thirds full to avoid overflow.
How Do I Know When the Cupcakes Are Fully Baked?
The most reliable test is a toothpick inserted into the center of a cupcake—it should come out clean, with no wet batter clinging to it. The tops should spring back when lightly pressed. If you have an instant-read thermometer, the center should read 200–210°F (93–99°C). Do not rely on color alone; some ovens brown faster than others.
Can I Use This Recipe for Mini Cupcakes or a Sheet Cake?
For mini cupcakes, fill the liners two-thirds full and bake at 350°F (175°C) for 10–12 minutes, until a toothpick comes out clean. You'll get about 36 minis. For a 9x13-inch (23x33 cm) sheet cake, pour the batter evenly and bake for 22–26 minutes. Always start checking at the lower end of the time range, since smaller pans bake faster.
What Should I Do With Leftover Frosting?
Store leftover buttercream in an airtight container in the refrigerator for up to 1 week. Let it come to room temperature and re-whip for 30 seconds before using. You can also freeze it for up to 3 months—thaw overnight in the fridge and re-whip. If you made cream cheese frosting, use it within 3 days and always keep it refrigerated.
Is It Safe to Eat Raw Cupcake Batter?
No. Raw flour can contain harmful bacteria, and raw eggs may carry Salmonella. If you want to taste the batter, heat-treat the flour by spreading it on a baking sheet and baking at 350°F (175°C) for 5 minutes, then let it cool completely. Use pasteurized eggs if you plan to eat raw batter. Pregnant people, young children, older adults, and anyone with a weakened immune system should avoid raw flour and raw eggs entirely.
How Should I Store Frosted Cupcakes for a Party?
If you're transporting frosted cupcakes, place them in a single layer in a sturdy container with a lid. For buttercream, they can stay at room temperature for up to 2 hours total (including serving time). If the party is longer, keep them in the fridge and take out only what you need. Never leave frosted cupcakes out for more than 2 hours, or 1 hour if the room is above 90°F (32°C).