The Feast

Home cooking recipes for everyday dinners and easy entertaining

GF Chocolate Cake Recipe: Rich, Moist & Easy

· 5 min read · Baking and Desserts

Almond flour provides the fat and structure that wheat gluten normally supplies in traditional baking, while xanthan gum acts as the binding agent to prevent crumbling. This combination creates a tender, dense crumb that holds moisture far better than rice-based alternatives, ensuring every slice remains soft rather than dry.

What Ingredients Do I Need?

The success of this cake relies on precise measurements. Use a kitchen scale for accuracy if possible, but standard volume measurements are provided below. Ensure all ingredients are at room temperature before beginning.

  • Dry Ingredients:
  • 1 ½ cups (150g) blanched almond flour, finely ground
  • ¾ cup (75g) unsweetened cocoa powder, Dutch-processed preferred
  • 1 teaspoon xanthan gum (omit if your almond flour blend already includes it)
  • 1 teaspoon baking powder
  • ½ teaspoon baking soda
  • ½ teaspoon fine sea salt
  • Wet Ingredients:
  • 2 large eggs, room temperature
  • ¾ cup (165g) granulated sugar
  • ⅓ cup (80ml) neutral oil (avocado or vegetable)
  • ¼ cup (60g) full-fat Greek yogurt
  • 2 tablespoons strong brewed coffee or hot water
  • 1 teaspoon vanilla extract
  • For the Batter:
  • ½ cup (120ml) buttermilk or milk alternative

How Do I Make Gluten-Free Chocolate Cake?

  1. Preheat and Prep: Preheat your oven to 350°F (175°C). Grease two 8-inch round cake pans with butter or non-stick spray, then line the bottoms with parchment paper. Dust lightly with cocoa powder instead of flour to avoid white streaks.
  2. Mix Dry Ingredients: In a medium bowl, whisk together the almond flour, cocoa powder, xanthan gum, baking powder, baking soda, and salt. Sift this mixture if your cocoa powder is lumpy to ensure a smooth batter.
  3. Whisk Wet Ingredients: In a large mixing bowl, beat the eggs and sugar together until pale and slightly thickened, about 2 minutes. Add the oil, Greek yogurt, vanilla, and the hot coffee/water. Whisk vigorously until the mixture is glossy and emulsified.
  4. Combine: Gradually add the dry ingredients to the wet mixture, folding gently with a spatula. Pour in the buttermilk and fold again until just combined. Do not overmix; almond flour batters thicken quickly.
  5. Bake: Divide the batter evenly between the prepared pans. Bake for 25–30 minutes. The cakes are done when a toothpick inserted into the center comes out with moist crumbs (not wet batter) and the tops spring back lightly when touched.
  6. Cool: Let the cakes cool in the pans for 10 minutes, then turn them out onto a wire rack to cool completely before frosting. Warm gluten-free cakes are fragile and may break if moved too soon.

Why Is My Cake Too Dry or Dense?

Gluten-free baking lacks the elasticity of wheat, making texture management critical. Here is how to diagnose and fix common issues.

Too Dry

If the cake feels crumbly or dry, you likely overbaked it or used too much almond flour. Almond flour absorbs moisture differently than wheat flour. Check the cake at the 25-minute mark. If the top is deeply browned and pulling away from the sides, remove it immediately. Additionally, ensure you are using blanched almond flour, not meal, which has skins that absorb more liquid and create a gritty texture.

Too Runny or Sunken

A sunken center usually indicates under-baking or insufficient leavening. If the batter looks soupy before baking, check your measuring technique; packing almond flour can lead to excess dry ingredient. If the cake rises then collapses, verify your baking powder and soda are fresh. Old leavening agents lose potency quickly, especially in humid environments.

Too Dense

Density often results from skipping the xanthan gum or using coarse almond flour. Xanthan gum traps air bubbles created by the baking soda, providing lift. Without it, the cake spreads flat and becomes heavy. If you cannot use xanthan gum, substitute 1 tablespoon of guar gum, but reduce the quantity slightly as guar is stronger.

Can I Substitute Other Flours?

You can modify this recipe, but the ratio changes significantly depending on the flour type.

Substitution Ratio Adjustment Resulting Texture
All-Purpose GF Blend Replace almond flour 1:1 by weight. Add 1 extra egg. Lighter, more bread-like crumb.
Oat Flour Use 1 ¼ cups oat flour per 1 cup almond flour. Add 1 tbsp extra oil. Denser, chewier, slightly sweet.
Cashew Flour Replace almond flour 1:1 by weight. Very similar to almond, slightly softer.

How Should I Store Leftover Cake?

Proper storage preserves moisture and prevents the cake from drying out or absorbing refrigerator odors.

Room Temperature

If unfrosted, store the cake layers in an airtight container at room temperature for up to 2 days. Place a piece of bread inside the container; the cake will draw moisture from the bread to stay soft.

Refrigeration

Frosted cake must be refrigerated due to the dairy in the frosting and the moisture content of the cake. Wrap tightly in plastic wrap or place in a cake carrier. It will keep for 3–4 days. Bring slices to room temperature for 30 minutes before serving to restore softness.

Freezing

This cake freezes exceptionally well. Wrap unfrosted layers individually in plastic wrap, then in aluminum foil. They can be stored for up to 3 months. Thaw overnight in the refrigerator before frosting. Frosted cakes can also be frozen, but the texture of the frosting may change slightly upon thawing.

What Pairs Well With This Cake?

The rich, bitter notes of dark cocoa pair best with complementary flavors that cut through the sweetness.

  • Frostings: A classic cream cheese frosting balances the density of the almond flour. A dark chocolate ganache adds intensity without overwhelming the palate.
  • Fruit: Fresh raspberries or strawberries provide acidity and freshness. Macerating berries in a little sugar and lemon juice enhances their flavor.
  • Drinks: Serve with a strong black coffee, espresso, or a glass of red wine like Cabernet Sauvignon. The tannins in the wine mirror the tannins in the cocoa.

Safety Notes

Always handle raw eggs carefully. If you are concerned about salmonella, use pasteurized eggs or heat-treat the flour. While almond flour is generally safe, always check packaging for allergen warnings regarding tree nuts. Never leave perishable cake with dairy frosting at room temperature for more than 2 hours (1 hour if the ambient temperature is above 90°F/32°C).

In this article
  1. What Ingredients Do I Need?
  2. How Do I Make Gluten-Free Chocolate Cake?
  3. Why Is My Cake Too Dry or Dense?
  4. Can I Substitute Other Flours?
  5. How Should I Store Leftover Cake?
  6. What Pairs Well With This Cake?
  7. Safety Notes