Moist Pineapple Zucchini Cake

Moist Pineapple Zucchini Cake

Moist Pineapple Zucchini Cake is a tender, beginner-friendly dessert with warm cinnamon flavor, light tropical sweetness, and a silky cream cheese frosting. It is a great make-ahead cake for potlucks, family gatherings, and casual weekend baking.

This is the kind of cake that feels right at home on a dessert table but is simple enough for an ordinary afternoon in your kitchen. It bakes in one pan, slices neatly, and brings together familiar pantry staples with fresh zucchini and pineapple.

What makes it so appealing is the balance. The zucchini keeps the crumb soft, the drained pineapple adds gentle sweetness without making the cake heavy, and the coconut gives the batter a little extra character.

The cream cheese frosting ties everything together with a smooth, rich finish. Once chilled slightly or served at cool room temperature, each slice has that lovely contrast of moist spiced cake and creamy topping.

Pineapple Zucchini Cake Ingredients

Flour gives the cake its structure and keeps the crumb soft but sturdy enough for frosting.

Granulated sugar sweetens the batter without overpowering the fruit and spice.

Baking soda helps the cake rise well and keeps the texture light in a sheet cake format.

Ground cinnamon brings warmth and depth, which works especially well with pineapple and coconut.

Kosher salt sharpens the flavor and keeps the sweetness balanced.

Sweetened shredded coconut adds subtle texture and a gentle tropical note that fits naturally with the pineapple.

Eggs bind the batter and help the cake bake up tender and cohesive.

Vegetable oil keeps the crumb moist and soft, even after the cake has cooled.

Vanilla essence rounds out both the cake and frosting with a familiar bakery-style flavor.

Grated zucchini adds moisture without making the cake taste vegetal, which is exactly why it works so well in bakes like this.

Crushed pineapple, well drained brings fruity sweetness and moisture, but draining it well is important so the batter stays balanced.

Cream cheese forms the base of the frosting and gives it that tangy richness that pairs beautifully with the spiced cake.

Butter softens the edge of the cream cheese and helps the frosting whip up smooth.

Icing sugar sweetens the frosting and creates that classic fluffy, spreadable finish.

Milk or pineapple juice can be used sparingly to loosen the frosting only if needed.

Toasted pecans or walnuts are optional, but they add a nice crunchy contrast on top.

Cooking Steps

STEP 1: Preheat your oven and prepare a 9 × 13-inch pan with a light coating of nonstick spray. This cake is designed to be simple and fuss-free, so getting the pan ready first makes the rest of the process move quickly.

STEP 2: In a large bowl, combine the dry ingredients until everything looks evenly distributed. This helps the cinnamon, baking soda, coconut, and salt spread through the batter so you get a consistent flavor and texture in every slice.

STEP 3: In a separate bowl, whisk the eggs, oil, and vanilla, then add that mixture to the dry ingredients. Fold in the grated zucchini and thoroughly drained pineapple. Do not worry if the batter looks a bit stiff at first, because the moisture from the zucchini and fruit usually loosens it as you keep mixing.

STEP 4: Spread the batter evenly into the prepared pan and bake until the center is set and a tester comes out with moist crumbs rather than wet batter. The edges should look lightly pulled from the pan, and the top should feel springy.

STEP 5: Let the cake cool completely before frosting. This matters more than it seems, because even slight warmth can melt the cream cheese frosting and make the finish look loose instead of smooth.

STEP 6: Beat the cream cheese and butter until fully smooth, then gradually mix in the icing sugar and vanilla. Add a tiny splash of milk or pineapple juice only if the frosting needs loosening. Spread it over the cooled cake and finish with toasted nuts if you want a little crunch.

Why does the batter seem dry at first?

That is normal for this cake. Before the zucchini and pineapple fully release their moisture, the mixture can look thicker than expected. Keep folding gently first, then add only a very small splash of reserved pineapple juice if it still feels too stiff after everything is well combined.

Helpful Tips

  • Drain the crushed pineapple thoroughly so the cake stays tender instead of overly wet or dense.
  • Grate the zucchini finely and avoid squeezing out all of its moisture, since that natural moisture helps the crumb stay soft.
  • Frost only when the cake is fully cool for the cleanest finish and the best texture.

Can I make this cake ahead of time?

Yes, and it is actually a very good make-ahead dessert. You can bake the cake a day in advance, cover it once fully cool, and frost it later. The flavor settles nicely, and the soft crumb holds up well for serving the next day.

What to Serve with Pineapple Zucchini Cake

A hot cup of coffee is a great match if you want to lean into the cinnamon and cream cheese frosting. The slight bitterness of coffee balances the sweetness nicely.

Tea also works beautifully, especially something plain and mellow that will not compete with the pineapple. A simple black tea or light spiced tea makes this cake feel especially cozy.

For a dessert spread, serve it alongside fresh fruit. Something bright and not too sweet helps keep the whole plate feeling balanced, especially after a rich main meal.

Do I need to peel the zucchini?

Usually, no. The skin is thin, softens during baking, and blends into the cake easily once grated. Leaving it on saves time and adds color without changing the texture in any unpleasant way, especially in a warmly spiced sheet cake like this.

How to Store & Reheat

Because of the cream cheese frosting, this cake is best stored covered in the refrigerator. It should keep well for about 4 to 5 days. For the best texture, let a slice sit at room temperature for a short while before serving so the frosting softens slightly and the cake tastes less chilled.

If you want to freeze it, the easiest method is to freeze the cake in slices. Place the slices on a tray until firm, then wrap them well and store them in a freezer-safe container for up to 2 months. Thaw them in the refrigerator overnight.

You do not really need to reheat this cake, but if you prefer a less chilled slice, let it rest on the counter for 20 to 30 minutes. That is usually enough to bring back the soft crumb and creamy frosting without risking a melted top.

Can I use pineapple juice in the frosting?

Yes, but only a little. Pineapple juice can add a subtle fruity note, but too much will thin the frosting quickly. Start with the smallest splash possible and stop as soon as the frosting reaches a smooth, spreadable consistency.

Pineapple Zucchini Cake

A tender sheet cake enriched with shredded zucchini, well-drained crushed pineapple, and coconut, then finished with a smooth cream cheese frosting. The result is moist, warmly spiced, and balanced with a light, fruity sweetness.
Print Pin Rate
Course: Cake, Dessert
Cuisine: American
Keyword: Pineapple Zucchini Cake
Prep Time: 20 minutes
Cook Time: 35 minutes
Total Time: 55 minutes

Ingredients

For the cake

  • 1 1/4 cups granulated sugar
  • 2 cups grated zucchini from about 2 medium zucchini
  • 1/2 cup sweetened shredded coconut
  • 1 1/2 cups all-purpose flour
  • 2 teaspoons baking soda
  • 2 teaspoons ground cinnamon
  • 1 teaspoon kosher salt
  • 2 large eggs
  • 3 tablespoons vegetable oil or another neutral oil such as canola
  • 2 teaspoons vanilla essence
  • 1 can 20 ounces crushed pineapple, thoroughly drained

For the frosting

  • 8 ounces cream cheese softened
  • 4 tablespoons unsalted butter at room temperature
  • 16 ounces icing sugar
  • 2 teaspoons vanilla essence
  • Milk or pineapple juice as needed for thinning

Optional garnish

  • Chopped pecans or walnuts preferably toasted

Instructions

  • Preheat the oven to 350°F (175°C). Lightly coat a 9 × 13-inch baking pan with nonstick spray so the cake releases cleanly after baking.
  • In a large mixing bowl, whisk together the flour, sugar, shredded coconut, baking soda, salt, and cinnamon until the dry ingredients are evenly combined.
  • In a separate medium bowl, whisk the eggs with the oil and vanilla essence. Add this mixture to the bowl of dry ingredients, then fold in the shredded zucchini and drained crushed pineapple. The batter may seem somewhat dry at first, but it should loosen as the fruit and vegetables are incorporated. Should it still appear overly stiff after mixing, add a small splash of the reserved pineapple juice.
  • Transfer the batter to the prepared pan and spread it evenly. Bake for 33 to 35 minutes, or until a wooden pick inserted in the center emerges with moist crumbs and the cake begins to pull slightly away from the sides of the pan. Place the pan on a wire rack and let the cake cool completely.
  • For the frosting, beat the softened cream cheese and room-temperature butter in the bowl of a stand mixer fitted with the paddle attachment, or in a large bowl with an electric hand mixer, for about 5 minutes until smooth and well blended. Scrape down the bowl as needed during mixing.
  • Reduce the mixer speed to low and gradually add the icing sugar, mixing until fully incorporated and smooth. Add the vanilla essence, then raise the speed to medium and beat for about 5 more minutes, scraping the sides and bottom of the bowl as necessary. Thin the frosting with a little milk or pineapple juice only if needed for a spreadable consistency.
  • Spread the finished frosting evenly over the cooled cake. Scatter chopped pecans or walnuts over the top, if using. Slice and serve.

Notes

Be sure to drain the pineapple well so the cake batter does not become overly wet.
A small amount of reserved pineapple juice may be added only if the batter remains too dry after thorough mixing.
The garnish is optional, though toasted pecans or walnuts add a pleasant crunch and a deeper nutty flavor.
W

About Whiskandnourish

Passionate about home cooking, baking, and authentic flavors. Sharing tested and loved recipes to bring joy to every table.