gluten free carrot cake recipe days usually start like this for me: you want something cozy and sweet, but you also want it to actually stay moist and not taste like a compromise. Maybe you have a gluten free friend coming over, or you are the gluten free one, and you are tired of dry cake that needs a gallon of frosting to be enjoyable. I have been there, and I got stubborn about it. After a few test runs and a couple of crumbly failures, I landed on a carrot cake that feels like the real deal. It is warmly spiced, tender, and the leftovers stay soft for days. 
Why You’ll Love this Gluten-Free Carrot Cake
First, it is genuinely moist. I am talking the kind of slice you can eat plain with coffee and still feel happy about it. The carrots do a lot of the work, and the balance of oil, eggs, and the right flour blend keeps it from drying out.
Second, it tastes like classic carrot cake. You get cinnamon, a little vanilla, and that mellow sweetness from carrots. If you like add ins like walnuts or raisins, it handles them beautifully, but it is still great without them.
Third, it is a simple, no drama bake. No weird techniques, no fancy equipment. Just a couple bowls, a whisk, and a pan.
Also, it is forgiving. I have made it as a layer cake, a sheet cake, and as cupcakes. It works every time as long as you do not overbake it.
“I made this for my daughter who is gluten free and she cried happy tears. She said it tasted like the carrot cake she missed from before. It stayed soft even on day three.”

Notes on ingredients and substitutions for this gluten-free carrot cake
Before you start, let me save you from the usual gluten free pitfalls. The ingredients matter a bit more here, especially the flour and how wet your carrots are.
The key ingredients that make it moist
Gluten free flour blend is the backbone. I recommend a cup for cup blend that already includes xanthan gum. If yours does not, add about 1 teaspoon xanthan gum for a cake sized batch. This helps hold everything together so it slices cleanly.
Finely grated carrots are non negotiable. Big shreds can make the cake bake unevenly. I use the small holes on a box grater. If your carrots seem super wet, just lightly blot them with a paper towel. Do not squeeze them dry like you are wringing out a towel. You want moisture, just not puddles.
Oil beats butter for texture here. Oil keeps the crumb soft even after the cake cools. A neutral oil like avocado, canola, or light olive oil works well.
Applesauce is my little extra trick. Not too much, just enough to help with moisture and tenderness. If you do not have it, you can use crushed pineapple that has been well drained. It gives a slightly brighter flavor.
Here are some easy swaps if you need them:
- Eggs: If you can do eggs, use them. If not, try a flax egg, but expect the cake to be a bit more delicate.
- Brown sugar: You can use coconut sugar. The flavor gets a little deeper and less caramel like, but still good.
- Nuts: Walnuts or pecans are great. Skip for nut free, or use pumpkin seeds for crunch.
- Raisins: Optional. If you do not love them, leave them out. No one will call the cake police.
- Spices: Cinnamon is essential, and a pinch of nutmeg is lovely. Ginger is optional but adds warmth.
One more thing I learned the hard way: measure your flour carefully. Gluten free flour can pack down in the cup. Spoon it into the measuring cup and level it off. It makes a difference.
Can this gluten-free carrot cake be made dairy-free?
Yes, and it is honestly one of the easiest cakes to make dairy free. The cake itself uses oil, so you are already halfway there. The only part you need to adjust is usually the frosting, if you want frosting.
For a dairy free frosting, you have a couple options:
Simple dairy free cream cheese style frosting: Use a dairy free cream cheese and dairy free butter sticks. Beat with powdered sugar and vanilla. Chill it for 20 to 30 minutes if it feels loose. Dairy free versions soften fast, especially in a warm kitchen.
Whipped coconut frosting: Chill full fat coconut milk overnight, scoop the thick part, and whip it with powdered sugar and vanilla. It is lighter and a little coconutty, in a nice way.
Glaze instead of frosting: Mix powdered sugar with a bit of non dairy milk and vanilla. Drizzle it over the cooled cake. This is the low effort route and it still feels special.
If you are making it for someone with allergies, always double check labels on the flour blend and any dairy free products. Some brands sneak in ingredients you would not expect.
How to Make Gluten-Free Carrot Cake
This is the part where I talk to you like we are in my kitchen and I am handing you a spoon. The goal is a batter that looks thick, smells like cinnamon, and has carrot in every bite.
What you will need and step by step directions
I usually bake this in a 9 by 13 pan for easy slicing, but you can also do two 8 inch rounds.
Ingredients for the cake
- 2 cups gluten free flour blend (cup for cup, preferably with xanthan gum)
- 2 teaspoons baking powder
- 1 teaspoon baking soda
- 1 and 1 half teaspoons cinnamon
- Pinch of nutmeg (optional)
- 1 half teaspoon salt
- 3 large eggs
- 3 quarters cup oil
- 3 quarters cup brown sugar
- 1 quarter cup white sugar
- 1 half cup applesauce (or well drained crushed pineapple)
- 2 teaspoons vanilla extract
- 2 and 1 half cups finely grated carrots
- 1 half cup chopped walnuts or pecans (optional)
- 1 third cup raisins (optional)
Quick directions
- Heat oven to 350 F. Grease and line your pan with parchment if you want easy lifting.
- In a bowl, whisk flour, baking powder, baking soda, cinnamon, nutmeg, and salt.
- In another bowl, whisk eggs, oil, sugars, applesauce, and vanilla until smooth.
- Stir the dry mix into the wet mix until you do not see dry flour anymore.
- Fold in carrots, plus nuts and raisins if using.
- Pour into pan and smooth the top.
- Bake 30 to 40 minutes for a 9 by 13 pan, or 25 to 35 minutes for layers. Check with a toothpick. A few moist crumbs are perfect. Wet batter is not.
- Cool completely before frosting, or the frosting will slide around.
If you want a classic frosting, beat together 8 ounces cream cheese, 4 tablespoons butter, 2 cups powdered sugar, a pinch of salt, and vanilla. Spread it once the cake is fully cool. If you like it less sweet, start with 1 and 1 half cups powdered sugar and taste.
Tips for Making Gluten-Free Cake
Gluten free baking is not scary, but it does have a few habits that help. These are the small things that keep your cake from turning dry or gritty.
Small tricks that make a big difference
Do not overbake. This is the biggest one. Start checking early. If you wait until it looks fully dry on top, it will be dry inside later.
Let it cool fully before slicing. Fresh from the oven it is still setting. Give it at least 45 minutes in the pan, then slice. If you made layers, cool them on a rack.
Use finely grated carrots. I know I already said it, but it is worth repeating. Fine carrots melt into the cake.
Rest the batter for 5 minutes. If you have time, let the batter sit before baking. It helps the flour hydrate and can reduce any gritty texture.
Store it right. Covered at room temp for a day is fine. After that, I refrigerate it. It stays moist for up to 5 days. Let slices sit out for 10 minutes before eating so the texture softens.
And if you are baking this for a birthday or a holiday, make it the day before. This cake actually gets better after it sits overnight. The spices come through more and the crumb relaxes in a good way.
Common Questions
1) Can I make this as cupcakes?
Yes. Fill liners about two thirds full and bake around 18 to 22 minutes at 350 F. Start checking at 18 minutes.
2) Why did my cake sink in the middle?
Usually it is underbaking or opening the oven door too early. Bake until the center springs back lightly and a toothpick comes out with moist crumbs.
3) Can I freeze it?
Absolutely. Freeze unfrosted slices wrapped tightly. They keep well for about 2 months. Thaw in the fridge or on the counter. Frost after thawing for the nicest texture.
4) What gluten free flour works best?
A trusted cup for cup blend is easiest. If your blend does not include xanthan gum, add it. That little helper improves structure and keeps it from crumbling.
5) Can I reduce the sugar?
A bit, yes. You can cut about 1 quarter cup total sugar without wrecking the texture. Just know less sugar means slightly less moisture, so do not overbake.
A sweet little wrap up before you bake
This gluten free carrot cake recipe is the one I make when I want something cozy that still feels reliable and celebratory. Focus on finely grated carrots, a good flour blend, and pulling it out before it overbakes, and you will get that soft, moist crumb everyone wants. You can keep it classic with cream cheese frosting or go dairy free with an easy swap. If you try it, let it cool, slice a piece, and enjoy that first bite because it is the best part. And if you share it with someone who misses carrot cake, I hope it makes their day the way it has made mine.

Gluten Free Carrot Cake
Ingredients
For the Cake
- 2 cups gluten free flour blend (cup for cup, preferably with xanthan gum) If your blend does not include xanthan gum, add about 1 teaspoon for a cake-sized batch.
- 2 teaspoons baking powder
- 1 teaspoon baking soda
- 1.5 teaspoons cinnamon
- 1 pinch nutmeg (optional)
- 0.5 teaspoon salt
- 3 large eggs Use a flax egg as a substitute if needed.
- 0.75 cups oil Neutral oil like avocado, canola, or light olive oil works well.
- 0.75 cups brown sugar Coconut sugar can be used as a substitute.
- 0.25 cups white sugar
- 0.5 cups applesauce (or well drained crushed pineapple) Gives a brighter flavor.
- 2 teaspoons vanilla extract
- 2.5 cups finely grated carrots Use finely grated carrots for even baking.
- 0.5 cups chopped walnuts or pecans (optional) Skip for nut-free or use pumpkin seeds.
- 0.33 cups raisins (optional) Leave out if not liked.
Instructions
Preparation
- Preheat the oven to 350°F (175°C). Grease and line your pan with parchment for easy lifting.
- In a bowl, whisk together the gluten free flour blend, baking powder, baking soda, cinnamon, nutmeg, and salt.
- In another bowl, whisk the eggs, oil, brown sugar, white sugar, applesauce, and vanilla until smooth.
- Stir the dry mixture into the wet mixture until there are no visible dry flour bits.
- Gently fold in the grated carrots, and add the nuts and raisins if using.
- Pour the batter into the prepared pan and smooth the top.
Baking
- Bake for 30 to 40 minutes for a 9x13 pan or 25 to 35 minutes for layer cakes. Check with a toothpick; a few moist crumbs are ideal.
- Cool completely before frosting or slicing.
Frosting (Optional)
- For cream cheese frosting, beat together 8 ounces of cream cheese, 4 tablespoons of butter, 2 cups of powdered sugar, a pinch of salt, and vanilla. Spread once the cake is fully cool.
- For a dairy-free option, use dairy-free cream cheese and butter, or whipped coconut frosting.







