This pineapple cake filling is a thick, glossy fruit layer made from one 20 ounce can of crushed pineapple, juice and all, cooked with ½ cup sugar, 1½ tablespoons cornstarch, lemon juice, and a spoonful of butter. It takes about 15 minutes at the stove plus an hour in the fridge, and it makes about 1½ cups, enough to fill one 2 layer 8 inch cake.
The trick is patience at the pan. Keep stirring for 5 to 7 minutes after the first bubbles, until the filling turns from cloudy to glossy. Then chill it completely before it goes near a cake. Cold, fully cooked filling stays put between the layers. Warm or undercooked filling slides.

What One 20 Ounce Can Makes

- Yield: about 1½ cups, enough for one 2 layer 8 inch cake
- Time: 5 minutes prep, about 10 minutes cooking, at least 1 hour chilling (75 minutes total)
- Ratio: one 20 oz can crushed pineapple in juice, ½ cup sugar, 1½ tablespoons cornstarch
- Finish: 1 tablespoon butter, plus an optional pinch of salt and ¼ teaspoon vanilla
- Keeps: up to 5 days in an airtight container in the fridge
Do not drain the can. The juice is the liquid the cornstarch thickens, and it carries most of the pineapple flavor. Drained fruit with the same amount of cornstarch turns stiff and pasty.
Cooking Crushed Pineapple With Cornstarch
Tip the whole can into a medium saucepan with the sugar, cornstarch, and lemon juice, and stir before you turn on the heat. Cornstarch only dissolves smoothly in cold liquid. Stirred into hot fruit, it clumps into little white beads that never melt away.

Set the pan over medium heat and stir constantly. Once the mixture starts to bubble, keep going for 5 to 7 minutes. It will look milky at first, then clear and shiny, and the bottom of the pan will catch if you stop stirring. Take it off the heat and stir in the butter until it melts, then the vanilla and salt if you are using them. The butter rounds off the sharp edge of the fruit and gives the filling its sheen.
How Thick It Should Look Before It Chills

Hot, it should look like loose pudding with fruit in it. Drag a spoon across the bottom of the pan: if the track stays open for a second or two before the filling creeps back, it is ready. It thickens a lot more as it cools, so do not keep cooking until it looks set in the pan, or it will turn rubbery in the fridge.
Spread it in a shallow container, let it reach room temperature, then cover and refrigerate for at least 1 hour. Cold, it should hold a soft mound on a spoon and spread without running. If you want it smoother for cupcakes, give it a few pulses with an immersion blender before it chills.
Fresh Pineapple, Canned, and the Bromelain Problem
This recipe is built on canned crushed pineapple, and that is a good thing. Raw pineapple contains bromelain, an enzyme that breaks down proteins. It keeps gelatin from setting and can turn whipped cream or cream cheese layers thin or bitter after a few hours in the fridge. Heat switches the enzyme off, and canned pineapple has already been heated.
Fresh pineapple still works if you chop it very fine and cook it the full time, since that cooking takes care of the enzyme too. Ripe fresh fruit is often juicier or drier than canned, so judge the thickness by the spoon test above rather than the clock. Pineapple chunks or tidbits need chopping first; big pieces tear the cake when you spread.
Filling Cake Layers Without It Sliding Out
Fruit filling is softer than frosting, so it needs a wall. Level your cooled cake layers and set the first one on the plate. Pipe a ring of stiff buttercream or cream cheese frosting about ½ inch inside the edge, roughly as tall as a pencil is wide. Spoon the cold filling inside the ring and spread it level, staying just inside the dam.
For a 2 layer 8 inch cake, the whole batch goes in that one gap. For 3 layers, split it between the two gaps, about ¾ cup each. Set the top layer on gently, press once to settle it, and crumb coat the cake. Chill it for about 30 minutes before the final frosting so the layers stop moving.
Cream cheese frosting is the closest match because its tang sits well next to the fruit. My easy cream cheese frosting is stiff enough for the dam, and coconut cream cheese frosting pushes the cake toward a tropical flavor.
Pineapple Filling or Pineapple Jam Between Layers?
Use this cooked filling when you want a soft, juicy fruit layer with real bits of pineapple and only moderate sweetness. Use pineapple jam when you want a thin, sweeter, spreadable layer that also keeps much longer in a jar. Jam is the easier pick for a thin swipe under buttercream, and this filling is the better pick when the fruit is the main event in the slice.
Cakes and Frostings That Suit Pineapple
A plain sponge lets the fruit stand out. It works in a moist vanilla cake, yellow or white cake, and anything with coconut, such as tropical pineapple coconut cake or a cake finished with coconut buttercream frosting. It also sits well between layers of carrot cake with pineapple, where the fruit already in the crumb ties it together.
For cupcakes, core the center with a small knife or apple corer and spoon in about a teaspoon of cold filling before frosting. It is also good spooned over cheesecake just before serving, or folded into whipped cream frosting for a quick pineapple cream, which is safe because the fruit is cooked. If you like this kind of cake, pineapple heaven cake is the next one to try.
When the Filling Is Runny, Lumpy, or Weeping
- Runny after chilling: the cornstarch was not cooked long enough. Mix 1 teaspoon cornstarch with 1 tablespoon cold water, stir it into the filling in the pan, and bring it back to a bubble for a full 2 minutes while stirring.
- Lumpy or with white specks: the cornstarch went into hot fruit or was not stirred in well. Blend briefly with an immersion blender while warm.
- Thick and gluey: it was cooked too long or reduced too far. Stir in 1 to 2 tablespoons of pineapple juice or water while it is still warm.
- Soaking into the cake: the filling or the cake was still warm. Both need to be fully cool before they meet.
- Watery after freezing: cornstarch fillings tend to weep once thawed, which is why this one is best kept in the fridge.
Five Days in the Fridge, Not the Freezer
Keep the filling in an airtight container in the fridge for up to 5 days. You can make it the day before you bake and assemble the cake the next day, which also gives it plenty of time to chill. Stir it once before using, since a little liquid can gather on top.
A cake filled with it belongs in the fridge too, because of the butter and the frosting around it. Take it out about 30 minutes before serving so the sponge softens. I would not freeze the filling on its own; it loses its smooth, glossy texture after thawing.

What Bakers Ask Before Filling the Cake
How much pineapple filling do I need for a cake?
About 1½ cups fills one 2 layer 8 inch cake, which is what one 20 ounce can makes. For a 3 layer cake, use about ¾ cup per layer of filling.
Should I drain crushed pineapple for cake filling?
No. Cook it with the juice. The cornstarch needs that liquid to thicken, and the juice holds most of the flavor.
Can I use pineapple filling with whipped cream or cream cheese frosting?
Yes, because the pineapple is cooked. Raw pineapple is the one to avoid next to dairy and gelatin, since its enzyme breaks them down.
How far ahead can I make pineapple filling?
Up to 5 days ahead, kept covered in the fridge. Make it at least a day before if you can, so it is fully cold when you layer the cake.
If you make it, leave a comment and tell me which cake it went into first. Coconut and vanilla are the usual favorites.
Pineapple Cake Filling Recipe
Made it? Tap the stars to rate it.
This pineapple cake filling is a thick, glossy fruit filling made with one 20 oz can of crushed pineapple in juice, sugar, cornstarch, lemon juice, and butter. It cooks in about 15 minutes, chills for an hour, and makes about 1 1/2 cups, enough to fill one 2 layer 8 inch cake. The undrained pineapple is cooked with the cornstarch for 5 to 7 minutes after it bubbles, so the filling sets firm enough to stay between cake layers instead of running out. Use it as pineapple filling for cake layers inside a buttercream dam, in vanilla, coconut, or carrot cake, as a cupcake filling, or spooned over cheesecake. Keep it in the fridge for up to 5 days.
Ingredients
- 1 can (20 oz) crushed pineapple in juice (do not drain)
- 1/2 cup granulated sugar
- 1 1/2 tablespoons cornstarch
- 1 tablespoon lemon juice (fresh or bottled)
- 1 tablespoon unsalted butter
- Optional:
- A pinch of salt
- 1/4 teaspoon vanilla extract
Instructions
- COMBINE INGREDIENTS: In a medium saucepan, add the entire can of crushed pineapple with its juice, sugar, cornstarch, and lemon juice. Stir until the cornstarch is fully dissolved and the mixture is smooth with no visible lumps.
- COOK UNTIL THICKENED: Place the saucepan over medium heat and cook, stirring constantly, until the mixture begins to bubble. Continue to stir for 5 to 7 minutes, or until the filling thickens into a glossy, pudding-like texture. Watch closely to prevent sticking or burning.
- ADD BUTTER & FINISH: Remove the pan from heat and stir in the butter until fully melted. If using, also add the vanilla extract and a pinch of salt. Mix well until smooth and evenly combined.
- CHILL BEFORE USING: Let the filling cool to room temperature, then transfer it to an airtight container. Refrigerate for at least 1 hour before using. The filling will continue to thicken as it chills and can be stored in the fridge for up to 5 days.
Notes
Stir the cornstarch into the cold pineapple before heating so it does not clump. Keep stirring for 5 to 7 minutes after it bubbles; the filling should turn glossy and a spoon dragged across the pan should leave a clear track. It thickens more as it chills, so chill at least 1 hour before using. For layer cakes, pipe a ring of stiff buttercream or cream cheese frosting about 1/2 inch inside the edge and spread the cold filling inside it. For a smoother filling, briefly blend with an immersion blender before chilling. If using in cupcakes or as a cheesecake topping, spoon the chilled filling just before serving. Store in an airtight container in the fridge for up to 5 days; freezing is not recommended because cornstarch fillings weep after thawing.
Nutrition Information
Yield
1Serving Size
1Amount Per Serving Calories 833Total Fat 12gSaturated Fat 7gUnsaturated Fat 5gCholesterol 30mgSodium 8mgCarbohydrates 183gFiber 2gSugar 161gProtein 1g

Made it? Tap the stars to rate it