free counter with statistics Print

The Best Moist Carrot and Pineapple Cake (Easy Recipe!)

The beautiful, finished two-layer Carrot and Pineapple Cake being sliced and served at a festive celebration.

A classic, moist two-layer carrot cake with the addition of sweet fresh pineapple, raisins, and walnuts. The cake batter is made with vegetable oil for a tender crumb and is lightly spiced with cinnamon. The recipe also includes instructions for a rich, from-scratch cream cheese frosting made with butter and confectioners’ sugar. The finished layer cake is generously frosted and decorated with more diced pineapple.

Ingredients

Scale
  • For the Cake:
  • 2 cups granulated sugar
  • 1 1/3 cups vegetable oil
  • 3 extra-large eggs, at room temperature
  • 1 teaspoon pure vanilla extract
  • 2 1/2 cups plus 1 tablespoon all-purpose flour, divided
  • 2 teaspoons ground cinnamon
  • 2 teaspoons baking soda
  • 1 1/2 teaspoons kosher salt
  • 1 cup raisins
  • 1 cup chopped walnuts
  • 1 pound carrots, grated
  • 1/2 cup diced fresh pineapple
  • For the Frosting:
  • 3/4 pound (12 ounces) cream cheese, at room temperature
  • 1/2 pound (2 sticks) unsalted butter, at room temperature
  • 1 teaspoon pure vanilla extract
  • 1 pound confectioners’ sugar, sifted
  • For Decoration:
  • 1/2 cup diced fresh pineapple

Instructions

  1. Preheat the oven to 350°F. Grease and flour two 8-inch round cake pans and line the bottoms with parchment paper.
  2. Make the Cake: In the bowl of an electric mixer with a paddle attachment, beat the sugar, oil, and eggs together. Add the vanilla.
  3. In a separate bowl, sift together 2 1/2 cups of flour, the cinnamon, baking soda, and salt.
  4. With the mixer on low, add the dry ingredients to the wet ingredients until just combined.
  5. In a small bowl, toss the raisins and walnuts with the remaining 1 tablespoon of flour. Fold the raisins, walnuts, grated carrots, and diced pineapple into the cake batter.
  6. Divide the batter equally between the two prepared pans. Bake for 55 to 60 minutes, rotating the pans halfway through, until a toothpick inserted in the center comes out clean.
  7. Let the cakes cool completely in the pans on a wire rack.
  8. Make the Frosting: In the bowl of an electric mixer, mix the cream cheese, butter, and vanilla on low speed until incorporated. Add the confectioners’ sugar and mix on high speed for about 5 minutes, until light and fluffy.
  9. Assemble the Cake: Place one cake layer, flat-side up, on a serving platter. Spread the top with a layer of frosting.
  10. Place the second layer on top, rounded side up. Frost the top and sides of the entire cake with the remaining frosting.
  11. Decorate the top of the cake with diced pineapple.

Notes

  • Tossing the raisins and walnuts with a bit of flour before adding them to the batter is a key step that helps prevent them from sinking to the bottom of the cakes during baking.
  • Using room temperature ingredients for both the cake batter (eggs) and the frosting (cream cheese, butter) is important for a smooth, well-incorporated final product.
  • It is crucial to let the cake layers cool completely before frosting to prevent the frosting from melting.

Nutrition