This post may contain affiliate links. Please read our disclosure policy.

This gluten free carrot cake recipe is incredibly moist and tender, with just the right balance of sweetness and spice. The light, fluffy crumb stays fresh for days thanks to oil and tons of freshly grated carrots, but it never tastes oily or soggy like some other recipes you'll find.

Even die-hard carrot cake skeptics ask for this one as a birthday cake. Youโ€™ll come back to it every spring, holiday, and birthday celebration.

A slice of the finished gluten free carrot cake recipe with white frosting in between layers.
Want to save this recipe?
Enter your email and weโ€™ll send it to you! Plus, get new recipes every week.

Why this recipe works

Many gluten free carrot cake recipes rely on extra ingredients like applesauce or almond flour to compensate for dryness or lack of structure, often due to poor flour blend selection or ingredient balance. Those additions can shift the flavor away from traditional carrot cake and make the crumb inconsistent from one bake to the next.

I built this recipe from the flour blend up, like I've been doing since 2009. The ratios are designed specifically for gluten free baking, so the cake rises evenly, sets fully in the center, and stays tender without becoming sticky or fragile.

The carrots are finely prepared and properly distributed throughout the batter, which allows them to add moisture naturally as the cake bakes. You get depth of flavor and softness without needing filler ingredients or tricks, and a carrot cake the gluten-eaters love.

Cake ingredients

This cake comes together with everyday pantry and fridge ingredients. Here's what you'll need, plus a few words about the role of each ingredient in perfect results:

Ingredients required to make the recipe in small bowls with names of ingredients in black typeface.
  • Gluten free flour: Use one of my recommended all purpose gluten free blends for the right structure and texture. Avoid anything with a coarse rice flour or overly starchy blends. I highly recommend Better Batter's original all purpose gluten free flour blend or Nicole's Best Multipurpose with added xanthan gum. Bob's Red Mill 1-to-1 also works with more xanthan gum (the blend doesn't have enough on its own).
  • Baking powder/baking soda: A combination of these leaveners helps the cake rise evenly and brown perfectly in the oven.
  • Cinnamon: Adds warm, aromatic depth that pairs perfectly with the carrots.
  • White & brown sugars: A balanced mix of sugars brings sweetness, keeps the crumb tender, and adds some depth of flavor from the molasses in the brown sugar. They also help the cake brown and lock in moisture.
  • Eggs: Essential for structure and a light, fluffy texture. Eggs also help the cake hold its shape as it cools.
  • Neutral oil: Creates a moist, tender cake by adding fat without adding any competing flavor, even when chilled.
  • Milk: Adds moisture and brings the cake together; be sure to use something with fat for richness.
  • Apple cider vinegar: Helps the cake rise by reacting with baking soda to create a full rise in the oven.
  • Carrots: Freshly grated carrots add color, moisture, and a natural sweetness that pairs really well with cinnamon.
  • White chocolate chips + pecans (optional): These add richness and texture in the background, unlike regular chocolate chips which would add a prominent competing flavor. You can easily swap or skip them to suit your taste.

Frosting ingredients

This simple cream cheese frosting is tangy, smooth, and perfectly sweetโ€”not too stiff, and easy to spread or pipe. Here's what you'll need:

  • Cream cheese: Adds tangy flavor and a soft texture which pair perfectly with the sweetness and soft crumb of the cake. Bring it to cool room temperature so it blends smoothly with the butter.
  • Butter: Adds richness and mild flavor, and helps the frosting holds its shape.
  • Confectioners' sugar: Sweetens and thickens the frosting so it spreads easily and stays stable at room temperature.
Closeup of a slice of the carrot cake being taken from whole cake on platter.

How to make gluten free carrot cake

This batter comes together in one bowl and bakes into two fluffy layers. The recipe card has detailed ingredient amounts, but here's a step by step overview with photos:

1. Mix the dry ingredients

In a large bowl, whisk together the gluten free flour blend (with xanthan gum if needed), baking soda, baking powder, salt, cinnamon, granulated sugar, and brown sugar, breaking up any lumps so they don't become hard in the oven.

2. Add the wet ingredients

Create a well in the center and add the oil, eggs, vinegar, and milk. Mix to form a thick, soft batter. It will come together easily because of the oil as long as your eggs and milk are at room temperature.

3. Fold in carrots and mix-ins

Stir in the grated carrots, white chocolate chips, and pecansโ€”or your favorite mix-in combo. We add the carrots last so we only need to fold them in and they won't bleed color all over the batter or start to break apart.

4. Bake the cakes

Divide the batter evenly between two greased and lined 8-inch round pans, and spread into even layers with an offset spatula so the cakes bake flat and evenly. Bake at 350ยฐF for about 35 minutes, rotating once, until the tops are set and the edges pull away from the pan.

5. Cool completely

Let the cakes cool in the pans for 10 minutes so they're stable and don't fall apart. Turn the cakes over onto a wire rack once to cool fully so the frosting doesn't melt and slide off.

6. Make the frosting

To make a cream cheese frosting, beat cream cheese and butter until light and fluffy, then beat in confectioners' sugar until you reach a scoopable but soft consistency. You may need more or less sugar depending on the consistency you're looking for and how stiff you want your frosting.

7. Frost the cakes

Place one cake upside down on a serving platter so the flat bottom creates a smooth surface. Add half the frosting and spread it into an even layer. Top with the second cake, also upside down, and press gently to adhere.

Spread the remaining frosting over the top and sides. A swoopy pattern on top looks polished without needing perfect technique.

substitutions

Ingredient substitutions

Dairy free cake
This carrot cake is already made with oil, not butter, so itโ€™s easy to make dairy free. In place of cow's milk, use an unsweetened non-dairy milk with a similar consistency and fat content. I really like unflavored coconut milk in the carton (not the can) or unsweetened, unflavored soy milk. And replace the white chocolate chips with more chopped nuts or a dairy-free alternative.

Dairy free frosting
You can make a dairy free cream cheese-style frosting using:

  • 4 ounces Daiya or Violife non-dairy cream cheese
  • 8 tablespoons (96 g) nonhydrogenated shortening
  • 6 tablespoons (84 g) block-style vegan butter (like Miyoko's or Melt brand)

I donโ€™t recommend using a full 8 ounces of non-dairy cream cheese since the flavor can be overpowering.

For a store-bought option, try Pillsbury Creamy Supreme Cream Cheese Frosting. Itโ€™s gluten free and dairy free (but contains soy), and tastes delicious.

Egg free
Replacing all 4 eggs is a challenge, but it may work using:

  • 4 flax eggs (1 tablespoon ground flaxseed + 3 tablespoons water per egg);
  • JustEgg brand plant-based liquid egg; or
  • Bob's Red Mill Egg Replacer

Expect a denser, less airy cake, but still flavorful and tender. If you use flax eggs, they will add some competing bitter flavor, so I recommend using vanilla bean paste instead of regular vanilla extract for more balancing flavor.

Nut free
Skip the pecans entirely, and increase the white chocolate chips to 6 ounces (from 3 ounces).

Single layer baked carrot cake on white cake turner.

Expert tips

Grate fresh carrots
Skip the pre-shredded carrots, which are dry and too thick, so they'll remove moisture from the carrot cake rather than adding it. Grate whole carrots using a box grater or the grater attachment on a food processor for the best texture and moisture balance.

Measure flour by weight
Always measure your gluten free flour blend by weight, not volume. Itโ€™s the only way to avoid dry cake from over-measuring or inconsistent texture from under-measuring. And remember to completely ignore volume measurements, since the only weight-to-volume ratio that matters is the one the recipe developer (that's me!) uses, to get my same results.

Donโ€™t rely on the toothpick test
This cake is so moist that a toothpick may come out with quite a few crumbs even when itโ€™s fully baked. Look for light browning on top and slight pulling away from the sides of the pan to gauge doneness.

Scaling the recipe
To make a single 8-inch cake layer, reduce the “yield” in the recipe card from 8 to 4 slices. All of the ingredients will reduce by half. Halve the frosting, or keep the full batch if you love extra frosting.

Customize with mix-ins
For more texture or flavor, try chopped pecans, walnuts, raisins, or chocolate chips. Be sure to choose something that hold its shape during baking and doesn't add moisture. And don't eliminate the mix-ins entirely, since they help balance the cake. Without any, the cake may cave in the center a bit as it cools due to excess moisture.

A close up view of one slice of the completed cake with one forkful taken out of it.
Go Ad-Free

Gluten Free Carrot Cake Recipe

4.99 from 324 votes
Prep Time: 25 minutes
Cook Time: 35 minutes
Yield: 8 slices layer cake
This gluten free carrot cake is impossibly moist and tender, with a fluffy crumb, just the right sweetness, and warm cinnamon spice. Frost it with tangy cream cheese frosting!

Equipment

  • Stand mixer with paddle attachment or handheld mixer
Save this recipe!
Get this sent to your inbox, plus get new recipes from us every week!

Ingredients 

For the cakes

  • 2 ยผ cups (315 g) all purpose gluten free flour blend, (See Recipe Notes)
  • 1 teaspoon xanthan gum, omit if your blend already contains it
  • 1 teaspoon baking soda
  • 1 ยฝ teaspoons baking powder
  • ยฝ teaspoon kosher salt
  • 2 teaspoons ground cinnamon
  • ยพ cup (150 g) granulated sugar
  • ยฝ cup (109 g) packed light brown sugar
  • ยฝ cup (112 g) neutral oil, (like sunflower or grapeseed oil)
  • 4 (200 g (weighed out of shell)) eggs, at room temperature, beaten
  • 1 teaspoon apple cider vinegar
  • ยฝ cup (4 fluid ounces) milk, at room temperature
  • ยฝ cup (55 g) chopped pecans, plus more for decorating (optional)
  • ยฝ cup (3 ounces) white chocolate chips, (See Recipe Notes if omitting pecans)
  • 3 cups (270 g) peeled and grated carrots, (from about 3 large carrots)

For the cream cheese frosting

  • 8 ounces cream cheese, at room temperature
  • 8 tablespoons (112 g) unsalted butter, at room temperature
  • ยผ teaspoon kosher salt
  • 4 cups (460 g) confectionersโ€™ sugar, plus more as necessary

Instructions 

Make the cake batter

  • Preheat your oven to 350ยฐF. Grease two 8-inch round baking pans and set them aside.
  • In a large bowl, place the flour blend, xanthan gum, baking soda, baking powder, salt, cinnamon and granulated sugar. Whisk to combine well.
  • Add the brown sugar, and whisk again to combine, working to break up any lumps in the brown sugar.
  • Create a well in the center of the dry ingredients, and add the oil, eggs, vinegar, and milk, and mix to combine.
  • Add the grated carrots to the mixture, plus the (optional) pecans and white chocolate chips, and mix until evenly distributed throughout. The batter will be thick, but relatively soft.
  • Divide the batter evenly among the two prepared baking pans, and spread into an even layer in each.

Bake the cakes

  • Place in the center of the preheated oven and bake until the cake is uniformly light brown on top, and beginning to pull away from the sides of the pan rotating the pans once during baking (35 to 40 minutes).
  • Remove the pans from the oven from the oven and allow the cakes to cool for at least 10 minutes before transferring to a wire rack to cool completely.

Make the frosting

  • While the cakes are cooling, in the bowl of your stand mixer fitted with the paddle attachment (or a large bowl with a handheld mixer), place the cream cheese and butter.
  • Beat on medium speed until light and fluffy, about 5 minutes.
  • Add the salt, and 3 1/2 cups of confectionersโ€™ sugar. Mix on low speed until the sugar is absorbed. Turn the mixer to high speed and beat until the frosting is thickened and fluffy.
  • Add more confectionersโ€™ sugar as necessary to thicken the frosting enough to hold its shape when scooped with a spoon.

Frost a layer cake

  • Turn one of the cooled cakes, top down, onto a serving platter. Spoon about half of the frosting onto the top of the cake. Spread the frosting into an even layer on top of this cake.
  • Top with the second cake, top-down and press to adhere. Spoon the remaining frosting on top of the cake.
  • Spread the frosting on the top and sides of the cake. It's easiest to create a swooping pattern on top of the cake so it doesn't have to be super smooth and perfect.
  • Top with more chopped pecans, if desired. To make the cake easier to slice, chill for about an hour in the refrigerator before slicing and serving.

Video

Notes

Choosing a flour blend:
Use one of my recommended all purpose gluten free flour blends (like Better Batter original blend or Nicoleโ€™s Best multipurpose). If you use Bobโ€™s Red Mill 1-to-1, add an extra heaping ยฝ teaspoon xanthan gum to avoid a crumbly cake. I donโ€™t recommend Cup4Cup anymoreโ€”itโ€™s changed and no longer performs reliably. To make your own blend using one of my โ€œmockโ€ recipes, please see the all purpose gluten free flour blends page.
Skipping the pecans?
If you leave out the pecans, use 6 ounces of white chocolate chips instead of 3 to make up the difference.

Nutrition

Serving: 1slice | Calories: 619kcal | Carbohydrates: 141g | Protein: 8g | Fat: 46g | Saturated Fat: 18g | Polyunsaturated Fat: 7g | Monounsaturated Fat: 19g | Trans Fat: 1g | Cholesterol: 145mg | Sodium: 641mg | Potassium: 330mg | Fiber: 4g | Sugar: 43g | Vitamin A: 8902IU | Vitamin C: 3mg | Calcium: 166mg | Iron: 1mg

Nutrition information is automatically calculated, so should only be used as an approximation.

Like this? Leave a comment below!

Storage instructions

Make ahead:
Bake the cake layers in advance, wrap them tightly, and freeze for up to 1 month. Defrost at room temperature before frosting.

Storing frosted cake:
Store slices or a whole frosted cake at room temperature, tightly wrapped and/or covered, for up to 3 days.

Freezing leftovers:
Wrap frosted slices in freezer-safe wrap and freeze. Defrost at room temp before serving (don't microwave or the frosting will melt).

Frosting ahead:
Make the cream cheese frosting up to 3 days ahead. Store it in the fridge, then bring to cool room temperature and beat again before using.

FAQs

Can I refrigerate the dry ingredient mix for later?

You can mix and store the dry ingredients (through the brown sugar) in a sealed container at room temperature for a few days. Donโ€™t refrigerate the mix, since brown sugar tends to clump when cold.

Can I use 9-inch pans instead of 8-inch?

Yesโ€”just know that your cakes will be slightly shorter and bake a bit faster. Begin checking for doneness around 25 minutes.

Can I add pineapple to this cake?

I love a carrot cake with pineapple, but that's a different recipe because it adds a ton of extra moisture that this recipe can't handle. Try our Entenmann's style gluten free carrot pineapple cake recipe.

Can I make this cake ahead for a holiday?

Yes! You can make the cake layers up to a month ahead, wrap and freeze them, then defrost and frost the day before serving.

Can I make the cake without nuts?

Absolutely. Just replace the pecans with extra white chocolate chips, or leave both out. The cake still bakes perfectly.

About Nicole Hunn

Hi, Iโ€™m Nicole. I create gluten free recipes that really work and taste as good as you remember. No more making separate meals when someone is GF, or buying packaged foods that arenโ€™t good enough to justify the price. At Gluten Free on a Shoestring, โ€œgood, for gluten freeโ€ just isnโ€™t good enough!

Leave a comment

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

Recipe Rating





227 Comments

  1. Kelly Anderson says:

    5 stars
    This is one of the best cakes you can make- of any cakes- period. Tender, moist, flavorful, and just the right amount of sweetness and spice. Then the white chocolate chips are next level, I just canโ€™t imagine not having them around now that I have tried adding them here. It is my husbandโ€™s birthday cake choice and I even bake them in a bunny mold pan. They are almost magical, no frosting required. Can I give this recipe 10 stars?

    1. Nicole Hunn says:

      Oh my gosh, Kelly, thank you so much for sharing that. I can’t believe you make this cake in a bunny mold. I remember those from when I was a kid, with coconut shred whiskers! So glad you love this cake. โค๏ธ

  2. Sam Haigh says:

    5 stars
    I’ve tried the cupcake version first, and they seem fool-proof. Some minimal over-baking left a little caramelization that just added a tasty flavor. The retained moisture is amazing; they reheat perfectly with a few drops of water; we even used regular chocolate (understandably not recommended) and do not find the flavors abrasive. Excellent work Nicole!

    1. Nicole Hunn says:

      Hi, Sam, I’m so glad you loved the carrot cupcakes! It is frustratingly easy to overbake cupcakes, unfortunately, so I’m glad it didn’t affect them negatively for you. Thanks for sharing that!

  3. Joann says:

    Do I need to make any adjustments if I leave out only the white chips?

    1. Nicole Hunn says:

      Hi, Joann, yes, you’ll still need to replace the chips with another mix-in. The chips lower the hydration ratio of the cake.

    2. Joann says:

      So are more pecans or raisins a better substitute for chips?

      1. Nicole Hunn says:

        Yes, more pecans would be perfect, Joann!

  4. Julia says:

    Would this work as a sheet cake as well? Is it OK to double the recipe or is it better to just make two separate batches?
    Thanks very much!

    1. Nicole Hunn says:

      Hi, Julia, I don’t like baking cakes in a 13″x9″ pan, as I find that the bottom center tends to burn before everything else is baked all the way to the center. Instead, I would recommend baking it in a square baking pan or pans. You’ll have to do the math (no way around it!) to version between the volume capacity of an 8-inch round pan and a square pan, which has greater capacity. And recall that this recipe makes an 8-inch round layer cake, so 2 8-inch round pans. For example, an 8-inch round pan has a total volume capacity of 6 cups of batter, and an 8-inch square pan can hold up to 8 cups of batter (which is the same as a 9-inch round pan). One 9-inch square pan can hold 10 cups of batter. If you want to use this recipe, which makes 2 8-inch round pans (a total of 12 cups of batter) to make one 9-inch square pan (10 cups of batter max) cake, you’ll need 9/12 or 3/4 of the amount of batter called for in the recipe. To get that, change the yield in the recipe from 8 slices layer cake to 6 slices layer cake. I hope that’s helpful!

  5. Trisha says:

    5 stars
    Such a delicious cake. I omitted the white chocolate chips just out of personal preference. I used Bobโ€™s Red Mill, but used your tip of extra xantham, and the layers held nicely.
    Have you ever doubled this recipe? Iโ€™m thinking of doing a 10inch cake and was just curious.

    1. Nicole Hunn says:

      Hi, Trisha, so glad you enjoyed the cake, and that Bob’s worked for you with extra xanthan gum. No one is happier than I am that they improved that blend so much, since it’s well priced and so widely available. I do think this cake would work as 10-inch rounds, but you wouldn’t double the batter. You could either bake two shorter layers in 10-inch round pans since each cake here is quite thick, or increase the yield by 50% by changing it from 8 slices to 12, then dividing the batter between 2 10-inch cake pans. I’m honestly not sure about the baking time, since that’s more batter, but in pretty significantly larger pans, so you’ll have to watch carefully. I hope that’s helpful!

  6. Jon says:

    5 stars
    This is my favourite dessert to make. Your recipe is perfectly moist and easy to follow for a beginner bakers. Thanks!

    1. Nicole Hunn says:

      You’re so welcome, Jon! I’m so glad you enjoyed the carrot cake. Thank you for sharing your experience!

  7. Julie says:

    5 stars
    So moist! I used the bobs mill and added the Xantham gum as you mentioned. Everyone loved the cupcakes. Iโ€™m addicted!

    1. Nicole Hunn says:

      So glad you were able to make Bob’s Red Mill’s blend work for you, Julie. I’m so glad that they improved it, since it’s inexpensive and so widely available!

  8. Melissa says:

    5 stars
    I use this recipe and made cupcakes for Easter and people didnโ€™t even know they were gluten-free. They are so delicious. I highly recommend it.

    1. Nicole Hunn says:

      So happy to hear it, Melissa! That’s the best, when gluten eaters and gluten free happily eat the same cupcakes. Thank you for sharing that!