Moist GF Carrot Cake Recipe with Pineapple

Moist GF Carrot Cake with Pineapple
By Zoe WilliamsUpdated:
This cake stays soft because it uses almond flour and crushed pineapple to fight that typical gluten-free dryness. This Moist GF Carrot Cake Recipe is a total win for anyone with a massive sweet tooth who needs a gluten-free option.
  • Time: 25 min active + 45 min baking + 1 hour 15 min cooling
  • Flavor & Texture: Spiced, tender crumb with a tangy frosting
  • Perfect for: Weekend baking, holiday potlucks, or a sweet treat for friends

Moist GF Carrot Cake Recipe

Carrot cakes started way back when sugar was a luxury. People used carrots to add sweetness to their bakes. Over time, it turned into this spiced, rich cake we all know, usually topped with a thick layer of cream cheese frosting.

Gluten-free versions often miss the mark. They end up gritty or dry out by the time you hit the second slice. This version fixes that by focusing on moisture from the start.

You'll get a cake that is tender and holds together. It's a great way to get some veggies into a dessert without it tasting like a salad.

Why the Crumb Stays Soft

  • Almond Flour: The natural fats in ground almonds stop the cake from feeling sandy or crumbly.
  • Crushed Pineapple: It adds moisture and a bit of acidity that keeps the crumb tender.
  • Applesauce: This replaces some of the heavier fats and locks in moisture during the 45 minute bake.
Carrot Prep MethodTextureFlavorBest For
Fine GrateIntegrated, smoothSubtle carrot tasteA more refined cake
Coarse GrateChunky, texturedBold carrot burstsRustic, home-style feel

The Key Ingredients

  • 220 g gluten-free all-purpose flour blend with xanthan gum
  • 75 g finely ground almond flour (blanched ground almonds)
  • 5 g baking soda
  • 4 g baking powder
  • 5 g ground cinnamon
  • 1.5 g ground nutmeg
  • 3 g fine sea salt
  • 150 g large eggs (about 3), room temperature
  • 150 g packed light brown sugar
  • 80 ml neutral oil, such as canola or avocado
  • 80 g unsweetened applesauce
  • 10 ml pure vanilla extract
  • 220 g finely grated carrots (about 3 medium carrots)
  • 170 g crushed pineapple, drained very well (from one 225 g can)
  • 60 g chopped pecans or walnuts
  • 115 g cream cheese, softened
  • 28 g unsalted butter, softened
  • 120 g powdered sugar
  • 2.5 ml pure vanilla extract
  • 5 ml fresh lemon juice

The gluten-free flour blend provides the base, but the almond flour is what gives it that rich feel. I like using a blend that already has xanthan gum to keep things simple.

Brown sugar adds a deep, molasses-like flavor that white sugar just can't touch. The oil and applesauce work together to ensure the cake doesn't dry out in the oven.

For the frosting, cream cheese and butter create a thick, spreadable base. A splash of lemon juice cuts through the sugar and makes the whole thing pop.

Needed Tools

  • 23x33 cm (9x13-inch) baking pan
  • Parchment paper
  • Fine mesh sieve
  • Box grater
  • Large mixing bowl
  • Medium mixing bowl
  • Whisk and spatula
  • Hand mixer

Step by step Baking

Phase 1: Prep the Oven, Pan, and Fruit

Preheat the oven to 180°C (350°F). Grease a 23x33 cm (9x13-inch) pan and line the bottom with parchment paper.

Drain the crushed pineapple in a fine mesh sieve. Press gently with a spoon, then pat it dry with paper towels. Note: Too much juice makes the center gummy.

Grate the carrots on the fine side of a box grater.

Phase 2: Build the Wet Base

In a large bowl, whisk the 150 g eggs and 150 g brown sugar for about 1 minute until smooth and slightly thickened.

Whisk in 80 ml neutral oil, 80 g applesauce, and 10 ml vanilla until the batter is glossy with no streaks of oil.

Phase 3: Combine

In a medium bowl, whisk together 220 g GF flour blend, 75 g almond flour, 5 g baking soda, 4 g baking powder, 5 g cinnamon, 1.5 g nutmeg, and 3 g salt.

Add the dry ingredients to the wet mixture. Fold with a spatula just until no dry pockets remain. A few small streaks are fine.

Fold in 220 g grated carrots, 170 g drained pineapple, and 60 g chopped pecans or walnuts until evenly distributed. The batter should be thick but spreadable.

Phase 4: Bake

Spread the batter evenly in the pan and smooth the top with the spatula.

Bake on the middle rack for 40 to 45 minutes until the top is golden brown and springs back when lightly pressed. The edges should pull away from the sides, and a toothpick in the center should come out with moist crumbs but no wet batter.

Phase 5: Cool Completely

Cool the cake in the pan for 15 minutes. Lift it out by the parchment and transfer it to a cooling rack.

Let the cake cool completely, about 1 hour, before frosting.

Phase 6: Make and Spread the Frosting

Beat 115 g softened cream cheese and 28 g softened butter with a hand mixer for about 1 minute until smooth.

Add 120 g powdered sugar, 2.5 ml vanilla, and 5 ml lemon juice. Beat for 1 to 2 minutes until fluffy and spreadable.

Spread the frosting over the completely cooled cake and cut into 12 squares.

Solving Cake Problems

Most issues with this cake happen because of how the fruit is handled or how the cake is cooled. If you frost a warm cake, the topping will slide right off.

Fixing a Gummy Center

This usually happens if the pineapple wasn't drained enough or the oven temperature was too low. Ensure the pineapple is patted dry.

Handling a Crumbly Slice

If the cake falls apart, you might have over-mixed the batter or used a flour blend without xanthan gum. Fold the dry ingredients in gently.

Correcting Soft Frosting

If the frosting is too runny to spread, it's likely the butter or cream cheese was too warm. Pop it in the fridge for 15 minutes and beat it again.

ProblemFix
Gummy centerPat pineapple drier and check oven temp
Crumbly sliceDon't over-mix; check for xanthan gum
Runny frostingChill frosting for 15 mins, then re-beat

Make It Your Own

For a nutty twist, replace the pecans with toasted hazelnuts. If you want a brighter flavor, add a tablespoon of orange zest to the batter.

If you're baking for a baby's first party, this cake is too sweet, but a Smash Cake recipe works better for infants.

For a more tropical vibe, use coconut flakes instead of walnuts.

Keeping it Fresh

Store the frosted cake in an airtight container in the refrigerator. It stays fresh for up to 4 days.

This cake freezes well without the frosting. Wrap the unfrosted layers tightly in plastic wrap and foil. It will keep in the freezer for 3 months. Thaw it in the fridge overnight before frosting.

There isn't much waste here, but if you have leftover carrot peels, you can toss them into a veggie scrap bag in the freezer for making stock later.

What to Serve With

This cake is rich, so it pairs well with something a bit bitter or tart. I like it with a cup of strong black coffee or a pot of unsweetened Earl Grey tea.

For a little extra, serve a square with a handful of fresh raspberries on the side. The tartness of the berries balances the sweetness of the cream cheese frosting.

ServingsPan SizeCake ThicknessPrep Time
12 Squares23x33 cm~3 cm25 min
6 Squares15x20 cm~4 cm20 min
24 Squares30x40 cm~2 cm30 min

Adjusting the Batch Size

IngredientHalf batchDouble batch
gluten-free all-purpose flour blend with xanthan gum110 g440 g
Finely ground almond flour (blanched ground almonds)37.5 g150 g
Baking soda2.5 g10 g
Baking powder2 g8 g
Ground cinnamon2.5 g10 g
Ground nutmeg0.75 g3 g
Fine sea salt1.5 g6 g
Large eggs , room temperature75 g300 g
Packed light brown sugar75 g300 g
Neutral oil, such as canola or avocado40 ml160 ml
Unsweetened applesauce40 g160 g
Pure vanilla extract5 ml20 ml
Finely grated carrots110 g440 g
Crushed pineapple, drained very well85 g340 g
Chopped pecans or walnuts30 g120 g
Cream cheese, softened57.5 g230 g
Unsalted butter, softened14 g56 g
Powdered sugar60 g240 g
Pure vanilla extract1.25 ml5 ml
Fresh lemon juice2.5 ml10 ml

Do not multiply cooking time by the batch factor; use extra pans or work in batches and check doneness.

For the half batch, use an 8x8 inch pan and check for doneness around 30 to 35 minutes. For the double batch, use two 9x13 inch pans.

Recipe FAQs

How to make a GF cake more moist?

Incorporate applesauce and crushed pineapple. These ingredients provide natural moisture and prevent the gluten-free flour from becoming too dry or crumbly.

Can I substitute oil with butter?

Yes, but the texture will be denser. Oil keeps the crumb softer, while butter provides a richer flavor but a firmer structure.

Why is crushed pineapple used?

It provides essential moisture and a bright flavor. The acidity also helps activate the baking soda for a better lift in gluten-free baking.

What gluten-free flour works best?

Use a blend with xanthan gum combined with almond flour. The blend provides structure while the almond flour adds richness and a tender crumb.

Which ingredients are required?

The recipe uses a gluten-free flour blend, almond flour, carrots, crushed pineapple, and nuts. Other key components include eggs, brown sugar, oil, applesauce, and cream cheese frosting.

Could I use pecans instead?

Yes, both pecans and walnuts work perfectly. Either choice adds a toasted, nutty contrast to the sweet and spiced cake.

Where should I store it?

Keep it in the refrigerator. Because the frosting contains cream cheese and butter, refrigeration is necessary to maintain safety and freshness.

Is there a trick to smooth frosting?

Beat the softened cream cheese and butter together first. Mix these for one minute before adding powdered sugar and lemon juice to remove any lumps.

Moist GF Carrot Cake with Pineapple

Moist GF Carrot Cake with Pineapple Recipe Card
4.5 / 5 (11 Reviews)
Preparation time:25 Mins
Cooking time:45 Mins
Resting time:01 Hrs 15 Mins
Total time:02 Hrs 25 Mins
Servings:12 servings · 12 squares
Category: DessertCuisine: American
print Pin

Ingredients:

Instructions:

Nutrition Facts
Per serving
Calories
365 calories
% Daily Value*
Total Fat 21.5 g
   Saturated Fat 4.9 g
Sodium 306 mg
Total Carbohydrate 39.5 g
   Dietary Fiber 2.3 g
   Total Sugars 21 g
Protein 5.1 g
* Percent Daily Values are based on a 2,000 calorie diet.
Rate This Recipe
Pick your stars
Your Turn: