This might be the prettiest cake I ever did see. My Lemon Raspberry Cake is bright and bold without any artificial colors and made with pure ingredients. How wonderful is this cake for a Summer birthday? There are two layers of flavorful lemon butter cake with fresh raspberries baked right in. The cake is filled with raspberry vanilla whipped cream and all covered in a beautiful pink raspberry buttercream frosting. It's fresh while also being decadent and just totally delicious. If you love the combination of lemon and raspberry, check out my Raspberry Lemonade Cookies!

WHY THIS RECIPE WORKS
- Soft and tender lemon raspberry cake - the lemon cake layers are so soft and buttery with fresh raspberries baked right in.
- Homemade raspberry compote - this filling is so delicious and once you know how to make it, you can use it in so many other ways! It's so beautiful with its ruby red color and makes a wonderful topping on ice cream and a great filling for pastries and cupcakes too.
- Fresh raspberry cream filling - the filling is simple with some lightly sweetened fresh whipped cream marbled with some of the raspberry compote. The combination of raspberries and cream is so dreamy.
- Raspberry buttercream - look how beautiful this buttercream is! There is not a drop of food coloring in it. All of that color comes from the raspberries that have been cooked and concentrated to make the filling.

INGREDIENTS FOR LEMON RASPBERRY CAKE
Here are some notes about the ingredients. For a full list of ingredients, check out the recipe card at the bottom of the page.
- All purpose flour - you do not need specialty cake flour to make wonderful cakes. Just be sure to measure your flour correctly. Adding too much flour to the recipe is the most common mistake and leads to tough and dry cake. The most accurate way to measure flour is using a scale. If you don't have one then fluff your flour with a spoon, sprinkle it into your measuring cup, and use a knife to level it off.
- Granulated sugar - simple fine white granulated sugar keeps the flavor clean so the lemon shines.
- Pure vanilla extract - I like this Madagascar Bourbon Vanilla extract.
- Unsalted butter - butter brings the flavor! Butter and lemon is also a wonderful combination. I use melted butter for this recipe. Make sure it is cooled. You will also need very soft butter for the frosting.


- Oil - just a bit of oil is my secret to making soft cakes. Oil is liquid at room temperature while butter has more solid fats. That means if I were to use all butter, the cupcakes would have a firmer texture. Oil will help bring down the fat melting profile so that the cake layers stay soft. You can use any neutral oil like sunflower oil or canola oil.
- Egg - three whole eggs will provide structure, lift and of course flavor to these cakes. The egg yolks with the lemon zest create the natural yellow color of the crumb.
- Milk - you can use whole milk at 3.25% or 2% milk. I would avoid anything with less fat content than that (i.e. avoid skim milk).
- Sour cream - I love baking with sour cream. It adds rich dairy notes, body and tanginess.
- Whipping cream - the filling is so easy to make with just cream, sugar and lemon with a bit of the raspberry compote folded in. Make sure you use cold heavy cream with minimum 35% milk fat content.
- Raspberries - you'll make a quick and delicious raspberry filling from fresh or frozen raspberries, sugar, corn starch and a bit of lemon. You will use this to make the frosting and also for the filling.

STEP BY STEP INSTRUCTIONS FOR LEMON RASPBERRY CAKE
- STEP 1). First prepare the raspberry compote. Make the raspberry compote according to the recipe at the bottom of this post, then let it cool completely and chill for 1 hour.
- STEP 2). Make the cake batter. Combine cooled melted butter, oil, sugar and lemon zest in a large bowl and whisk until combined and the mixture looks a bit fluffy. It will look more like wet sand as the butter is melted, but it should fluffy up a bit if the butter is cooled. Whisk in eggs one at a time. Whisk in vanilla and sour cream.
- STEP 3). Combine dry ingredients. Sift flour, baking powder, baking soda and salt into another bowl and whisk until evenly blended.
- STEP 4). Add wet and dry ingredients. Add the dry ingredients to wet ingredients and fold them in gently. When they are mostly combined, add milk in 2 stages and fold it in. Use a whisk at the last stage to make a smooth batter, but do not over-mix. Fold in raspberries.
- STEP 5). Bake. Divide the batter evenly between the prepared pans and bake until lightly golden and a skewer inserted into the center comes out clean. Transfer to a wire rack and let cool completely.
- STEP 6). Make the cream filling. Place cream in a medium bowl and whip with an electric hand mixer (or by hand if you're willing) until it forms soft peaks. Add the sugar and lemon juice and beat until it forms firm peaks. Add the raspberry compote and fold it in. It's OK if there are streaks of raspberry as it looks really pretty. Keep chilled until ready to use.
- STEP 7). Make the frosting. Place soft butter in a large bowl and beat with an electric hand mixer until very smooth and fluffy. Add the powdered sugar and vanilla and slowly beat until it is incorporated and then increase the speed and beat for about 2 minutes until pale and fluffy. Gradually beat in the cream 1 tablespoon at a time until the frosting is smooth and spreadable, then gradually beat in the compote on low speed. Do not over-beat at this point since the water in the compote has a tendency to cause the frosting to split, especially if it is cold.
- STEP 8). Assemble the cake. Place one cake layer on a serving plate. Use a small offset spatula to spread the cream filling over the top, spreading it out to the edges. Place the other layer on top so it aligns with the sides of the bottom layer. Cover the entire cake with raspberry buttercream and use a large offset spatula to even out the sides and make swooshes and swirls on the top layer. Dollop small spoonfuls of raspberry on top and swirl them in if desired. Decorate with fresh raspberries and lemon slices.

EXPERT BAKING TIPS
- Do not over-bake. The cakes are ready when they spring back when pressed gently and a skewer comes out clean. They will not get very browned on the top, just lightly golden so don't wait for browning.
- Use very soft (but not melted) butter for the frosting. Take your butter out of the fridge two hours before you plan to make the frosting. I usually take mine out the night before if it's not a hot day. It should be nice and soft but not melted to whip properly and incorporate evenly with the raspberry sauce.
- Have eggs at room temperature. Take your eggs out of the fridge 2 hours before baking, or place them in a bowl of warm water for 15 minutes.
- Sift the dry ingredients. This is a simple recipe that doesn't require a mixer, so to ensure you get a smooth batter that is homogeneous, it is important to sift the flour. This will help it incorporate evenly.
- Fold the berries in gently. Fold the berries in at the last step to prevent handling them too much and preserve their shape.
- Use fresh berries. Frozen raspberries will change how this cake bakes and will leach more moisture into the batter to change the texture. I recommend fresh raspberries for this recipe.
- Make the raspberry compote ahead of time - you can prepare the compote up to 2 days in advance to save you time on the day you're making the cake.


RECIPE FAQ
Firstly - use a fresh oil! Do not use anything that's been opened for a long time and when you store oil, it should be in a cool dark place. Light and heat accelerate oxidation reactions that can make the flavor turn rancid. My oil of choice for baking is sunflower oil for its clean and neutral taste, but any other oil such as canola or safflower will do.
Once the centers are springy and a toothpick comes out clean the cakes are ready. They do not get very brown, just lightly golden around the edges.
It's not more fat! Moisture comes from liquid, not fat. So you can add more butter and more oil, but it will really just make the cake more dense and more tender by shortening the texture. Fat will not make a cake moist as only liquids can add moisture. This cake is moist because of the amount of liquid.
A bit of oil makes the texture very soft and in turn gives the perception of "moistness". That's because oil is made up of mostly unsaturated fats that are liquid at room temperature. Butter contains more saturated fats that are solid at room temperature, therefore the texture of a butter cake will be more crumbly and firm.
Frozen raspberries will change how this cake bakes and will leach more moisture into the batter to change the texture. I recommend fresh raspberries for this recipe.
Yes you can make the cakes (without the filling and the frosting) up to one day in advance and store them refrigerated due to the fresh fruit inside. The next day you can assemble the cake.
Yes, you can make the raspberry compote up to 2 days in advance and keep it covered and refrigerated until ready to use it.

STORING AND FREEZING
This cake must be stored in the refrigerator since it has fresh fruit and a fresh cream filling.
You can wrap and freeze unfrosted and unfilled cake layers for up to three months. Wrap them individually in plastic wrap and place in a resealable freezer bag for storage.

Baking with raspberries
Looking for other recipes with raspberries? Try these:
More layer cakes
Here are more cake recipes to try:
If you love cakes, check out these recipes!
Ultimate Moist Chocolate Fudge Cake Creme Brulee Cupcakes THE BEST Moist Chocolate Cake Lemon Curd Cupcakes Lemon Pistachio Cake Sticky Toffee Date Cake Moist Lemon Blueberry Bread Olive Oil Chocolate Bundt Cake Best Vanilla Cupcake Recipe with Chocolate Fudge Frosting Chocolate Chip Banana Cake with Creamy Milk Chocolate Frosting Blueberry Peach Upside Down CakeVideo
Lemon Raspberry Cake
Ingredients
Cake batter:
- ¼ cup 56g unsalted butter, melted and cooled
- ¼ cup 60ml sunflower oil (or vegetable oil or canola oil)
- 1 ¼ cups 250g granulated sugar
- 1 tablespoon lemon zest
- 1 teaspoon 5ml pure vanilla extract
- 3 large eggs, at room temperature
- ½ cup 120ml full fat sour cream
- 1 ¾ cups 250g all-purpose flour
- 1 ¼ teaspoon baking powder
- ¼ teaspoon baking soda
- ½ teaspoon salt
- ½ cup 120ml whole milk, at room temperature
- 1 ¼ cups 150g fresh raspberries
Raspberry Compote:
- 1 ¼ - 1 ½ cups 170g fresh or frozen raspberries (do not thaw)
- 2 tablespoon 25g granulated sugar
- ½ teaspoon a squeeze lemon juice
- 2 teaspoon 10ml water
- 1 ½ teaspoon 4g cornstarch
Cream Filling:
- ¾ cup 180ml 35% heavy whipping cream
- 1 tablespoon 12g granulated sugar
- 1 teaspoon 5ml freshly squeezed lemon juice
- 2 tablespoon 30ml cold Raspberry Compote *see recipe above*
Frosting:
- ⅔ cup 150g unsalted butter, very soft
- 2 cups 240g powdered confectioner's sugar
- 1 teaspoon 5ml pure vanilla extract
- 3 tablespoon 45ml heavy 35% whipping cream, at room temperature
- 2 tablespoon 30ml Raspberry Compote (at room temperature - not cold) *see recipe above*
Instructions
- Make & cool the raspberry compote. The raspberry sauce must cool down completely before using, so I recommend making it first. Combine raspberries, granulated sugar, and lemon juice together in a small saucepan over medium heat. Cover and let cook for 3 minutes until the berries are thawed and start breaking down. Stir the mixture as it comes to a simmer, breaking up some of the raspberries as you stir.
- Once the raspberries have broken down and are simmering, mix water with cornstarch in a very small bowl. Add the cornstarch mixture and stir it in. Continue to cook and stir until it begins to bubble and thicken. Remove the pan from heat and pass it through a fine mesh sieve to remove the seeds if desired. I like to leave the seeds in. Allow the raspberry sauce to cool completely and chill for at least 30 minutes before using. Cover and store for up to 1 week in the refrigerator.
- Preheat the oven to 350°F. Line the base of two 8-inch round cake pans with rounds of parchment paper. I don't even grease my pans because I like the batter to cling to the sides for more height, but if you prefer it then you can lightly grease the sides.
- Make the cake layers. Combine cooled melted butter, oil, sugar and lemon zest in a large bowl and whisk until combined and the mixture looks a bit fluffy. It will look more like wet sand as the butter is melted, but it should fluffy up a bit if the butter is cooled. Whisk in eggs one at a time. Whisk in vanilla and sour cream.
- Sift flour, baking powder, baking soda and salt into another bowl and whisk until evenly blended.
- Add the dry ingredients to wet ingredients and fold them in gently. When they are mostly combined, add milk in 2 stages and fold it in. Use a whisk at the last stage to make a smooth batter, but do not over-mix. Fold in raspberries.
- Divide the batter evenly between the prepared pans and bake for 20-25 minutes until lightly golden and a skewer inserted into the center comes out clean. Transfer to a wire rack and let cool completely.
- Make the cream filling. Place cream in a medium bowl and whip with an electric hand mixer (or by hand if you're willing) until it forms soft peaks. Add the sugar and lemon juice and beat until it forms firm peaks. Add the raspberry compote and fold it in. It's OK if there are streaks of raspberry as it looks really pretty. Keep chilled until ready to use.
- Make the frosting. Place soft butter in a large bowl and beat with an electric hand mixer until very smooth and fluffy. Add the powdered sugar and vanilla and slowly beat until it is incorporated and then increase the speed and beat for about 2 minutes until pale and fluffy. Gradually beat in the cream 1 tablespoon at a time until the frosting is smooth and spreadable, then gradually beat in the compote on low speed. Do not over-beat at this point since the water in the compote has a tendency to cause the frosting to split, especially if it is cold.
- Assemble the cake. Place one cake layer on a serving plate. Use a small offset spatula to spread the cream filling over the top, spreading it out to the edges. Place the other layer on top so it aligns with the sides of the bottom layer. Cover the entire cake with raspberry buttercream and use a large offset spatula to even out the sides and make swooshes and swirls on the top layer. Dollop small spoonfuls of raspberry on top and swirl them in if desired. Decorate with fresh raspberries and lemon s














Eileen Perron
How would I make this recipe gluten-free? Can I just substitute the all-purpose flour for almond flour? Thank you!
christina.marsigliese
Hi Eileen! Others have used gluten-free flour (i.e. from Bobs Red Mill) and had success.
Anna
I made this cake and compote recipe a few weeks ago (I used a different frosting recipe).
It was a hit and completely devoured! The cake is tender and flavour filled 👌
It has promptly been entered into my catalog of go to recipes.
I divided into 2 x 7" round tins.
150°c for 40mins.
Cooked with cakes strips.
christina.marsigliese
Thank you so much Anna! Glad you enjoyed the cake 🙂
Anna
Hi ! I'm planning to make this cake for a birthday.
I'm wondering if it possible to bake it in a single pan and cut it horizontally later ?
Are there any sour cream substitutions ?
Thanks in advance
christina.marsigliese
Hi Anna, full-fat Greek yogurt is the best substitute for sour cream. As for the baking in one pan, what size are you thinking of? It would need to be larger pan to fit the amount of batter and you would need to increase the baking time.
Madiana
Would a 9½ inch (25cm) wide x 2 inch (5cm) deep Cake Tin work? How much longer would you recommend baking for?
Thanks!
christina.marsigliese
Hi Madiana, I would not recommend baking this cake in a 9 inch square as it is a heavier batter with the fruit. Instead I would recommend a 13x9.
Sandy
Hi! This cake was delicious! My only question is that since it was in the fridge for the whipped cream layer, the buttercream icing got a bit too solid. How long would you think I could take it out of the fridge before serving to still keep the whipped cream stable? Thanks!
Sandy
This recipe was great and the taste was so light and summery! Just a question about serving it, though. It says to refrigerate it because of the whipped cream ram but I found the buttercream to be a bit too solid straight out of the fridge. How long can I have it out to soften the frosting without compromising the whipped cream layer? Thanks!
christina.marsigliese
Thanks Sandy! I would recommend allowing the cake come to about room temperature before serving.
Tommy
I just made this cake and it was delicious! Thank you. The only problem for me, was I found the frosting abit too sweet. How much would you suggest I reduce the icing sugar by for the frosting? Thanks
Veejal
I made this cake for a friend’s birthday and she absolutely loved it! Omitted the fresh raspberries in the cake as they’re very expensive where I live, and added some homemade lemon curd - i spread a generous layer on the first cake before adding the cream filling, and swirled it on top of the icing with the remaining raspberry compote. Would recommend this recipe among many others, Scientifically Sweet has never let me down!
christina.marsigliese
Thank you so so much Veejal! I love how you modified it to suit your needs.
Sofia
How can I replace sour cream, it's just that here in Argentina Sour cream is not made.
Anna
Plain yogurt would probably work
Kelli
Could you switch the raspberries for strawberries and have the recipe still work?
christina.marsigliese
Hi Kelli, strawberries have a lot more moisture so I wouldn't recommend it.
Jacob Hewitt
Thanks for only being half insane and giving reasonable measurements next to the word "cup". Normally I like Americans but every time I look up a recipe online I get filled with an unholy rage and start to fantasize about a War of Independence 2. I have about 6 cups and they are all different sizes so saying "2 Cups" means literally nothing to me. Its the dumbest idea anyone has ever come up with and drives me crazy, we have kitchen scales for a reason.
5 star rating for actually telling me how much of each thing to use. Its a low bar I know, but here we are.
christina.marsigliese
LOL Thanks Jacob. I believe in weighing ingredients for baking as well. It's the only way to be accurate.
Rosie
I recently made your carrot cake and loved your cream cheese icing for it.... do you think this particular cake would go well with the cream cheese icing? I think the combination of raspberries and lemon would go great!
christina.marsigliese
YES! That would be delicious.
Poppy
What a lovely cake. I love how vibrant it is and it's very flavorful.
Vanessa
This is the perfect cake for Summer. I love the colors and the flavors really pop.
Amy
I made this cake for my mom's birthday because she loves everything lemon and raspberry, and she was so impressed! It was easy for me to make but looks and tastes so good. The flavors are really bright and I called it a raspberry lemonade cake. Thanks for the recipe.
christina.marsigliese
Thank you Amy! I'm happy your Mom enjoyed it and I love your choice of name for the cake!
Tasneem Syed
Hi
Love your recipes do I need to double the ingredients for a 9x12 sheet cake for lemon raspberry cake .
Thank you in advance
christina.marsigliese
Hi Tasneem! Thanks. This recipe will work in a 9x12 inch pan without any adjustments to measurements. You may need to modify the baking time though.
Stephen
Made this because it looked delicious. While yes, it was delicious, it was very complex. And, like the recipe mentions about the frosting (that it may split), that in fact did happen to me even though I made sure to not have the compote super chilled.
For the work, it's a 3/5. However, the taste is absolutely phenomenal which would make it a 5/5.