Carrot Cake With Pineapple

Carrot cake with pineapple

The Spruce

Prep: 20 mins
Cook: 60 mins
Total: 80 mins
Servings: 12 to 16 servings
Nutritional Guidelines (per serving)
403 Calories
29g Fat
35g Carbs
3g Protein
See Full Nutritional Guidelines Hide Full Nutritional Guidelines
Nutrition Facts
Servings: 12 to 16
Amount per serving
Calories 403
% Daily Value*
Total Fat 29g 37%
Saturated Fat 4g 19%
Cholesterol 39mg 13%
Sodium 267mg 12%
Total Carbohydrate 35g 13%
Dietary Fiber 2g 8%
Protein 3g
Calcium 36mg 3%
*The % Daily Value (DV) tells you how much a nutrient in a food serving contributes to a daily diet. 2,000 calories a day is used for general nutrition advice.
(Nutrition information is calculated using an ingredient database and should be considered an estimate.)

Carrot cake gets its moisture from finely-grated carrots, which also add natural sugar, fiber, and nutrition to your sweet treat. This carrot cake recipe includes tropical elements with coconut and pineapple. If you miss the raisins more commonly found in carrot cake, you can vary the recipe and include them. In fact, soaking them in rum for an extra kick pairs nicely with the "island" flavors.

The cake is baked in a single layer in a rectangular pan, although you can vary that as well. You can use the batter to make mini-bundt cakes, mini-loaves, or giant muffins. You should reduce the baking time to 25 to 30 minutes for smaller loaves.

The cake is finished with a smooth, creamy cream cheese frosting and chopped pecans or walnuts. Or, garnish the frosted cake with toasted coconut. If you are sensitive to nuts, you can leave them out of the recipe.


  • For the Carrot Cake
  • 2 cups all-purpose flour
  • 2 cups granulated sugar
  • 1/2 teaspoon salt
  • 1 teaspoon baking soda
  • 2 teaspoons ground cinnamon
  • 1/2 teaspoon ground nutmeg
  • 3 large eggs
  • 1 1/2 cups vegetable oil
  • 2 cups carrots (finely grated, about 3 to 4 medium carrots)
  • 2 teaspoons vanilla extract
  • 1 (8-ounce) can crushed pineapple (well drained)
  • 1 cup sweetened flaked coconut
  • 1 cup walnuts (chopped, divided; can substitute pecans)
  • Optional: 1 cup raisins (soaked in water or rum for 15 minutes and drained)
  • For the Cream Cheese Frosting
  • 4 tablespoons butter (room temperature)
  • 1 (8-ounce) package cream cheese (softened)
  • 3 1/2 cups/1 pound powdered sugar
  • 1 1/2 teaspoons vanilla extract

Steps to Make It

Note: while there are multiple steps to this recipe, this carrot cake is broken down into workable categories to help you better plan for preparation and baking.

Make the Cake

  1. Gather the ingredients.

    Ingredients for carrot cake with pineapple
    The Spruce 
  2. Heat the oven to 350 F. Grease and flour a 9-by-13-by-2-inch baking pan.

    Grease the baking pan
    The Spruce 
  3. In a mixing bowl, combine the flour, granulated sugar, salt, baking soda, cinnamon, and nutmeg; stir to blend thoroughly.

    Flour, granulated sugar, and salt
    The Spruce 
  4. Add the eggs, vegetable oil, shredded carrots, and 2 teaspoons of vanilla; beat until well blended.

    Add the eggs
    The Spruce 
  5. Stir in the well-drained pineapple, coconut, and 1/2 cup of the chopped walnuts or pecans.

    Stir in pineapple
    The Spruce
  6. Pour the batter into the prepared baking pan.

    Put in pan
    The Spruce
  7. Bake in the preheated oven for 45 to 55 minutes, or until a wooden pick or cake tester inserted in center comes out clean.

    Baked carrot cake with pineapple
    The Spruce
  8. Place the pan on a rack to cool completely.

Make the Cream Cheese Frosting

  1. Gather the ingredients.

    Ingredients for frosting
    The Spruce 
  2. In a mixing bowl with an electric mixer, beat the butter and cream cheese together until smooth and creamy.

    Mix cream cheese
    The Spruce
  3. With the mixer on low speed, gradually beat in the powdered sugar.

    Gradually beat in powdered sugar
    The Spruce
  4. Add the 1 1/2 teaspoons of vanilla and beat on high speed until smooth and creamy.

    Add vanilla
    The Spruce 
  5. Frost the cooled cake with cream cheese frosting and sprinkle with the remaining chopped nuts. Lightly press the nuts into the frosting.

    Frost the cake
    The Spruce 
  6. Slice, serve, and enjoy!


  • Be sure that the carrots are very finely grated, preferably using a microplane grater or zester. You may not get them grated finely enough if you use a food processor or regular grater.

Recipe Variations

  • You can omit the nuts in the cake or as a garnish for the frosting, if desired. Toasted coconut makes a lovely garnish.
  • Raisins are an optional addition. Soak them in warm water for 15 minutes and drain before adding them. Soaking them in rum is another variation.