Pineapple zucchini cake is a moist, tender loaf that balances the sweetness of crushed pineapple with the mild crunch of grated zucchini. It pairs perfectly with a rich cream cheese frosting and serves well as a snack or dessert for family gatherings.
Ingredients
- 2 cups (250 g) all-purpose flour
- 1 tsp baking soda
- 1 tsp ground cinnamon
- ½ tsp ground nutmeg
- ½ tsp salt
- 1 cup (200 g) granulated sugar
- ½ cup (113 g) unsalted butter, softened
- 2 large eggs, room temperature
- ½ cup (120 ml) vegetable oil
- 1 tsp vanilla extract
- 1 cup (240 g) crushed pineapple, drained
- 1 cup (120 g) finely grated zucchini
Frosting Ingredients
- 8 oz (226 g) full-fat cream cheese, softened
- ¼ cup (57 g) unsalted butter, softened
- 1 ½ cups (180 g) powdered sugar
- 1 tsp vanilla extract
Prep Phase
Start by preparing your zucchini to ensure the cake stays moist but not soggy. Wash one medium zucchini (about 6 inches long), then grate it using a box grater or food processor until you have 1 cup (120 g). Place the grated zucchini in a clean kitchen towel or cheesecloth and squeeze firmly over the sink to remove excess water; this step prevents the batter from becoming too wet. Set the squeezed zucchini aside.
Next, drain the crushed pineapple thoroughly. If using canned pineapple, pour it into a colander and press down with a spoon to release liquid. If using fresh pineapple, pulse it in a food processor and drain similarly. You need exactly 1 cup (240 g) of drained fruit. Preheat your oven to 350°F (175°C) and grease a 9×5-inch (23×13 cm) loaf pan with non-stick spray or butter. Line the bottom with parchment paper for easy removal later.
Cooking Phase
In a medium bowl, whisk together the flour, baking soda, cinnamon, nutmeg, and salt until no lumps remain. This ensures even rising and consistent flavor distribution throughout the crumb.
In a large mixing bowl, beat the softened butter and granulated sugar on medium speed for about 3 minutes until light and fluffy. Add the eggs one at a time, beating well after each addition. Mix in the vegetable oil and vanilla extract until fully combined. The mixture should look smooth and creamy.
Reduce the mixer speed to low. Add the dry ingredients in three parts, alternating with the drained pineapple and squeezed zucchini in two parts, beginning and ending with the dry ingredients. Mix only until just combined; overmixing develops gluten and makes the cake tough. Fold in any remaining bits of pineapple or zucchini by hand if needed.
Pour the batter into the prepared loaf pan and smooth the top with a spatula. Bake at 350°F (175°C) for 55 to 65 minutes. The cake is done when the top is golden brown, springs back lightly when touched, and a toothpick inserted into the center comes out clean or with a few moist crumbs (no wet batter). The internal temperature should reach 200–210°F (93–99°C) for optimal moisture retention.
Remove the pan from the oven and let the cake cool in the pan for 15 minutes. Then turn it out onto a wire rack to cool completely before frosting. Cooling completely is critical; if the cake is warm, the cream cheese frosting will melt and slide off.
Finish Phase: Frosting
While the cake cools, make the frosting. In a clean bowl, beat the softened cream cheese and butter together on medium-high speed for 2–3 minutes until completely smooth and free of lumps. Gradually add the powdered sugar, one cup at a time, beating on low speed initially to prevent powder clouds, then increasing to high speed for 1 minute until fluffy.
Mix in the vanilla extract. Spread the frosting evenly over the cooled cake using an offset spatula or knife. For a neat finish, chill the frosted cake in the refrigerator for 30 minutes to set the frosting before slicing.
Serving Suggestions
Slice the cake into 12 even pieces using a sharp serrated knife. Serve with a cup of black coffee or tea, as the richness of the frosting complements bitter beverages well. Store leftovers immediately to maintain freshness.
Substitutions and Swaps
- Butter: Use equal amounts of refined coconut oil for a dairy-free option. Note: Coconut oil has a lower melting point, so keep the cake refrigerated more strictly.
- Sugar: Substitute half the granulated sugar with light brown sugar for a deeper, molasses-like flavor. The cake may spread slightly more.
- Zucchini: Yellow summer squash can be used interchangeably with green zucchini. Grate and squeeze exactly the same way.
- Pineapple: Crushed peaches or pears work well as substitutes. Drain them thoroughly to match the pineapple’s moisture level.
- Flour: Replace up to ¼ cup of all-purpose flour with whole wheat flour for added fiber. The texture will be denser.
Storage and Safety
Because the cake contains cream cheese frosting, it is perishable. Refrigerate the cake within 2 hours of serving. Cover loosely with plastic wrap or store in an airtight container. The cake keeps for 4–5 days in the refrigerator.
For longer storage, freeze unfrosted cake layers wrapped tightly in plastic wrap and foil for up to 3 months. Thaw overnight in the fridge before frosting. Do not leave the frosted cake at room temperature for more than 2 hours (1 hour if the ambient temperature is above 90°F/32°C) due to the dairy content.
Common Questions
Can I use frozen zucchini? Yes, thaw it completely and squeeze out as much liquid as possible. Frozen zucchini releases more water, so extra squeezing is essential.
Why did my cake sink in the middle? This usually happens if the oven temperature was too high, causing the structure to set too quickly before the center cooked, or if the pan was opened too early during baking. Ensure your oven is properly calibrated.
Is raw flour safe? No. Raw flour can contain E. coli. Always bake the cake fully to kill any potential bacteria. Heat-treated flour is only needed if you eat the batter raw, which is not recommended.
Related
- How to Plant Rubber Tree Leaves
- How to Roast Shoulder of Beef
- How to Reheat Shrimp Scampi Without Tough Shrimp
Spotted a mistake? Tell us and we will correct it. How we write and check articles.