• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Flouring Kitchen
  • Recipes
  • Contact
  • Subscribe
  • About
    • Facebook
    • Instagram
    • Pinterest
    • RSS
    • Snapchat
    • Twitter
menu icon
go to homepage
  • Recipes
  • Contact
  • Subscribe
  • About
    • Facebook
    • Instagram
    • Pinterest
    • YouTube
  • subscribe
    search icon
    Homepage link
    • Recipes
    • Contact
    • Subscribe
    • About
    • Facebook
    • Instagram
    • Pinterest
    • YouTube
  • ×
    Flouring Kitchen » Layer Cakes

    Carrot Cake with Pineapple

    Published: Apr 7, 2023 by Mary · This post may contain affiliate links · Leave a Comment

    128 shares
    • Facebook
    • Twitter
    • Email
    Jump to Recipe Jump to Video

    This carrot cake with pineapple is soft, fluffy, and moist! It’s perfectly spiced, has a creamy pineapple filling, and an irresistible cream cheese frosting. Pineapple inside the cake layers gives this cake a beautiful texture and makes it extra moist! There’s extra pineapple filling on top and cute carrot piping details on the sides. It’s the perfect cake for spring, Easter, and any other occasion. 

    If you love carrot cake but don't want to bake one, try this no churn carrot cake ice cream that has all of the flavor but you don't need to bake it!

    carrot cake with pineapple on cake stand with mini piped carrots on sides
    Jump to:
    • 🥕 Why you'll LOVE this recipe
    • 📝 Key ingredients
    • ✔️ Ingredient substitutions
    • 👩‍🍳 How to make carrot pineapple cake
    • ✔️ Expert cake decorating tips
    • 🥄 Make ahead and storage
    • ❔ Why do the cake layers not have butter?
    • 📖 Recipe FAQs
    • 🍰 More related recipes
    • 📖 Recipe
    • 💬 Comments

    🥕 Why you'll LOVE this recipe

    • Pineapple: Adding crushed pineapple into the filling creates a soft and fluffy texture with pieces of chewy pineapple. You can't taste it in the layers, it just adds to the texture.
    • Filling: A quick and easy, creamy pineapple filling between the layers adds a tropical twist and works so well with the spiced carrot cake.
    • Cream cheese frosting: A fluffy, luscious, not too sweet cream cheese frosting ties it all together.
    • Fluffy & moist: The pineapple and shredded carrots give the cake lots of moisture and give it the perfect texture.
    • Spiced carrots: Perfectly spiced, fragrant, and packed full of shredded carrots.

    For more filled cakes with cream cheese frosting try this blueberry birthday cake and this lemon raspberry cake.

    closeup of the pineapple filling inside carrot cake

    📝 Key ingredients

    Read through for all the tips you will need for success!
    Full steps and ingredients in recipe card below.

    This cake has three components: the carrot cake with pineapple layers, a pineapple filling, and a cream cheese frosting.

    Cake layer ingredients

    carrot cake with pineapple layer ingredients in bowls
    • Canned crushed pineapple: This gives a moist texture to the carrot cake. You don't really taste it but the texture is incredible! Just drain the juice off.
    • Oil: Keeps the layers soft and moist. Use a mild flavored oil like vegetable oil or light olive oil.
    • Spices: Cinnamon, nutmeg, cloves, and ginger spice the cake perfectly.
    • Carrots: Peeled and shredded on the larger hole setting in a box grater.
    • All purpose flour: Weigh the flour to get the most accurate results. If you don’t have a scale, measure properly by stirring the bag and spooning gently into a measuring cup. Scrape the excess off the top with the flat edge off a knife without packing it into the cup.

    Pineapple filling ingredients

    pineapple filling ingredients in bowls
    • Canned crushed pineapple in juice: Use the whole can with the juice for this recipe.
    • Lemon juice: Adds brightness into the filling and helps avoid a "canned" taste. It's optional but recommended.
    • Butter: Added in at the end, makes the filling creamy and rich.
    • Cornstarch: You can use arrowroot starch or any other starch you prefer to thicken instead.

    Cream cheese frosting ingredients

    cream cheese frosting ingredients in bowls
    • Cream cheese: Use full fat, brick style cream cheese. It only needs to be slightly softened. Don't have it fully soft or it will make the cream cheese gloopy.
    • Unsalted butter: For easier blending and for a super light and fluffy frosting, the butter needs to be softened. It should be soft when you press on it, but not melt completely.

    ✔️ Ingredient substitutions

    Gluten free: I haven't tried it but it should work. Substitute the flour with 1:1 gluten free flour.

    Fresh pineapple: Peel and core the pineapple and process it into small chunks with a food processor. Because you also need juice for the filling, measure out 2 cups chopped pineapple and ⅓ cup of pineapple juice.

    Walnuts: Substitute with pecans, seeds... Or leave them out if you prefer.

    👩‍🍳 How to make carrot pineapple cake

    Start off with the filling to give it plenty of time to chill. Then the layers get baked, frosting gets whipped up, and the cake gets assembled.

    Filling step by step

    whisking pineapple filling in a saucepan with a whisk

    Step 1: Stir together sugar and cornstarch in a medium saucepan. Add a can of crushed pineapple with all of the juice. Add the lemon juice and stir. Cook on medium low heat, stirring frequently until it thickens and is bubbling. 

    stirring cooked pineapple filling with a whisk

    Step 2: Take the pan off the heat and add butter. Stir until melted and smooth. Transfer into a glass jar, bowl, or another non metal container and refrigerate until completely cooled and thickened. 

    Layers step by step

    Prep: Preheat oven to 355F (180C). Grease three 8” round cake pans with a bit of oil. Line the bottoms with rounds of parchment paper. 

    whisking eggs and sugar together in a large glass bowl with a hand whisk

    Step 1: In a large bowl, combine eggs and sugar. Whisk until thickened and frothy with a wire whisk - this will only take a minute. 

    carrot cake wet ingredients for batter in a large glass bowl with a whisk

    Step 2: Pour oil into the bowl and whisk until smooth. Add vanilla extract and salt, whisk to combine. 

    combining dry ingredients in a glass container with a spoon

    Step 3: In a separate bowl, stir together the flour, spices, baking soda, and baking powder. 

    folding carrot cake batter with whisk

    Step 4: Sift the dry ingredients into the previously mixed wet ingredients. Use a whisk to gently fold the batter. 

    folding carrot cake batter in large glass bowl with a rubber spatula

    Step 5: Add the shredded carrots, drained pineapple, and chopped walnuts into the cake batter. Fold with a spatula until fully combined. 

    flipped over cake layer on cooling rack

    Step 6: Scoop the batter evenly into the greased and lined baking pans. Bake 20-23 minutes or until a toothpick inserted into the center of each cake layer comes out mostly clean with a few crumbs attached. 

    Let the cake layers cool inside the pans for 10 minutes. Run a spatula along the edges and flip them over onto a cooling rack to release the layers from the pans. Let cool completely. 

    Frosting & assembly step by step

    beating butter in a large glass bowl until light and creamy

    Step 1: Place the softened butter into a large bowl or stand mixer. Beat with an electric mixer, use a paddle attachment  until creamy and lightened in color. Make sure to scrape down the bowl frequently. 

    Add five cups of powdered sugar, ½ cup at a time into the whipped butter. Beat well in between each addition and scrape down the bowl frequently. Add vanilla and beat well.

    fluffy texture of cream cheese frosting in a large glass bowl

    Step 2: Add cream cheese into the frosting, one 1” piece at a time, beating well in between each addition and scraping down the bowl. 

    The frosting should be thick and fluffy. If it’s still loose and won’t hold its shape, refrigerate for 10 minutes, add another cup of powdered sugar, and beat again until light and fluffy. Fold the frosting with a spatula to knock out large air bubbles. 

    stacking and filling cake layers with cream cheese frosting and pineapple filling

    Step 3: Place a small dollop of frosting on a cake stand or plate. Place the first cake layer down onto the cake stand. Spread a thin layer of frosting on top. Pipe a thick ring of frosting all the way around the outside edge of the cake layer. Fill the middle with ⅓ cup of cooled pineapple filling. 

    stacked cake layers with cream cheese frosting on a turntable

    Step 4: Repeat for the rest of the layers, place the last layer on top - bottom side up. Place the cake into the freezer for 10 minutes to chill briefly, this will prevent it from sliding around and will keep it stable. 

    holding two piping bags, one green and one orange frosting

    Step 5: Meanwhile, set aside three tablespoons of frosting in one bowl and two tablespoons in a second bowl. Color three tablespoons with orange food coloring and two tablespoons green. Transfer into separate piping bags or zippered plastic bags with the ends cut off.

    covering carrot cake with frosting and scraping with long metal spatula

    Step 6: Spread frosting on the outside of the cake. If the frosting becomes very bubbly and hard to work with, beat it again until light and fluffy. If it’s not thick enough, add some more powdered sugar to make it thicker.

    piping frosting border with open star tip on top of carrot cake

    Step 7: Pipe the remaining frosting on top of the cake with an open star piping tip to create a border. Fill the inside with pineapple filling and sprinkle walnuts on the border. 

    piping green leaves onto mini orange carrots on the side of a frosted carrot cake

    Step 8: Pipe carrots onto the side of the cake with orange frosting by piping a line and flicking the end to create a pointy root. Pipe three sticks onto the top of each carrot for the leaves and stems. 

    Serve immediately or refrigerate until ready to serve! The cake is best served at room temperature so let it sit out for 20-30 minutes before serving to soften the frosting. 

    ✔️ Expert cake decorating tips

    • Don't add too much filling to prevent it from seeping out the sides. You will have some filling left. Serve extra with sliced pieces of cake.
    • Make the frosting right before decorating the cake for easier decorating.
    • This recipe gives you enough frosting to cover the cake completely. I opted more for a naked look but you can use more frosting.
    • The cake is best served at room temperature, because the frosting softens up. The cake needs to be stored in the fridge because of the cream cheese in the frosting.
    • For extra clean slices, cut the cake while it’s chilled and wipe the knife clean with every cut.
    fork taking a bite from a slice of carrot cake with pineapple and pineapple filling on a plate

    🥄 Make ahead and storage

    The cake can be made and assembled a day ahead of serving. Store it in the fridge in a cake container. A cake container will prevent the cake from getting damaged in the fridge and keep it fresh.

    The cake needs to be stored in the fridge, but should be served at room temperature. Leftovers will keep well in the fridge in an airtight container for up to three days.

    The pineapple filling can be made up to a few days ahead of time. You can store any leftover filling in a freezer safe bag or container in the freezer for up to 3 months.

    You can also make the cake layers a day ahead. Wrap the cooled cake layers in food wrap to prevent them from drying out and store at room temperature overnight.

    ❔ Why do the cake layers not have butter?

    I love using a mix of butter and oil in my cakes because the butter gives the cake lots of flavor and the oil gives a softer, moister texture.

    However, in a spiced and flavored cake like carrot cake, you don't really taste the butter flavor anyways. So you can just use oil and the cake will turn out beautifully moist for days.

    This lemon raspberry cake uses a combination of butter and oil, while this lemon curd Victoria sponge only uses butter.

    closeup of mini carrots piped on the outside of carrot cake

    📖 Recipe FAQs

    Can I use fresh pineapple?

    Yes. Peel and core the pineapple and process it into small chunks with a food processor. Because you also need juice for the filling, measure out 2 cups chopped pineapple and ⅓ cup of pineapple juice.

    Can I omit the filling?

    Yes you can. Use the frosting instead of the filling between the layers.

    Can I make this into a sheet cake?

    Yes, bake the batter in a greased and lined 9" by 12" baking pan. You will need to increase the baking time - it will be ready when a toothpick inserted into the center comes out mostly clean with a few crumbs attached. Frost with cream cheese frosting, pipe a border on the edge, and fill the top with pineapple filling.

    How do I fix a gloopy cream cheese frosting?

    Pop it in the fridge for 10-15 minutes. Beat again, adding more icing sugar a quarter cup at a time if needed.

    How do I fix a grainy cream cheese frosting?

    This happens if the ingredients are too cold - they don't combine smoothly. To fix it, place the frosting in a warm place or gently heat the sides of the heat safe bowl with a kitchen torch. Beat again to combine until creamy.

    🍰 More related recipes

    • scooped carrot cake ice cream
      Carrot Cake Ice Cream
    • cross section of lemon raspberry layer cake with gooey raspberry curd filling
      Lemon Raspberry Cake
    • cutting a slice of cake with bananas and caramel sauce
      Banoffee Cake
    • slice of blueberry cake on plate
      Blueberry Birthday Cake

    Did you make this recipe? I would love for you to rate this recipe and hear what you think in the comments below! Share your creation on Instagram and tag @flouringkitchen. Follow me on Pinterest to save and for more recipe ideas.

    📖 Recipe

    carrot cake with pineapple on cake stand with mini piped carrots on sides

    Carrot Cake with Pineapple

    Mary
    This carrot cake with pineapple is soft, fluffy, and moist! It’s perfectly spiced, has a creamy pineapple filling, and an irresistible cream cheese frosting. Pineapple inside the cake layers gives this cake a beautiful texture and makes it extra moist! There’s extra pineapple filling on top and cute carrot piping details on the sides. It’s the perfect cake for spring, Easter, and any other occasion.
    5 from 1 vote
    Print Recipe Pin Recipe Shop Ingredients
    Prep Time 40 minutes mins
    Cook Time 20 minutes mins
    Total Time 1 hour hr
    Course Baking, Cake
    Cuisine American, English
    Servings 16 people
    Calories 751 kcal

    Equipment

    • eight inch round baking pans
    • electric mixer

    Ingredients
     
     

    Pineapple Filling

    • ½ cup granulated sugar
    • 3 tablespoons cornstarch
    • 1 can crushed pineapple in juice 540 mL, 19 fl oz, or 2 ⅓ cups
    • 1 lemon juiced
    • ¼ cup butter cut into small pieces

    Cake Layers

    • 4 large eggs room temperature
    • 1 ½ cups brown sugar
    • 1 cup vegetable oil
    • 2 teaspoons pure vanilla extract
    • ¼ teaspoon sea salt
    • 2 ½ cups all purpose flour 300g
    • 1 teaspoon baking soda
    • 2 teaspoons baking powder
    • 2 teaspoons ground cinnamon
    • ½ teaspoon ground cloves
    • ½ teaspoon ground nutmeg
    • ½ teaspoon ground ginger
    • 2 cups shredded carrots (about 4 large carrots)
    • 1 cup canned crushed pineapple in juice drained
    • 1 cup walnuts lightly toasted and chopped

    Cream Cheese Frosting

    • 1 ½ cup unsalted butter softened
    • 8 oz cream cheese softened for 10 minutes at room temperature
    • 5-6 cups powdered sugar
    • 1 tablespoon pure vanilla extract
    • Green and orange gel food coloring optional
    • 2 tablespoons walnuts finely chopped (optional)
    Makes: 8inch0 x 0inch round
    Shop Ingredients on Jupiter

    Instructions
     

    Pineapple Filling

    • Stir together sugar and cornstarch in a medium saucepan. Add a can of crushed pineapple with all of the juice. Add the lemon juice and stir. Cook on medium low heat, stirring frequently until it thickens and is bubbling.
      ½ cup granulated sugar, 3 tablespoons cornstarch, 1 can crushed pineapple in juice, 1 lemon
    • Take the pan off the heat and add butter. Stir until melted and smooth. Transfer into a glass jar, bowl, or another non metal container and refrigerate until completely cooled and thickened.
      ¼ cup butter

    Cake Layers

    • Preheat oven to 355°F (180°C). Grease three 8” round cake pans with a bit of oil. Line the bottoms with rounds of parchment paper.
    • In a large bowl, combine eggs and sugar. Whisk until thickened and frothy with a wire whisk - this will only take a minute.
      4 large eggs, 1 ½ cups brown sugar
    • Pour oil into the bowl and whisk until smooth. Add vanilla extract and salt, whisk to combine.
      1 cup vegetable oil, 2 teaspoons pure vanilla extract, ¼ teaspoon sea salt
    • In a separate bowl, stir together the flour, spices, baking soda, and baking powder.
      2 ½ cups all purpose flour, 1 teaspoon baking soda, 2 teaspoons baking powder, 2 teaspoons ground cinnamon, ½ teaspoon ground cloves, ½ teaspoon ground nutmeg, ½ teaspoon ground ginger
    • Sift the dry ingredients into the previously mixed wet ingredients. Use a whisk to gently fold the batter. Don't overmix.
    • Add the shredded carrots, drained pineapple, and chopped walnuts into the cake batter. Fold with a spatula until fully combined.
      2 cups shredded carrots, 1 cup canned crushed pineapple in juice, 1 cup walnuts
    • Scoop the batter evenly into the greased and lined baking pans. Bake 20-23 minutes or until a toothpick inserted into the center of each cake layer comes out mostly clean with a few crumbs attached.
    • Let the cake layers cool inside the pans for 10 minutes. Run a spatula along the edges and flip them over onto a cooling rack to release the layers from the pans. Let cool completely.

    Cream Cheese Frosting

    • Place the softened butter into a large bowl or stand mixer. Beat with an electric mixer, use a paddle attachment until creamy and lightened in color. Make sure to scrape down the bowl frequently.
      1 ½ cup unsalted butter
    • Add five cups of powdered sugar, ½ cup at a time into the whipped butter. Beat well in between each addition and scrape down the bowl frequently. Add vanilla and beat well.
      5-6 cups powdered sugar, 1 tablespoon pure vanilla extract
    • Add cream cheese into the frosting, one 1” piece at a time, beating well in between each addition and scraping down the bowl.
      8 oz cream cheese
    • The frosting should be thick and fluffy. If it’s still loose and won’t hold its shape, refrigerate for 10 minutes, add another cup of powdered sugar, and beat again until light and fluffy. Fold the frosting with a spatula to knock out large air bubbles.

    Assembly

    • Place a small dollop of frosting on a cake stand or plate. Place the first cake layer down onto the cake stand. Spread a thin layer of frosting on top. Pipe a thick ring of frosting all the way around the outside edge of the cake layer. Fill the middle with ⅓ cup of cooled pineapple filling.
    • Repeat for the rest of the layers, place the last layer on top - bottom side up. Place the cake into the freezer for 10 minutes to chill briefly, this will prevent it from sliding around and will keep it stable.
    • While it chills, set aside three tablespoons of frosting in one bowl and two tablespoons in a second bowl. Color three tablespoons with orange food coloring and two tablespoons green. Transfer into separate piping bags or zippered plastic bags with the ends cut off.
      Green and orange gel food coloring
    • Spread frosting on the outside of the cake. If the frosting becomes very bubbly and hard to work with, beat it again until light and fluffy. If it’s not thick enough, add some more powdered sugar to make it thicker.
    • Pipe the remaining frosting on top of the cake with an open star piping tip to create a border. Fill the inside with pineapple filling and sprinkle walnuts on the border.
      2 tablespoons walnuts
    • Pipe carrots onto the side of the cake with the orange frosting by piping a line and flicking the end to create a pointy root. Pipe three sticks onto the top of each carrot for the leaves and stems.
    • Serve immediately or refrigerate until ready to serve! The cake is best served at room temperature so let it sit out for 20-30 minutes before serving to soften the frosting.

    Video

    Notes

    The cake can be made and assembled a day ahead of serving. Store it in the fridge in a cake container. A cake container will prevent the cake from getting damaged in the fridge and keep it fresh.
    The cake needs to be stored in the fridge, but should be served at room temperature. Leftovers will keep well in the fridge in an airtight container for up to three days.
    Make ahead: 
    The pineapple filling can be made up to a few days ahead of time. You can store any leftover filling in a freezer safe bag or container in the freezer for up to 3 months.
    You can also make the cake layers a day ahead. Wrap the cooled cake layers in food wrap to prevent them from drying out and store at room temperature overnight.
    Expert Cake Tips:
    • Don't add too much filling to prevent it from seeping out the sides. You will have some filling left. Serve extra with sliced pieces of cake.
    • Make the frosting right before decorating the cake for easier decorating.
    • This recipe gives you enough frosting to cover the cake completely. I opted more for a naked look but you can use more frosting.
    • The cake is best served at room temperature, because the frosting softens up. The cake needs to be stored in the fridge because of the cream cheese in the frosting.
    • For extra clean slices, cut the cake while it’s chilled and wipe the knife clean with every cut.

    Nutrition

    Calories: 751kcalCarbohydrates: 92gProtein: 8gFat: 41gSaturated Fat: 16gPolyunsaturated Fat: 13gMonounsaturated Fat: 10gTrans Fat: 1gCholesterol: 96mgSodium: 319mgPotassium: 257mgFiber: 3gSugar: 72gVitamin A: 2922IUVitamin C: 9mgCalcium: 138mgIron: 2mg
    Tried this recipe?Let us know how it was!
    « Lemon Raspberry Bars
    Lemon Raspberry Cheesecake »

    Reader Interactions

    Comments

    No Comments

    5 from 1 vote (1 rating without comment)

    Did you make this recipe? Let me know! Cancel reply

    Your email address will not be published. Required fields are marked *

    Recipe Rating




    Primary Sidebar

    Girl holding whisk

    Hi, I'm Mary! This is where I share all of my baked treats. I use my massive sweet tooth and background in food science to make decadent, foolproof recipes.

    More about me →

    Summer Dessert Recipes

    • stacked pavlova cake with lemon passion fruit curd and berries
      Passion Fruit Lemon Curd Stacked Pavlova Cake
    • scoop of lemon mousse with lemon curd, olive oil, and basil leaf
      Lemon Mousse with Lemon Curd
    • lemon raspberry cheesecake with raspberry curd topping sliced
      Lemon Raspberry Cheesecake
    • lemon posset in lemon rind
      Lemon Posset
    • slices of lemon zucchini bread stacked on top of eachother
      Lemon Zucchini Bread
    • slice of creamy lemon tiramisu on white plate topped with lemon curd
      Lemon Tiramisu with Lemon Curd

    Popular Recipes

    • slices of moist lemon pound cake on a large plate
      The Best Moist Lemon Pound Cake Recipe
    • slices of lemon poppy seed cheesecake with whipped cream and lemon curd
      Lemon Poppy Seed Cheesecake
    • holding round cookie box filled with cookies
      Christmas Cookie Box 2024
    • molded and glazed squirrel and pinecone shaped gingerbread cookies
      Thick Gingerbread Molded Cookies with Jam Filling
    • peppermint brownie bark cookies
      Peppermint Brownie Bark Cookies
    • banana bread cookies with chocolate, walnuts, and crisp edges
      Banana Bread Cookies

    Footer

    Info

    • Recipe Archive
    • About
    • Contact
    • Work with me
    • Privacy Policy

    Newsletter

    Subscribe to get recipes and baking tips right to your inbox:

    You can unsubscribe anytime.

    Yaaaay!

    You have successfully joined our subscriber list.

    .

    More

    • Essential kitchen gift guide
    • Free fall recipe ebook
    • Free holiday recipe ebook

    As an Amazon Associate I earn from qualifying purchases at no additional cost to you. This helps to support this blog so I can keep creating free recipes for you to enjoy.

    Copyright © 2025 Flouring Kitchen

    Rate This Recipe

    Your vote:




    A rating is required
    A name is required
    An email is required

    Recipe Ratings without Comment

    Something went wrong. Please try again.