This raspberry filling for cake is a glossy, tart fruit filling made from 2 cups of raspberries, sugar, fresh lemon juice, and a cornstarch slurry. It takes 15 minutes from start to finish and makes about 1¼ cups, enough to fill one or two cake layers. Fresh or frozen berries both work.
What makes it reliable is the order of things: the berries cook down first, then the slurry goes in and boils for 2 to 3 minutes until the filling coats a spoon. Chill it and it sets thick enough to stay put between layers, but still spreads smoothly with an offset spatula.

Following a special diet?
Every recipe on this site can be converted to gluten-free, vegan, dairy-free, keto, nut-free or egg-free with adjusted ratios so nothing falls flat.
Try the Recipe Converter →Good to Know Before You Start
- Yield: about 1¼ cups, enough for 1 to 2 cake layers
- Time: 5 minutes prep, about 10 minutes on the stove
- Ratio: 2 cups raspberries, ½ cup sugar, 2 tablespoons cornstarch
- Berries: fresh or frozen, no thawing needed
- Seedless: press the warm filling through a fine mesh sieve
- Storage: 5 days in the fridge, 3 months in the freezer
Raspberry Filling for Cake Layers (Seedless, Won’t Soak In)
Seeds are the first thing people notice in a sliced layer cake, so for stacked cakes I strain the filling. Let it cool in the pan for about 10 minutes, then push it through a fine mesh sieve with a silicone spatula. It takes a minute or two of patience and leaves you with a smooth, jewel colored filling that looks clean in every slice.
To keep the filling from soaking into the sponge or squeezing out the sides, pipe a ring of buttercream around the edge of the cake layer first. Spread the chilled raspberry filling inside that ring, leaving the dam a little higher than the filling, then add the next layer. Chilled filling matters here. Warm filling is looser and is more likely to run into the crumb.
If you would rather have a soft, creamy layer than a fruit layer, my raspberry mousse filling is made for exactly that. You can also use both: a thin layer of this fruit filling under a layer of mousse gives you bright flavor and a light texture in the same bite.
What Each Ingredient Does

Raspberries bring both the flavor and the liquid, so I do not add water to the pan. Frozen berries release their juice faster, which shortens the cooking time a little. I use frozen in winter and fresh in peak season.
Half a cup of granulated sugar keeps the natural tartness front and center. If your berries are very sour, you can go up to ¾ cup. Freshly squeezed lemon juice sharpens the berry flavor, and a pinch of salt keeps the sweetness from tasting flat. Cornstarch gives the glossy finish and the hold. I have tried flour, gelatin, and pectin in the past, and cornstarch gives the cleanest flavor and the best texture between layers. Vanilla is optional. I add it when the filling goes with chocolate, and skip it when I want pure raspberry.
Cooking It Down: What to Watch For

Cook the raspberries, sugar, lemon juice, and salt over medium heat for 5 to 6 minutes, stirring often. The berries collapse, the skins separate from the pulp, and the mixture starts to look like a loose jam. Whisk the cornstarch into cold water until completely smooth. Cold water is important, because warm water makes it clump.
Once the fruit reaches a gentle boil, pour in the slurry slowly while stirring. In 2 to 3 minutes the mixture turns from loose to glossy and thick enough to coat the back of a spoon. A finger swiped across the spoon should leave a clean line. Take it off the heat, add vanilla if using, cool, strain if you want it seedless, and chill until set.

The finished filling should hold on a spoon but still move when you tip it. It firms up noticeably in the fridge, so judge the final texture after chilling, not straight from the pan.
Fixing Runny, Stiff, or Dull Filling
- Too runny after chilling: the slurry did not boil long enough. Return it to the pan and simmer for about 2 more minutes, stirring constantly.
- Too thick or starchy: it cooked too long. Stir in 1 to 2 teaspoons of water while it is still warm.
- Lumpy: the cornstarch was not fully dissolved, or it went into hot liquid. Strain the filling and whisk the next slurry in cold water.
- Too sweet: stir in ½ teaspoon lemon juice while hot.
- Tastes flat: raspberries vary. Add a little more lemon juice after cooking.
- Scorched taste: the heat was too high. Keep it at medium and stir the whole time.
Cakes and Desserts That Suit This Filling
Raspberry is one of the easiest fruit fillings to pair. It is lovely in a moist vanilla cake, between layers of white chocolate cake, or in a lemon raspberry cake. For chocolate cake, add the vanilla and spread it under a layer of chocolate cake filling for a classic chocolate raspberry combination.
Frost the outside with raspberry buttercream or a classic vanilla buttercream. Spoon the filling into cored cupcakes, swirl it into cheesecake batter, or layer it with cream in parfaits. If you want a creamy tart layer to go with it, try it next to my lemon cream cheese cake filling.
Easy Variations
For a deeper, darker berry flavor, swap ¼ cup of the raspberries for blackberries. For a sweeter, more candy like note, stir 1 teaspoon of raspberry jam into the hot filling. For a mousse style texture, fold ¼ cup of whipped cream into the fully chilled filling just before using it.
This is a cooked filling, not a jam. It is softer and less sweet, and it is meant to be used within days. If you want something spreadable for toast or long fridge storage, make my homemade raspberry jam instead.
Making It Ahead and Freezing
Store the filling in a sealed jar or container in the fridge for up to 5 days, so you can make it while the cake layers bake or the day before you assemble. Do not leave it on the counter for more than 2 hours.
To freeze, spoon it into a freezer bag, flatten it, and freeze for up to 3 months. Thaw it overnight in the fridge and stir well before spreading. Do not thaw it in the microwave, which breaks the texture.
Quick Answers
How much raspberry filling do I need for a layer cake?
This recipe makes about 1¼ cups, which is enough to fill one or two layers of a standard 8 or 9 inch cake. For a taller cake with more layers, make a double batch.
Can I use frozen raspberries for cake filling?
Yes. Add them to the pan straight from the freezer. They release their juice faster, so the berries may break down a minute or two sooner.
How do you make seedless raspberry filling for cake?
Cook the filling as usual, let it cool for about 10 minutes, then press it through a fine mesh sieve with a spatula. Discard the seeds and chill the smooth filling.
Why is my raspberry cake filling runny?
Usually the cornstarch did not boil long enough to thicken. Simmer it for 2 more minutes while stirring, and always judge the texture after chilling.
Can I use this raspberry filling in cupcakes?
Yes. Core cooled cupcakes, spoon or pipe in the chilled filling, and frost over the top.
Pin It for Your Next Layer Cake

Save this raspberry filling for cake to your cake or birthday board so it is ready the next time a cake needs a fresh fruit layer. If you try it, tell me in the comments what you paired it with, especially if you tried one of the variations.
Raspberry Cake Filling Recipe
This raspberry filling for cake is a smooth, tart fruit filling made with fresh or frozen raspberries, sugar, lemon juice, and a cornstarch slurry. It is ready in 15 minutes and makes about 1¼ cups, enough to fill one or two cake layers, and it chills to a glossy, spreadable texture. The berries cook down first and the slurry boils for 2 to 3 minutes, so the raspberry cake filling holds between layers instead of soaking in. Strain it for a seedless filling. Use it in vanilla, white chocolate, lemon, or chocolate layer cakes, filled cupcakes, cheesecake, or parfaits. It keeps 5 days in the fridge and freezes for 3 months.
Ingredients
- 2 cups raspberries (fresh or frozen)
- 1/2 cup granulated sugar
- 2 tablespoons lemon juice (freshly squeezed)
- 2 tablespoons cornstarch
- 2 tablespoons cold water
- 1/2 teaspoon vanilla extract (optional)
- Pinch of salt
Instructions
- COOK THE RASPBERRIES: In a medium saucepan, combine raspberries, sugar, lemon juice, and salt. Cook over medium heat, stirring frequently, for 5 to 6 minutes or until the raspberries break down and release their juices.
- MAKE THE CORNSTARCH SLURRY: In a small bowl, whisk together the cornstarch and cold water until fully dissolved and smooth. This mixture will help thicken the filling evenly.
- THICKEN THE FILLING: Once the raspberry mixture reaches a gentle boil, slowly pour in the cornstarch slurry while stirring continuously. Cook for another 2 to 3 minutes, stirring constantly, until the mixture thickens enough to coat the back of a spoon.
- ADD VANILLA (OPTIONAL): Remove the saucepan from heat and stir in the vanilla extract if using. Let the mixture cool for 5 to 10 minutes in the pan.
- STRAIN IF DESIRED: For a seedless filling, pour the warm mixture through a fine mesh sieve into a clean bowl, pressing gently with a spatula to extract as much liquid as possible.
- COOL COMPLETELY: Transfer the finished filling to a jar or airtight container. Let it cool fully at room temperature, then refrigerate until ready to use. It will thicken more as it chills.
Notes
For a seedless filling, press the warm filling through a fine mesh sieve after cooling it for about 10 minutes. Always mix the cornstarch with cold water to avoid lumps. If the filling is too runny after chilling, simmer it 2 more minutes; if it is too thick, stir in 1 to 2 teaspoons of water while warm. Pipe a buttercream dam around each cake layer before spreading the chilled filling. Store in the fridge for up to 5 days or freeze for up to 3 months; thaw overnight in the fridge.
Nutrition Information
Yield
1Serving Size
1Amount Per Serving Calories 875Total Fat 3gUnsaturated Fat 3gSodium 14mgCarbohydrates 211gFiber 33gSugar 148gProtein 5g
