Skip to main content
Zimt

Home baking recipes and cinnamon favourites

Gender Reveal Heart Cake Recipe – Pink or Blue Surprise

A gender‑reveal heart cake makes a dramatic statement at any baby shower or family gathering. By baking a two‑tone vanilla cake, inserting a hidden colored center, and cutting the heart open, you get an instant pink or blue burst that reveals the baby’s sex in a fun, edible way.

Ingredients

  • 2 ½ cups (315 g) all‑purpose flour
  • 2 ½ tsp baking powder
  • ½ tsp baking soda
  • ¼ tsp salt
  • \n
  • 1 cup (226 g) unsalted butter, softened
  • 1 ½ cups (300 g) granulated sugar
  • 4 large eggs, room temperature
  • 2  tsp pure vanilla extract
  • 1 cup (240 ml) whole milk, room temperature
  • ¼ cup (60 ml) heavy cream (for the hidden filling)
  • Pink gel food coloring (or natural beet juice)
  • Blue gel food coloring (or natural blueberry puree)
  • 2 cups (240 g) confectioners’ sugar
  • ¼ cup (60 g) butter, softened (for frosting)
  • 2 tbsp milk or cream (for frosting consistency)
  • Red food‑grade heart‑shaped cookie cutter, 8‑inch diameter

Instructions

  1. Preheat the oven to 350°F (175°C). Grease two 8‑inch round cake pans and line the bottoms with parchment paper.
  2. In a medium bowl whisk together the flour, baking powder, baking soda, and salt. Set aside.
  3. Using a stand mixer on medium speed, cream the butter and granulated sugar until light and fluffy, about 3–4 minutes. Scrape down the sides.
  4. Add the eggs one at a time, beating well after each addition, then stir in the vanilla extract.
  5. With the mixer on low, alternately add the dry ingredients and milk, beginning and ending with the dry mixture. Mix just until incorporated; over‑mixing can make the cake dense.
  6. Divide the batter evenly into two separate bowls. To one bowl add enough pink food coloring to achieve a pastel pink (about 1 tsp gel, adjust as needed). To the other bowl add enough blue coloring for a pastel blue (about 1 tsp gel). Stir each until the color is uniform.
  7. Pour the pink batter into one prepared pan, spreading evenly. Then pour the blue batter on top of the pink layer, smoothing the surface. The two colors will remain distinct, creating a subtle marbled effect when cut.
  8. Bake for 25–30 minutes, or until a toothpick inserted into the center comes out clean and the top springs back lightly. The internal temperature should reach at least 200°F (93°C).
  9. Allow the cakes to cool in the pans for 10 minutes, then turn out onto a wire rack to cool completely.
  10. While the cakes are cooling, prepare the hidden colored filling. In a small saucepan gently heat the heavy cream, then stir in either pink or blue gel coloring (choose the color opposite the gender you wish to reveal). Let it cool to room temperature.
  11. When the cakes are fully cooled, use the heart‑shaped cutter to cut a heart from the center of each layer. You should have two heart halves – one pink‑tinted, one blue‑tinted – that will later be stacked.
  12. Place the pink heart on a serving plate. Spoon the colored cream filling into the cavity, spreading it evenly. Top with the blue heart, aligning the edges to form a complete heart shape.
  13. For the frosting, beat the softened butter until creamy, then gradually add confectioners’ sugar, milk, and a pinch of salt. Beat until light and spreadable. Frost the exterior of the assembled heart cake, smoothing with an offset spatula.
  14. Optional: pipe a decorative border or write a short message with additional frosting. Keep the cake refrigerated until ready to serve.
  15. When it’s time for the reveal, use a sharp knife to cut through the middle of the heart. The hidden colored filling will ooze out, displaying either pink or blue depending on the chosen gender.

Tips

  • Color intensity: Gel food coloring gives the most vivid hue without altering batter consistency. If using natural alternatives, add a teaspoon of beet juice for pink or blueberry puree for blue, but expect a slightly muted shade.
  • Even layers: Level the batter with a spatula before baking to avoid one side being thicker, which can cause uneven cutting and uneven color reveal.
  • Filling stability: Chill the colored cream filling for at least 30 minutes before inserting. This prevents it from leaking out while you assemble the cake.
  • Safety: Ensure the cake reaches an internal temperature of 200°F (93°C) to guarantee that any raw egg is fully cooked.

Serving Suggestions

Serve the heart cake on a decorative platter surrounded by fresh berries or edible flowers that complement the pink or blue theme. For a polished look, dust the top with a fine layer of powdered sugar using a stencil that reads “It’s a Boy!” or “It’s a Girl!” in matching colors. Pair the cake with a light vanilla or citrus‑infused sparkling water for a refreshing contrast to the sweet frosting.

If you want to keep the gender secret until the big moment, cover the cake with a dome or a sheet of parchment until guests arrive. The anticipation builds as the knife cuts through the frosting, unveiling the hidden hue in a dramatic splash.

Variations

Swap the vanilla base for chocolate or almond batter to match the parents’ favorite flavors. For a gluten‑free version, replace the all‑purpose flour with a 1‑to‑1 gluten‑free blend that contains xanthan gum. You can also experiment with a layered rainbow effect by adding additional colored batters (yellow, green) and using a larger heart cutter for a multi‑color surprise.

For a non‑edible version, bake the cake as described, then hollow out the interior and fill it with colored gelatin or whipped cream that sets firm. This creates a dramatic “exploding” effect while keeping the outside cake fully baked and safe to eat.

Storage and Reheating

Store any leftover cake in an airtight container in the refrigerator for up to 3 days. The frosting will stay fresh, and the colored filling will retain its consistency if kept chilled. Before serving leftovers, allow the cake to come to room temperature for about 30 minutes; this restores the crumb’s softness.

If you need to freeze the cake, wrap each heart half tightly in plastic wrap, then place in a freezer‑safe bag. Freeze for up to 2 months. Thaw overnight in the refrigerator, then bring to room temperature before frosting and assembling. Reheat individual slices in a microwave for 10‑15 seconds if a warm serving is desired, but avoid reheating the whole cake as the frosting may melt.

Frequently Asked Questions

Can I use store‑bought cake mix instead of making batter from scratch?

Yes. Follow the package instructions, then divide the prepared mix and add pink or blue gel coloring before baking. The texture may be slightly different, but the reveal effect will work the same.

What if the colored filling leaks out during assembly?

Chill the filling until it firms up, and use a piping bag to control the amount you place inside the cavity. If leakage persists, add a thin layer of uncolored whipped cream as a barrier before the colored filling.

Do I need to use a heart‑shaped cutter?

A heart cutter gives the classic look, but a round or square shape works as long as you can still create a hidden cavity. The key is to have a sealed interior that releases the colored filling when cut.

How can I make the cake vegan?

Replace the butter with a plant‑based spread, use a flax‑egg substitute (1 tbsp ground flaxseed + 3 tbsp water per egg), and choose a dairy‑free milk and cream alternative. Ensure the vegan frosting is made with powdered sugar, vegan butter, and a splash of plant milk.

Is it safe to eat the raw batter while testing colors?

No. Raw batter contains raw eggs and flour, which can harbor harmful bacteria. Test colors using a small cooked spoonful of batter instead of tasting raw mixture.

What internal temperature indicates the cake is fully baked?

The center should reach at least 200°F (93°C). Use an instant‑read thermometer inserted into the thickest part of the cake to verify.

Read next