Gluten Free Carrot Cake

The ultimate gluten free carrot cake is loaded with fresh carrots and topped with cinnamon cream cheese frosting. Plus, you can even bake it into cupcakes, and easily make it days ahead of time.

This is the recipe that makes a carrot cake lover out of anyone, even if you think you aren't much of a fan. In fact, I often get requests to make it as a birthday cake from converts!

gluten free carrot cake with two-layers with chopped pecans on small white plate

My take

Nicole's Recipe Notes

This batter makes cake or cupcakes that are light and fluffy, moist and tender, and never ever oily. Cakes made with oil instead of butter can be very moist but can also become oily if the ingredients are in just the proper balance, as they are here.

Carrots are perfect for cake because, when shredded and folded into a cinnamon-sugar cake batter, they bake up sweet and tender. They give off just enough moisture to help tenderize the cake, but they don't make the cake soggy.

This recipe uses a ton of shredded carrots (3 whole cups, in fact), unlike some recipes that are carrot cake in name only. They soften during baking, but mostly hold their color and don't bleed into the rest of the cake.

slice of gluten free carrot cake with white frosting on outside and center being taken from whole cake on platter

Key cake ingredients

ingredients for gluten free carrot cake in small bowls with names of ingredients in black typeface
  • Gluten free flour: Be sure to choose one of my recommended blends of all purpose gluten free flour, which is a blend of individual flours that together behave like wheat flour.
  • Baking powder/baking soda: Aid in rising and browning in the oven.
  • Cinnamon: This warm spice adds depth of flavor.
  • White sugar: Adds sweetness and tenderness.
  • Brown sugar: Adds sweetness, tenderness and moisture to this cake.
  • Eggs: Provide structure and provide a lot of rise in this moist cake.
  • Oil: Makes for an even more tender cake than butter would without adding any flavor to compete with the carrots and cinnamon.
  • Milk: Adds moisture and richness.
  • Apple cider vinegar: Helps the cake rise by reacting with baking soda and helps tenderize the crumb. Can be replaced with regular white vinegar or fresh lemon juice.
  • Carrots: Add sweetness, tenderness, and natural flavor that complements the cinnamon.
  • White chocolate chips: I like just a few white chocolate chips in carrot cake since they add richness and some texture without the prominent flavor of regular chocolate chips. You can use a mixture of chopped pecans and white chocolate chips, all chips, or even chopped walnuts or raisins.

substitutions

Substituting ingredients

Dairy free cake

Making carrot cake with oil instead of butter makes these carrot cake cupcakes quite easy to convert to dairy free as well as gluten free. Just use a nondairy milk, like almond milk.

You can either replace the white chocolate chips with more nuts, make your own vegan white chocolate and chop it up, or use nondairy semi-sweet chocolate chips.

Dairy free frosting

I've successfully made cream cheese-style frosting dairy free by using 4 ounces Daiya nondairy cream cheese, 8 tablespoons (96 g) nonhydrogenated shortening, and 6 tablespoons (84 g) Earth Balance nondairy butter in place of the butter and cream cheese.

I find that nondairy cream cheese has a strong taste that can become unpleasant if used in large amounts, so I don't use a whole 8 ounces of it in place of 8 ounces of conventional cream cheese.

An easy gluten free dairy free alternative to making your own frosting is to buy a can of Pillsbury brand cream cheese frosting. It's gluten free, and contains no dairy ingredients (but does contain soy).

Egg free

Replacing all 4 eggs in the cake recipe will be hard, but I think it's worth trying with 4 “flax eggs,” or even the equivalent of 4 eggs from JustEgg brand plant eggs (in the refrigerated section of the grocery store).

Nut free

Just use 2 more ounces of the white chocolate chips in place of the chopped pecans, and eliminate the pecans as decoration.

Single layer baked gluten free carrot cake on white cake turner

My Pro Tip

Expert tips

Measuring gluten free flour

Always measure your dry ingredients, especially your gluten free flour blend, by weight, not volume. It's impossible to avoid human error when measuring by volume, no matter your level of baking experience. That can lead to a dry cake if you overmeasure, or one that doesn't rise as expected.

Grating carrots

You should always grate your carrots fresh, rather than used a prepared bag of grated carrots, for carrot cake. The prepared ones are almost always quite thick, and they're too dry.

If you don't want to use a box grater, try making quick work of the job by grating them in your food processor with the grater plate or blade.

Try some mix-ins

There are so many options for mix-ins in your carrot cake. In this recipe, there's a total of about 5 or 6 ounces of mix-ins.

You can use any combination of dry mix-ins that hold their shape in your cake. Here are some suggestions:

  • Soft nuts, like pecans or walnuts, roughly chopped
  • Raisins (I like white raisins here, but Thompson seedless raisins are also an excellent choice)
  • White, dark, or milk chocolate chips

If you'd like to mix pineapple into your carrot cake, you'll get nothing but encouragement from me—but you'll need our Entenmann's style gluten free carrot pineapple cake recipe. Don't try adding pineapple to this recipe, as it adds a ton of moisture and needs its own recipe.

Testing for doneness

The cakes are done baking when they're uniformly light brown on top, and beginning to pull away from the sides of the pan. This is a really moist cake, so the “toothpick test” isn't that reliable.

slice of brown cake with orange flecks of grated carrots and white frosting between 2 layers and on top on small white plate with gold fork
Print

Gluten Free Carrot Cake Recipe

This gluten free carrot cake is perfectly spiced, impossibly tender, and covered in creamy, tangy cream cheese frosting. Perfect for Easter!
Course Cake, Dessert
Cuisine American
Keyword brown sugar, butter, carrots, cinnamon, cream cheese, eggs, gluten free carrot cake, gluten free carrot cupcakes, gluten free flour, milk, oil, white sugar
Prep Time 25 minutes
Cook Time 35 minutes
Servings 8 slices layer cake
Calories 619kcal

Equipment

Ingredients

For the cake

  • 2 ¼ cups 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 granulated sugar
  • ½ cup packed light brown sugar
  • ½ cup neutral oil (like sunflower or grapeseed oil)
  • 4 eggs at room temperature, beaten
  • 1 teaspoon apple cider vinegar
  • ½ cup milk at room temperature
  • ½ cup chopped pecans plus more for decorating (optional)
  • ½ cup white chocolate chips (See Recipe Notes if omitting pecans)
  • 3 cups peeled and grated carrots (from about 3 large carrots)

For the cream cheese frosting

  • 8 ounces cream cheese at room temperature
  • 8 tablespoons unsalted butter at room temperature
  • ¼ teaspoon kosher salt
  • 4 cups confectioners’ sugar plus more as necessary

Instructions

  • Preheat your oven to 350°F. Grease two 8-inch round baking pans and set them aside. If making cupcakes, grease or line two standard 12-cup muffin tins, and set them aside.
  • In a large bowl, place the flour, xanthan gum, baking soda, baking powder, salt, cinnamon and granulated sugar. Whisk to combine well.
    Large round metal mixing bowl with white powders and some brown cinnamon powder
  • Add the brown sugar, and whisk again to combine, working to break up any lumps in the brown sugar.
    same bowl with whisked very light brown powder with light brown sugar on top
  • Create a well in the center of the dry ingredients, and add the oil, eggs, vinegar, and milk, and mix to combine.
    Same mixing bowl with thick, soft wet light brown batter after eggs, oil, and milk mixed in with metal mixing spoon
  • 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.
    Same mixing bowl with light brown batter underneath and shredded orange carrots and white chocolate chips on top with metal mixing spoon

To make a cake.

  • Divide the batter evenly among the two prepared baking pans, and spread into an even layer in each.
    two round 8-inch metal cake pans with wet raw gluten free carrot cake batter with visible carrot shreds and white chocolate chips
  • 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).
    same 2 round cake pans with baked browned carrot cake on wire rack
  • 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.

To make cupcakes.

  • Fill the wells of the prepared muffin tins about 3/4 of the way full with batter, and shake the pan back and forth to distribute the batter evenly in each well.
  • One at a time, place the muffin tins in the center of the preheated oven and bake until a toothpick inserted in the center of the cupcakes comes out with no more than a few moist crumbs attached (about 20 minutes).
  • Remove the tin from the oven from the oven and allow the cupcakes to cool in the pan for at least 5 minutes before transferring to a wire rack to cool completely. Repeat with the remaining muffin tin.

Make the frosting.

  • While the cakes or cupcakes 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.

To frost a layer cake.

  • Turn one of the cooled cakes, top down, onto a serving platter.
    one round light brown carrot cake overturned on four strips of white parchment paper
  • Spoon about half of the frosting onto the top of the cake.
    3 scoops of white cream cheese icing in center of overturned baked brown cake
  • Spread the frosting into an even layer on top of this cake.
    white frosting spread on top of cake
  • Top with the second cake, top-down and press to adhere.
    second baked brown carrot cake on top of icing in center
  • Spoon the remaining frosting on top of the cake.
    3 more scoops of white frosting on top of second cake on top
  • 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.
    finished cake with icing spread and swirled
  • 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.

To frost cupcakes.

  • Spoon or pipe the frosting onto the cooled cupcakes.

Video

Notes

Choosing a flour blend.
My favorite gluten free flour blends are Better Batter's original blend gluten free flour and Nicole's Best multipurpose blendBob's Red Mill 1-to-1 Gluten Free Baking Flour may also work since the blend seems to have removed the grit, but it's still of inconsistent quality. Plus, if you use it, you'll need to add an additional heaping 1/2 teaspoon xanthan gum to your dry ingredients or the cake will be crumbly. 
Cup4Cup changed its formula and doesn't seem to work as well as it has in the past, so I don't recommend it. To make your own blend using one of my “mock” recipes, please see the all purpose gluten free flour blends page.
Changes if you're making cupcakes.
  • Reduce the flour blend by 1/4 cup (35 g) to 2 cups (280 g). The rest of the recipe remains the same.
  • You may want to halve the frosting recipe, as you need less frosting. Unless you really want to pile it on (which I heartily recommend).
About the pecans in the cake batter.
If you're not using pecans in the cake, use double the amount of white chocolate chips, raising the amount to 6 ounces.
Nutritional information is an estimate per slice of layer cake with frosting, assuming the cake is sliced into 8 equal slices. It is created using an online nutritional calculator as a courtesy and should not be relied upon.

Nutrition

Serving: 1slice | Calories: 619kcal | Carbohydrates: 141g | Protein: 8g | Fat: 46g | Saturated Fat: 18g | Polyunsaturated Fat: 7g | Monounsaturated Fat: 19g | Trans Fat: 1g | Cholesterol: 145mg | Sodium: 641mg | Potassium: 330mg | Fiber: 4g | Sugar: 43g | Vitamin A: 8902IU | Vitamin C: 3mg | Calcium: 166mg | Iron: 1mg

For the cream cheese frosting

It wouldn't be a classic carrot cake without the tangy sweetness of smooth and creamy cream cheese frosting. The cream cheese frosting here isn't super stiff, since that would require adding way too much confectioners' sugar. 

When you frost the cake as a layer cake, keep in mind that the frosting is a bit softer than a classic buttercream. That means that the cake itself is more likely to peek out from the layers of frosting.

You can frost a “naked” cake by just filling in between the layers and frosting right on top. For cupcakes, try frosting them right before serving.

You can also help firm up the frosting a bit by chilling it in the refrigerator before using it to decorate your cake. I wouldn't let it chill for more than an hour, though, so it doesn't become too firm to spread.

gluten free carrot cake batter in cupcake wells and as baked cupcakes
gluten free carrot cake baked in cupcake with white frosting

Making cupcakes with this recipe

To make carrot cake cupcakes, you must reduce the amount of flour called for in the recipe by 1/4 cup (36 grams), for a total of 2 cups (280 grams). Although it's often assumed that a recipe for a cake can be used to make cupcakes, and vice versa, it isn't always the case. Since each cupcake is its own portion, there's a much larger surface area that is exposed to the heat of the oven.

If you use only 2 cups of flour to make the cake, like you do for cupcakes, the cake is too fragile. It tastes great, but the cake will crack when you frost and layer it. Adding 1/4 cup more flour to the recipe before baking it as a layer cake was the perfect fix.

FAQs

Can I refrigerate this gluten free carrot cake mix for later?

You can definitely assemble the dry ingredients, up to and including the brown sugar, whisk them together, and store them in a sealed container. I would store them at room temperature, though, in a dark pantry, since the refrigerator will cause the brown sugar to clump.

Why is my gluten free carrot cake crumbly?

If your cake is crumbly, you may have overmeasured your gluten free flour blend, or used a blend with a gritty rice flour.

Can I use almond flour, coconut flour, or oat flour in this recipe?

I'm afraid this cake can't be made without a rice flour-based all purpose gluten free flour, no. You'd need a completely different recipe. Our superfood muffins come close!

make ahead/leftovers

Storage instructions

If you have already frosted the cake and have any slices leftover, it will still freeze really well. Just wrap each slice tightly in freezer safe wrap, then freeze. Defrost at room temperature.

Make ahead cakes

You can make the carrot cake layers even weeks ahead of time by wrapping them tightly and freezing them. Defrost in the refrigerator before frosting and serving.

The cake is moist enough, in fact, that you can even store it at room temperature, wrapped tightly in plastic wrap, up to 1 whole day in advance. Don't refrigerate it, though, as the refrigerator tends to dry out baked goods.

Make ahead frosting

The frosting can also be made in advance and stored in the refrigerator for a few days. It will be solid, though, once fully chilled, so you'll need to let it warm up for about an hour, and then mix it again with your mixer until you reach the proper consistency for spreading or piping it.

gluten free carrot cake raw batter in round metal baking tins

This recipe is designed to be made either in 2 8-inch round cake pans, or the standard wells of a 12-cup muffin tin. I always recommend baking in cast aluminum, which conducts heat well but not too well, and is light in color so it doesn't burn the outside by attracting too much heat in the oven.

Since the recipe calls for 4 eggs, you can easily cut the ingredients in half, right down the middle, and make either 1 cake or just 12 cupcakes. The cupcakes do freeze really well, though, if you make the whole recipe but don't have a need for all 24.

If your pan is 9-inches in diameter, rather than 8-inches, it will make shorter cakes that bake faster. Begin checking at 25 minutes.

Keep in mind that there's no truly standard size well in a “standard” 12-cup muffin tin. So you may get more or fewer cupcakes than the recipe states.

A whole carrot cake and a slice of it on a plate

A carrot cake cupcake on a small plate with frosting, and a tin with a dozen carrot cake cupcakes

Scroll to Top