This funfetti cake is a cheerful, buttery vanilla layer cake studded with rainbow sprinkles, perfect for birthdays, potlucks, or any day that needs a little color. It bakes in two 9-inch round pans, giving you a tall, celebratory cake that serves a crowd. Serve it with a glass of cold milk or a scoop of vanilla ice cream.
Ingredients
- 2 ½ cups (300 g) all-purpose flour
- 2 ½ teaspoons baking powder
- ½ teaspoon salt
- ¾ cup (170 g) unsalted butter, softened
- 1 ¾ cups (350 g) granulated sugar
- 3 large eggs, at room temperature
- 1 tablespoon vanilla extract
- 1 cup (240 ml) buttermilk, at room temperature
- ⅓ cup (50 g) rainbow sprinkles (jimmies, not nonpareils)
- For the frosting: 1 cup (226 g) unsalted butter, softened
- 4 cups (480 g) powdered sugar, sifted
- ¼ cup (60 ml) heavy cream
- 2 teaspoons vanilla extract
- Pinch of salt
- Extra sprinkles for decorating
Instructions
- Preheat your oven to 350°F (175°C). Grease two 9-inch (23 cm) round cake pans and line the bottoms with parchment paper.
- In a medium bowl, whisk together the 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. 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 dry ingredients in three additions, alternating with the buttermilk, starting and ending with the dry ingredients. Mix just until combined; do not overmix.
- Gently fold in the rainbow sprinkles with a spatula. Be careful not to overmix, or the sprinkles may bleed their color.
- Divide the batter evenly between the prepared pans. Smooth the tops with a spatula.
- Bake for 28–32 minutes, until a toothpick inserted in the center comes out clean and the cake springs back when lightly pressed. The internal temperature should read about 200°F (93°C) if measured.
- Let the cakes cool in the pans for 10 minutes, then turn them out onto a wire rack to cool completely, about 1 hour. Do not frost until fully cool.
- To make the frosting: In a large bowl, beat the butter until creamy. Gradually add the powdered sugar, beating on low, then add the heavy cream, vanilla, and salt. Increase speed to medium-high and beat for 2–3 minutes until light and fluffy.
- Place one cake layer on a serving plate. Spread about 1 cup of frosting on top. Place the second layer on top. Frost the top and sides with the remaining frosting. Decorate with extra sprinkles if desired.
Baking Times and Doneness Cues
The cakes are done when a toothpick inserted into the center comes out clean, the top is golden and springs back when gently pressed, and the internal temperature reaches about 200°F (93°C). Start checking at 28 minutes. If your oven runs hot, check at 25 minutes. If the tops brown too quickly, tent loosely with foil.
For a single 9-inch round pan, use half the batter and bake for 25–30 minutes. For a double batch (four 9-inch pans), use the full recipe doubled and bake for 30–35 minutes, checking earlier if your oven is efficient.
Make-Ahead and Storage
Bake the cake layers up to 2 days ahead. Wrap them tightly in plastic wrap and store at room temperature, or freeze for up to 3 months. Frosted cake keeps at room temperature for 2–3 days, or refrigerated for up to 5 days. Bring to room temperature before serving. Leftover slices can be stored in an airtight container at room temperature for 2 days, or refrigerated for up to 4 days. For longer storage, freeze unfrosted layers for up to 3 months.
Variations and Substitutions
No buttermilk? Use 1 cup (240 ml) whole milk mixed with 1 tablespoon lemon juice or white vinegar. Let it sit for 5 minutes before using. The cake will be slightly less tender but still good.
Use gel food coloring to tint the frosting pastel colors. For a citrus version, add 1 tablespoon lemon zest to the batter and replace the vanilla in the frosting with 1 teaspoon lemon extract.
If you prefer a smaller cake, you can bake the batter in a 9-inch square pan for 30–35 minutes, but adjust the serving size to 9 squares.
Why Sprinkles Bleed and How to Prevent It
Sprinkles can bleed their color into the batter, creating streaks. To minimize this, use jimmies (long, thin sprinkles) rather than nonpareils (tiny round balls), which tend to bleed more. Fold them in gently and don’t overmix. If you want a more vibrant interior, toss the sprinkles with 1 teaspoon of flour before adding them to the batter.
The cake is safe to eat once baked, as the eggs and flour are fully cooked. If you lick the batter, remember that raw flour and raw eggs can carry bacteria. Heat-treat the flour in a 350°F (175°C) oven for 5 minutes and use pasteurized eggs if you plan to taste the batter.
Frosting and Serving
This cake is best served at room temperature, so take it out of the fridge 30 minutes before serving. Use a serrated knife to slice cleanly. The cake pairs well with fresh berries or a scoop of vanilla ice cream. Store leftover cake covered at room temperature for up to 2 days, or refrigerate for up to 4 days. If refrigerated, let it come to room temperature before serving.
Related
- Sheet Pan Lemon Garlic Butter Salmon Recipe
- Honey Garlic Sausage and Sweet Potatoes Sheet Pan Dinner
- Chocolate Cake Mix and Pumpkin Recipe
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).
