Moist Pineapple Layer Cake with Cream Cheese Frosting
This moist pineapple layer cake is packed with crushed pineapple and topped with tangy cream cheese frosting for a bright, sunny dessert.

It’s the kind of cake that feels festive but comes together without fuss, and it stays tender for days.
Why This Pineapple Cake Stays in the Rotation
The cake itself is incredibly tender, thanks to the crushed pineapple and its juice. It stays moist for days, not just right after baking.
And the frosting is a simple cream cheese buttercream that balances the sweetness with a little tang. I make it whenever I want a cake that feels special but doesn’t take all afternoon.
Ingredients

- 2 ½ cups all-purpose flour: measured by spooning and leveling for a tender crumb
- 1 ½ cups granulated sugar: sweetens and helps with browning
- 2 tsp baking powder: gives the cake its lift
- ½ tsp baking soda: reacts with the pineapple’s acidity for extra tenderness
- ½ tsp salt: balances the sweetness
- ¾ cup unsalted butter, softened: adds richness; I use unsalted so I can control the salt
- 3 large eggs: at room temperature for a smooth batter
- 1 tsp vanilla extract: rounds out the pineapple flavor
- 1 can (8 oz) crushed pineapple in juice, undrained: the star ingredient, juice and all
- ½ cup whole milk: at room temperature, adds moisture without weighing down the crumb
- 8 oz cream cheese, softened: use full-fat brick cream cheese, not spreadable tub
- ½ cup unsalted butter, softened: at room temperature
- 3 ½ cups powdered sugar: sifted if lumpy
- 1 tsp vanilla extract
- Pinch of salt
Variations / Substitutions
- Swap pineapple: You can use crushed pineapple in syrup, but reduce the sugar in the cake by 2 tablespoons to keep it from becoming too sweet.
- Add coconut: Fold ½ cup sweetened shredded coconut into the batter for a tropical twist, and sprinkle toasted coconut on the frosted cake.
- Make it gluten-free: A 1-to-1 gluten-free flour blend works well; the cake will be slightly more delicate, so handle with care.
- Change up the frosting: Whipped cream frosting or a brown sugar Swiss meringue buttercream are both delicious, though cream cheese is my favorite here.
If you like this, try my coconut lime cake.
How to Make Moist Pineapple Layer Cake with Cream Cheese Frosting
Step 1: Mix the Dry Ingredients

Preheat your oven to 350°F (175°C). Grease three 8-inch round cake pans and line the bottoms with parchment paper.
In a medium bowl, whisk together the 2 ½ cups flour, 2 teaspoons baking powder, ½ teaspoon baking soda, and ½ teaspoon salt. Make sure they’re evenly distributed, with no lumps of baking soda hiding. This might seem small, but a thorough whisk here means you won’t have to overmix later when you add the dry ingredients to the wet ones.
When you take an extra thirty seconds now, the cake rises evenly and has a tender, uniform crumb. I often sift the dry ingredients if I’ve had the flour sitting for a while, but whisking is usually enough.
Step 2: Cream the Butter and Sugar

In a large bowl, beat the ¾ cup softened butter and 1 ½ cups sugar with an electric mixer on medium speed for about 3 minutes, until the mixture looks pale yellow and feels fluffy. Scrape down the bowl once or twice so everything gets incorporated.
The butter and sugar should cling together in a light, airy mass. You’ll see the color change from yellow to almost white. This step traps air into the butter, which is what gives the cake its lift.
Don’t rush through this or cut the time short. If the butter isn’t creamed well, the cake will turn out dense instead of light and tender. In fact, I set a timer for three minutes and just let the mixer do its job.
Step 3: Beat in the Eggs and Pineapple

Crack the 3 eggs into a small bowl, then add them one at a time to the butter mixture, beating well after each addition. Next, beat in 1 teaspoon vanilla and the whole can of crushed pineapple with its juice. The batter will look curdled and a little lumpy at this stage, but that’s exactly how it should be. The pineapple chunks will break down further as you mix.
Now reduce the mixer speed to low. Add the dry flour mixture in three additions, alternating with the ½ cup milk in two additions, starting and ending with the dry ingredients. So: flour, milk, flour, milk, flour. Mix just until the streaks of flour disappear after each addition, then stop. Overmixing at this point will make the cake tough, so use a spatula for the last few folds if needed.
This alternating method might seem fussy, but it’s the secret to a cake with a fine, even crumb and no gummy pockets.
Step 4: Bake the Cake Layers

Divide the batter evenly among the three prepared pans, smoothing the tops with a spatula. Bake for 22 to 25 minutes, rotating the pans halfway through, until the tops are golden and a toothpick inserted in the center comes out clean.
You’ll know they’re done when the edges start pulling away from the sides of the pans and the cake springs back when you press the top lightly. The kitchen will smell sweet and faintly like pineapple.
Let the layers cool in the pans on a wire rack for 10 minutes, then run a knife around the edges and invert them onto the rack to cool completely. Do not frost them while they’re even a little warm, or the cream cheese frosting will melt and slide right off.
Step 5: Whip the Cream Cheese Frosting

While the layers cool, make the frosting. In a clean bowl, beat the 8 ounces cream cheese and ½ cup butter together until completely smooth and no lumps remain. Then gradually add the 3 ½ cups powdered sugar, about a cup at a time, beating on low at first so it doesn’t puff everywhere. Add 1 teaspoon vanilla and a pinch of salt, then increase the speed to medium and beat until the frosting is light and spreadable, about 2 minutes.
The frosting should be thick but still creamy, not stiff. If it seems too thick to spread easily, beat in a teaspoon of the reserved pineapple juice from the can (or a splash of milk) to loosen it. Too thin? Add a little more powdered sugar until it holds its shape.
Taste the frosting and decide if you want it a little tangier or sweeter. That’s the beauty of making it yourself, just adjust to your liking.
Step 6: Frost and Slice the Cake

If the cake layers have domed on top, use a serrated knife to level them off so they stack flat. Place the first layer on a serving plate and spread about ⅔ cup of frosting over the top. Place the second layer on top and spread another ⅔ cup of frosting on it. Set the third layer on top, then frost the top and the sides of the whole cake with the remaining frosting, swirling it decoratively if you like. You can press toasted coconut onto the sides or pipe a border, but even a rustic swirl looks lovely.
Now slice the cake and serve. The cross-section shows those sunny layers of golden cake and creamy white frosting. It’s one of those desserts that looks like more work than it is, and the first bite is all soft, tangy sweetness.
Tips for a Pineapple Cake That Stays Tender
- Room temperature ingredients really matter here.: Cold butter won’t cream properly, and cold eggs can make the batter seize. Take everything out of the fridge an hour before you start.
- Don’t skip the parchment.: The crushed pineapple adds a lot of moisture, which means the cake can stick to the pan even if you grease it. Parchment paper guarantees a clean release.
- If you’re in a hurry, cool the layers faster.: After they’ve cooled in the pans for 10 minutes, you can pop them out and place them directly in the refrigerator for 30 minutes. That firms them up and makes frosting much easier.
Bake times can shift a minute or two based on your pans, so here’s a quick guide:
| Pan Size | Number of Layers | Approx. Bake Time |
|---|---|---|
| 8-inch | 3 | 22–25 minutes |
| 9-inch | 3 | 20–23 minutes |
| 6-inch | 4 | 18–21 minutes |
Storing Leftover Pineapple Cake
- Refrigerate: Because of the cream cheese frosting, store the cake covered in the refrigerator for up to 5 days. Let it come to room temperature for about 30 minutes before serving so the frosting softens.
- Serve Cold: Honestly, I enjoy a cold slice right from the fridge on a hot day, the frosting gets fudgy and the cake feels extra refreshing.
Frequently Asked Questions
Can I use fresh pineapple instead of canned?
Fresh pineapple has a different water content and an enzyme that can break down the cake’s structure. Canned crushed pineapple in juice is more reliable here. If you must use fresh, finely chop it and cook it down with a little sugar to mimic the canned texture, but I can’t promise the same results.
How do I make this cake ahead of time?
Bake the layers up to 2 days in advance, cool them completely, wrap each layer tightly in plastic wrap, and keep them at room temperature. Frost the day you plan to serve it. You can also freeze the unfrosted layers for up to 2 months.
My cake came out dense. What went wrong?
The most common culprit is overmixing once you start adding the flour, or not creaming the butter and sugar long enough. Make sure you beat them until genuinely pale and fluffy, and then fold in the dry ingredients as gently as possible.
Why do I have to alternate dry and wet ingredients?
It evenly distributes the flour and liquid, so you don’t have to overmix to combine them. Starting and ending with dry ingredients helps control the batter’s consistency and builds a finer crumb.

Moist Pineapple Layer Cake with Cream Cheese Frosting Recipe
Ingredients
Method
- Preheat oven to 350°F. Grease three 8-inch round cake pans and line bottoms with parchment paper. In a bowl, whisk flour, baking powder, baking soda, and salt.
- In a large bowl, beat butter and sugar until light and fluffy, about 3 minutes. Add eggs one at a time, then vanilla and crushed pineapple with juice.
- On low speed, add dry ingredients in three additions, alternating with milk, beginning and ending with dry. Mix just until combined.
- Divide batter evenly among pans. Bake 22–25 minutes until a toothpick comes out clean. Cool in pans 10 minutes, then invert onto a rack to cool completely.
- Beat cream cheese and butter until smooth. Gradually add powdered sugar, vanilla, and salt; beat until creamy and spreadable, about 2 minutes.
- Level cakes if needed. Place one layer on a plate, spread ⅔ cup frosting on top. Repeat with second layer. Top with third layer, frost top and sides. Slice and serve.
