This funfetti cake is a classic vanilla butter cake studded with rainbow sprinkles, baked for birthdays, potlucks, or any day that needs a little color. It has a tender, moist crumb and a sweet vanilla flavor, with a light, creamy buttercream frosting. Serve it as a celebration centerpiece or as an easy weekend bake that keeps well for several days.
Ingredients
- 2 1/2 cups (300 g) cake flour
- 2 1/2 tsp baking powder
- 1/2 tsp salt
- 3/4 cup (170 g) unsalted butter, softened
- 1 1/2 cups (300 g) granulated sugar
- 3 large eggs, room temperature
- 1 tbsp vanilla extract
- 1 cup (240 ml) whole milk, room temperature
- 1/2 cup (80 g) rainbow sprinkles (jimmies, not nonpareils, to avoid bleeding)
- For the frosting: 1 cup (226 g) unsalted butter, softened
- 4 cups (480 g) powdered sugar
- 2 tbsp heavy cream or milk
- 1 tsp vanilla extract
- Pinch of salt
- Extra sprinkles for decorating
Instructions
- Preheat the oven to 350°F (177°C). Grease and flour two 9-inch (23 cm) round cake pans, or line with parchment paper.
- In a medium bowl, whisk together the cake flour, baking powder, and salt. Set aside.
- In a large bowl, beat the butter and sugar with an electric mixer on medium speed until light and fluffy, about 3 minutes.
- Add the eggs one at a time, beating well after each. Beat in the vanilla extract.
- With the mixer on low, add the flour mixture in three additions, alternating with the milk, beginning and ending with flour. Mix until just combined; do not overmix.
- Gently fold in the rainbow sprinkles with a spatula. The batter will be thick and slightly lumpy from the sprinkles.
- Divide the batter evenly between the prepared pans. Smooth the tops.
- Bake for 25–30 minutes, until a toothpick inserted into the center comes out clean and the cakes are golden and pulling away from the pan edges. The internal temperature of the cake should read about 200°F (93°C) if you use a thermometer, but the toothpick test is the standard cue.
- Let the cakes cool in the pans for 10 minutes, then turn them out onto a wire rack to cool completely, about 1 hour.
- For the frosting: beat the butter until smooth, then gradually add the powdered sugar, cream, vanilla, and salt. Beat on medium-high for 2–3 minutes until light and fluffy.
- Once the cakes are completely cool, place one layer on a serving plate. Spread about 1 cup of frosting on top. Place the second layer on top and frost the top and sides.
- Decorate with extra sprinkles on top and press sprinkles onto the sides if desired.
- Refrigerate for at least 30 minutes to set the frosting before slicing.
Baking Times and Doneness Cues
The cake is done when a toothpick inserted in the center comes out clean, and the top springs back when lightly pressed. The edges will have started to pull away from the pan. For a single 9×13-inch (23×33 cm) pan, bake for 30–35 minutes. For cupcakes, bake for 18–22 minutes, until a toothpick comes out clean.
Scaling the Recipe
This recipe makes two 9-inch layers (serves 12). For a half batch (serves 6), use one 8-inch (20 cm) round pan and bake for 25–30 minutes. For a double batch (serves 24), use three 9-inch pans and bake for 25–30 minutes, or a 9×13-inch pan plus a 9-inch round, adjusting time as needed.
Swaps and Variations
If you don’t have cake flour, use 2 cups (240 g) all-purpose flour plus 2 tbsp cornstarch, sifted together. This will produce a slightly denser crumb. For a citrus twist, replace the vanilla extract with 1 tbsp lemon zest and use lemon juice in the frosting. For a chocolate version, replace 1/4 cup (30 g) of the flour with unsweetened cocoa powder.
Use jimmies (long, rod-shaped sprinkles) rather than nonpareils (tiny round balls) because nonpareils tend to bleed their colors into the batter. If you only have nonpareils, toss them with a teaspoon of flour before folding in, and expect some color streaking.
Storing and Leftovers
Store the frosted cake in an airtight container in the refrigerator for up to 4 days. Let it sit at room temperature for 30 minutes before serving to soften the frosting. Unfrosted cake layers can be wrapped tightly in plastic wrap and frozen for up to 3 months; thaw overnight in the refrigerator before frosting. Frosted cake can also be frozen for up to 2 months, but the sprinkles may soften slightly.
Perishable dairy and eggs mean the cake should not sit out for more than 2 hours total (1 hour if above 90°F/32°C). Always refrigerate leftovers promptly.
Why the Sprinkles Sometimes Bleed
Rainbow sprinkles are coated with a sugar shell that can dissolve in wet batter, releasing dye. To minimize bleeding, use jimmies and fold them in gently at the very end. Avoid overmixing after adding them. If you see streaks, it’s cosmetic, not a safety issue.
Can You Make This Ahead?
Yes. Bake the cake layers a day ahead and store them wrapped at room temperature, or freeze for longer. Frost the cake up to 24 hours ahead and keep it refrigerated. Bring to room temperature before serving for the best flavor and texture.
Related
- Good Oatmeal Cookie Recipe
- Gluten Free Rainbow Cookies (Italian Almond Layers)
- Good French Fries Recipe: Crispy at Home
Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.
Spotted an error? Tell us and we will correct it (corrections policy).