This two-layer cake uses three cups of peeled, grated zucchini to keep the crumb soft. Ground cinnamon, ground walnuts, and flaked coconut go into the batter, giving each slice a lightly spiced flavour and a slightly textured bite.
The batter is built in a clear sequence: wet ingredients are beaten first, sugar goes in next, and the dry ingredients are added gradually before the zucchini mixture is stirred in at the end. Grate the zucchini just before you need it and fold it in without delay.
The cake is finished with a pineapple cream cheese icing made from softened cream cheese, margarine, drained crushed pineapple, and sifted powdered sugar. The icing is used both between the layers and on the outside of the cake.

About the Recipe
The recipe uses vegetable oil rather than butter, which keeps the layers moist even after the cake has cooled. Two tablespoons of vanilla is a generous measure and gives the crumb a noticeable background flavour.
Both baking soda and baking powder are used together to give the batter enough lift to support the weight of the zucchini, walnuts, and coconut. The pineapple cream cheese icing is what sets this cake apart from most spice cakes. Drained crushed pineapple adds a mild fruity note without making the icing runny, and it works well against the cinnamon and coconut in the layers beneath.
Why You Will Love This Recipe
The pineapple cream cheese icing sets this cake apart. Crushed pineapple brings a mild fruity tang that cuts through the cinnamon warmth and complements the coconut in the layers in a way plain cream cheese icing simply does not.
Cooking Tips
Combine the grated zucchini with the walnuts and coconut just before stirring them into the batter. Leaving the mixture to sit will draw out water from the zucchini.
Make sure the cream cheese and margarine are genuinely softened before you begin beating. Cold cream cheese will leave lumps that are hard to smooth out once the pineapple and sugar are added.
Drain the crushed pineapple thoroughly before adding it to the icing. Excess liquid will prevent the icing from reaching a spreadable consistency. Sifting the powdered sugar before adding it also helps you reach a smooth result.
Check the cake at the 35-minute mark by inserting a wooden pick into the centre of each layer. The pick should come out clean before you remove the pans from the oven.
Serving and Storing Suggestions
Serve the cake after it has cooled completely and the icing has been applied to both the filling and the outside. Slice with a clean knife for neat layers.
Because the icing contains cream cheese, keep any leftover cake covered and refrigerated. Bring slices to room temperature before serving.
Similar Recipes
Nutrient Benefits
Zucchini adds a little dietary fibre and potassium. Walnuts bring protein and unsaturated fats, and eggs contribute protein while helping bind the batter. Coconut adds a small amount of fibre. This is an iced layer cake with a good quantity of sugar and oil, so these are modest contributions from the whole ingredients rather than a nutritional highlight.

Sweet Zucchini Spice Cake
Ingredients
- 3 cups Zucchini (grated and peeled)
- 1 cup Walnuts (ground)
- 1 cup Coconut (flaked)
- 4 Eggs
- 1 cup Vegetable Oil
- 2 tbsp Vanilla
- 2 1/2 cups Sugar (granulated)
- 3 cups All-Purpose Flour
- 2 tsp Ground Cinnamon
- 1 1/2 tsp Baking Soda
- 1 tsp Baking Powder
- 1 tsp Salt
Instructions
- Preheat oven to 350F.
- Grease and flour 2 round cake pans.
- Combine zucchini, walnuts, and coconut. Set aside.
- Beat eggs, oil, and vanilla until well blended.
- Beat in granulated sugar.
- Gradually add dry ingredients, beating well after each addition.
- Stir in the zucchini mixture.
- Pour evenly into prepared pans.
- Bake for 35 to 40 minutes or until a wooden pick inserted in the centre comes out clean.
- Cool layers in pans on wire racks for 10 minutes.
- Loosen edges and remove to racks to cool completely.
- Fill and frost with pineapple cream cheese icing.
To Make Pineapple Cream Cheese Icing
- Beat together 1 package softened cream cheese and half a cup softened margarine in a large bowl until creamy.
- Add 1 can drained crushed pineapple.
- Gradually add 4 1/2 cups of sifted powdered sugar, beating until smooth and of spreading
Sign up for our newsletter
Add Awesome Cuisine as a Preferred Source
Frequently Asked Questions
Do I need to squeeze the water out of the grated zucchini before using it?
No squeezing step is included. Grate the zucchini just before you need it, combine it with the walnuts and coconut, and stir the mixture into the batter without delay to keep excess liquid to a minimum.
How do I know when the cake layers are fully baked?
Insert a wooden pick into the centre of each layer at the 35-minute mark. If it comes out clean with no wet batter clinging to it, the layer is done. If there is wet batter on the pick, return the pan to the oven and check again after a few more minutes, up to the 40-minute mark.
Can I make the pineapple cream cheese icing ahead of time?
Because it contains cream cheese, keep the icing refrigerated if you prepare it before the cake is ready. Allow it to come to room temperature and reach a spreadable consistency before applying it to the cooled layers.
What does 'spreading consistency' mean for the icing?
The icing should hold its shape when spread with a spatula without being stiff or crumbly, and without being so loose that it runs off the sides of the cake. Sifting the powdered sugar before adding it and draining the pineapple thoroughly both help you reach this result.
What other cakes can I try if I enjoy spiced layer cakes?
You might enjoy the Spiced Chocolate Cake or the Nutty Cake on Awesome Cuisine. For something with a similar coconut and fruit note, the Banana Cashew Cake is worth a look.