Peanut Butter Confetti Cake Recipe with Rainbow Sprinkles
In this article
A peanut butter confetti cake combines the rich, creamy flavor of peanut butter with the joyful pop of rainbow sprinkles in a soft, moist vanilla cake. This dessert is perfect for birthdays, bake sales, or any occasion that calls for fun and flavor. The peanut butter adds depth without overpowering, while the confetti creates a festive look and subtle crunch.
Ingredients
- 1 ¾ cups (220g) all-purpose flour
- 1 ½ teaspoons baking powder
- ½ teaspoon baking soda
- ½ teaspoon salt
- 1 cup (240g) unsalted butter, softened to room temperature
- 1 ½ cups (300g) granulated sugar
- 2 large eggs, room temperature
- 1 teaspoon pure vanilla extract
- ½ cup (130g) creamy peanut butter (not natural or oily style)
- 1 cup (240ml) buttermilk, room temperature
- ½ cup (60g) rainbow sprinkles (jimmies or nonpareils, avoid melting types)
Instructions
- Preheat the oven to 350°F (175°C). Grease and flour two 8-inch round cake pans, or line them with parchment paper for easier release.
- In a medium bowl, whisk together the flour, baking powder, baking soda, and salt. Set aside.
- In a large mixing bowl, beat the softened butter and sugar together with an electric mixer on medium speed for 2–3 minutes, until light and fluffy.
- Add the eggs one at a time, beating well after each addition. Mix in the vanilla extract and peanut butter until fully combined and smooth.
- Gradually add the dry ingredients to the wet mixture, alternating with the buttermilk. Begin and end with the dry ingredients (three additions of dry, two of buttermilk). Mix on low speed just until incorporated—do not overmix.
- Gently fold in the rainbow sprinkles using a rubber spatula. Only stir until evenly distributed to prevent color bleeding.
- Divide the batter evenly between the prepared pans. Smooth the tops with a spatula for even layers.
- Bake for 28–33 minutes, or until a toothpick inserted into the center comes out clean or with a few moist crumbs.
- Allow the cakes to cool in the pans for 10 minutes, then run a knife around the edges and invert them onto a wire rack to cool completely before frosting.
- While cakes cool, prepare peanut butter buttercream (optional): beat ½ cup (115g) softened butter, 1 cup (260g) creamy peanut butter, 3 cups (360g) powdered sugar, 1–2 tablespoons heavy cream, and ½ teaspoon vanilla until smooth and spreadable.
- Frost the cooled cake layers with a crumb coat, chill for 15 minutes, then apply a final layer of frosting. Decorate with extra sprinkles on top or around the edges.
Tips
- Use shelf-stable peanut butter (like Jif or Skippy) instead of natural versions to prevent oil separation in the batter.
- Room temperature ingredients blend more smoothly. Take butter, eggs, and buttermilk out 1–2 hours before baking.
- Do not overmix after adding flour—this can lead to a dense, tough cake. Mix until just combined.
- For bright confetti, use sprinkles that are labeled as 'non-melting' or 'baking stable' to minimize color bleed.
Serving Suggestions
Serve slices of peanut butter confetti cake at room temperature for the best texture. Pair with cold milk, peanut butter cups on the side, or a scoop of vanilla ice cream for a decadent dessert. This cake is especially popular at children's birthday parties, school events, or as a surprise treat during weekend gatherings. For a festive presentation, dust with powdered sugar or add a drizzle of melted chocolate over the top.
Variations
For a chocolate twist, replace ¼ cup of flour with ¼ cup unsweetened cocoa powder in the dry ingredients. To make cupcakes, divide the batter into lined muffin tins and bake for 18–22 minutes. For a nut-free version, substitute sunflower seed butter and ensure sprinkles are allergen-safe. You can also swap buttermilk with a mix of 1 cup milk and 1 tablespoon lemon juice or vinegar, let it sit 5 minutes before use.
Storage and Reheating
Store the unfrosted cake layers wrapped in plastic at room temperature for up to 2 days, or freeze for up to 3 months. Once frosted, keep the cake covered at room temperature for 1–2 days or in the refrigerator for up to 5 days. If refrigerated, bring to room temperature before serving for optimal texture. Do not reheat the cake—this can melt the frosting and dry out the crumb. Leftover slices can be frozen individually in airtight containers for up to 2 months; thaw in the refrigerator overnight.
Frequently Asked Questions
Can I use natural peanut butter in this cake?
No, natural peanut butter tends to separate and add excess oil to the batter, which can result in a greasy or dense texture. Stick to conventional creamy peanut butter that is shelf-stable and fully mixed.
Why did my sprinkles bleed color into the batter?
Some sprinkles, especially nonpareils or cheap varieties, are not designed for baking and dissolve easily. Use 'jimmies' or sprinkles labeled 'baking stable' to retain color and texture.
Can I make this cake ahead of time?
Yes. Bake and cool the layers up to two days in advance and store them wrapped at room temperature. Frost the day of serving for the freshest look. Unfrosted layers can also be frozen for longer storage.
Is this cake safe for people with nut allergies?
No, this recipe contains peanut butter and is not safe for individuals with peanut or tree nut allergies. A sunflower seed butter substitution can be used to make a nut-free version, but ensure all other ingredients are processed in nut-free facilities.
Can I use a different milk instead of buttermilk?
Yes. Make a buttermilk substitute by adding 1 tablespoon of lemon juice or white vinegar to 1 cup of milk. Let it sit for 5 minutes before using. Do not use plain milk without acidification, as it affects texture and rise.
How do I prevent a dry cake?
Avoid overbaking—start checking at 28 minutes. Use accurate measurements (spoon flour into the cup and level off) and do not overmix the batter once flour is added. Buttermilk and proper fat content help retain moisture.