This pineapple layer cake recipe makes a moist, tender two-layer cake from scratch with crushed pineapple baked right into the batter, a glossy pineapple filling between the layers, and rich cream-cheese frosting on top. It yields 8–10 servings and takes about 30–35 minutes to prepare, 25–32 minutes to bake, and at least 1 hour to cool and assemble.
Every bite brings bright pineapple flavor, a soft golden crumb, tangy cream cheese, and just enough sweetness for a memorable dessert. The recipe uses crushed pineapple packed in juice, and keeping the cake pineapple undrained is the key to its wonderfully moist texture.
Jump to RecipeWhy You’ll Love This Recipe
This pineapple layer cake has the comfort of a traditional homemade dessert while bringing a sunny fruit flavor to every forkful. The cake batter comes together in one bowl, and the crushed pineapple creates a naturally moist crumb without requiring complicated techniques.
The center filling is especially delicious because it uses both pineapple and reserved pineapple juice. Cooked with sugar and cornstarch, it becomes a thick, glossy layer that stays distinct between the cakes instead of disappearing into the crumb.
Tangy cream-cheese frosting balances the sweetness beautifully. For another fruit-forward celebration cake, you may also enjoy this old-fashioned pineapple cake, which brings a similarly nostalgic pineapple flavor to the dessert table.
- Texture: Soft, moist, and tender with a luscious fruit center.
- Flavor: Bright pineapple, vanilla, gentle sweetness, and tangy cream cheese.
- Occasion: Perfect for birthdays, potlucks, Easter, showers, and family dinners.
- Difficulty: Straightforward enough for a first layer cake, provided the filling is cooled fully.
Ingredients You’ll Need

The cake needs all-purpose flour, granulated sugar, baking soda, fine salt, two lightly beaten eggs, vanilla extract, and one 20-ounce can of crushed pineapple in juice. The pineapple goes into the batter undrained, so its liquid becomes part of the cake’s moisture and flavor.
For the filling, use a second 20-ounce can of crushed pineapple in juice. Drain it, reserve 1/2 cup of the juice, and combine that juice with sugar and cornstarch before adding the pineapple.
The frosting is a classic cream-cheese mixture made from softened full-fat cream cheese, softened unsalted butter, vanilla, and confectioners’ sugar. Keep 1–2 tablespoons of milk or heavy cream nearby, but add it only if the finished frosting needs loosening.
- Choose pineapple packed in juice rather than pineapple packed in heavy syrup.
- Bring the cream cheese and butter to a soft, workable temperature before mixing.
- Line the bottoms of the cake pans with parchment for easier release.
How to Make It Step-by-Step

Step 1: Heat the oven to 350°F (175°C), then grease two 9-inch round cake pans. Line the bottoms with parchment, paying attention to the edges so the layers release cleanly after baking.
Step 2: Add the flour, sugar, baking soda, and fine salt to a large mixing bowl. Whisk until the dry ingredients are evenly distributed, which helps prevent pockets of baking soda or salt in the finished cake.
Step 3: Add the lightly beaten eggs, vanilla extract, and undrained crushed pineapple. Stir just until everything is evenly combined; prolonged mixing can make the cake less tender.
Step 4: Divide the batter evenly between the prepared pans and smooth the tops with a spatula. Bake for 25–32 minutes, checking near the shorter end of the range, until the centers spring back lightly and a tester shows only a few moist crumbs.
Step 5: Let the cakes cool in their pans for 10 minutes. Turn them out onto wire racks and allow them to cool completely, since even slightly warm layers can soften the filling and frosting.
Step 6: While the cakes cool, prepare the pineapple filling by whisking the reserved 1/2 cup pineapple juice, sugar, and cornstarch in a saucepan. Add the drained pineapple and cook over medium heat for about 3–5 minutes, stirring constantly until the mixture becomes thick and glossy.
Step 7: Remove the saucepan from the heat and stir in the optional lemon juice and butter. Scrape the filling into a bowl and let it cool completely; placing warm filling between the layers can cause sliding.
Step 8: Make the frosting by beating the softened cream cheese and butter until smooth. Add the vanilla, then gradually beat in the confectioners’ sugar; if the frosting is too stiff, add milk or heavy cream a little at a time.
Step 9: Set one cooled cake layer on a serving plate. Spread the cooled pineapple filling over the top, leaving a small border around the edge, place the second layer on top, and frost the top and sides.
Pro Tips for a Tender Cake

The undrained pineapple in the cake batter is not an accident. Its juice contributes essential moisture, so do not drain or squeeze that pineapple before stirring it into the batter.
For the filling, draining is important because the extra liquid must be measured and thickened separately with cornstarch. Save exactly 1/2 cup of juice for the saucepan, and let the drained pineapple retain some moisture rather than pressing it completely dry.
Stir the filling constantly while it cooks. Cornstarch thickens quickly, and steady stirring keeps the bottom from scorching while producing a smooth, glossy texture.
If you want an easy companion dessert with a lighter texture, take a look at this pineapple angel food cake. It is a lovely option when you want pineapple flavor without a rich cream-cheese layer cake.
Frosting, Assembly, and Decoration

For the cleanest assembly, place the first cake layer flat-side up on the serving plate. Spread the pineapple filling from the center outward, stopping before the edge so the second layer does not push filling over the sides.
Set the second layer flat-side down, then apply a thin coating of frosting over the top and sides. A brief chill can help the frosting firm, although the most important step is making certain both cake layers and the pineapple filling are completely cool.
Keep the decoration simple so the pineapple remains the focus. A few small pineapple pieces, fine cake crumbs around the base, or a light scattering of chopped nuts can provide attractive texture without changing the recipe’s balance.
For a fruit-and-spice variation to serve alongside this cake, consider our carrot cake with pineapple. Its warm spices and pineapple notes make it another excellent choice for a dessert spread.
Storage and Serving Suggestions

Because the frosting contains cream cheese, store the finished cake in the refrigerator. Cover it well and serve chilled or let it sit briefly at room temperature before slicing so the frosting becomes pleasantly creamy.
The cake is easiest to cut with a sharp knife wiped clean between slices. This keeps the pineapple filling visible and gives each serving a neat layer of cake, fruit, and frosting.
- Serve 8–10 slices for generous dessert portions.
- Keep leftovers covered and refrigerated.
- Use the reserved pineapple juice to lightly brush the cooled cake layers before filling if you want an even stronger pineapple flavor.
- Do not assemble with warm filling, since it may soften the frosting and make the layers slide.

Pineapple Layer Cake Recipe
Ingredients
Method
- Heat the oven to 350°F (175°C). Grease two 9-inch round cake pans and line the bottoms with parchment.
- Whisk the flour, granulated sugar, baking soda, and salt together in a large bowl.
- Add the lightly beaten eggs, vanilla, and undrained crushed pineapple. Stir only until the batter is evenly combined.
- Divide the batter between the prepared pans and smooth the tops. Bake for 25–32 minutes, until the centers spring back lightly and a tester comes out with only a few moist crumbs.
- Cool the cakes in their pans for 10 minutes, then turn them out onto wire racks. Cool completely before filling or frosting.
- For the filling, whisk the reserved pineapple juice, sugar, and cornstarch in a saucepan. Add the drained pineapple and cook over medium heat, stirring constantly, for about 3–5 minutes, until thick and glossy.
- Stir the optional lemon juice and butter into the hot filling. Transfer it to a bowl and cool completely.
- Beat the cream cheese and butter until smooth. Beat in the vanilla, then gradually add the confectioners' sugar; mix in a small amount of milk or cream only if the frosting is too stiff.
- Place one cake layer on a serving plate and spread it with the cooled pineapple filling, leaving a small border. Add the second layer, then frost the top and sides.
Notes
Final Thoughts
This pineapple layer cake recipe is a wonderful from-scratch dessert for anyone who loves moist cake and bright fruit flavor. The undrained pineapple creates a tender crumb, the cooked filling adds a concentrated center, and the cream-cheese frosting supplies the perfect tangy finish.
Give yourself enough time for the layers and filling to cool completely before assembly. Once chilled and sliced, this golden two-layer cake is ready to bring a cheerful tropical note to birthdays, holidays, potlucks, and ordinary evenings that deserve something special.





