Baking without gluten can be tricky, especially when you’re trying to recreate a classic cake that’s known for its incredibly soft crumb and moist texture. But with the right combination of ingredients and a few simple baking techniques, you can make a gluten-free carrot cake that’s every bit as tender, flavorful, and satisfying as the traditional version.
This recipe has become one of my favorite desserts because it’s incredibly reliable. Whether I’m baking it for Easter dinner, a birthday celebration, a holiday gathering, or simply because I’m craving a slice of homemade carrot cake, it always delivers rave reviews. In fact, most people who try it have no idea it’s completely gluten-free. And if you choose dairy-free ingredients, it’s just as delicious for those avoiding dairy.
Table of Contents

The secret isn’t just swapping all-purpose flour for a gluten-free blend. It’s understanding how the ingredients work together to create structure, lock in moisture, and produce a cake that’s light, fluffy, and sturdy enough to layer with a rich cream cheese frosting.
In this guide, I’ll walk you through every step of making the best gluten-free carrot cake, from choosing the right flour blend and ingredient substitutions to mixing, baking, frosting, storing, and freezing. So if you’re looking for a moist, fluffy, crowd-pleasing cake that no one will guess is gluten-free, you’ve found it. Let’s get baking!
Why You’ll Love This Gluten-Free Carrot Cake
This carrot cake really is a versatile treat. Make it for a birthday, a holiday gathering, or just a Tuesday night dessert. No matter the occasion, it’s the best carrot cake. And it’s just a bonus that it stores really well. Here are a few more reasons you’ll love this cake:
- This cake has the perfect balance of sweetness, warm spices, and tangy frosting.
- Gluten-free AND dairy-free!
- Perfect for making the day before.
- This recipe can make a 2-layer round cake, cupcakes, or a sheet cake (like this Texas Sheet Cake, too!)
- A great recipe for both beginner bakers, those new to gluten-free baking, and experienced bakers alike!
Looking for more gluten-free cake? Check out this one-bowl gluten-free apple cake, this gluten-free lemon pound cake, and this gluten-free banana cake.

Ingredients at-a-Glance
Everything you need to make this gluten-free cake is in the ingredients list below. It’s not much more than some fresh carrots and pantry staples, and you’ll have a showstopping cake ready to enjoy in no time!
For the Cake:
- Gluten-Free Flour
- Almond Flour
- Baking Powder
- Baking Soda
- Spices: Cinnamon, Nutmeg, Cloves, Salt
- Carrots
- Eggs
- Granulated Sugar
- Brown Sugar
- Vegetable Oil
- Toasted Pecans
For the Cream Cheese Frosting:
- Dairy-Free Cream Cheese
- Vegan Butter
- Powdered Sugar
- Vanilla Extract
Measurements for each ingredient, along with instructions for making Gluten-Free Carrot Cake, are in the printable recipe card below.

Printable Gluten-Free Carrot Cake Recipe Card
Ingredients
For Carrot Cake:
- 310 grams gluten-free flour mix, about 2 ½ cups
- 55 grams almond flour, about ½ cup
- 1 ¼ tsp baking powder
- 1 tsp baking soda
- 1 tsp cinnamon
- ½ tsp nutmeg
- ½ tsp cloves
- ½ tsp salt
- 16 oz carrots, peeled and grated
- 4 large eggs, room temperature
- 200 grams granulated sugar, about 1 cup
- 200 grams brown sugar, about 1 cup
- ¾ cup vegetable oil
- 1 cup pecans chopped and toasted
For the Frosting:
- 8 oz dairy-free cream cheese, room temperature
- 8 tbsp vegan butter, room temperature
- 700 grams powdered sugar, sifted
- 1 tsp vanilla extract
Instructions
For the cake:
- Prepare the carrots by peeling and grating them on the large holes of a box grater.
- In a medium bowl, add the gluten-free flour, almond flour, baking powder, baking soda, cinnamon, nutmeg, cloves, and salt. Whisk together.
- In the bowl of a stand mixer, add the eggs, granulated sugar and brown sugar. Beat on medium speed for 30 seconds, until light.
- Slowly add in the vegetable oil, while mixing on low. Once oil has been added, turn mixer speed to medium and beat on medium speed for 2 minutes.
- Add the flour mixture and mix on low for 15 seconds. Scrape down the bowl and mix again for 30 seconds on medium speed.
- Gently fold in the grated carrots and toasted pecans.
- Set the batter aside to rest for 30 minutes.
- While the batter is resting, preheat the oven to 350°F and prepare two round 9" baking pans by lining them with parchment paper and spraying them with cooking spray.
- Divide the rested batter evenly between the two cake pans and bake for 40-50 minutes, checking with a toothpick around 40 minutes.
- Remove the cakes from the oven and let them cool on wire racks for 15 minutes.
- Turn them out of the pans and let the cakes cool completely before frosting.
For the Frosting:
- In the bowl of a stand mixer, add the cream cheese and butter. Beat on medium speed for 30 seconds. Scrape the bowl.
- Add 200 grams of the sifted powdered sugar and mix on medium speed for 30 seconds. Stop the mixer and scrape the bowl between each addition of sugar.
- Add another 200 grams of powdered sugar and mix again for 30 seconds.
- Add another 200 grams of powdered sugar and mix again on medium speed.
- Add the final 100 grams and mix on medium speed for 1 minute until light and fluffy.
- Add in the vanilla extract and mix for another minute.
- Frost the cooled cake.
Notes
- This recipe was tested with King Arthur Measure-for-Measure gluten-free flour mix.
- Melted coconut oil can be substituted for the vegetable oil.
- Let the batter rest for the full 30 minutes.
- Cake can be made as a sheet cake or cupcakes.
- For sheet cake: Follow the instructions after the resting time. Pour the batter into a 9″x13″ pan coated with baking spray. Bake at 350ºF for 40-55 minutes. Checking at 40 minutes and adding time as necessary.
- For cupcakes: Place cupcake liners in 24-30 muffin cups. Pour the rested batter into cups, about 2/3 full. Bake at 350F for 20-30 minutes, checking with a toothpick for doneness.
- Frosting may seem like a lot, but it will frost and decorate a 2-layer cake or 24-30 cupcakes. For a 9″x13″ sheet cake, cut the frosting recipe in half.
Did you make and love this recipe? Give it your review and rating below! And make sure to follow me on Instagram, Pinterest, and Facebook , too!
How to Make Gluten-Free Carrot Cake
Follow along with these steps and pictures to walk you step-by-step through each part of baking this cake so you can feel confident in the entire process!
Step 1
Peel and grate 1 lb of carrots and set them aside. (See the tip on shredding carrots below.)
In a medium bowl, whisk together 310g gluten-free flour, 55g almond flour, 1 1/4 tsp baking powder, 1 tsp baking soda, 1 tsp cinnamon, 1/2 tsp nutmeg, 1/2 tsp cloves, and 1/2 tsp salt. Set the bowl aside.
Tip for Shredding Carrots: Wash and peel the carrots, then grate them on the large holes of a box grater. Or, instead of finely chopping the carrots by hand (which can take a while), you can peel and chop them into half-inch slices, then pulse them in a food processor until they are finely chopped. Just be sure not to pulse them into a mush. (More on how to easily shred them here).

Step 2
In the bowl of a stand mixer, beat the 4 eggs, 200g granulated sugar, and 200g brown sugar on medium speed for 30 seconds until they reach a light color.
Step 3
Slowly add the 3/4 cup of vegetable oil while mixing on low speed. Then turn the speed up to medium and beat for 2 minutes. Scrape down the sides of the bowl.

Step 4
Add the flour mixture and mix on low speed for 15 seconds. Scrape down the sides of the bowl and mix for another 30 seconds on medium speed.

Step 5
Gently fold in the shredded carrots and 1 cup toasted pecans. Set the batter aside to rest for 30 minutes.
To Toast Pecans: Preheat the oven to 350ºF. Spread the chopped pecans in a single, even layer on a baking sheet and toast for 8-10 minutes, stirring them halfway through. They should be golden, toasty, and fragrant. Let them cool slightly before mixing them into the cake batter.

Step 6
While the batter is resting, preheat the oven to 350ºF and line 2-9″ round cake pans with parchment paper and cooking spray. Divide the rested batter evenly between the two cake pans and bake for 40-50 minutes, or until a toothpick inserted into the center comes out clean or with just a few moist crumbs.

Step 7
Cool the baked cakes on wire racks for 15 minutes, then remove them from the pans. Let them cool completely before frosting.

How to Make Cream Cheese Frosting
Here’s a simple walkthrough of how to make your dairy-free cream cheese frosting, followed by some decorating ideas, and to inspire you.
Step 1
In a large bowl, mix the 8 oz cream cheese and 8 tbsp butter on medium speed for 30-60 seconds, until light and fluffy.

Step 2
Add 200g of sifted powdered sugar and mix on medium for 30 seconds. Repeat this with another 200 grams, then another 200 grams, and the final 100g, until you have added all the powdered sugar.

Step 3
Once all the sugar has been added, pour in 1 tsp of vanilla extract, and mix for another minute, until the frosting is smooth, creamy, and fluffy.
Step 4
Frost the cooled cake, decorate, and enjoy!

Decorating Ideas
Whether you’re making this gluten-free carrot cake for Easter, a birthday, or a casual family dessert, a few simple decorating touches can make it look as impressive as it tastes. Here are some of my favorite ways to decorate it:
- Keep it classic: Frost the cake with a thick layer of cream cheese frosting, then create rustic swirls with an offset spatula.
- Add crunch: Sprinkle toasted chopped walnuts or pecans over the top or around the sides.
- Keep it simple: Make it rustic and super simple with a naked cake, frosting only between the layers and on top, leaving the outside bare. (see the image below for inspo)
- Dust with cinnamon: A light sprinkle of ground cinnamon adds warmth and a beautiful finish.
- Pipe decorative borders: Use a large star tip to pipe rosettes or borders for a bakery-style presentation.
- Decorate for the season: Add frosting carrots, edible flowers, or pastel sprinkles for Easter, or candied pecans for a fall-inspired cake.
- Dress up individual slices: Garnish each slice with a dollop of frosting and a little orange zest for an elegant touch.
- Make it a celebration cake: Add cake toppers, rainbow sprinkles, and a candle to make this cake special for any birthday!
Tip: Always let the cake cool completely before frosting. Even a slightly warm cake can cause the cream cheese frosting to melt and slide.

Fresh Carrots vs Pre-Shredded Carrots
Using freshly grated carrots is one of the easiest ways to improve the texture and flavor of your carrot cake. While pre-shredded Using freshly grated carrots is one of the easiest ways to improve the texture and flavor of your carrot cake. While pre-shredded carrots are convenient, they don’t produce the same results.
Here’s why fresh carrots are worth the extra few minutes:
- More moisture: Freshly grated carrots naturally keep the cake soft and tender.
- Better flavor: Fresh carrots are sweeter and have a brighter flavor than packaged shredded carrots.
- Softer texture: They bake into the cake more evenly, while pre-shredded carrots can remain slightly firm.
- Use a box grater or food processor: The large grating holes create the ideal texture for carrot cake.
- Don’t squeeze the carrots dry: Their natural moisture is part of what makes this cake so moist.
- Skip baby carrots or matchsticks: Whole carrots provide the best flavor and texture once grated.
For the best flavor in your carrot cake, don’t skip this essential ingredient of freshly grated carrots.
How to Cut Clean Slices of Cake
Here’s a handy tip for getting those clean, professional-looking slices: Refrigerate your cake for at least 3 hours before slicing (chilled cakes with firm frosting cut much cleaner). Use a long, sharp knife, dip the blade in hot water, wipe it clean, and cut down in one smooth motion. Dip the blade in water and wipe it between slices for clean cuts.
Carrot Cake Serving Variations
This cake can be made as a layer cake (like in the directions above), a sheet cake, or cupcakes! Each cake style requires slightly different baking directions and amounts of frosting.
Carrot Sheet Cake
Pour the batter into a greased 9″x13″ pan. Bake at 350ºF for 40-55 minutes. Start checking for doneness at 40 minutes, and frost and decorate the cake as desired!
Tip: Cut the frosting recipe in half if you only plan to frost the top of the sheet cake.
Carrot Cake Cupcakes
To turn this recipe into cupcakes, fill two muffin tins with cupcake liners. Pour the batter into the cups, about 2/3 full, and bake at 350ºF for 20-30 minutes. Make the full frosting recipe; it will frost and decorate about 2 dozen cupcakes.

Baker Tips for Perfect Carrot Cake
Some helpful tips for serving up the best gluten-free carrot cake! Do you have a trick or tip you want to share with other bakers? Let us know in the comments!
Weigh Ingredients
For the most consistent results, use a kitchen scale to weigh your ingredients instead of measuring by volume. Even a small difference in the amount of gluten-free flour can affect the cake’s texture, making it too dry, dense, or gummy.
Let the Batter Rest
After mixing the batter, let it rest for about 30 minutes before baking. This gives the gluten-free flour time to fully hydrate, resulting in a smoother batter, better structure, and a softer, more tender crumb.
Avoid Overbaking
Start checking the cake for doneness around the 40-minute mark, as oven temperatures can vary. The cake is ready when a toothpick inserted into the center comes out with a few moist crumbs. Overbaking can quickly dry out even the moistest carrot cake.
Let the Cake Cool
Allow the cake to cool in the pan for about 10–15 minutes, then carefully transfer it to a wire rack to cool completely. Frosting a warm cake will cause the cream cheese frosting to soften and slide off, so be patient for the best results.
Helpful Tools
Here are a few tools that will help you make this cake:
- Stand mixer
- Digital Scale
- Muffin tin (for cupcakes)
- Two 9″ round pans (for layer cake)
- 9″x13″ pan (for sheet cake)

Storage & Freezing Instructions
This gluten-free carrot cake stores and freezes well, making it a great dessert to prepare ahead of holidays and celebrations.
Storing
- Unfrosted cake layers: Store tightly wrapped at room temperature for up to 2 days or refrigerate for up to 5 days.
- Frosted cake: Because of the cream cheese frosting, keep the cake refrigerated and covered for up to 5 days.
- Before serving: Let the refrigerated cake sit at room temperature for 20–30 minutes for the best texture and flavor.
Another great thing about this cake is that it freezes really well. You can make it ahead of time and simply defrost and serve!
Freezing
- Freeze unfrosted layers: Wrap each cooled layer in plastic wrap, then aluminum foil, and freeze for up to 3 months.
- Freeze a frosted cake: Chill until the frosting is firm, then wrap well and freeze for up to 3 months.
- Freeze individual slices: Wrap the slices separately for an easy grab-and-go dessert whenever you’re craving carrot cake.
- Thaw overnight: Transfer the cake or slices to the refrigerator the night before serving for the best results.
Pro Tip: If you’re baking for a holiday or party, make the cake layers several weeks in advance and freeze them. Simply thaw, frost, and serve when you’re ready. I recommend frosting it while it’s still cold, but not frozen.
Gluten-Free Carrot Cake FAQs
For more questions or comments regarding this gluten-free carrot cake, write to us in the comments below.
Can I Skip Letting the Cake Batter Rest?
I don’t recommend skipping this step. Letting the batter rest for about 30 minutes gives the gluten-free flour time to fully absorb the liquid, helping reduce grittiness and creating a softer, more tender texture. If you’re short on time, you can bake it right away, but the cake may not have quite the same texture. Plan ahead so you have enough time to let the batter rest for the best, tastiest results.
Why Did My Gluten-Free Carrot Cake Turn Out Gummy?
A gummy texture is usually caused by too much moisture, underbaking, or using a gluten-free flour blend that doesn’t absorb liquid well. Be sure to weigh your ingredients, use freshly grated carrots, and bake until a toothpick inserted into the center comes out with just a few moist crumbs.
Can I Make This Gluten-Free Carrot Cake Into Cupcakes?
This recipe works wonderfully as cupcakes. Fill each liner about two-thirds full and bake at 350ºF for 20-30 minutes, checking for doneness around the 20-minute mark, as baking times can vary by oven. The frosting recipe for this carrot cake will frost around 24 cupcakes.
Can I Make This Carrot Cake Ahead of Time?
This is a perfect cake for making ahead. In fact, carrot cake often tastes even better the next day, as the spices have time to meld. You can bake the cake layers up to two days in advance or freeze them for up to three months, then frost once they’ve completely thawed.
Closing In On Cakes
A truly great carrot cake should be incredibly moist, warmly spiced, and topped with a smooth, tangy cream cheese frosting, and being gluten-free shouldn’t mean settling for anything less. This recipe was carefully developed to deliver all the classic flavors and textures you expect, using gluten-free ingredients that yield consistently delicious results.
If you make this gluten-free carrot cake, I’d love to hear how it turned out! Leave a comment below and give the recipe a rating; it not only helps us continue creating tested gluten-free recipes, but it also helps other readers decide if this recipe is right for them. If you made any substitutions or added your own twist, share those too. Your tips and experiences can inspire other home bakers!

More Cake, Please!
And if you’re looking for more tried-and-true gluten-free cakes, be sure to browse the rest of our recipes, from celebration cakes to seasonal favorites and timeless classics that everyone at the table can enjoy.
Write to Us
Did you enjoy this carrot cake recipe? Let us know your thoughts in the comments to connect with other readers and us, too!



