Ingredients
Equipment
Method
Bake the cupcakes
- Preheat your oven to 350°F (175°C). Line a 12-cup muffin tin with cupcake liners.
- Whisk the all-purpose flour, baking powder, and salt in a medium bowl, then set aside.
- Beat the softened unsalted butter and granulated sugar in a large bowl on medium-high speed for 3–4 minutes until pale and fluffy.
- Add the eggs one at a time, beating well after each addition, then mix in pure vanilla extract.
- Reduce speed to low and alternate adding the flour mixture and whole milk in 3 additions, beginning and ending with flour; mix just until combined.
- Divide the batter evenly into 3 bowls, leaving one bowl plain (white), then tint one bowl with Red gel food coloring and one with Blue gel food coloring until vibrant.
- Drop alternating spoonfuls of red, white, and blue batter into each liner, filling about ⅔ full, then swirl once or twice with a toothpick.
- Bake for 18–22 minutes, until a toothpick inserted into the center comes out clean and the tops spring back lightly.
- Cool in the pan for 5 minutes, then transfer to a wire rack to cool completely.
Make and pipe the buttercream
- Beat the softened unsalted butter on medium speed for 2 minutes until creamy.
- Add powdered sugar one cup at a time, mixing on low until incorporated.
- Mix in heavy cream, pure vanilla extract, and a pinch of salt.
- Beat on high for 3–4 minutes until the frosting is light, fluffy, and bright white.
- Fit a piping bag with a large star tip and pipe a tall swirl onto each cooled cupcake.
- Immediately decorate each cupcake with red, white, and blue star sprinkles, and add sanding sugar and mini flag picks if desired while the frosting is still soft.
Serve and store
- Serve the cupcakes at room temperature.
- Store leftovers in an airtight container at room temperature for up to 2 days, or refrigerate for up to 5 days.
Notes
Pro tip: when you swirl the tri-color batter, keep it to 1–2 gentle motions so the colors stay crisp instead of turning muddy. Store cupcakes covered at room temperature for up to 2 days, or refrigerate up to 5 days; freezing is not recommended for best frosting texture. For a dairy-light option, swap whole milk with an equal amount of lactose-free milk and use heavy cream labeled lactose-free if available.
