This moist zucchini cake with crushed pineapple and a light cream cheese frosting is a tender, flavorful dessert that’s simple to make and always a hit. The pineapple keeps the cake juicy while the zucchini adds natural moisture and a subtle vegetable boost—perfect for using up summer squash from the garden.

Zucchini Cake with Cream Cheese Frosting
This recipe combines grated zucchini, well-drained crushed pineapple, shredded coconut, warm spices, and a touch of vanilla for a lightly sweet, tender cake finished with a tangy cream cheese frosting. It slices well for serving at brunches, potlucks, or casual get-togethers. People often praise the texture as exceptionally moist and say picky eaters rarely notice the zucchini hidden inside.
Why You’ll Love This Zucchini Cake

As a longtime recipe developer focused on approachable, flavorful dishes, I enjoy turning seasonal produce into desserts that feel indulgent without being heavy. This pineapple zucchini cake does exactly that: bright pineapple, soft zucchini, and a silky cream cheese topping make a dessert that tastes like summer.
- Perfectly moist texture: Zucchini adds moisture while pineapple contributes juiciness and a subtle tang.
- Easy to make: Simple mixing and a single pan bake make this a straightforward recipe for bakers of all levels.
- Great for sneaking in veggies: A delicious way to add extra produce to a dessert without sacrificing flavor.
- Versatile serving options: Serve it frosted for special occasions, or skip the frosting and enjoy it plain for a lighter snack.

Ingredients You’ll Need
Below are the main ingredients used to make this zucchini cake and the cream cheese frosting. See the recipe card that follows for exact measurements.

- Zucchini – grated and squeezed to remove excess liquid.
- Crushed pineapple – drained well to avoid excess moisture.
- Flour – all-purpose or a blend with whole wheat for added texture.
- Sugar – granulated sugar or a suitable alternative.
- Shredded coconut – optional, adds texture and a tropical note.
- Baking soda and salt – for lift and flavor balance.
- Cinnamon (plus optional nutmeg or ginger) – warm spices that complement the fruit and zucchini.
- Oil and eggs – for moisture and structure.
- Vanilla extract – to round out the flavors.
For the frosting:
- Cream cheese – softened for a smooth, tangy frosting.
- Powdered sugar – to sweeten and lighten the frosting.
- Vanilla extract – optional, for extra flavor depth.

How To Make Zucchini Cake
Follow these step-by-step instructions for a reliable bake. Exact quantities are listed in the recipe card below.



- Prep the oven and pan – Preheat to 350°F (175°C). Grease a 9×13-inch baking pan or a Bundt pan to prevent sticking and encourage even browning.
- Grate and drain the zucchini – Shred the zucchini and press out excess moisture with a clean towel or paper towel so the cake keeps the right texture.
- Mix dry ingredients – Whisk together the flour, sugar, coconut (if using), baking soda, salt, and spices in a large bowl.
- Combine wet ingredients – In another bowl, beat eggs with oil and vanilla. Stir in the drained zucchini and well-drained crushed pineapple until combined.
- Make the batter – Add the wet mixture to the dry ingredients and fold gently until no dry streaks remain; the batter will be fairly thick.
- Bake – Spread the batter evenly in the prepared pan and bake for about 33–40 minutes, or until a toothpick inserted in the center comes out clean and the cake begins to pull away from the sides.
- Cool completely – Allow the cake to cool on a wire rack before frosting; frosting on a warm cake will soften and slide.
- Make the frosting – Beat softened cream cheese with powdered sugar and vanilla until smooth and creamy.
- Frost and finish – Spread the frosting over the cooled cake and, if desired, sprinkle with chopped nuts for texture.




Tips & Variations
- Flour options: All-purpose flour works well. Swap in part or all whole wheat for a nuttier flavor and extra fiber; the texture will be slightly heartier.
- Oil choices: Neutral oils like canola, vegetable, or avocado oil work best. Melted coconut oil is an option if you want a hint of coconut flavor.
- Sugar swaps: Try coconut sugar or a monk fruit sweetener for a different sweetness profile; adjust amounts to taste.
- Make it nutty: Omit coconut and fold in chopped walnuts or pecans for extra crunch.
- Spice variations: Stick with cinnamon or add a pinch of nutmeg and ground ginger for a warmer spice blend.
- Pineapple: Drain canned pineapple thoroughly to avoid excess moisture. Fresh finely chopped pineapple also works well.
- Lighter frosting: Use reduced-fat cream cheese or replace half the cream cheese with Greek yogurt for added tang and protein.

More Lightened Desserts You Will Love
- Carrot Cake with Cream Cheese Frosting
- Cheesecake Brownies
- Zucchini Banana Cake with Cream Cheese Frosting
- Almond Cake
- Homemade Skinny Chocolate Cake
Zucchini Cake
Ingredients
- 3/4 cup all-purpose flour
- 3/4 cup whole wheat flour
- 3/4 cup granulated sugar (or monk fruit sweetener)
- 1/2 cup flaked coconut (optional)
- 2 teaspoons baking soda
- 1 teaspoon salt
- 2 teaspoons ground cinnamon
- 1/4 teaspoon nutmeg (optional)
- 1 pinch ground ginger (optional)
- 3 tablespoons canola oil (or neutral oil of choice)
- 2 large eggs
- 1 teaspoon vanilla extract
- 2 cups grated zucchini, unpeeled, squeezed to remove excess liquid
- 20 ounce can crushed pineapple in juice, well drained
Frosting
- 8 ounces cream cheese, softened
- 1/4 cup powdered sugar
- 1 teaspoon vanilla extract
Instructions
- Preheat oven to 350°F (175°C). Grease a Bundt pan or a 9×13-inch baking dish.
- In a large bowl, whisk together both flours, sugar, coconut (if using), baking soda, salt, and spices.
- In a separate bowl, beat the eggs with the oil and vanilla.
- Stir in the grated zucchini and the well-drained crushed pineapple to the wet mixture until combined.
- Fold the dry ingredients into the wet mixture until evenly incorporated; the batter will be thick.
- Transfer batter to the prepared pan and bake 33–40 minutes, or until a toothpick inserted in the center comes out clean and the cake begins to pull away from the sides.
- Allow the cake to cool completely on a wire rack before frosting.
- To make the frosting, beat the softened cream cheese with powdered sugar and vanilla until silky and smooth. Spread evenly over the cooled cake. Garnish with chopped nuts if desired.
Nutrition (per serving)
Calories: 233 • Carbohydrates: 33 g • Protein: 4.5 g • Fat: 10 g • Fiber: 2 g • Sugar: 15 g
Last step
If you try this recipe, please leave a rating and a comment so others can benefit from your experience.