Skip to main content
Zimt

Home baking recipes and cinnamon favourites

Carrot Cake with Coconut Flour: Easy Gluten‑Free Recipe

Enjoy a moist, flavorful carrot cake that’s naturally gluten‑free by using coconut flour instead of wheat flour. This recipe balances the dense, absorbent nature of coconut flour with extra moisture from eggs, oil, and grated carrots, resulting in a tender crumb and a subtle coconut aroma. Follow the step‑by‑step guide to bake a cake that stays soft for days, and learn how to avoid common pitfalls that can turn a promising batter into a dry, crumbly mess.

What You'll Need

  • 1 cup (96 g) coconut flour
  • ½ cup (100 g) granulated sugar or coconut sugar
  • ¼ cup (60 ml) melted coconut oil or neutral oil
  • 4 large eggs (room temperature, pasteurized if possible)
  • 1 ½ cups (180 g) finely grated carrots (about 2 medium carrots)
  • ¼ cup (25 g) unsweetened shredded coconut (optional, for texture)
  • 2  tsp baking powder (gluten‑free)
  • ½  tsp baking soda
  • ½  tsp ground cinnamon
  • ¼  tsp ground ginger
  • ¼  tsp ground nutmeg
  • ¼  tsp salt
  • ½ cup (120 ml) unsweetened almond milk or other plant milk
  • 1  tsp vanilla extract
  • Optional frosting: cream cheese, butter, powdered sugar, and a splash of lemon juice
  • 9‑inch (23 cm) round or square cake pan
  • Mixing bowls, whisk, rubber spatula, measuring cups and spoons, kitchen scale (recommended)

Choosing high‑quality coconut flour is essential because its fine texture and high fiber content dictate how much liquid the batter will absorb. Always sift the flour before measuring to avoid clumps that could cause uneven baking. Since coconut flour is low in protein, the extra eggs in this recipe provide the structure needed for the cake to rise and hold together.

Safety first: raw eggs can carry Salmonella, so use pasteurized eggs or ensure the batter reaches an internal temperature of at least 205 °F (96 °C) when baked. Coconut flour can be dusty; wear a mask if you’re sensitive, and wash hands after handling. Store any leftover cake in an airtight container within two hours of cooling; it will keep at room temperature for up to three days or refrigerated for up to a week.

Step‑By‑Step

  1. Preheat the oven to 350 °F (175 °C). Place a rack in the middle of the oven and lightly grease the cake pan with oil or line it with parchment paper.
  2. In a large bowl, whisk together the coconut flour, baking powder, baking soda, cinnamon, ginger, nutmeg, and salt. Sifting at this stage prevents pockets of flour that could create dense spots.
  3. In a separate bowl, beat the eggs until they become pale and slightly frothy, about 1‑2 minutes. This incorporates air, which helps the cake rise despite the low‑gluten environment.
  4. Add the melted coconut oil, almond milk, vanilla extract, and sugar to the beaten eggs. Whisk until the mixture is smooth and the sugar begins to dissolve.
  5. Gradually fold the dry ingredients into the wet mixture using a rubber spatula. Stir just until no streaks of flour remain; over‑mixing can develop a gummy texture.
  6. Stir in the grated carrots and shredded coconut (if using). The carrots release moisture, which balances the absorbency of the coconut flour.
  7. Scrape the batter into the prepared pan, spreading it evenly with the spatula. The batter will be thicker than typical wheat‑flour batter—this is normal.
  8. Tap the pan gently on the countertop three times to release any trapped air bubbles and to level the surface.
  9. Place the pan in the preheated oven and bake for 30‑35 minutes, or until a toothpick inserted into the center comes out clean and the top is golden brown.
  10. Check the internal temperature with an instant‑read thermometer; it should read at least 205 °F (96 °C) to ensure the eggs are fully cooked.
  11. Allow the cake to rest in the pan for 10 minutes, then turn it out onto a wire rack to cool completely before frosting.
  12. If frosting, beat together softened cream cheese, butter, powdered sugar, and lemon juice until smooth. Spread a thin crumb coat, chill for 15 minutes, then apply a final thick layer.

While the cake bakes, keep an eye on the edges; coconut flour can cause the perimeter to brown faster than the center. If the top begins to darken too quickly, loosely tent a piece of aluminum foil over the cake to prevent over‑browning while the interior finishes cooking.

Once cooled, the cake can be sliced and served immediately, or wrapped tightly in plastic wrap for later consumption. For optimal texture, slice with a serrated knife that glides through the moist crumb without crushing it.

Common Mistakes

One frequent error is using a standard 1‑cup measuring cup for coconut flour without weighing it. Because coconut flour is extremely light, a cup can weigh anywhere from 80 g to 120 g depending on how it’s packed, leading to an inconsistent batter that may be too dry or too wet. Weighing the flour on a kitchen scale eliminates this variability.

Another mistake is under‑estimating the liquid requirement. Coconut flour can absorb up to 10 times its weight in liquid; skipping the extra eggs or reducing the milk will produce a crumbly, dry cake that fails to rise. Always follow the recipe’s liquid ratios, and if the batter looks overly thick, add a tablespoon of milk at a time until it reaches a thick but pourable consistency.

Tips

For extra flavor, toast the shredded coconut lightly in a dry skillet before folding it into the batter. The toasted coconut adds a nutty aroma that complements the spices and carrots beautifully. Additionally, a tablespoon of orange zest or a splash of orange extract can brighten the flavor profile without overwhelming the classic carrot‑cake taste.

Because coconut flour continues to absorb moisture as it sits, you can improve the crumb by letting the batter rest for 5‑10 minutes before baking. This short rest allows the flour to hydrate fully, resulting in a more uniform texture. Just be sure not to let it sit longer than 15 minutes, or the batter may become too thick and require a little extra milk.

Troubleshooting

If the cake emerges from the oven with a dense, gummy center, the most likely cause is insufficient baking time or an oven temperature that is too low. Verify the oven’s accuracy with an oven thermometer and add an extra 5‑10 minutes of baking, checking the internal temperature again.

Should the cake crack on the top, it often indicates that the batter was over‑mixed or that the oven door was opened too early, causing a rapid temperature change. To prevent cracks, mix only until combined and resist the urge to open the oven door before the first 20 minutes of baking.

Frequently Asked Questions

Can I use regular flour instead of coconut flour?

This recipe is formulated specifically for coconut flour’s high absorbency. Substituting regular flour would require a complete redesign of the liquid ratios and would produce a very different texture.

Is this cake suitable for people with nut allergies?

Yes, the recipe contains no nuts, but it does use coconut, which some people treat as a tree nut. If coconut is an allergen, replace the coconut oil with a neutral oil and omit the shredded coconut.

How long can I store the cake?

At room temperature, keep the unfrosted cake in an airtight container for up to three days. Frosted cake can be refrigerated for up to a week; for longer storage, wrap tightly and freeze for up to three months.

Can I add raisins or nuts?

Yes, fold in ½ cup of raisins, chopped walnuts, or pecans after adding the carrots. Adjust the total dry‑ingredient weight slightly if you add a large amount of extras.

What if I don’t have an instant‑read thermometer?

Use the classic toothpick test: insert a clean toothpick into the center; it should come out with a few moist crumbs but no wet batter. If you’re uncertain, bake an additional 5 minutes and re‑test.

Read next