Gluten-Free Carrot Cake

Prep 10 minutes
Cook 40 minutes
Servings 16 servings

This gluten-free carrot cake with cream cheese frosting is one of my absolute favorites. It’s incredibly easy to make, yet it tastes like something straight out of a bakery. The warm blend of spices perfectly complements the natural sweetness of the carrots, pineapple, and coconut, creating a rich, moist texture that no one will ever guess is gluten-free. Frosted with a cream cheese frosting with a hint of lemon that adds just the right amount of brightness, making every bite irresistible.

 A close-up slice of gluten-free carrot cake on a plate with visible layers of cream cheese frosting, chopped pecans, and moist cake texture, surrounded by pecans and cinnamon sticks.

I love how this cake turns out moist, soft, and tender every single time—exactly how a great carrot cake should be. A perfect blend of cinnamon, nutmeg, and sugar, combined with the natural sweetness of carrots and pineapple, gives this cake its incredible flavor. It’s so easy to make using everyday ingredients you probably already have in your kitchen. The light cream cheese frosting adds just the right amount of richness without overpowering the cake, keeping every bite perfectly balanced. 

This is the kind of cake that disappears fast at any gathering—whether it’s Easter, a birthday, or just a cozy weekend treat. I love making it for special occasions because it always gets rave reviews, even from those who don’t follow a gluten-free diet. If you prefer baking with almond flour, my almond flour carrot cake is another great option with a slightly richer texture and nutty flavor. Trust me, once you try it, this will become your go-to carrot cake recipe.

4.92 from 96 votes

Gluten-Free Carrot Cake

Servings: 16 servings
Prep: 10 minutes
Cook: 40 minutes
Total: 50 minutes
A close-up slice of gluten-free carrot cake on a plate with visible layers of cream cheese frosting, chopped pecans, and moist cake texture, surrounded by pecans and cinnamon sticks.
This gluten-free carrot cake is one of my absolute favorites. It’s incredibly easy to make, yet it tastes like something straight out of a bakery.
Step-by-step photos can be seen below the recipe card.
Want to save this recipe?
Just enter your email and get it sent to your inbox! Plus you’ll get new recipes from us every week!

Equipment

  • 2 9×9-inch cake pans

Ingredients 

Cake

  • 2 cups gluten-free all-purpose flour with xanthan gum, I like Pillsbury gluten-free. Not all gluten-free flours are created equal. You may experience different baking results depending on the gluten-free flour blend you choose.
  • 1 teaspoon baking soda
  • ½ teaspoon gluten-free baking powder
  • ½ teaspoon salt
  • 2 teaspoons ground cinnamon
  • 1/4 teaspoon ground nutmeg
  • 1/8 teaspoon ground cloves
  • 1/4 teaspoon ground allspice
  • 2 cups granulated sugar
  • 3 large eggs
  • 1 1/2 cups applesauce, I keep applesauce snack cups in my pantry. They are 1/2 cup portions.
  • 1/2 cup raisins
  • 1 cup shredded sweetened coconut
  • 1/2 cup pecans, chopped
  • 1 cup crushed pineapple in juice, not syrup; do not drain
  • 2 cups grated carrots, 2-3 large carrots
  • 1 teaspoon pure vanilla extract

Cream Cheese Frosting

  • 1 cup butter, softened
  • 2 8-ounce cream cheese, softened
  • 2 cups powdered sugar, If you want a firmer frosting, add an additional 1-2 cups of powdered sugar
  • 2 tablespoons lemon juice
  • 1 teaspoon pure vanilla extract

Instructions 

  • Preheat the oven to 350°F (177°C).
  • Cut the parchment paper for the bottom of your two 9" cake pans. Place the circles in the bottom of the pans and spray with gluten-free cooking spray.
  • In a large bowl mix together the sugar, eggs, and applesauce until fully combined.
  • In a medium-sized bowl, stir together the gluten-free flour, baking soda, baking powder, cinnamon, nutmeg, cloves, and allspice.
  • Stir in the carrots, coconut, pineapple, raisins, pecans, and pure vanilla extract into the sugar and egg mixture.
  • Add the flour mixture to the batter and mix until fully combined.
  • Pour half of the batter in the first greased 9″ cake pan and then pour the rest of the batter in the second 9″ greased cake pan.
  • Bake for 35-40 minutes. The edges of the cake will start to brown and pull away from the sides of the pan. This is a very moist cake, so insert a toothpick to make sure it’s done. Please watch your cake because all ovens are different.
  • Cool the cakes completely in the pans before frosting. I cover the cooled cakes with plastic wrap and then place them in the refrigerator for several hours overnight. I like my carrot cake really cold. You can also partially cool in the pans for 15-20 minutes and then place the cakes on a cooling rack. Enjoy!

Notes

  • Don’t forget to add the parchment paper to the bottom of the pan and then coat it with cooking spray. This cake is moist, which means it will be more prone to sticking to the pan.
  • It’s best to measure the gluten-free flour with the “spoon & level” method. This keeps you from getting too much flour in the recipe.
  • I always use a toothpick to check if the cakes are done. This carrot cake is moist, so a small amount of cake may stick to the toothpick, but it should not be wet. This ensures the cake is baked perfectly.
  • Allow the cakes to completely cool in the pans before frosting. Once the cakes are completely cooled, I cover the cake pans with plastic wrap and refrigerate for several hours, up to overnight, before I frost the cake. I like carrot cake served really cold.
  • For the dairy-free option, I used Kite Hill dairy-free cream cheese.
  • I decorated the top with shredded coconut, chopped pecans, and frosting flowers using a Wilton 1M tip.
  • I’ve made this carrot cake without raisins or pecans before, but I’ve never skipped the shredded coconut. Additionally, the crushed pineapple is one of the key ingredients that makes this cake so moist. I haven’t tried this recipe without it because it’s such an important part of the texture and flavor.
  • If you’d like to make this recipe into cupcakes, simply add the batter to lined muffin tins and bake them for 15–20 minutes. In my experience, the cupcakes turn out perfectly at 20 minutes, but make sure to keep an eye on your oven, as baking times can vary depending on your oven’s performance.

Nutrition

Serving: 1sliceCalories: 449kcalCarbohydrates: 65gProtein: 8gFat: 19gSaturated Fat: 11gPolyunsaturated Fat: 1gMonounsaturated Fat: 5gTrans Fat: 0.5gCholesterol: 65mgSodium: 471mgPotassium: 267mgFiber: 4gSugar: 47gVitamin A: 3104IUVitamin C: 4mgCalcium: 142mgIron: 1mg

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

Additional Info

Course: Baking, Dessert
Cuisine: American
Tried this recipe?Mention @mamaknowsglutenfree or tag #mamaknowsglutenfree!

How to Make Gluten-Free Carrot Cake Step-by-Step

Gluten-free carrot cake ingredients

Gather all your ingredients together.

A round cake pan lined with parchment paper and greased, ready for the carrot cake batter.

Preheat the oven to 350°F and cut out circles of parchment paper to fit in the bottom of two 9” cake pans. Add the parchment paper to the bottom of the pans and spray them with gluten-free cooking spray.

A mixing bowl containing eggs, sugar, applesauce, and oil as ingredients for the gluten-free carrot cake.

Grab a large mixing bowl and whisk together 2 cups of granulated sugar, 3 large eggs, and 1 ½ cups of applesauce.

A mixing bowl with dry ingredients including gluten-free flour, cinnamon, nutmeg, and baking soda, ready to be combined.

In another bowl, stir together 2 cups gluten-free flour, 1 tsp baking soda, ½ tsp gluten-free baking powder, ½ tsp salt, 2 tsp cinnamon, ¼ tsp nutmeg, ⅛ tsp ground cloves, and ¼ tsp ground allspice.

A mixing bowl filled with shredded carrots, crushed pineapple, shredded coconut, raisins, and chopped pecans, showcasing the cake’s flavorful add-ins.

Add ½ cup raisins, 1 cup shredded sweet coconut, ½ cup chopped pecans, 1 cup crushed pineapple, 2 cups grated carrots, and 1 tsp vanilla extract to the egg and sugar mixture.

A mixing bowl with the carrot cake batter partially mixed, showing the vibrant orange color of the shredded carrots and other ingredients.

Make sure you mix the ingredients thoroughly, so everything is evenly combined.

A mixing bowl with fully mixed gluten-free carrot cake batter, smooth and ready to be poured into cake pans.

Mix the flour mixture into the batter until no flour pockets remain and all the ingredients are fully combined.

Two round cake pans filled with raw gluten-free carrot cake batter, showing the vibrant orange from shredded carrots and flecks of pecans.

Divide the batter evenly between the two greased 9″ cake pans.

Two round cakes baked to a golden brown, still in the pans, with a soft texture and visible flecks of carrots and nuts.

Place the cake pans in the preheated oven on the middle rack and bake for 35-40 minutes. The edges should start to brown and pull away from the pan. Since this cake is very moist, test for doneness by inserting a toothpick—it should come out clean or with a few moist crumbs. Keep an eye on your cake, as oven temperatures can vary. Allow the cakes to cool for 10 minutes before inverting them onto a cooling rack to cool completely. Once cool, I like to rack each cake in plastic wrap and cool in the refrigerator for several hours or overnight before frosting. Do not try to frost a warm cake. The frosting will just run off. 

A mixing bowl with blocks of cream cheese and butter, ingredients for the cream cheese frosting.

Add 1 cup of softened butter and 2 8oz packages of softened cream cheese to a mixing bowl.

A mixing bowl of whipped cream cheese and butter, showing the smooth and fluffy texture of the frosting base.

Beat the butter and cream cheese together until you have a smooth consistency.

A mixing bowl with cream cheese frosting and a dusting of powdered sugar added on top, ready to be combined.

Slowly beat in 2 cups of powdered sugar, 1 cup at a time.

A mixing bowl with cream cheese frosting fully mixed, showcasing a smooth and creamy texture.

Beat until the sugar is mixed in and the frosting is smooth.

A mixing bowl of cream cheese frosting with vanilla extract added, ready to be blended for extra flavor.

Then, beat in 2 tbsp lemon juice and 1 tsp vanilla extract. 

A single layer of gluten-free carrot cake on a cake stand, with a dollop of cream cheese frosting being spread on top.

Frost the first cake when it’s cooled completely. 

A single layer of gluten-free carrot cake fully frosted with smooth cream cheese frosting, ready for the next layer.

Stack the second cake on top of the frosted first cake and then frost the top.

An overhead view of the fully frosted gluten-free carrot cake decorated with a swirl pattern and chopped pecans on one side, surrounded by cinnamon sticks, carrots, and pecans for styling.

Decorate to your liking, slice, and enjoy with friends!

Top view of several slices of gluten-free carrot cake arranged on plates, surrounded by scattered pecans and whole carrots, with golden forks placed next to the plates.

Serving Suggestions

I love serving this gluten-free carrot cake with cream cheese frosting on Easter as part of a festive spring spread. The warm spices, sweet carrots, and rich cream cheese frosting make it a perfect holiday dessert. The cake works well as a classic layer cake, a simple sheet cake, or even cupcakes for a more casual option. Its soft texture and balanced flavors make it a favorite any time of year, and no one ever guesses it’s gluten-free.

Storage Instructions

I’ve made this gluten-free carrot cake with cream cheese frosting in advance. Make the cakes and store them separately form the frosting and assemble when you’re ready to serve. Store in an air-tight container and refrigerate for 2-3 days. The frosting can be in the refrigerator for up to two weeks.

After the cakes have completely cooled, wrap them in plastic wrap or aluminum foil and place each wrapped layer in a plastic freezer bag. I freeze my cake for up to a month and them in the refrigerator overnight. I keep the frosting in the freezer in a freezer-safe container for up to 3 months.

A close-up of a slice of gluten-free carrot cake being lifted from the whole cake with a cake server.

More Gluten-Free Cake Recipes

About Audrey Roberts

I'm Audrey Roberts, a busy mama of four and I love sharing the recipes that I make for my family. I make gluten-free family-friendly recipes that are simple and delicious that you can too! I use easy to find ingredients that won't break your budget. You will also find dairy-free options and Paleo recipes. I am also the author of The Everything Gluten-Free & Dairy-Free Cookbook, which is an Amazon Best Selling Cookbook in the US and Internationally. Living gluten-free since 2010. I hope by me sharing my journey it may help you with yours.

You Might Also Like:

4.92 from 96 votes
Subscribe
Notify of
guest
Recipe Rating




151 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Susan
February 14, 2026 10:41 am

Delicious, moist carrot cake. I used a home canned chunky apple sauce. Doubled the recipe for a crowd of 30. Frosting delicious. Had pineapple rings to use up, so just processed them to look like crushed. Batter was wet enough, so I didn’t use the juice. Would make again.

janet cyrana
January 9, 2026 4:10 pm

The recipe looks amazing! Would it work as a sheet cake? How long should I bake it?

Amy - Mama Knows Gluten Free
January 12, 2026 11:30 am
Reply to  janet cyrana

Yes, you can make this gluten-free carrot cake a sheet cake. Start checking for doneness at 45 minutes.

Risa
January 8, 2026 2:53 pm

Hi,

Would reducing the sugar in the cake by half, or using brown sugar instead of granulated sugar work?

Amy - Mama Knows Gluten Free
January 12, 2026 11:26 am
Reply to  Risa

Hi Risa, we haven’t tested it with that change but let us know if you do!

Sherry
December 13, 2025 3:44 pm

This recipe is my husband’s favorite! This year for his special birthday, he requested this. I always leave one layer without icing so we can cut and eat it just like carrot bread. Try it with a dab of real butter. It’s great.

Christmas dinner at church is tomorrow and I am making it again, with icing on both cakes & stacked. Thank you for your recipe!!!

su_ce
December 5, 2025 3:20 pm

Family and friends (both GF and not) insist on this cake for their special occasions!

Adriana
November 22, 2025 3:37 pm

came out gummy like a brick. baked for almost 1hr still dense and gummy.

Amy - Mama Knows Gluten Free
November 25, 2025 11:50 am
Reply to  Adriana

Sorry it didn’t turn out for you!

Coral
November 22, 2025 3:28 am

Can you make this in 1 tin not 2 successfully

Amy - Mama Knows Gluten Free
November 25, 2025 12:02 pm
Reply to  Coral

Hi Carol, if you use just one cake pan, you’ll have extra cake batter.

Rose Melton
September 21, 2025 8:21 pm

I just made this Friday 9/19/2025. I did leave the coconut out as my granddaughter does not like coconut. This cake turned out so moist and flavorful. People couldn’t believe that it was gluten free. I will be making this again.

Carol Shashy
September 14, 2025 5:58 pm

This was SO delicious and moist. Will definitely make again.

Abby
August 7, 2025 6:14 pm

A friend at a study shared this. she *said* it was gluten free *after* everyone ate it. In my own mind, I seriously doubted she was telling the truth. Another friend who had to be GF mentioned she wanted a carrot cake. I printed this out, bought some GF flour & crushed pineapple and applesauce (I think them unusual for carrot cake ingredients). She made it, and it was just as tasty as at study. So, I decided to give it a try. It *is* a very tasty recipe, and I would *NOT* suspect it is GF.