This vanilla cake with colorful sprinkles is a bright, sweet dessert suitable for birthday parties, potlucks, or weekend celebrations. It features a moist crumb and a creamy frosting made without milk or butter, making it an option for those avoiding dairy. Serve this cake with fresh berries or a glass of cold almond milk.
Cake Batch Scaling
Adjust the quantities based on the desired yield. Use the table below to scale the ingredients for different crowd sizes. When doubling the recipe, use two 9-inch (23 cm) round pans instead of one deep pan to ensure the center bakes through without burning the edges.
| Batch Size | Pan Size | Yield |
|---|---|---|
| Half Batch | 6-inch (15 cm) round | About 4-6 servings |
| Full Batch | 9-inch (23 cm) round | About 10-12 servings |
| Double Batch | Two 9-inch (23 cm) rounds | About 20-24 servings |
Necessary Equipment
A 9-inch (23 cm) round cake pan is the standard for this recipe. If you do not have one, an 8-inch (20 cm) pan can be used, but the batter will be deeper and require an additional 5-10 minutes of baking time. A hand mixer or stand mixer is used to cream the dairy-free butter and sugar; if neither is available, a whisk and significant manual effort can work, though the batter may be less aerated.
For the frosting, a rubber spatula is necessary for folding in the sprinkles without deflating the cream. A wire cooling rack is used to prevent the bottom of the cake from becoming soggy due to trapped steam after it leaves the oven.
Ingredients
- 2 1/2 cups (315 g) all-purpose flour (heat-treated to 160°F/71°C)
- 1 1/2 cups (300 g) granulated sugar
- 1 tablespoon (15 ml) baking powder
- 1/2 teaspoon (3 g) salt
- 3/4 cup (170 g) dairy-free butter, softened to room temperature
- 1 cup (240 ml) unsweetened almond milk or soy milk, room temperature
- 2 large eggs, room temperature (pasteurized)
- 1 tablespoon (15 ml) pure vanilla extract
- 1/2 cup (60 g) rainbow sprinkles (ensure they are dairy-free)
- 1/2 cup (115 g) dairy-free butter, softened for frosting
- 3 cups (360 g) powdered sugar, sifted
- 2 tablespoons (30 ml) unsweetened almond milk
- 1 teaspoon (5 ml) vanilla extract for frosting
- 1/4 cup (30 g) rainbow sprinkles for frosting
Instructions
- Preheat the oven to 350°F (175°C). Grease a 9-inch (23 cm) round cake pan with dairy-free butter and dust it with a small amount of flour, tapping out the excess.
- Heat-treat the flour: Spread the all-purpose flour on a baking sheet and bake at 350°F (175°C) until it reaches an internal temperature of 160°F (71°C) on a food thermometer. Let it cool completely before using. This step is required to eliminate bacteria in raw flour.
- In a large bowl, whisk together the heat-treated flour, granulated sugar, baking powder, and salt until combined.
- Add the softened dairy-free butter, almond milk, pasteurized eggs, and vanilla extract to the dry ingredients. Beat on medium speed with a mixer for 2-3 minutes until the batter is smooth and pale.
- Gently fold in 1/2 cup (60 g) of rainbow sprinkles using a spatula. Do not overmix, or the sprinkles may bleed color into the batter.
- Pour the batter into the prepared pan and smooth the top with a spatula.
- Bake at 350°F (175°C) for 30-35 minutes. The cake is done when a toothpick inserted into the center comes out clean or with just a few moist crumbs, and the edges have slightly pulled away from the sides of the pan.
- Remove the cake from the oven and let it cool in the pan for 10 minutes. Invert the cake onto a wire rack to cool completely for about 1 hour 30 minutes before frosting.
- To make the frosting, beat the 1/2 cup (115 g) of softened dairy-free butter for 2 minutes until creamy. Gradually add the powdered sugar, almond milk, and vanilla extract. Beat on low until incorporated, then high for 2 minutes until fluffy.
- Fold in the remaining 1/4 cup (30 g) of sprinkles.
- Spread the frosting evenly over the top and sides of the cooled cake.
Cake Doneness and Texture
Checking for doneness is critical to avoid a gummy center or dry edges. Use a wooden skewer or toothpick; it should not have wet batter clinging to it. The cake top should spring back when lightly pressed with a finger. If the center is still soft, bake in 5-minute increments.
The crumb should be tender and slightly open. If the cake sinks in the middle, it may have been over-mixed, incorporating too much air, or the oven door was opened too frequently during the first 20 minutes of baking. If the sprinkles have bled and turned the cake a muddy color, the sprinkles were likely stirred in too vigorously or the batter sat too long before entering the oven.
Dairy-Free Substitutions
Different dairy-free fats change the texture of the cake. Using a vegan butter stick (oil-based) provides the closest match to traditional butter in terms of structure and flavor. Using coconut oil (solid state) will add a slight coconut flavor and may result in a slightly denser cake. If using margarine, check the label for dairy derivatives like whey or casein.
For the milk, almond milk is neutral and works well. Soy milk provides more protein, which can lead to a slightly better rise and a more stable crumb. Oat milk is creamier and adds a subtle sweetness. Avoid using coconut milk from a can unless it is diluted with water, as the high fat content can make the cake too heavy and greasy.
If you need to replace the eggs for a vegan version, use a commercial egg replacer or a “flax egg” (1 tablespoon ground flaxseed meal mixed with 3 tablespoons water, let sit for 5 minutes). Note that flax eggs will result in a darker cake with a nuttier flavor and a slightly less fluffy texture.
Cake Storage and Safety
Because this cake contains perishable items like dairy-free butter and eggs, it must be handled with care. Refrigerate the cake within 2 hours of frosting. Store the cake in an airtight container or a cake dome in the refrigerator for 3-4 days.
To serve the cake at its best texture, remove it from the refrigerator about 30-60 minutes before eating. This allows the dairy-free butter in the cake and frosting to soften, improving the mouthfeel. If the cake is stored in the freezer, wrap it tightly in plastic wrap and then aluminum foil; it will keep for up to 3 months. Thaw in the refrigerator overnight before bringing it to room temperature.
When reheating individual slices in a microwave, use 10-15 second bursts. Be aware that the frosting will melt quickly, so it is often better to eat the cake chilled or at room temperature. Always ensure leftovers are reheated to a safe internal temperature of 165°F (74°C) if they have been stored for several days, although this is rarely necessary for a sugar-based cake.
Sprinkle and Color Variations
The standard rainbow sprinkles provide the classic funfetti look. For a themed event, use a single color of sprinkles, such as blue and silver for a winter theme or pink and red for Valentine’s Day. If using naturally dyed sprinkles, be aware that the colors may fade more quickly during the baking process than synthetic dyes.
For a more intense vanilla flavor, replace the vanilla extract with vanilla bean paste. This will add small black specks of vanilla bean to the batter, complementing the colorful sprinkles. You can also add a pinch of almond extract (1/4 teaspoon) to the batter to give the cake a professional bakery taste. If you prefer a citrus note, add 1 teaspoon of lemon zest to the dry ingredients; this cuts through the sweetness of the frosting.
Related
- Funfetti Cake Mix Cobbler Recipe
- Funfetti Cake Mix Muffins from a Box Mix
- Dairy-Free Cake at M&S: What to Know
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).