Zainab asked for "the pineapple cake" three times before I finally wrote the recipe down properly. I'd been making a loose version of it for a couple of years — one of those cakes you mix up without thinking too hard — and she kept requesting it for birthdays, class parties, potlucks at school. So I finally sat down, measured everything carefully, and made it properly. Turns out what makes it work is embarrassingly simple: you dump an entire can of crushed pineapple, juice and all, directly into the batter. That's it. That's the secret.
This is a one-bowl cake, which I genuinely appreciate because I don't like washing dishes any more than I have to. No stand mixer, no creaming butter for five minutes, no folding egg whites separately. You whisk the dry ingredients, stir in the wet ones, pour it into a pan, and bake. The cream cheese frosting goes on top once it cools, and if you want to toast some shredded coconut to sprinkle over it, that's a ten-second upgrade that looks like you put in way more effort than you did. If you enjoy easy baking projects like this one, my Hazelnut Brownies follow the same low-effort, high-reward approach.
My husband will eat any dessert I put in front of him, but this one specifically makes him go back for a second slice — which is not always the case. I usually make it in a 9x13 pan so there's enough for our family and still some left over. The leftovers, if there are any, actually taste better the next day. The pineapple flavor settles deeper into the crumb overnight and the texture stays soft rather than drying out the way most cakes do.
One thing I want to be upfront about: this is not an elaborate layer cake. It's a simple sheet cake. No piping, no layers, no decorating skills required. The cream cheese frosting spreads on in two minutes with the back of a spoon. If you're expecting something that looks like it came from a bakery, you might want to manage expectations — but if you want something that tastes genuinely good and takes about 45 minutes from start to finish, this is it.

Why You'll Love This Recipe
- One bowl, no mixer required: I make this with a wooden spoon and a regular mixing bowl. There's no creaming, no whipping, no complicated steps. You stir the dry ingredients, stir in the wet ones, pour it into the pan. That's genuinely the entire process. On a weeknight when I'm tired, this is the kind of cake I reach for.
- Stays moist for days: Most cakes start drying out by day two. This one doesn't, because the crushed pineapple juice keeps working after it's baked. I've had slices on day three that were still soft and tender. That makes it a solid choice for making ahead before a party or gathering.
- The pineapple flavor is real, not artificial: Because you're using a full 20-ounce can of crushed pineapple with all the juice, the flavor runs through the entire cake — not just the surface. It's sweet and slightly tangy in a way that doesn't taste like pineapple candy. It tastes like actual fruit baked into a soft cake.
- The cream cheese frosting is unfussy: I know some people find cream cheese frosting finicky, but this version is straightforward. Soften the cream cheese and butter properly (I'll remind you again in the tips), add powdered sugar, stir. It's thick, smooth, and slightly tangy — it pairs with the pineapple in a way that a plain buttercream wouldn't.
- Feeds a crowd from one pan: A 9x13 sheet cake cuts into 12 to 16 squares depending on how generously you slice. I make a double batch when I'm bringing it somewhere, because one pan disappears faster than I expect. It also travels well — just cover the pan with foil and you're done.
Ingredients
For the Cake:
- 2 cups all-purpose flour
- 1 ½ cups granulated sugar
- 1 teaspoon baking soda
- ½ teaspoon salt
- 2 large eggs
- 1 teaspoon vanilla extract
- 1 can (20 oz) crushed pineapple, undrained — do not drain this
- ½ cup unsalted butter, melted
For the Frosting:
- 1 package (8 oz) cream cheese, softened to room temperature
- ½ cup unsalted butter, softened to room temperature
- 2 cups powdered sugar
- 1 teaspoon vanilla extract
- ½ cup shredded coconut, toasted (optional but recommended)
A note on the pineapple: The juice in the can is not extra liquid to drain off — it's a functional ingredient. It's what keeps this cake soft for days. I've seen people drain the can and wonder why their cake came out dense and dry. Don't do that. If you accidentally drain it, add back about ¼ cup of pineapple juice or even water, but keep the full amount of liquid in the batter.
A note on the cream cheese: I cannot stress this enough — both the cream cheese and the butter need to be genuinely room temperature before you make the frosting. Cold cream cheese doesn't blend smoothly; it leaves lumps that you cannot beat out. I take mine out of the fridge at least an hour before I need it. Block-style cream cheese (like Philadelphia brand) works better here than the whipped kind in a tub.
Directions
- Preheat the oven: Set your oven to 350°F (175°C). Grease a 9x13-inch baking pan well with nonstick spray, making sure to get into the corners. If you want extra insurance against sticking, lay a piece of parchment paper on the bottom of the pan before spraying.
- Mix the dry ingredients: In a large mixing bowl, whisk together the flour, sugar, baking soda, and salt. Make sure the baking soda is evenly distributed — clumps of baking soda that don't dissolve can leave bitter spots in the finished cake.
- Add the wet ingredients: Add the eggs, vanilla extract, melted butter, and the entire can of crushed pineapple with all its juice. Stir with a spatula or wooden spoon until just combined — stop as soon as you don't see dry flour streaks. Overmixing builds up the gluten in the flour, which makes the cake chewy and dense instead of tender. A few small lumps are completely fine.
- Bake: Pour the batter into your prepared pan and spread it evenly with a spatula. Bake at 350°F for 30 to 35 minutes. Test at 30 minutes by inserting a toothpick into the center of the cake — it should come out clean or with just a couple of moist crumbs. Don't open the oven door before that 30-minute mark, or the center might sink.
- Cool completely: Let the cake cool in the pan at room temperature for at least 1 hour before frosting. I know it's tempting to hurry this step, but frosting a warm cake means the frosting melts off immediately and you end up with a sticky puddle. I learned this lesson the hard way on my third attempt at this recipe.
- Make the frosting: Beat the softened cream cheese and butter together in a bowl until completely smooth — by hand or with a hand mixer, either works. Add the powdered sugar one cup at a time and stir until incorporated. Add the vanilla extract and mix one final time. The frosting should be thick, creamy, and spreadable. If it's too stiff, add a teaspoon of milk and stir again.
- Frost and serve: Spread the frosting over the cooled cake in an even layer using the back of a spoon or an offset spatula. Sprinkle toasted coconut over the top if you're using it. Slice into squares and serve at room temperature or cold from the fridge — both are good, and Zainab actually prefers it cold.

Tips for Success
- Don't drain the pineapple: I'm repeating this because it's the single most important thing about this recipe. The juice from the can is what makes this cake exceptionally moist — not butter, not extra eggs, not sour cream. The full can, juice included. If there's one thing you take from this post, let it be that.
- Stop mixing when the flour disappears: Overmixing is the most common reason a simple cake turns out tough and dense. Once the batter looks uniform and you can't see dry streaks of flour, put the spoon down. The batter will look thick — that's normal. It doesn't need to be perfectly smooth.
- Soften the cream cheese and butter properly: I set both out on the counter an hour before I plan to make the frosting. If you're in a hurry, you can microwave the cream cheese for about 10 seconds, but don't melt it — you want it soft, not warm and runny. Cold cream cheese will give you a lumpy frosting no matter how hard you beat it.
- Toast the coconut in a dry pan: If you're adding the toasted coconut topping, don't skip the toasting step. Untoasted coconut on top of cake is a bit bland and chewy. Toasted coconut is nutty, fragrant, and golden — it takes about 2 minutes in a dry skillet over medium heat. Watch it the whole time because it goes from golden to burnt in about 30 seconds.
- Check your oven temperature: My oven runs about 10 degrees hot, which I didn't know for years and which explains why a lot of my cakes were done at 28 minutes when the recipe said 35. If you're unsure about your oven, use an oven thermometer — they cost about $10 at any kitchen store and they're worth it. Start checking this cake at 28 minutes just in case.
Variations
- Add macadamia nuts: Fold ½ cup of roughly chopped macadamia nuts into the batter before baking for a buttery crunch that leans into the Hawaiian angle. You can also press a few halves into the top of the frosted cake for decoration. I've done this for parties and it always gets asked about.
- Pineapple poke cake version: Right when the cake comes out of the oven, poke holes all over the top with a skewer or the handle of a wooden spoon. Pour ¼ cup of pineapple juice slowly over the surface and let it soak in as the cake cools. The result is extra-moist in a way that's almost absurdly good. Then frost as usual. This is a great option if you're making it for a crowd and want to maximize the pineapple flavor.
- Skip the frosting entirely: The unfrosted cake is genuinely good on its own, dusted with a little powdered sugar. If I'm making this for breakfast — which I have done, don't judge me — I skip the frosting and just eat it warm with a cup of chai. It's not too sweet without the frosting, just soft and fruity.
- Summer party version with a drink pairing: I've served this cake at outdoor summer gatherings alongside something cold and festive — my Sparkling Patriotic Punch is one we've done this with. The citrusy, fizzy drink cuts through the sweetness of the frosting nicely. If you're planning a summer spread, the two work well together.
- Fresh pineapple instead of canned: If you happen to have a ripe pineapple on hand, you can use fresh. Pulse fresh pineapple chunks in a food processor until finely crushed, then measure out about 2 cups and include any juice that collects. The flavor is a little brighter and less sweet than canned. Either version works — I use canned most of the time because I always have it in my pantry.
Serving and Storage
Serving
Serve the cake at room temperature or cold from the fridge — I actually prefer it slightly chilled because the frosting firms up a little and the flavors taste more concentrated. It cuts cleanly into squares either way. A scoop of vanilla ice cream or coconut ice cream alongside a slice is a combination worth trying. The cake comfortably serves 12 to 16 depending on how you cut it, which makes it a reliable option for potlucks or any gathering where you need to feed a group without stressing about quantity.
Storage
Because of the cream cheese frosting, the frosted cake needs to be covered and stored in the refrigerator. It keeps well for up to 5 days — and as I mentioned, it actually tastes better on day two than day one. If you're making it ahead, bake and frost the day before and refrigerate overnight. The unfrosted cake can sit tightly wrapped at room temperature for up to 3 days. To freeze: slice the frosted cake, freeze slices on a tray until solid, then wrap each piece individually in plastic wrap and store in a zip freezer bag for up to 2 months. Thaw overnight in the refrigerator.

Frequently Asked Questions
Can I use fresh pineapple instead of canned?
Yes, you can. Pulse about 2 cups of fresh pineapple chunks in a food processor until finely crushed, and include any juice that collects. The flavor will be slightly brighter and less sweet than canned pineapple. Just make sure you're including enough liquid — the batter should look quite wet, similar to what you'd get from the canned version.
Do I have to use the cream cheese frosting?
Not at all. The cake is good plain, dusted with powdered sugar, or topped with a simple drizzle of vanilla glaze. The cream cheese frosting adds richness and a slight tang that pairs well with the pineapple, but if you're not a frosting person or you're serving it for breakfast, it holds up on its own without any topping.
Why did my cake sink in the middle?
The most common causes are opening the oven door too early, underbaking, or overmixing the batter. Make sure your oven is fully preheated before the pan goes in, don't open the door before the 30-minute mark, and always test with a toothpick in the very center of the cake before pulling it out. If the toothpick comes out wet with raw batter, give it another 3 to 5 minutes.
Can I make this cake gluten-free?
Yes — swap the all-purpose flour for a 1:1 gluten-free baking flour blend (the kind that already contains xanthan gum). The texture comes out very close to the original. Make sure your baking soda is also labeled gluten-free if you're baking for someone with celiac disease or a serious intolerance.
Can I make this cake ahead of time?
Yes, and I'd actually recommend it. The cake tastes better the next day after the pineapple flavor has had time to settle into the crumb. Bake and frost the cake the day before you need it, cover it, and refrigerate overnight. Take it out about 20 minutes before serving if you want it at room temperature, or serve it straight from the fridge — both work.

HAWAIIAN PINEAPPLE CAKE
Ingredients
- 2 cups all-purpose flour
- 1 ½ cups granulated sugar
- 1 teaspoon baking soda
- ½ teaspoon salt
- 2 large eggs
- 1 teaspoon vanilla extract
- 1 can 20 oz crushed pineapple, with juice
- ½ cup unsalted butter melted
Instructions
- Step 1: Preheat Oven – Set oven to 350°F (175°C) and grease a baking pan.
- Step 2: Mix Dry Ingredients – In a bowl, whisk together flour, sugar, baking soda, and salt.
- Step 3: Add Wet Ingredients – Stir in eggs, vanilla, crushed pineapple (with juice), and melted butter until smooth.
- Step 4: Bake – Pour batter into the pan and bake for 30-35 minutes until golden and a toothpick comes out clean.
- Step 5: Cool and Serve – Let cool before slicing and serving.
Notes
- Make Ahead: This cake stays fresh for up to 2 days at room temperature and 5 days refrigerated.
- Customizing the Flavor: Add shredded coconut or chopped nuts for extra texture.
- Serving Suggestions: Serve with whipped cream or a dusting of powdered sugar.
- Allergy-Friendly Options: Use gluten-free flour for a gluten-free version.
- Storage Tips: Store in an airtight container; freeze for up to 2 months.
This is one of those recipes that I keep coming back to because it asks very little and delivers a lot. No special equipment, no obscure ingredients, no techniques that require practice. A can of crushed pineapple, a bowl, a wooden spoon, and about 40 minutes in the oven. The cream cheese frosting takes another 5 minutes. I've made this for Zainab's school events, for Eid gatherings, for a Wednesday night when I just wanted something sweet — it fits every occasion because it's unfussy in the best possible way.
If you're a regular baker, this will feel refreshingly uncomplicated. If you don't bake often and you're nervous about getting a cake right, this is honestly a good one to start with. The pineapple makes it very forgiving — even if you slightly overbake it, the moisture from the fruit keeps the crumb from getting dry. I've tested this enough times now that I'm confident it works in most kitch





Comments
No Comments