Moist Carrot Cake with Pineapple
This carrot cake with pineapple is incredibly moist and tender, thanks to a generous amount of shredded carrot and crushed pineapple in the batter.

It’s the kind of unfussy, one-bowl cake that feels special enough for Easter brunch but easy enough for a Tuesday afternoon. Top it with a tangy cream cheese frosting and you’ve got a classic everyone will ask for.
What Makes This Carrot Cake So Good
The first bite always reminds me why I keep this recipe close: the crumb is deeply moist and stays that way for days, never drying out around the edges. The crushed pineapple melts right in, adding a gentle tropical sweetness without screaming pineapple.
A generous dose of cinnamon and nutmeg warms the whole thing, and the tangy cream cheese frosting balances the sweetness. It’s a no-fuss sheet cake that feels like a celebration but comes together with just a bowl and a whisk.
Ingredients

- 1 cup vegetable oil: any neutral oil like canola, avocado, or melted coconut oil
- 3 large eggs: at room temperature for the smoothest batter
- 1 cup packed brown sugar: light or dark; dark adds a little more molasses depth
- 2 tsp vanilla extract
- 3 cups shredded carrots: grate them yourself on the large holes of a box grater
- 1 can (8 oz) crushed pineapple, well drained: press out as much juice as you can
- 2 cups all-purpose flour
- 1 ½ tsp baking soda
- 1 tsp ground cinnamon
- ½ tsp ground nutmeg
- ½ tsp salt
- ¾ cup chopped walnuts or pecans (optional): toasted for extra flavor
- ½ cup raisins (optional): plump them in warm water for 10 minutes and drain before using
For the cream cheese frosting
- 8 oz cream cheese, softened: full-fat for the creamiest texture
- ½ cup unsalted butter, softened
- 2 tsp vanilla extract
- 3 cups powdered sugar: sift if it’s lumpy
- 1 to 2 tsp milk: only if needed to loosen the frosting
Variations / Substitutions
- Add nuts or raisins: fold in ¾ cup chopped walnuts or pecans, and ½ cup raisins for a classic chunky texture. Toasting the nuts beforehand deepens their flavor.
- Swap the spices: use 2 teaspoons pumpkin pie spice in place of the cinnamon and nutmeg for a cozy all-in-one blend.
- Make it gluten-free: substitute a 1:1 gluten-free flour blend; the crumb may be slightly denser but still moist.
- Go dairy-free: use vegan cream cheese and plant-based butter for the frosting; it will set up a bit softer, so chill it briefly before spreading.
For a simpler unfrosted version, try my Everyday Carrot Muffins.
How to Make Moist Carrot Cake with Pineapple
Step 1: Combine the Wet Ingredients

Preheat your oven to 350°F (175°C). Grease a 9×13-inch baking pan and set it aside. In a large bowl, whisk together the 1 cup vegetable oil, 3 large eggs, 1 cup packed brown sugar, and 2 teaspoons vanilla extract until smooth, about 1 minute. Fold in the 3 cups shredded carrots and the well-drained crushed pineapple. Stir in the nuts and raisins if you’re using them.
The mixture will look thin and glossy with bright orange flecks. That liquid is what keeps the cake tender, so don’t cut back on the carrots or pineapple.
Step 2: Add the Dry Ingredients

Sprinkle the 2 cups flour, 1 ½ teaspoons baking soda, 1 teaspoon cinnamon, ½ teaspoon nutmeg, and ½ teaspoon salt over the carrot mixture. Use a rubber spatula to fold everything together just until the flour disappears, about 30 seconds. A few small lumps are fine.
Stop mixing the moment you no longer see dry flour. Over-working the batter now will develop gluten and make the cake tough, not soft and tender.
Step 3: Bake the Cake

Scrape the batter into your prepared pan and spread it evenly to the corners. Bake for 35 to 40 minutes, until the top is golden brown and a toothpick inserted in the center comes out clean or with a few moist crumbs clinging to it.
The kitchen will smell warm and spicy. Let the cake cool entirely in the pan on a wire rack before you add any frosting; even a little residual heat will melt the cream cheese icing.
Step 4: Beat the Cream Cheese Frosting

While the cake cools, make the frosting. In a medium bowl, beat the 8 ounces softened cream cheese and ½ cup softened butter with a hand mixer until smooth and fluffy, about 2 minutes. Beat in the 2 teaspoons vanilla. Add the 3 cups powdered sugar one cup at a time, beating on low until incorporated, then on high until creamy. If the frosting feels too stiff to spread, beat in 1 teaspoon of milk at a time until it’s spreadable.
Scrape the sides and bottom of the bowl a couple of times to make sure every bit of butter and sugar gets whipped in. You want a frosting that holds its shape but glides easily over the cake.
Step 5: Frost and Slice the Cake

Once the cake is completely cool, dollop the cream cheese frosting on top. Use an offset spatula or the back of a spoon to spread it in swoops and swirls, covering the surface right to the edges. Slice into generous squares and serve.
The frosting is rich and tangy, with the spiced carrot crumb peeking through. It looks like it took effort but was simple enough to put together on a whim.
Tips for the Best Carrot Cake
- For the moistest crumb, shred the carrots yourself on the large holes of a box grater. Pre-shredded carrots from a bag are too dry and coarse.
- Press the crushed pineapple firmly in a strainer or wrap it in a clean kitchen towel and squeeze. Excess juice can make the center sink.
- If you add walnuts or pecans, toast them in a dry skillet for 3 to 4 minutes until fragrant. It adds a deeper, nuttier flavor.
- This cake tastes even better the next day. The spices meld and the crumb gets even more tender. Frost it the day you plan to serve, or frost ahead and refrigerate.
Bake times by pan:
| Pan Type | Bake Time (at 350°F) |
|---|---|
| 9×13-inch metal pan | 35 to 40 minutes |
| Two 9-inch round pans | 30 to 35 minutes |
| 9-inch square pan | 40 to 45 minutes |
Storing Leftover Carrot Cake
Refrigerate: Cover frosted cake tightly and keep in the fridge for up to 5 days. The cream cheese frosting needs chilling.
Serve Cold or at Room Temp: For the best flavor and texture, let slices sit at room temperature for about 20 minutes before eating.
Frequently Asked Questions
Can I leave out the pineapple?
Yes, but the cake won’t be as moist. Replace it with an equal amount of applesauce or extra shredded carrot, and expect a slightly denser crumb.
Can I use whole wheat flour?
You can swap up to half the all-purpose flour with whole wheat flour. The cake will be heartier but still moist; add a couple extra minutes to the bake time.
Can I freeze this cake?
Absolutely. Freeze the unfrosted cake layers wrapped tightly in plastic wrap for up to 3 months. Thaw overnight in the fridge, then frost before serving.
Can I bake this in a bundt pan?
Yes, a 10-cup bundt pan works well. Grease it thoroughly and bake for 50 to 60 minutes, cooling for 15 minutes before turning it out.

Moist Carrot Cake with Pineapple Recipe
Ingredients
Method
- Preheat oven to 350°F (175°C). Grease a 9×13-inch baking pan and set aside.
- In a large bowl, whisk the oil, eggs, brown sugar, and vanilla until smooth. Fold in the shredded carrots, well-drained pineapple, and nuts and raisins if using.
- Sprinkle the flour, baking soda, cinnamon, nutmeg, and salt over the wet mixture. Fold with a rubber spatula just until no streaks of flour remain. Do not overmix.
- Pour the batter into the prepared pan, smooth the top, and bake for 35 to 40 minutes, until a toothpick inserted in the center comes out clean. Cool completely in the pan on a wire rack.
- For the frosting, beat the cream cheese and butter together until smooth and fluffy, about 2 minutes. Beat in the vanilla. Gradually add the powdered sugar, one cup at a time, beating until creamy. Add milk, a teaspoon at a time, only if the frosting is too stiff to spread.
- Spread the frosting over the completely cooled cake. Slice and serve.
