Do you have a gender reveal party or baby shower coming up? This Piñata Cake is a playful way to celebrate — when you cut into it, pink or blue candy pours out!

I am so excited to share this cake! There’s a sweet story behind it, and it’s easily one of my favorite cakes I’ve made. This Gender Reveal Piñata Cake is a fun, surprising way to reveal a baby’s gender. Instead of colored cake or frosting, candy — dyed pink or blue — cascades out when you cut a slice. The shock and delight on everyone’s faces made this dessert especially memorable.

This particular cake was a special order from colleagues who wanted to surprise one of our professors at a baby shower. They gave me creative freedom and I couldn’t resist turning the cake into a true piñata — so when the cake was cut, over a pound of Sixlets spilled out. It was chaotic and delightful!

How do you make a piñata cake? It’s simpler than it looks. I baked four 8-inch layers of confetti cake and removed the centers from two of them, leaving a 2-inch rim to form a cavity. On the cake board I stacked a whole layer, added frosting, and then placed the two ring-shaped layers on top. I spread frosting inside the cavity to reinforce it and then filled the hollow with color-matched candy. Finish by topping with the final whole layer and frosting the outside.


Tip: party stores sell large containers of color-coded candy, which is perfect if you want a dramatic candy cascade. I used a vanilla-almond confetti cake with vanilla-almond buttercream, but you can adapt this technique to any flavor. Below is the recipe I used; feel free to use it as-is or as inspiration for your own piñata cake.


Below is the full recipe and step-by-step instructions, including tips for assembling the cavity, frosting, and topping with ganache and decorations. This version yields about 30 servings and includes ingredients for the cake, buttercream, and the candy filling.

gender reveal piñata cake
Ingredients
- for the cake
- 2 cups granulated sugar
- 3 ½ cups all-purpose flour
- 3 teaspoon baking powder
- 1 teaspoon baking soda
- 1 teaspoon salt
- ½ cup {1 stick} unsalted butter at room temp
- 4 eggs
- ⅔ cup sour cream
- ½ cup vegetable oil
- 2 tablespoon vanilla extract
- ½ tablespoon almond extract
- 1 ⅓ cups whole milk
- ½ cup sprinkles
- 20 oz candy for filling
- for the frosting
- 1 ½ cups {3 sticks} unsalted butter at room temp
- 6 cups powdered sugar
- ¼-1/2 cup heavy cream {more or less as needed}
- 1 tablespoon vanilla extract
- 1 teaspoon almond extract
- pinch of salt
- food coloring as desired
Instructions
-
Preheat the oven to 350°F and prepare four 8-inch pans with nonstick spray or butter and flour.
-
In a stand mixer bowl, combine flour, baking powder, baking soda, salt, and sugar. Add the butter and beat on low until the mixture is sandy.
-
Whisk together oil, eggs, sour cream, vanilla, and almond extract in a small bowl. Add to the dry ingredients and mix until combined.
-
Pour in the milk and beat on medium-low until smooth. Gently fold in the sprinkles.
-
Divide batter among the pans and bake 22–25 minutes, or until a toothpick comes out clean. The tops may still look pale — that’s fine.
-
Cool cakes completely before handling; chilling for a few hours helps. Choose two layers and cut out the centers, leaving at least a 2-inch rim to form the cavity.
-
Make the frosting while the cakes cool.
-
In a mixer, beat butter, salt, vanilla, and almond extract until combined. Add powdered sugar slowly, one cup at a time.
-
Add heavy cream gradually until the frosting reaches your desired consistency; you may not need the full amount.
-
Remove about 2/3 cup of frosting and divide it into two small bowls. Tint one pink and one blue for decorating accents.
-
Place a dollop of white frosting on the cake board and set one whole layer on it. Spread frosting on the surface, then place a cut-out layer on top, add more frosting, and place the second cut-out layer. If desired, pipe or spread a thin layer of frosting inside the cavity for extra support.
-
Fill the cavity completely with candy so the top layer is supported and won’t collapse.
-
Spread frosting on the top of the ring layers and place the remaining whole cake layer on top.
-
Apply a thin crumb coat to seal in crumbs and chill the cake until set.
-
Once chilled, finish with a smooth outer layer of frosting. Make sure the cake is solidly chilled before adding ganache.
-
To make ganache, combine chocolate, cream, and corn syrup in a microwave-safe bowl. Heat in short intervals until smooth, let cool slightly, then transfer to a piping bag or squeeze bottle to decorate. Chill again if adding more frosting decorations.
-
When the ganache has set, pipe decorations using preferred tips (I used 1M, 21, and 4B). Serve immediately or refrigerate until ready.
