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.

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:

- 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.

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).

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.

Gluten Free Carrot Cake Recipe

Equipment
- Stand mixer with paddle attachment or handheld mixer
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
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
Nutrition information is automatically calculated, so should only be used as an approximation.
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
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.
Yesโjust know that your cakes will be slightly shorter and bake a bit faster. Begin checking for doneness around 25 minutes.
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.
Yes! You can make the cake layers up to a month ahead, wrap and freeze them, then defrost and frost the day before serving.
Absolutely. Just replace the pecans with extra white chocolate chips, or leave both out. The cake still bakes perfectly.














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?
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. โค๏ธ
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!
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!
Do I need to make any adjustments if I leave out only the white chips?
Hi, Joann, yes, you’ll still need to replace the chips with another mix-in. The chips lower the hydration ratio of the cake.
So are more pecans or raisins a better substitute for chips?
Yes, more pecans would be perfect, Joann!
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!
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!
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.
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!
This is my favourite dessert to make. Your recipe is perfectly moist and easy to follow for a beginner bakers. Thanks!
You’re so welcome, Jon! I’m so glad you enjoyed the carrot cake. Thank you for sharing your experience!
So moist! I used the bobs mill and added the Xantham gum as you mentioned. Everyone loved the cupcakes. Iโm addicted!
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!
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.
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!