Hawaiian Carrot Pineapple Cake
This Hawaiian carrot pineapple cake is the one I reach for when I want a dessert that feels a little sunny, even on a plain weeknight. It bakes up tall and tender, with crushed pineapple keeping every bite genuinely moist and a tangy cream cheese frosting that balances the sweetness just right.

You do not need a mixer for the batter, and the whole thing comes together in under an hour. It is the kind of cake that slices clean, stays soft for days, and somehow disappears faster than you expect.
What Makes This Cake So Good
The crushed pineapple does double duty sweetening the batter and locking in moisture. I have made dozens of carrot cakes over the years, and this is the version I keep coming back to because the crumb stays even and soft, never oily or dry around the edges.
The spice is gentle. You get a little warmth from cinnamon, the tropical note of the pineapple, and the carrots add natural sweetness without making the cake soggy. Topped with a thick swoop of cream cheese frosting, it hits all the right notes in one slice.
Ingredients

- 2 cups all-purpose flour: spoon and level it, do not scoop, to keep the crumb tender.
- 2 tsp baking powder: gives the cake a tall lift.
- 1 tsp baking soda: reacts with the acidity in the pineapple for extra lightness.
- ½ tsp salt: wakes up the other flavors.
- 2 tsp ground cinnamon: the only spice you really need here.
- ½ tsp ground nutmeg: optional, but it adds a subtle warmth.
- 1 cup granulated sugar
- ½ cup packed light brown sugar: deepens the sweetness and adds a hint of chew.
- 1 cup vegetable oil: makes the cake exceptionally moist without any butter flavor.
- 4 large eggs: at room temperature, they blend in more smoothly.
- 2 tsp vanilla extract
- 2 cups finely shredded carrots: grate them yourself for the best texture; pre-shredded bags are too dry.
- 1 (8 oz) can crushed pineapple: drain it really well, pressing out as much liquid as you can.
- ½ cup sweetened shredded coconut: adds a chewy, tropical bite.
- ½ cup chopped macadamia nuts: optional, but they give a lovely crunch.
- For the frosting: 8 oz cream cheese, softened; ½ cup unsalted butter, softened; 3 to 4 cups powdered sugar; 1 tsp vanilla extract; a small pinch of salt.
Variations / Substitutions
- Nuts: swap the macadamia nuts for toasted walnuts or pecans, or leave them out entirely if you prefer a nut-free cake.
- Coconut: replace the sweetened shredded coconut with unsweetened if you want less sugar; just note the cake will be a touch less moist.
- Flour: for a heartier texture, swap half the all-purpose flour for white whole wheat flour. The cake will be a little denser but still good.
- Spices: if you like a spicier crumb, add ¼ tsp ground ginger or a pinch of cloves along with the cinnamon.
- Frosting: you can skip the cream cheese frosting and dust the cooled cake with powdered sugar for a simpler finish.
If you love tropical desserts, our Pineapple Coconut Bars are another easy treat that leans on similar sunny flavors.
How to Make Hawaiian Carrot Pineapple Cake
Step 1: Whisk the Dry Ingredients

Preheat your oven to 350°F (175°C) and grease two 9-inch round cake pans, then line the bottoms with parchment. In a large bowl, whisk together the 2 cups flour, 2 tsp baking powder, 1 tsp baking soda, ½ tsp salt, 2 tsp cinnamon, and nutmeg if using.
The mixture will look uniform and a little fluffy after about 30 seconds of whisking. This step distributes the leaveners so you do not end up with uneven pockets of air in the finished cake.
You are not overmixing at this stage, just combining until no streaks of white flour remain. Set the bowl aside while you start on the wet ingredients.
Step 2: Combine the Wet Ingredients and Sugars

In a separate large bowl, whisk the 1 cup oil with the 1 cup granulated sugar and ½ cup brown sugar until the mixture looks thick and a little glossy, about 1 minute. Add the 4 eggs one at a time, whisking well after each, then mix in the 2 tsp vanilla.
The batter will appear smooth and emulsified, with no separate oil puddles. The brown sugar gives it a slight caramel color at this point, which deepens as it bakes.
Working the eggs in one by one prevents the batter from breaking, so your cake rises evenly without a dense streak in the middle.
Step 3: Stir in the Carrots, Pineapple, and Coconut

Switch to a spatula and fold the dry ingredients into the wet mixture in three additions, mixing just until no floury patches remain. Then stir in the 2 cups shredded carrots, the well-drained crushed pineapple, the ½ cup shredded coconut, and the nuts if using.
The batter will feel heavy and speckled with bright orange carrot flecks and pale pineapple pieces. Do not whisk or beat at this stage; a few gentle folds will do the job without deflating the lift you built.
Overworking the batter is the fastest way to a tough cake. You just want everything evenly distributed, with no visible streaks of flour.
Step 4: Bake the Cake Layers

Divide the batter evenly between the prepared pans and smooth the tops with your spatula. Bake on the middle rack for 25 to 30 minutes, until the tops spring back when pressed lightly in the center and a toothpick comes out with a few moist crumbs.
You will see the edges pull away from the sides of the pans slightly, and the kitchen will smell warmly of cinnamon and toasted coconut. If your oven has hot spots, rotate the pans halfway through to prevent uneven browning.
Let the layers cool in the pans for 10 minutes before turning them out onto a wire rack. Cooling them in the pan too long can steam the bottom, so set a timer.
Step 5: Beat the Cream Cheese Frosting

While the cake cools completely, use a hand mixer or stand mixer to beat the 8 oz softened cream cheese and ½ cup softened butter on medium speed until smooth and creamy, about 2 minutes. Scrape down the bowl, then add 1 tsp vanilla and a tiny pinch of salt. Gradually mix in 3 to 4 cups of powdered sugar, starting on low and increasing to medium, until the frosting is thick and spreadable.
The frosting should hold its shape but still feel silky, with no lumps of butter or cream cheese. Taste it and decide if you want the full 4 cups of sugar; I usually stop at 3½ for a tangier finish that contrasts the sweet cake.
If the frosting gets too thick, you can beat in a teaspoon of milk or pineapple juice. Just go slowly so you do not thin it past the point of being spreadable.
Step 6: Frost and Slice the Cake

Place one cooled cake layer on a serving plate and top it with a generous cup of frosting, spreading it all the way to the edge. Set the second layer on top, then cover the top with the remaining frosting, swirling it decoratively with the back of a spoon. Slice into wedges and serve.
The cake slices cleanly when the frosting is cool but not fully chilled, revealing a soft amber crumb packed with carrot shreds and coconut. A few extra toasted coconut flakes or chopped nuts on top make a pretty finish without any effort.
This cake holds up well at a slight chill, so do not worry if it sits out for a bit. Slice and enjoy it soon after frosting for the best texture.
Tips for the Best Cake
- Drain the pineapple with your hands: empty the can into a fine-mesh strainer, then press it with the back of a spoon or your clean fingers until the liquid stops dripping. Excess moisture can make the cake gummy.
- Grate the carrots fresh: store-bought shredded carrots are thicker and drier, so they do not soften the same way during baking. Grating them on the small holes of a box grater takes a minute and gives you the right texture.
- Cool the layers completely before frosting: even a little warmth will melt the cream cheese buttercream into a puddle. If you are short on time, pop the layers in the fridge for 20 minutes after they come to room temp.
- Toast the nuts and coconut: spread them on a dry sheet pan and bake at 350°F for 5 to 7 minutes before adding to the batter. It deepens the flavor without adding any extra work.
Bake times vary a bit depending on the pan you use. Here is a quick guide:
| Pan size and type | Bake time at 350°F |
|---|---|
| Two 9-inch round pans | 25 to 30 mins |
| One 13×9-inch pan | 30 to 35 mins |
| Standard muffin tin (12 cups) | 18 to 22 mins |
Storing Leftovers
- Refrigerate: cover the frosted cake loosely and store it in the fridge for up to 5 days. The crumb stays moist and the frosting firms up nicely.
- Serve cold: or let slices sit at room temperature for 15 minutes to soften. This cake tastes wonderful straight from the refrigerator.
Frequently Asked Questions
Can I use fresh pineapple instead of canned?
You can, but you must finely chop it and drain it just as thoroughly, and even then fresh pineapple can make the crumb a bit wetter. Canned crushed pineapple is more predictable in baking.
Why did my cake sink in the middle?
It usually happens when the batter is overmixed or the oven door is opened too early. For this recipe, fold the dry and wet ingredients gently and avoid peeking before the 25-minute mark.
Can I make this cake gluten-free?
Yes, use a good 1-to-1 gluten-free baking flour blend that contains xanthan gum. The texture will be a little more crumbly but still soft and delicious.
Can I freeze the cake layers before frosting?
Absolutely. Wrap the completely cooled layers tightly in plastic wrap and freeze for up to 2 months. Thaw them in the fridge overnight, then frost as usual.

Hawaiian Carrot Pineapple Cake Recipe
Ingredients
Method
- Preheat oven to 350°F (175°C). Grease two 9-inch round cake pans and line bottoms with parchment.
- Whisk flour, baking powder, baking soda, salt, cinnamon, and nutmeg in a bowl.
- In another bowl, whisk oil, both sugars, eggs, and vanilla until smooth.
- Fold dry ingredients into wet mixture just until combined, then stir in carrots, pineapple, coconut, and nuts.
- Divide batter between pans and bake 25 to 30 minutes until a toothpick has moist crumbs. Cool 10 minutes in pans, then turn out onto a rack and cool completely.
- Beat cream cheese and butter until creamy. Add vanilla and salt, then gradually beat in powdered sugar until spreadable.
- Frost the cooled cake layers, stack them, and frost the top and sides. Slice and serve.
