White Chocolate Raspberry Layer Cake
This white chocolate raspberry cake is the kind of dessert you pull out when you want something that looks bakery-worthy but tastes even better. The cake itself is soft and buttery, studded with real white chocolate.

A ribbon of bright, tangy raspberry filling cuts straight through all that sweetness, and the creamy white chocolate frosting holds it all together without feeling heavy. It’s the cake I make when berries are at their best.
What Makes This Cake So Good
The white chocolate in the batter keeps each layer rich and tender, rather than just sweet. Instead of relying on extract, melted white chocolate and a little sour cream give the crumb a buttery, almost velvety texture.
That raspberry filling is the real secret. It’s just berries, sugar, and a touch of lemon cooked down until thick and glossy, so every bite has a bright pop of fruit. Nothing artificial, nothing complicated.
Ingredients

- 1 cup (2 sticks) unsalted butter, softened: bring to room temperature for easy creaming
- 1 1/2 cups granulated sugar: plain white sugar works best here
- 4 large eggs, at room temperature: cold eggs can make the batter curdle
- 2 teaspoons vanilla extract: the real stuff, not imitation
- 4 oz white chocolate, melted and cooled slightly: pick a bar you’d eat on its own, not chips with stabilizers
- 2 1/2 cups all-purpose flour: spooned and leveled, not scooped
- 2 teaspoons baking powder: helps the cake rise
- 1/2 teaspoon baking soda: keeps the crumb tender with the sour cream
- 1/2 teaspoon salt: balances the sweetness
- 1 cup sour cream, at room temperature: full-fat gives the best texture
- For the raspberry filling: 2 cups fresh or frozen raspberries, 1/4 cup sugar, 1 tablespoon cornstarch, 1 teaspoon lemon juice
- For the white chocolate frosting: 8 oz cream cheese, softened; 1/2 cup unsalted butter, softened; 4 oz white chocolate, melted and cooled; 2 cups powdered sugar; 1 to 2 tablespoons heavy cream if needed
Variations / Substitutions
- Frozen raspberries: use them straight from the freezer, no need to thaw. The filling may need an extra minute or two to thicken.
- Dairy-free: swap the butter for a good plant-based stick alternative, use dairy-free cream cheese for the frosting, and choose a dairy-free sour cream or plain yogurt.
- Lemon instead of vanilla: replace the vanilla in the cake batter with the zest of one lemon for a lemon-raspberry white chocolate twist.
- Less sweet frosting: reduce the powdered sugar to 1 1/2 cups and whip in an extra tablespoon of heavy cream.
If you like the combination of berries and chocolate, our Chocolate Raspberry Brownies are another way to get your fix.
How to Make White Chocolate Raspberry Layer Cake
Step 1: Cook the Raspberry Filling

Combine the raspberries, 1/4 cup sugar, cornstarch, and lemon juice in a small saucepan over medium heat. Stir frequently and cook for 5 to 7 minutes, until the mixture bubbles and thickens to a jammy consistency.
It will look glossy and deep red. When you drag a spoon through, the trail should stay clear for a moment. Take it off the heat and let it cool completely before you assemble the cake.
Step 2: Cream the Butter and Sugar

In a large bowl, beat the softened butter and granulated sugar with an electric mixer on medium speed for 3 to 4 minutes, until light and fluffy. Add the eggs one at a time, beating well after each, then mix in the vanilla extract.
The mixture should be pale and smooth at this stage. Scrape down the sides and bottom of the bowl a couple of times so everything gets evenly creamed.
Step 3: Fold the Batter Together

Pour the melted white chocolate into the butter mixture and beat on low until just combined. In a separate bowl, whisk the flour, baking powder, baking soda, and salt. With the mixer on the lowest speed, add the dry ingredients to the butter mixture in three parts, alternating with the sour cream, starting and ending with the flour. Fold only until no dry streaks remain.
The batter will be thick and may have tiny flecks of white chocolate if you used a bar and had a few unmelted bits. Stop mixing the second the flour disappears, because overworking the batter will make the cake tough.
Step 4: Bake the Cake Layers

Preheat the oven to 350°F (175°C). Grease two 8-inch round cake pans and line the bottoms with parchment. Divide the batter evenly between the pans and smooth the tops. Bake for 28 to 32 minutes, until a toothpick inserted in the center comes out clean.
The tops will be golden and spring back when you press them lightly. Let the cakes cool in the pans on a wire rack for 10 minutes, then turn them out onto the rack to cool completely.
Step 5: Swirl the Frosting and Top with Raspberries

For the frosting, beat the cream cheese and butter together until smooth. Add the melted white chocolate and beat again, then gradually mix in the powdered sugar until fluffy. If the frosting feels too stiff, add heavy cream a teaspoon at a time. Place one cake layer on a serving plate, spread a thick layer of frosting over the top, and spoon the cooled raspberry filling on top, leaving a narrow border around the edge. Set the second layer on top, then frost the top and sides with the remaining frosting.
Swirl the top with the back of a spoon and scatter a handful of fresh raspberries over the cake right before serving. Slice at room temperature so the frosting softens and the raspberry ribbon peeks out from between the layers.
Tips for a Perfect Layer Cake
- Chilling the cake for 20 minutes after frosting sets the layers and helps you get cleaner slices.
- If your raspberry filling thickened too much while cooling, stir in a teaspoon of water or lemon juice to loosen it before spreading.
- For a perfectly smooth frosting finish, run an offset spatula under hot water, dry it, and glide it over the sides for one final pass.
- Tuck small strips of parchment under the bottom layer before frosting, then pull them out afterward for a clean serving plate.
Bake times shift a little depending on your pan size.
| Pan size | Bake time |
|---|---|
| Two 8-inch rounds | 28 to 32 minutes |
| Two 9-inch rounds | 24 to 28 minutes |
Keeping the Cake Fresh
- Refrigerate: cover the cake tightly and store in the fridge for up to 4 days. The frosting contains cream cheese, so it needs the chill.
- Serve at room temperature: let slices sit out for about 20 minutes before eating so the cake softens and the flavors come through.
Frequently Asked Questions
Can I use frozen raspberries for the filling?
Yes, cook them straight from frozen. The mixture will take a minute or two longer to bubble and thicken.
My frosting turned out too runny. What went wrong?
The white chocolate was probably too warm when you added it, or the cream cheese was too soft. Chill the bowl for 15 minutes, then beat it again, and it should thicken up.
Can I make the cake layers ahead of time?
Absolutely. Bake the layers, cool them completely, wrap each tightly in plastic, and keep them at room temperature overnight. Frost and fill the next day.
What if I don’t have sour cream?
Plain full-fat yogurt works just as well. The cake stays tender either way.

White Chocolate Raspberry Layer Cake Recipe
Ingredients
Method
- Combine raspberries, 1/4 cup sugar, cornstarch, and lemon juice in a saucepan over medium heat. Cook, stirring often, for 5 to 7 minutes until thickened and glossy. Cool completely.
- Beat the softened butter and sugar on medium speed for 3 to 4 minutes until fluffy. Add eggs one at a time, then vanilla, mixing well after each.
- Mix in the melted white chocolate. Whisk flour, baking powder, baking soda, and salt together. Add dry ingredients to the batter in three additions, alternating with sour cream, starting and ending with flour. Fold just until combined.
- Preheat oven to 350°F (175°C). Divide batter between two greased 8-inch round pans. Bake 28 to 32 minutes until a toothpick comes out clean. Cool 10 minutes in pans, then turn out onto a rack to cool completely.
- Beat cream cheese, butter, and melted white chocolate until smooth. Gradually add powdered sugar, then heavy cream if needed for spreadability. Fill and frost the cake with the frosting and raspberry filling. Swirl the top and scatter fresh raspberries before serving.
