Carrot Cake with Cream Cheese Frosting and Coconut Recipe
Introduction
This easy carrot cake is ultra moist, packed with natural sweetness from pineapple and carrots, and warmly spiced with cinnamon. Finished with a creamy cream cheese frosting, it’s perfect for any occasion and impresses every time.

Ingredients
- 440g (20 oz) can crushed pineapple, drained but reserve juice
- 1/4 cup (65 ml) reserved canned pineapple juice
- 3/4 cup (185 ml) milk, at room temperature (full or low fat)
- 1 tsp white vinegar (or lemon juice or other clear vinegar)
- 3 eggs (55g/2oz each)
- 1 1/2 cups (265g) brown sugar, loosely packed
- 1/2 cup (125 ml) vegetable oil (or canola)
- 2 cups (300g) plain/all-purpose flour
- 2 tsp baking soda (NOT baking powder)
- 1/2 tsp salt
- 2 tsp cinnamon powder
- 2 cups grated carrot (about 2 carrots, peeled)
- 1/4 cup coconut, shredded or desiccated (plain / unsweetened)
- 1/2 cup walnuts or pecans, roughly chopped
- 180g (6oz) cream cheese, at room temperature
- 225g (1 cup) unsalted butter, softened
- 1 tsp vanilla extract
- 4 cups (480g) icing sugar/powdered sugar, sifted if clumpy
Instructions
- Step 1: Preheat oven to 180°C/350°F (all oven types). Grease and line two 20-22.5 cm (8-9″) round pans or a 9 x 13″ (22 x 33 cm) pan with baking/parchment paper.
- Step 2: Drain crushed pineapple well, reserving the juice. Measure out 1/4 cup of the pineapple juice.
- Step 3: In a large bowl, whisk together the flour, baking soda, salt, and cinnamon.
- Step 4: In a separate bowl, whisk the milk, vinegar, eggs, brown sugar, oil, and reserved pineapple juice until combined.
- Step 5: Stir grated carrot, crushed pineapple, coconut, and chopped nuts into the wet mixture.
- Step 6: Pour the wet ingredients into the dry ingredients and stir gently until just combined and no flour pockets remain.
- Step 7: Pour batter into prepared pan(s). Bake round cakes for about 35 minutes or the rectangle cake for 40 minutes, until a skewer inserted in the center comes out clean and the cake is golden on top.
- Step 8: Let the cake rest for 10 minutes in the pan before turning out onto a cooling rack. Allow to cool completely before frosting.
- Step 9: For the frosting, beat together cream cheese, butter, and vanilla extract until smooth.
- Step 10: Gradually beat in the icing sugar in two batches until the frosting is fluffy, about 3 minutes on a stand mixer at medium speed.
- Step 11: Place one cake layer upside down on your serving plate for a flat surface. Spread with one-third of the frosting.
- Step 12: Place the second cake layer upside down on top, then frost the top and sides with the remaining frosting.
Tips & Variations
- Use freshly grated carrots for best texture and flavor.
- Swap walnuts for pecans or leave nuts out for a nut-free version.
- Add a pinch of nutmeg or ginger for extra warmth in the spice mix.
- Ensure ingredients like eggs and cream cheese are at room temperature for smoother batter and frosting.
Storage
If the temperature is below 25°C (77°F) and humidity is low, store the cake in an airtight container at room temperature. In hot or humid conditions, keep it refrigerated. Before serving refrigerated cake, bring it to room temperature for the best flavor and texture.
How to Serve

Serve this delicious recipe with your favorite sides.
FAQs
Can I use baking powder instead of baking soda?
No, baking soda is essential for the texture and rise in this recipe. Baking powder will not produce the same results.
How can I make this carrot cake dairy-free?
Use a dairy-free cream cheese alternative and substitute butter with a plant-based margarine or coconut oil in the frosting.
Print
Carrot Cake with Cream Cheese Frosting and Coconut Recipe
- Total Time: 55-60 minutes
- Yield: 10–12 servings 1x
Description
This easy and ultra-moist carrot cake combines grated carrots, crushed pineapple, coconut, and nuts to create a wonderfully flavorful and tender cake. Finished with a creamy and fluffy cream cheese frosting, this classic dessert is perfect for any occasion.
Ingredients
Wet Ingredients
- 440g / 20 oz can crushed pineapple, drained but reserve juice
- 1/4 cup (65 ml) reserved canned pineapple juice
- 3/4 cup (185 ml) milk, at room temperature (full or low fat)
- 1 tsp white vinegar (or lemon juice or other clear vinegar)
- 3 eggs (55g/2oz each)
- 1 1/2 cups (265g) brown sugar, loosely packed
- 1/2 cup (125 ml) vegetable oil (or canola)
- 2 cups grated carrot, about 2 carrots peeled
- 1/4 cup coconut, shredded or desiccated (plain / unsweetened)
- 1/2 cup walnuts or pecans, roughly chopped
Dry Ingredients
- 2 cups (300g) plain / all purpose flour
- 2 tsp baking soda (aka bi carb soda, NOT baking powder)
- 1/2 tsp salt
- 2 tsp cinnamon powder
Cream Cheese Frosting
- 180g / 6oz cream cheese, at room temperature
- 225g / 1 cup unsalted butter, softened
- 1 tsp vanilla extract
- 4 cups (480g) icing sugar / powdered sugar, sifted if clumpy
Instructions
- Preheat Oven: Preheat your oven to 180°C/350°F (all oven types). Grease and line either two 20-22.5 cm (8 – 9″) round pans or one 9 x 13″ (22 x 33cm) rectangular pan with baking/parchment paper to ensure easy removal after baking.
- Prepare Pineapple: Drain the crushed pineapple well and set aside the drained juice. Measure out 1/4 cup of this pineapple juice for use in the batter.
- Mix Dry Ingredients: In a large bowl, whisk together the flour, baking soda, salt, and cinnamon powder until evenly combined.
- Mix Wet Ingredients: In a separate bowl, whisk together the milk, vinegar, eggs, brown sugar, vegetable oil, and the reserved 1/4 cup pineapple juice until the mixture is smooth.
- Add Carrots and Extras: Stir the grated carrot, crushed pineapple, shredded coconut, and chopped nuts into the wet ingredient mixture ensuring everything is well incorporated.
- Combine Wet and Dry: Pour the wet ingredients into the bowl with the dry ingredients. Stir gently just until the flour is incorporated and the batter is combined without overmixing.
- Bake the Cake: Pour the batter into the prepared pan(s). Bake round cakes for about 35 minutes, or the rectangular cake for 40 minutes. The cake is done when a skewer inserted into the center comes out clean and the top is golden.
- Cool the Cake: Let the cake rest in the pan for 10 minutes before turning it out onto a cooling rack. Allow it to cool completely before frosting.
- Prepare Cream Cheese Frosting: Beat together the softened cream cheese, butter, and vanilla extract until smooth using a mixer.
- Incorporate Icing Sugar: Gradually beat in the sifted icing sugar in two batches, continuing for about 3 minutes on speed 7 with a stand mixer to achieve a fluffy and creamy frosting.
- Assemble the Cake: Place one cake layer upside down on a serving platter to create a flat surface. Spread one-third of the frosting evenly over it. Place the second cake upside down on top and frost the top and sides of the entire cake with the remaining frosting.
- Storage: Store the cake in an airtight container. If the temperature is below 25°C/77°F and humidity is low, it can be kept at room temperature. Otherwise, store in the refrigerator to maintain freshness.
Notes
- Note 1: Reserving pineapple juice adds extra moisture and flavor to the cake.
- Note 2: The vinegar helps to react with the baking soda to give the cake its rise.
- Note 3: Baking soda (not baking powder) is essential for the texture and should be fresh.
- Note 4: Using freshly grated carrots gives the best texture and moisture.
- Note 5: Allow cream cheese to come to room temperature for smooth frosting.
- Note 6: Sift icing sugar if clumpy to prevent lumps in frosting.
- Note 7: Using parchment paper ensures the cake doesn’t stick and removes easily.
- Note 8: Warmer or humid conditions require refrigeration to prevent spoilage.
- Prep Time: 20 minutes
- Cook Time: 35-40 minutes
- Category: Dessert
- Method: Baking
- Cuisine: American
Keywords: carrot cake, easy carrot cake, moist carrot cake, cream cheese frosting, pineapple carrot cake, nutty carrot cake, homemade dessert

