Carrot cake should taste like a warm hug—moist, gently spiced, and topped with a creamy frosting that makes every bite feel special. This gluten-free version checks all those boxes without feeling “different.” The texture is soft and tender, the flavor is rich, and nobody will guess it’s made without wheat. If you’re baking for a mixed crowd, this is the kind of cake that keeps everyone happy.
It’s simple to make, forgiving, and perfect for birthdays, brunches, or any time you want a cozy treat.

Gluten-Free Carrot Cake - Moist, Flavorful, and Easy to Make
Ingredients
- For the cake:
- 2 cups finely grated carrots (about 3–4 medium)
- 1 3/4 cups gluten-free all-purpose flour blend (1:1 with xanthan gum)
- 1 cup granulated sugar
- 1/2 cup light brown sugar, packed
- 1 teaspoon baking powder
- 1/2 teaspoon baking soda
- 1 teaspoon ground cinnamon
- 1/4 teaspoon ground nutmeg
- 1/2 teaspoon fine sea salt
- 3 large eggs, room temperature
- 3/4 cup neutral oil (such as avocado or light olive oil)
- 1/4 cup unsweetened applesauce (adds moisture; optional but recommended)
- 2 teaspoons pure vanilla extract
- 1/2 cup crushed pineapple, well-drained (optional for extra moisture)
- 1/2 cup chopped walnuts or pecans (optional)
- 1/3 cup raisins (optional)
- For the cream cheese frosting:
- 8 ounces full-fat cream cheese, softened
- 1/2 cup unsalted butter, softened
- 2 1/2 to 3 cups powdered sugar, sifted
- 1 teaspoon pure vanilla extract
- Pinch of salt
Instructions
- Prep the pans and oven. Heat the oven to 350°F (175°C). Grease two 8-inch round cake pans and line the bottoms with parchment. Lightly dust with gluten-free flour, tapping out the excess.
- Whisk the dry ingredients. In a large bowl, combine the gluten-free flour, baking powder, baking soda, cinnamon, nutmeg, and salt.Whisk well to blend evenly.
- Mix the wet ingredients. In another bowl, whisk the eggs, granulated sugar, brown sugar, oil, applesauce, and vanilla until smooth and slightly thickened, about 1 minute.
- Combine wet and dry. Pour the wet mixture into the dry ingredients. Stir with a spatula until just combined. Avoid overmixing; a few small lumps are fine.
- Fold in the add-ins. Gently fold in the grated carrots.If using, add the pineapple (well-drained), nuts, and raisins. The batter will be thick but scoopable.
- Divide and bake. Split the batter evenly between the pans. Smooth the tops.Bake for 25–30 minutes, or until a toothpick comes out clean with a few moist crumbs.
- Cool completely. Let the cakes rest in the pans for 10 minutes, then turn them out onto a wire rack. Peel off the parchment and cool fully before frosting.
- Make the frosting. Beat cream cheese and butter together until creamy and fluffy, 2–3 minutes. Add vanilla and salt.Gradually add powdered sugar until the frosting is smooth and spreadable.
- Assemble the cake. Place one layer on a serving plate. Spread a generous layer of frosting on top. Add the second layer and frost the top and sides.For a rustic look, leave the sides semi-naked.
- Chill briefly, then serve. For cleaner slices, chill the cake for 20–30 minutes. Slice with a sharp knife, wiping the blade between cuts.
Why This Recipe Works

Moisture from fresh carrots and oil keeps the crumb tender, even without gluten. The carrots add sweetness and structure, while oil ensures the cake stays soft for days.
A smart gluten-free flour blend gives lift and a delicate crumb. Using a 1:1 baking blend with xanthan gum mimics the structure you’d normally get from gluten.
Balanced spices add warmth without overpowering the carrot flavor.
Cinnamon and nutmeg lead the way, with optional ginger for extra brightness.
Cream cheese frosting brings tang and richness, cutting through the sweetness and rounding out the flavors beautifully.
What You’ll Need
- For the cake:
- 2 cups finely grated carrots (about 3–4 medium)
- 1 3/4 cups gluten-free all-purpose flour blend (1:1 with xanthan gum)
- 1 cup granulated sugar
- 1/2 cup light brown sugar, packed
- 1 teaspoon baking powder
- 1/2 teaspoon baking soda
- 1 teaspoon ground cinnamon
- 1/4 teaspoon ground nutmeg
- 1/2 teaspoon fine sea salt
- 3 large eggs, room temperature
- 3/4 cup neutral oil (such as avocado or light olive oil)
- 1/4 cup unsweetened applesauce (adds moisture; optional but recommended)
- 2 teaspoons pure vanilla extract
- 1/2 cup crushed pineapple, well-drained (optional for extra moisture)
- 1/2 cup chopped walnuts or pecans (optional)
- 1/3 cup raisins (optional)
- For the cream cheese frosting:
- 8 ounces full-fat cream cheese, softened
- 1/2 cup unsalted butter, softened
- 2 1/2 to 3 cups powdered sugar, sifted
- 1 teaspoon pure vanilla extract
- Pinch of salt
Step-by-Step Instructions

- Prep the pans and oven. Heat the oven to 350°F (175°C). Grease two 8-inch round cake pans and line the bottoms with parchment. Lightly dust with gluten-free flour, tapping out the excess.
- Whisk the dry ingredients. In a large bowl, combine the gluten-free flour, baking powder, baking soda, cinnamon, nutmeg, and salt.
Whisk well to blend evenly.
- Mix the wet ingredients. In another bowl, whisk the eggs, granulated sugar, brown sugar, oil, applesauce, and vanilla until smooth and slightly thickened, about 1 minute.
- Combine wet and dry. Pour the wet mixture into the dry ingredients. Stir with a spatula until just combined. Avoid overmixing; a few small lumps are fine.
- Fold in the add-ins. Gently fold in the grated carrots.
If using, add the pineapple (well-drained), nuts, and raisins. The batter will be thick but scoopable.
- Divide and bake. Split the batter evenly between the pans. Smooth the tops.
Bake for 25–30 minutes, or until a toothpick comes out clean with a few moist crumbs.
- Cool completely. Let the cakes rest in the pans for 10 minutes, then turn them out onto a wire rack. Peel off the parchment and cool fully before frosting.
- Make the frosting. Beat cream cheese and butter together until creamy and fluffy, 2–3 minutes. Add vanilla and salt.
Gradually add powdered sugar until the frosting is smooth and spreadable.
- Assemble the cake. Place one layer on a serving plate. Spread a generous layer of frosting on top. Add the second layer and frost the top and sides.
For a rustic look, leave the sides semi-naked.
- Chill briefly, then serve. For cleaner slices, chill the cake for 20–30 minutes. Slice with a sharp knife, wiping the blade between cuts.
Keeping It Fresh
Refrigeration: Because of the cream cheese frosting, store the cake in the fridge. Cover it well to prevent drying.
It will stay fresh for 4–5 days.
Freezing: Freeze unfrosted layers, tightly wrapped, for up to 2 months. Thaw in the fridge overnight, then frost. You can also freeze individual frosted slices; wrap and store in an airtight container.
Room temperature note: The frosted cake can sit out for up to 2 hours when serving.
Return leftovers to the fridge afterward.

Health Benefits
Gluten-free friendly: Made without wheat, this cake works well for those with celiac disease or gluten sensitivity when using certified gluten-free ingredients.
Carrots add nutrients: Carrots provide beta-carotene, fiber, and antioxidants. They also add natural sweetness, so the cake doesn’t rely solely on sugar.
Balanced fats: Using oil instead of butter in the batter creates a tender crumb and can help maintain moisture with less saturated fat.
Portion flexibility: Rich desserts can still fit into a balanced diet. Smaller slices satisfy thanks to the spices, texture, and tangy frosting.
Common Mistakes to Avoid
- Using the wrong flour blend: Not all gluten-free flours behave the same.
Choose a 1:1 blend with xanthan gum. If your blend lacks it, add 1/2 teaspoon xanthan gum.
- Overmixing the batter: This can lead to a dense or gummy texture. Stir only until combined after adding the dry ingredients.
- Too much moisture from add-ins: If using pineapple, drain it very well.
Excess liquid can cause the center to sink.
- Skipping parchment: Gluten-free cakes can be more delicate. Lining the pans ensures clean release.
- Frosting warm cake: The frosting will melt and slide. Cool layers completely before assembling.
Alternatives
- Dairy-free frosting: Use dairy-free cream cheese and plant-based butter.
Add a splash of lemon juice to brighten the flavor.
- Refined sugar adjustments: Replace half the granulated sugar with coconut sugar for a deeper, caramel-like note. Keep some white sugar for structure.
- Nut-free option: Skip nuts or replace with toasted pumpkin seeds for crunch.
- Sheet cake style: Bake in a 9×13-inch pan for 30–35 minutes. Frost the top and serve right from the pan—great for gatherings.
- Spice variations: Add 1/2 teaspoon ground ginger or a pinch of cloves for extra warmth.
Keep cinnamon as the base note.
- Raisin swap: Try chopped dates or dried cranberries for a different sweetness and texture.
FAQ
Can I make this carrot cake without eggs?
Yes. Replace each egg with a flax egg (1 tablespoon ground flaxseed mixed with 3 tablespoons water, set for 10 minutes). The cake will be slightly denser but still moist and flavorful.
Do I need xanthan gum?
If your gluten-free flour blend already contains xanthan gum, you’re set.
If not, add about 1/2 teaspoon to help bind the batter and improve the crumb.
How fine should I grate the carrots?
Use the small holes of a box grater or a food processor with a fine shredding disk. Finely grated carrots distribute better, keeping the cake tender and evenly moist.
Why did my cake sink in the middle?
Common causes include underbaking, too much liquid (often from undrained pineapple), or old baking soda/powder. Check oven temperature, drain add-ins well, and ensure your leaveners are fresh.
Can I reduce the sugar?
You can reduce the total sugar by about 1/4 cup without major changes.
Keep in mind sugar affects moisture and structure, so larger reductions may alter texture.
What can I use instead of cream cheese frosting?
A simple vanilla buttercream works well, or try a lightly sweetened whipped cream cheese “cloud” with less sugar. For dairy-free, use a coconut cream frosting with a touch of vanilla and lemon.
How do I prevent a gritty texture?
Use a high-quality 1:1 gluten-free blend and let the batter rest for 5–10 minutes before baking. This brief rest helps hydrate the flour and improves the crumb.
Can I bake this as cupcakes?
Yes.
Portion into lined muffin tins, filling 2/3 full. Bake at 350°F (175°C) for 18–22 minutes, or until a toothpick comes out clean.
In Conclusion
Gluten-free carrot cake should taste like the real deal—tender, warmly spiced, and topped with luscious cream cheese frosting. With the right flour blend, balanced moisture, and careful mixing, you’ll get a cake that stands tall on any dessert table.
Keep the steps simple, don’t skip the parchment, and let the spices shine. Whether you serve it as a layer cake or a fuss-free sheet cake, this recipe is one you’ll make again and again.
Printable Recipe Card
Want just the essential recipe details without scrolling through the article? Get our printable recipe card with just the ingredients and instructions.
