Pineapple in a cake does something that most fruits cannot quite replicate. It keeps the crumb genuinely moist, adds a natural sweetness that does not feel heavy, and pairs with cream cheese frosting in a way that makes every bite taste balanced. This Hawaiian Pineapple Cake is one of the easier summer desserts you can bake, using crushed canned pineapple stirred right into the batter so the flavor runs through the whole cake rather than just sitting on top. No fancy equipment, no complicated steps.
The batter comes together in one bowl, and the cake bakes in a 9×13 pan, which makes it practical for slicing and serving straight from the dish. The cream cheese frosting goes on once the cake is fully cooled, and the whole thing can be made a day ahead without losing any of its texture or flavor. It actually tastes better the next day once everything has settled.
What You Need for This Hawaiian Pineapple Cake
For the Cake
- 2 cups all-purpose flour
- 2 cups granulated sugar
- 2 large eggs
- 1 teaspoon baking soda
- 1/2 teaspoon salt
- 1 teaspoon pure vanilla extract
- 1 can (20 oz) crushed pineapple in juice, undrained
- 1/2 cup chopped walnuts or pecans, optional
For the Cream Cheese Frosting
- 8 oz cream cheese, softened to room temperature
- 1/2 cup unsalted butter, softened
- 2 cups powdered sugar, sifted
- 1 teaspoon pure vanilla extract
- Pinch of salt
- 1/2 cup toasted coconut flakes for topping, optional
How to Bake Hawaiian Pineapple Cake Step by Step
- Preheat your oven to 350°F (175°C). Grease a 9×13 inch baking pan lightly with butter or non-stick spray and set aside.
- In a large mixing bowl, whisk together the flour, sugar, baking soda, and salt until combined.
- Add the eggs, vanilla extract, and the full can of crushed pineapple including all the juice. Stir with a spatula or wooden spoon until a thick, even batter forms. Do not overmix, stir just until no dry flour remains.
- Fold in the chopped nuts if using, then pour the batter into the prepared pan and spread it into an even layer.
- Bake for 30 to 35 minutes until the top is golden brown and a toothpick inserted in the center comes out clean. The cake should feel set and spring back lightly when pressed in the middle.
- Remove from the oven and let the cake cool completely in the pan, at least 45 minutes to 1 hour before frosting. Frosting a warm cake will melt the cream cheese layer and make it run.
- Beat the softened cream cheese and butter together with a hand mixer until smooth and fluffy, about 2 minutes. Add powdered sugar in two additions, mixing on low first to avoid a sugar cloud, then increasing speed until the frosting is thick and creamy. Add vanilla and a pinch of salt, mix once more.
- Spread the frosting evenly over the cooled cake. Scatter toasted coconut flakes over the top if using, and refrigerate for at least 30 minutes before slicing.
Baking Tips That Make a Difference
Do not drain the pineapple. The juice in the can is what makes this cake so moist, and removing it results in a drier, denser crumb. Room temperature eggs also matter here because cold eggs can cause the batter to look slightly curdled before it smooths out. If your cream cheese frosting feels too soft to spread cleanly, refrigerate it for 15 minutes before applying it to the cake. For anyone who loves desserts with pineapple recipes that hold up well in warm weather, chilling the finished cake before slicing makes the frosting cut cleanly without dragging or smearing across the top.
Variations Worth Baking
Adding a half cup of shredded coconut directly into the batter gives the cake a texture that sits somewhere between a traditional Hawaiian delight and a tropical sheet cake, soft, slightly chewy, and very fragrant. For a pineapple icebox cake version, skip the baking entirely and layer the pineapple mixture between sheets of graham crackers with whipped cream cheese frosting, refrigerate overnight and it sets into sliceable layers. Pineapple chunks recipes for desserts also work well here if you prefer pieces of pineapple rather than crushed, though you will want to chop them small so the batter stays even. A handful of maraschino cherries pressed into the frosting before serving adds color and a little extra sweetness that works nicely as a simple cake with candy on top effect.
Troubleshooting, Substitutions, Storage, and Serving
If the cake sinks in the center, the baking soda may be old or the oven temperature was slightly off. Check the date on your baking soda and use an oven thermometer if you suspect the heat is uneven. For a dairy-free version, use vegan cream cheese and plant-based butter in equal amounts for the frosting. The cake itself is naturally dairy-free as written. Stored covered in the refrigerator, this cake keeps well for up to 4 days and the texture stays moist throughout. Serve it cold straight from the fridge or let individual slices sit at room temperature for 10 minutes for a softer feel. It pairs nicely with a scoop of vanilla ice cream or a dollop of whipped cream alongside, especially in warmer months when easy summer desserts that require no fuss are exactly what you want.
FAQ
Can I use fresh pineapple instead of canned? Fresh pineapple contains an enzyme that can interfere with gelatin-based desserts, but in a baked cake it works fine. Blend or finely crush the fresh pineapple and measure out about 2 1/2 cups including the juice before using.
Does this cake need to be refrigerated? Yes, because of the cream cheese frosting. Store it covered in the refrigerator and it will keep for up to 4 days. The cold actually improves the texture of the frosting and helps the slices hold their shape cleanly.
Can I make this cake without eggs? Yes. Replace each egg with 1/4 cup unsweetened applesauce or a flax egg made from 1 tablespoon ground flaxseed mixed with 3 tablespoons water, left to gel for 5 minutes. The texture will be slightly denser but still moist.
Can I bake this in round cake pans instead of a 9×13? You can split the batter between two 9-inch round pans and bake for 25 to 28 minutes. This gives you a layered cake with frosting between the layers and on top, which makes it a more formal presentation for serving.
Why is my frosting too runny? This usually happens when the cream cheese or butter was too warm before beating. Refrigerate the frosting for 15 to 20 minutes, then re-beat briefly until it firms up to a spreadable consistency.
Can I freeze this cake? The unfrosted cake freezes well for up to 2 months, wrapped tightly in plastic wrap and foil. Thaw overnight in the refrigerator and frost before serving. Freezing the frosted cake is possible but the cream cheese layer can weep slightly after thawing.

Hawaiian Pineapple Cake
Ingredients
Equipment
Method
- Preheat oven to 350°F (175°C) and grease a 9×13 inch baking pan.
- Whisk dry ingredients: flour, sugar, baking soda, and salt in a large bowl.
- Add wet ingredients: eggs, vanilla, and the full undrained can of crushed pineapple. Stir until just combined.
- Fold in nuts if using, pour into pan, and spread evenly.
- Bake for 30 to 35 minutes until golden and a toothpick comes out clean.
- Cool completely in the pan, at least 45 minutes to 1 hour before frosting.
- Make frosting by beating cream cheese and butter until fluffy. Add powdered sugar, vanilla, and salt. Beat until smooth and thick.
- Frost the cake, top with toasted coconut, and refrigerate 30 minutes before slicing.
Notes
- Do not drain the pineapple – the juice keeps the cake moist.
- Cool the cake fully before frosting or the cream cheese layer will melt and run.
- If frosting feels too soft, refrigerate it for 15 minutes then re-beat briefly.
- Cake keeps refrigerated for up to 4 days and tastes better on day 2.

