This practically perfect pineapple cake is a soft, moist sheet cake made with crushed pineapple and topped with tangy cream cheese frosting. The pineapple goes into the batter with its juice, so there is no need to peel or prepare fresh fruit. Before you begin, set out a 9-by-13-inch baking pan, check that your cream cheese and butter can soften, and allow enough time for the cake to cool fully before frosting. The recipe makes about 12 to 15 servings.
What You’ll Need
- For the cake: 2 cups (250 g) all-purpose flour, 1½ cups (300 g) granulated sugar, 2 teaspoons baking soda, ½ teaspoon fine salt, 2 large eggs, 1 can (20 ounces/567 g) crushed pineapple in juice, undrained, ½ cup (120 ml) neutral oil such as canola or vegetable oil, and 1 teaspoon vanilla extract.
- For the frosting: 8 ounces (225 g) full-fat cream cheese, softened; ½ cup (113 g) unsalted butter, softened; 3 cups (360 g) powdered sugar, sifted if lumpy; 1 teaspoon vanilla extract; and a small pinch of salt.
- Optional finishing touches: ½ cup chopped toasted pecans or walnuts, or a little finely grated lemon zest. Leave these out if you want a smooth, classic finish.
- Equipment: a 9-by-13-inch metal baking pan, parchment paper, mixing bowls, a whisk, a flexible spatula, measuring cups or a kitchen scale, and an electric mixer for the frosting. A toothpick or thin skewer helps check doneness.
Step-by-Step
- Prepare the pan and oven. Set a rack in the middle of the oven and heat it to 350°F (175°C). Lightly grease the 9-by-13-inch pan, line its bottom with parchment if you like, then grease the parchment too. A metal pan heats reliably and gives the cake an even bake. If using a glass pan, start checking a few minutes earlier because it can retain heat differently.
- Measure the ingredients accurately. If measuring flour by volume, fluff it in its container, spoon it into the measuring cup, and level the top rather than scooping directly with the cup. Scooping can pack in extra flour and make the cake dry. Use the entire can of crushed pineapple, including the juice; do not drain it. Stir the can contents first if the fruit and liquid have separated.
- Whisk the dry ingredients. In a large bowl, whisk together the flour, sugar, baking soda, and salt until evenly combined and no obvious clumps of baking soda remain. This quick step helps the leavener spread throughout the batter, preventing bitter spots or uneven rising. There is no need to sift the flour unless it is especially lumpy.
- Combine the wet ingredients. In a second bowl, beat the eggs lightly with a fork or whisk. Add the undrained crushed pineapple, oil, and vanilla, then stir until the mixture looks uniform. The mixture may seem loose and quite wet; that is expected. The juice provides moisture and flavor, while the oil helps the finished cake stay tender after chilling.
- Make the batter without overmixing. Pour the pineapple mixture into the bowl of dry ingredients. Fold with a spatula, scraping the bottom and sides, just until no dry streaks of flour remain. The batter will be fairly thick but moist, with visible pieces of pineapple. Stop mixing as soon as it comes together; prolonged beating can develop gluten and make the crumb tougher.
- Fill the pan. Scrape all the batter into the prepared pan and spread it into the corners with the spatula. Give the pan one gentle tap on the counter to release large trapped air pockets. Do not keep banging it or try to smooth every tiny surface mark; the cake will level as it bakes.
- Bake until the center is set. Bake for about 32 to 38 minutes. Begin checking at 32 minutes: insert a toothpick near the center, avoiding a large piece of fruit. It should come out clean or with a few moist crumbs, not streaked with raw batter. The top should be golden, and the center should spring back lightly when touched. If the toothpick has wet batter, bake for another 3 to 5 minutes and check again.
- Cool completely. Set the pan on a wire rack and leave the cake in it for at least 1½ to 2 hours. The middle can stay warm after the surface feels cool, so check before adding frosting. Frosting warm cake will melt and slide. If you are short on time, once the pan is no longer hot, refrigerate the uncovered cake briefly; do not put a steaming-hot pan straight into the refrigerator.
- Make the frosting. Beat the softened cream cheese and butter together on medium speed until smooth, scraping the bowl once or twice. Add the powdered sugar gradually on low speed so it does not puff out of the bowl. Mix in the vanilla and salt, then beat briefly until creamy. Stop when the frosting is smooth; extended whipping can make it loose. If it seems too soft, chill it for 15 to 20 minutes.
- Frost and serve. Spread the frosting in an even layer over the fully cooled cake. Add nuts or lemon zest if using. For neat slices, chill the frosted cake for about 30 minutes, then cut it with a clean knife, wiping the blade between cuts. The cake is also delicious at room temperature, when the crumb and frosting feel softer.
Common Mistakes
Draining the pineapple: This recipe is balanced for crushed pineapple with its juice. Draining it removes moisture and can leave the cake less tender. Use a 20-ounce can packed in juice, not syrup, and add the fruit and liquid together. If you only have pineapple in syrup, it will make the cake sweeter; drain it and use about ½ cup of the syrup as the liquid, rather than adding the whole can of syrup.
Using pineapple chunks instead of crushed pineapple: Larger pieces distribute less evenly and can create wet pockets. If chunks are all you have, pulse them briefly in a food processor or chop them finely, then measure the fruit and juice together. Avoid turning them into a smooth puree, which changes the batter’s texture.
Overmixing after adding flour: Stirring until the batter is perfectly smooth is unnecessary. A few tiny lumps are less troublesome than a dense, chewy cake. Fold just until the last dry streak disappears, and scrape the bowl once so flour is not left at the bottom.
Frosting before the cake is cool: Even slightly warm cake softens cream cheese frosting. Give the center enough time to cool, not just the edges. Also, do not add extra pineapple juice to the frosting to make it taste more fruity; excess liquid can make it runny. For more pineapple flavor, serve with a spoonful of well-drained fruit instead.
Tips
For the most dependable result, weigh the flour and sugar if you have a kitchen scale. If you do not, use the spoon-and-level method for flour and avoid pressing it into the cup. Check the expiration date on the baking soda: old leavener can leave a cake flat. The acidic pineapple activates the baking soda, so there is no need to add baking powder or an extra acidic ingredient.
Bring the eggs to room temperature for a batter that combines easily, though cold eggs will still work. To warm them quickly, place them in a bowl of lukewarm water for about 10 minutes before cracking. For the frosting, softened means cool but pliable: a finger should leave an indentation in the butter and cream cheese, but neither should look glossy or melted.
Toast optional nuts in a dry skillet over medium-low heat for a few minutes, stirring often, until fragrant; cool them before adding. Toasting boosts their flavor and keeps them crisp. If you prefer a less sweet finish, spread on a thinner layer of frosting and keep the remaining frosting covered in the refrigerator. A small amount of lemon zest can brighten the pineapple without making the cake taste sharply citrusy.
Store the frosted cake covered in the refrigerator because the frosting contains cream cheese. For the best texture, let a slice sit at room temperature for 15 to 20 minutes before eating. You can bake the cake a day ahead, cool it, cover it, and frost it the next day. If serving outdoors or in a warm room, keep the cake chilled until close to serving time.
Troubleshooting
The center is still wet when the edges look done: Return the cake to the oven and check it every 3 to 5 minutes. If the top is already deeply browned, loosely lay foil over the pan to slow further browning. Make sure the oven temperature is accurate if this happens often; an inexpensive oven thermometer can reveal a large difference between the dial and the actual heat.
The cake turned out dense or gummy: The most common causes are too much flour, overmixing, or underbaking. Measure flour lightly, fold the batter only until combined, and test the center rather than relying solely on the timer. If the cake is gummy only in a few spots, a large piece of pineapple may have been sitting there; use crushed fruit and stir the can before measuring next time.
The cake sank in the middle: A cake can collapse if it is removed while the center is underbaked, if the oven door is opened repeatedly early in baking, or if the baking soda is old or measured incorrectly. Wait until the top springs back and the tester shows no raw batter. A small dip is still perfectly edible: cover it with frosting and cut the cake into squares as usual.
The frosting is lumpy, runny, or sliding: For lumps, let the cream cheese soften fully and beat it with the butter before adding sugar. If it is runny, refrigerate it for 15 to 20 minutes, then stir briefly. If it still will not hold its shape, beat in powdered sugar a few tablespoons at a time. If it slides off the cake, chill the cake and frosting separately until firmer, and make sure the cake itself is completely cool.
The cake seems too sweet: Use the recommended cream cheese frosting in a thinner layer, and avoid pineapple packed in syrup. The cake itself is sweet, so a modest frosting layer is often enough. A pinch of salt in the frosting and a little lemon zest can also balance the sweetness without changing the recipe’s structure.
Frequently Asked Questions
Can I use fresh pineapple?
Yes, but chop it very finely and include enough juice to match the moisture from the canned pineapple. Fresh pineapple varies in juiciness, so canned crushed pineapple in juice is the most consistent choice for this recipe. Do not substitute large fresh chunks without chopping them first.
Can I make this cake without frosting?
Yes. The cake is flavorful and moist on its own, and you can dust it lightly with powdered sugar after it cools. You could also serve it with whipped cream. If skipping frosting, store the cake covered at room temperature for up to two days, or refrigerate it for longer freshness.
Can I bake it in a different pan?
A 9-by-13-inch pan is the intended size. Two 9-inch round pans may work, but the layers will bake faster, so begin checking around 25 minutes and use a tester. Do not fill any pan more than about two-thirds full; bake extra batter as cupcakes rather than risking an overflow.
Can I make the cake ahead or freeze it?
Yes. Bake and cool it, then wrap the unfrosted cake well and refrigerate for up to two days. For longer storage, freeze it tightly wrapped for up to two months and thaw it overnight in the refrigerator. Frost after thawing. You can also freeze individual frosted slices in airtight wrapping and thaw them in the refrigerator.
How should I store leftover frosted cake?
Cover it and refrigerate for up to four days. For the best flavor and texture, let each serving stand at room temperature for 15 to 20 minutes before eating. Do not leave cream cheese-frosted cake at room temperature for more than two hours, or more than one hour in very hot conditions.