Pineapple Zucchini Cake is the kind of dessert that makes summer baking feel effortless. Fresh shredded zucchini and juicy crushed pineapple give the cake an incredibly tender, moist texture, while cinnamon, coconut, and vanilla add warm, inviting flavor. Finish it with a smooth cream cheese frosting, and you have a simple sheet cake that works just as well for a family dessert as it does for a potluck or summer gathering.
One of the best things about this recipe is that the zucchini doesn’t overpower the dessert. Instead, it quietly adds moisture while pineapple provides fruity sweetness and a subtle tropical flavor. Even better, you can prepare the cake batter without pulling out an electric mixer.
Table of Contents
Why This Pineapple Zucchini Cake Is So Moist
The secret to a memorable Pineapple Zucchini Cake is the combination of two naturally moisture-rich ingredients: zucchini and crushed pineapple.
Shredded zucchini softens as the cake bakes and practically disappears into the crumb. This keeps the cake tender without requiring a large amount of added oil. Crushed pineapple contributes additional moisture along with its distinctive sweet-tart flavor.
The cake also includes cinnamon for warmth, vanilla for depth, and shredded coconut for extra texture. A rich cream cheese frosting balances all of those sweet flavors with just enough tanginess.
It’s somewhat reminiscent of carrot cake, especially once the cream cheese frosting and optional toasted nuts are added, but the pineapple gives this zucchini dessert its own bright personality.
Ingredients That Make This Pineapple Zucchini Cake Delicious
For the Cake
- All-purpose flour: Creates the structure that holds this soft, moist cake together.
- Granulated sugar: Sweetens the cake and contributes to its tender texture.
- Sweetened flaked coconut: Adds subtle tropical sweetness and a pleasantly chewy texture.
- Baking soda: Provides the leavening needed for a light, tender crumb.
- Kosher salt: Balances the sweetness and enhances the cinnamon, pineapple, and vanilla flavors.
- Ground cinnamon: Adds warm spice that pairs beautifully with zucchini and pineapple.
- Canola or vegetable oil: Adds richness and helps keep the crumb soft without making it heavy.
- Eggs: Bind the batter together while contributing structure and richness.
- Pure vanilla extract: Adds a fragrant sweetness that rounds out the other flavors.
- Fresh zucchini: Provides essential moisture and creates an exceptionally tender cake.
- Crushed pineapple in juice: Adds sweetness, fruity flavor, and additional moisture.
For the Cream Cheese Frosting
- Unsalted butter: Gives the frosting richness and a silky consistency.
- Cream cheese: Creates the characteristic creamy texture and tangy flavor.
- Powdered sugar: Sweetens and thickens the frosting so it spreads easily.
- Pure vanilla extract: Enhances the cream cheese and complements the cake.
- Pineapple juice or milk: Can loosen the frosting if it becomes too thick.
- Pecans or walnuts: An optional topping that provides crunch and nutty flavor.
Ingredient Swaps and Easy Variations
Pineapple Zucchini Cake is surprisingly flexible, so a few adjustments can be made without losing its signature moist texture.
If coconut isn’t your favorite, simply leave it out. Unsweetened shredded coconut can also replace sweetened coconut when you prefer a less-sweet result.
Instead of vegetable or canola oil, use another neutral-flavored oil such as avocado oil. Avoid strongly flavored oils unless you specifically want their flavor to come through in the finished cake.
Pecans and walnuts are particularly good additions. About 3/4 to 1 cup of chopped nuts can be folded into the cake batter. Toasting them first develops a deeper, nuttier flavor.
For an extra tropical zucchini cake, garnish the frosting with a light scattering of toasted coconut alongside the chopped nuts.
How to Make Pineapple Zucchini Cake
The original recipe uses a 9-by-13-inch baking pan and a 350°F oven. Preparing the batter is straightforward, and no mixer is necessary until it’s time to make the frosting.
- Prepare the oven and baking pan. Preheat the oven to 350°F. Coat a 9-by-13-inch baking pan with nonstick cooking spray. You can also line the pan with parchment for easier removal.
- Prepare the zucchini. Grate the zucchini without peeling it. If you’re working with an especially large zucchini, remove the large seeds from the center before shredding. Spread the grated zucchini over several layers of paper towels to absorb excessive surface moisture, but don’t squeeze it completely dry.
- Drain the pineapple. Drain a 20-ounce can of crushed pineapple, but save some of the juice. The reserved juice is useful if the batter needs additional moisture or if you want to loosen the cream cheese frosting later.
- Combine the dry ingredients. In a large mixing bowl, whisk together 1 1/2 cups all-purpose flour, 1 1/4 cups granulated sugar, 1/2 cup sweetened flaked coconut, 2 teaspoons baking soda, 1 teaspoon kosher salt, and 2 teaspoons ground cinnamon.
- Mix the wet ingredients. In a separate bowl, whisk 3 tablespoons canola or vegetable oil with 2 large eggs and 2 teaspoons pure vanilla extract until evenly combined.
- Finish the Pineapple Zucchini Cake batter. Add the egg mixture, 2 cups grated zucchini, and drained crushed pineapple to the dry ingredients. Stir until everything is evenly incorporated. The batter can initially look surprisingly stiff, but the zucchini and pineapple will release moisture as you mix.
- Adjust the consistency if necessary. If the batter remains excessively dry after thorough mixing, add a small splash of the reserved pineapple juice. Add only enough to help the ingredients come together rather than making the batter runny.
- Bake the cake. Spread the batter evenly in the prepared baking pan. Bake for approximately 33 to 35 minutes. The Pineapple Zucchini Cake is ready when it begins pulling slightly away from the edges and a wooden pick inserted near the center comes out clean or with a few moist crumbs.
- Cool completely. Transfer the pan to a wire rack and allow the cake to reach room temperature before frosting. Adding cream cheese frosting to a warm cake can cause it to melt and slide across the surface.
- Make the cream cheese frosting. Beat 8 ounces softened cream cheese with 4 tablespoons softened unsalted butter until smooth and thoroughly combined, about 5 minutes. Gradually mix in 1 pound powdered sugar, followed by 2 teaspoons vanilla extract. Continue beating for several minutes until fluffy and smooth.
- Frost and garnish. Spread the cream cheese frosting evenly over the cooled cake. If desired, finish with toasted chopped pecans or walnuts before slicing.
Essential Tips for the Best Pineapple Zucchini Cake
Getting the moisture balance right makes a major difference with Pineapple Zucchini Cake. Zucchini contains a lot of water, but removing every drop isn’t the goal. That moisture is partly responsible for the cake’s beautifully soft crumb.
Rather than wringing shredded zucchini aggressively, spread it over paper towels and allow them to absorb some excess liquid. This is especially important when using a large garden zucchini, which can contain considerably more water.
Drain the crushed pineapple well, but don’t discard the juice immediately. The batter may look dry when you first begin stirring. Give it time before adding extra liquid because the zucchini will start releasing moisture.
Measure the flour carefully as well. Packing too much flour into the measuring cup can produce a dense or dry cake. Spoon flour gently into the measuring cup and level the surface rather than compacting it.
Finally, don’t frost a warm Pineapple Zucchini Cake. Cream cheese frosting needs a completely cooled surface to maintain its thick, creamy consistency.
How to Make Smooth Cream Cheese Frosting
Cream cheese frosting is more than a decorative finish here. Its slightly tangy flavor provides an important contrast to the pineapple, sugar, coconut, and cinnamon in the cake.
Start with softened butter and cream cheese. Ingredients that are too cold can leave small lumps in the frosting, while ingredients that are excessively warm may create a loose consistency.
Beat the butter and cream cheese thoroughly before introducing powdered sugar. Add the sugar gradually on low speed, then incorporate vanilla and continue beating until the mixture becomes creamy and spreadable.
If the frosting seems too thick, add just a splash of reserved pineapple juice or milk. Pineapple juice is particularly appealing because it reinforces the fruit flavor already present in the cake.
The original recipe produces a generous layer of frosting. Bakers who prefer a lighter finish can halve the frosting ingredients.
Serving Ideas for Pineapple Zucchini Cake
This Pineapple Zucchini Cake is rich enough to serve completely on its own, especially with a generous layer of cream cheese frosting.
For additional texture, sprinkle toasted walnuts or pecans across the top. Their slightly savory nuttiness balances the sweetness and gives the soft cake a satisfying crunch.
Toasted coconut is another natural pairing. It emphasizes the tropical notes from the crushed pineapple without changing the fundamental character of the zucchini cake.
Serve slices chilled for a firmer texture or allow them to sit briefly at room temperature for a softer crumb and creamier frosting. It makes an excellent dessert for summer cookouts, family gatherings, afternoon coffee, or any occasion when garden zucchini needs a delicious purpose.
How to Store Pineapple Zucchini Cake
Because Pineapple Zucchini Cake is topped with cream cheese frosting, it should be covered and stored in the refrigerator. Properly refrigerated, it will keep well for approximately 3 to 4 days.
For longer storage, the unfrosted cake can be frozen. Wrap the completely cooled cake securely in plastic wrap followed by foil and freeze it for up to 2 months.
Cream cheese frosting can be frozen separately in an airtight container for around 1 to 2 months. After thawing, let it soften appropriately and beat it again briefly to restore its smooth consistency before frosting the cake.
Individual frosted slices can also be frozen. Freeze the pieces uncovered on a tray until firm, then wrap each slice well and transfer the portions to a freezer-safe bag. For best quality, use individually frozen slices within about a month.
Why Pineapple and Zucchini Work So Well Together
Zucchini has a mild flavor, which makes it particularly useful in baking. Instead of making a dessert taste strongly vegetal, it primarily contributes moisture and tenderness.
Pineapple brings the stronger personality. Its fruity acidity and sweetness brighten the warm cinnamon and coconut while preventing the dessert from tasting one-dimensional.
That’s why Pineapple Zucchini Cake is particularly useful during late summer, when home gardens often produce zucchini faster than it can be used in savory meals. It turns a familiar vegetable into a genuinely satisfying dessert while still allowing pineapple, vanilla, and cream cheese to take center stage.
A Moist Zucchini Cake Worth Making Again
Pineapple Zucchini Cake combines everything you want from an easy homemade sheet cake: straightforward preparation, a tender crumb, warm cinnamon, juicy pineapple, and rich cream cheese frosting.
The recipe is also forgiving enough for practical variations. Leave out the coconut, add toasted pecans or walnuts, reduce the frosting, or freeze portions for later. Most importantly, handle the zucchini gently and preserve some of its natural moisture.
Whether you’re trying to use an abundance of garden zucchini or simply craving an easy pineapple dessert, this Pineapple Zucchini Cake delivers a soft, flavorful slice topped with creamy frosting and just the right balance of fruit, spice, and sweetness.
Final Thoughts on Pineapple Zucchini Cake
Pineapple Zucchini Cake is a wonderfully moist dessert that turns simple ingredients into something special. Fresh shredded zucchini keeps every bite tender, while crushed pineapple adds natural sweetness and a bright, fruity flavor. Cinnamon, coconut, and vanilla bring everything together, and the tangy cream cheese frosting provides the perfect finishing touch.
This easy zucchini cake is especially useful when summer gardens are overflowing with fresh zucchini. It requires straightforward preparation, works beautifully in a 9-by-13-inch pan, and can even be made ahead for parties, potlucks, or family gatherings.
For the best Pineapple Zucchini Cake, avoid squeezing all the moisture from the shredded zucchini, drain the pineapple well, and allow the cake to cool completely before adding the frosting. Toasted pecans, walnuts, or coconut can add an extra layer of flavor and texture.
Whether you’re searching for a new zucchini dessert or simply love moist fruit-filled cakes, this Pineapple Zucchini Cake deserves a place in your baking rotation.
Pineapple Zucchini Cake FAQs
Can I Make Pineapple Zucchini Cake Ahead of Time?
Yes. Pineapple Zucchini Cake is an excellent make-ahead dessert because its moist crumb stays tender after refrigeration.
You can bake the cake a day ahead, cool it completely, cover it, and refrigerate it. Add the cream cheese frosting before serving, or frost the cake in advance and keep the finished dessert covered in the refrigerator.
For the best texture and flavor, allow chilled slices to sit at room temperature briefly before serving.
Can I Use Fresh Pineapple Instead of Canned Crushed Pineapple?
Canned crushed pineapple in juice is the easiest and most predictable option because its moisture and texture are consistent. Fresh pineapple can work, but it should be finely crushed or chopped and thoroughly drained before being incorporated into the batter.
Fresh fruit can contain a different amount of liquid, so watch the consistency of your Pineapple Zucchini Cake batter. It should be thick and moist rather than watery.
Can I Freeze Pineapple Zucchini Cake?
Yes. For longer storage, freezing the unfrosted cake generally gives the most convenient results. Once completely cool, wrap it tightly in plastic wrap and then foil before freezing for up to 2 months.
Individual slices can also be frozen. Firm them in the freezer first, wrap each portion securely, and place the wrapped slices in a freezer-safe bag. Thaw Pineapple Zucchini Cake in the refrigerator before serving.
More Relevant Recipes
- Easy Zucchini Whoopie Pies with Cream Cheese Filling
- Easy Zucchini Blondies with Penuche Fudge Frosting
- Easy Zucchini Coconut Muffins That Stay Perfectly Moist

Pineapple Zucchini Cake
- Total Time: 1 hour
- Yield: 12 servings
- Diet: Vegetarian
Description
Pineapple Zucchini Cake is a moist, warmly spiced sheet cake made with shredded zucchini, crushed pineapple, coconut, and vanilla, then finished with a rich cream cheese frosting. It is an easy summer dessert that stays tender and flavorful thanks to the natural moisture from the zucchini and pineapple.
Ingredients
- 1 1/2 cups all-purpose flour
- 1 1/4 cups granulated sugar
- 1/2 cup sweetened flaked coconut
- 2 teaspoons baking soda
- 1 teaspoon kosher salt
- 2 teaspoons ground cinnamon
- 3 tablespoons canola or vegetable oil
- 2 large eggs
- 2 teaspoons pure vanilla extract
- 2 cups grated unpeeled zucchini
- 1 (20-ounce) can crushed pineapple in juice, drained, juice reserved
- 4 tablespoons unsalted butter, softened
- 8 ounces cream cheese, softened
- 1 pound powdered sugar
- 2 teaspoons pure vanilla extract
- Splash of milk or reserved pineapple juice, if needed
- Chopped pecans or walnuts, optional
Instructions
- Preheat the oven to 350°F. Spray a 9×13-inch baking pan with nonstick cooking spray.
- In a large bowl, whisk together the flour, sugar, coconut, baking soda, salt, and cinnamon.
- In a medium bowl, whisk together the oil, eggs, and vanilla.
- Stir the egg mixture, grated zucchini, and drained crushed pineapple into the dry ingredients until evenly combined. If the batter still seems too dry after thorough mixing, add a small splash of the reserved pineapple juice.
- Spread the batter evenly in the prepared pan.
- Bake for 33 to 35 minutes, or until the cake begins to pull away from the sides of the pan and a wooden pick inserted in the center comes out clean or with a few moist crumbs.
- Cool the cake completely on a wire rack before frosting.
- To make the frosting, beat the softened cream cheese and butter together until smooth and well combined, about 5 minutes, scraping down the bowl as needed.
- Gradually add the powdered sugar on low speed and mix until smooth. Add the vanilla, then beat on medium speed for about 5 more minutes. Add a small splash of milk or reserved pineapple juice if the frosting needs thinning.
- Spread the cream cheese frosting over the cooled cake and garnish with chopped toasted pecans or walnuts if desired.
Notes
- If using a large zucchini, remove the large seeds from the center before shredding to prevent excess water.
- After grating, spread the zucchini on paper towels to absorb excess surface moisture, but do not squeeze it completely dry.
- Reserve the pineapple juice in case the cake batter or frosting needs a small amount of extra liquid.
- For added texture, fold 3/4 to 1 cup chopped pecans or walnuts into the batter.
- The frosting recipe makes a generous amount; halve the frosting ingredients if you prefer a thinner layer.
- Store the frosted cake covered in the refrigerator for 3 to 4 days.
- The unfrosted cake can be wrapped well and frozen for up to 2 months.
- Prep Time: 25 minutes
- Cook Time: 35 minutes
- Category: Dessert
- Method: Baking
- Cuisine: American
Nutrition
- Serving Size: 1 slice
- Calories: 358
- Sugar: 50 g
- Sodium: 345 mg
- Fat: 12 g
- Saturated Fat: 6 g
- Unsaturated Fat: 5 g
- Trans Fat: 0.1 g
- Carbohydrates: 61 g
- Fiber: 1 g
- Protein: 3 g
- Cholesterol: 42 mg

